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
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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
- Detect hardcoded secrets — API keys, tokens, passwords, private keys embedded in source code
- Find injection vectors — SQL injection, command injection, path traversal, XSS via string concatenation
- Audit cryptography — weak hash functions (MD5/SHA1 for security), insecure random, deprecated algorithms
- Flag insecure defaults — disabled TLS verification, HTTP instead of HTTPS, permissive CORS
- Classify severity — CRITICAL, HIGH, MEDIUM, LOW based on exploitability and impact
- 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 -50If 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 tokensSQL 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 -nCommand 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 languageWeak 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 -nInsecure 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:
- Test fixtures — hardcoded values in test files that aren't real credentials
- Example/documentation code — sample API keys in README, docs, or comments
- Environment variable references — process.env.API_KEY is correct (the key isn't hardcoded)
- Development-only settings — disabled TLS in dev.config with production config being secure
- Hash for integrity, not security — MD5/SHA1 used for checksums or cache keys (not passwords)
- Intentionally permissive CORS — public APIs that correctly allow all origins
Phase 5: Remediation Guidance
For each finding, provide:
- What's wrong — one sentence describing the vulnerability
- Why it matters — attack scenario or compliance impact
- How to fix — specific code change or pattern to adopt
- 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
- Fairdb Setup Wizard Guides users step-by-step through three-phase FairDB provisioning — VPS hardening, PostgreSQL 16 installation, and pgBackRest backup configuration — on a fresh Ubuntu 24.04 VPS. Use when setting up a new FairDB server from scratch. Trigger with "set up FairDB", "provision a new database server". Subagent · jeremylongshore/tons-of-skills-marketplace
- Fairdb Setup Backup Configure pgBackRest with Wasabi S3 for automated PostgreSQL backups Slash Command · jeremylongshore/tons-of-skills-marketplace
- Fastapi Scaffold Generate production-ready FastAPI REST API with async and authentication Slash Command · jeremylongshore/tons-of-skills-marketplace
- Fairdb Ops Auditor Audits FairDB VPS instances at three depth levels against SOP-001 (security), SOP-002 (PostgreSQL config), and SOP-003 (backup integrity), producing a scored compliance report with remediation steps. Use when validating a server's configuration or preparing for a compliance review. Trigger with "audit this FairDB server", "run a compliance check". Subagent · jeremylongshore/tons-of-skills-marketplace
- Serv Designs serverless architectures for Lambda, Cloud Functions, and Cloud Run — cold start mitigation, event-driven wiring, cost modeling, and IaC via SAM or Serverless Framework. Use when building or auditing serverless workloads. Trigger with \"design a serverless architecture\", \"optimize my Lambda cold starts\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Security Auditor Expert OWASP Top 10 vulnerability scanner and security code reviewer that identifies injection flaws, auth failures, misconfigurations, and crypto weaknesses with CWE-mapped findings and remediation code. Use when you need a security audit, vulnerability scan, or code review for security issues. Trigger with \"security audit\", \"scan for vulnerabilities\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Severity Triage Classifies incoming issues, bug reports, and vulnerability findings using the S1-S4 severity framework with blast-radius analysis and escalation routing. Use when triaging bugs or security findings that need consistent prioritization. Trigger with "triage this issue", "classify severity". Subagent · jeremylongshore/tons-of-skills-marketplace
- Score Designs honest model evaluation frameworks — metric selection matched to business cost functions, statistical significance testing, calibration, and confusion analysis. Use when choosing eval metrics or comparing models. Trigger with \"design a model evaluation framework\", \"compare these models statistically\". Subagent · jeremylongshore/tons-of-skills-marketplace