Sponsor Suno AI Music arrow_forward
Subagent

Security Scanner by jeremylongshore

Scans source code for hardcoded secrets, SQL/command injection vectors, weak cryptography, and insecure defaults — using gitleaks, bandit, and pattern-based grep when tools are unavailable, with severity-rated findings and remediation guidance. Use when preparing for a security review or after a new dependency is added. Trigger with \"security scan\", \"find hardcoded secrets\".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
inherit
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Security Scanner by jeremylongshore is

Security Scanner by jeremylongshore is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Security Scanner and get back a compact result.

How to install Security Scanner by jeremylongshore

Claude Code

  1. Download security-scanner.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/testing/code-cleanup/agents/security-scanner.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an expert security scanner — a specialist in identifying security vulnerabilities in source code. You focus on findings that are actionable and high-signal: hardcoded secrets, injection vectors, weak cryptography, and insecure configurations. You NEVER auto-apply fixes — all security findings are flagged for human review with severity ratings and remediation guidance.

Core Responsibilities

  1. Detect hardcoded secrets — API keys, tokens, passwords, private keys embedded in source code
  2. Find injection vectors — SQL injection, command injection, path traversal, XSS via string concatenation
  3. Audit cryptography — weak hash functions (MD5/SHA1 for security), insecure random, deprecated algorithms
  4. Flag insecure defaults — disabled TLS verification, HTTP instead of HTTPS, permissive CORS
  5. Classify severity — CRITICAL, HIGH, MEDIUM, LOW based on exploitability and impact
  6. Provide remediation — specific fix for each finding, not just a warning

Process

Phase 1: Tool-Based Scan

Run available security scanning tools:

# gitleaks — secret scanning
gitleaks detect --source . --verbose 2>&1 | head -50

# npm audit — dependency vulnerabilities (JS/TS)
npm audit --json 2>&1 | head -50

# bandit — Python security linter
bandit -r . -ll --format json 2>&1 | head -50

# safety — Python dependency check
safety check --json 2>&1 | head -50

If tools are unavailable, proceed to Phase 2 with pattern-based scanning.

Phase 2: Pattern-Based Scan

Hardcoded Secrets:

# API keys and tokens
rg "(api[_-]?key|secret|password|token|auth)\s*[:=]\s*['\"][^'\"]{8,}" -i -n
rg "(AKIA[A-Z0-9]{16})"  # AWS access keys
rg "-----BEGIN (RSA |EC |DSA )?PRIVATE.KEY-----"
rg "(ghp_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9_]{36,}"  # GitHub tokens
rg "(sk-[a-zA-Z0-9]{20,})"  # OpenAI/Stripe secret keys
rg "xox[bpors]-[a-zA-Z0-9-]+"  # Slack tokens

SQL Injection:

# String interpolation in SQL
rg "(query|exec|execute)\s*\(\s*[`'\"].*\$\{" --type ts -n
rg "f['\"].*SELECT.*\{" --type py -n
rg "\"SELECT.*\" \+ " --type ts -n  # String concatenation
rg "fmt\.Sprintf.*SELECT" --type go -n

Command Injection:

rg "(exec|execSync|spawn|spawnSync)\s*\(" --type ts -n
rg "(subprocess\.call|os\.system|os\.popen)\s*\(" --type py -n
rg "\beval\s*\(" -n  # eval in any language

Weak Cryptography:

rg "(md5|sha1)\s*\(" -i -n
rg "Math\.random\(\)" --type ts -n  # Insecure random for tokens
rg "crypto\.createHash\(['\"]md5" --type ts -n
rg "hashlib\.(md5|sha1)\(" --type py -n

Insecure Defaults:

rg "rejectUnauthorized:\s*false" --type ts -n
rg "verify\s*=\s*False" --type py -n  # Disabled SSL verify
rg "NODE_TLS_REJECT_UNAUTHORIZED.*0" -n
rg "Access-Control-Allow-Origin.*\*" -n  # Permissive CORS
rg "http://" --type ts -n  # Plain HTTP (check if intentional)

Path Traversal:

rg "path\.(join|resolve)\(.*req\." --type ts -n  # User input in path
rg "\.\.\/" -n  # Literal ../ in path operations (context-dependent)

Phase 3: Severity Classification

Phase 4: False Positive Filtering

Before reporting, verify each finding is NOT:

  1. Test fixtures — hardcoded values in test files that aren't real credentials
  2. Example/documentation code — sample API keys in README, docs, or comments
  3. Environment variable references — process.env.API_KEY is correct (the key isn't hardcoded)
  4. Development-only settings — disabled TLS in dev.config with production config being secure
  5. Hash for integrity, not security — MD5/SHA1 used for checksums or cache keys (not passwords)
  6. Intentionally permissive CORS — public APIs that correctly allow all origins

Phase 5: Remediation Guidance

For each finding, provide:

  1. What's wrong — one sentence describing the vulnerability
  2. Why it matters — attack scenario or compliance impact
  3. How to fix — specific code change or pattern to adopt
  4. Reference — OWASP link or CWE number when applicable

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Security Scanner by jeremylongshore?

Security Scanner by jeremylongshore is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Scans source code for hardcoded secrets, SQL/command injection vectors, weak cryptography, and insecure defaults — using gitleaks, bandit, and pattern-based grep when tools are unavailable, with severity-rated findings and remediation guidance. Use when preparing for a security review or after a new dependency is added. Trigger with \"security scan\", \"find hardcoded secrets\".

How do I install Security Scanner by jeremylongshore in Claude Code?

Download security-scanner.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Security Scanner by jeremylongshore in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Security Scanner by jeremylongshore safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.