Skip to content

Instantly share code, notes, and snippets.

@anthonywu
Created July 24, 2025 21:34
Show Gist options
  • Save anthonywu/aacbed3cbff5526e480920520e5c79b0 to your computer and use it in GitHub Desktop.
Save anthonywu/aacbed3cbff5526e480920520e5c79b0 to your computer and use it in GitHub Desktop.
/sec_check_exfiltration

Use a sub-agent: check this repo for virus, malware, trojan horse behavior or anything that might be obfuscated but is one of these attack vectors.

Specifically:

  1. Maintainer information - does the code authors use real names or work with recognizable organizations and companies

  2. Unexpected commits - has there been a commit by a maintainer who is not usually making contributions

  3. Frequency and recency of the updates - does it look like the library is minding the updates or its own dependencies

  4. Code review practices - Are PRs properly reviewed? Is there a multi-approver policy?

  5. Security disclosure policy - Is there a security.md file or documented vulnerability reporting process?

  6. Obfuscated code detection - Look for intentionally obscured code, minified JavaScript without source maps, or encoded strings that execute

  7. Suspicious network activity - Check for outbound connections to unfamiliar domains, data exfiltration, or API usage without clear purpose

  8. Sensitive file operations - Does the code access unexpected directories or modify system files?

  9. Dependency analysis - Examine the supply chain security (transitive dependencies)

  10. Known vulnerability scanning - Check if the repo has unpatched CVEs or security advisories

  11. Excessive permission requests - Does the code request unnecessary system access?

  12. Secrets management - Are there hardcoded API keys, tokens, or credentials?

  13. Automated security testing - Does the repo use security scanning tools or SAST?

  14. Documentation quality - Well-documented code is often a sign of quality and security consciousness

  15. Community engagement - Active issue responses and community involvement often correlate with better security practices

Conclusion: Make a recommendation for whether this library is safe to use in a professional / production setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment