agentleFS
viknesh20-20viknesh20-20/claude-code-tool-kit/.claude/skills/security-scan/SKILL.md

security-scan

Skill7 starsChanged 7 months agoMITView on GitHub

Scans the codebase for security vulnerabilities including injection flaws, authentication issues, hardcoded secrets, and insecure configurations. Run before any PR touching auth, user input, or external APIs.

  • Reads credentials

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use springboot-security, django-security and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • FaisalAlqarniSkill

    springboot-security

    Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.

    Also in 5 projects that use this

  • johnrtiptonSkill

    django-security

    This skill should be used when conducting security reviews, auditing Django applications, hardening security settings, implementing OWASP Top 10 protections, managing secrets, or ensuring multi-tenant security isolation. Provides automated security auditor that scans settings, code, dependencies, and multi-tenant configurations with auto-fix capabilities.

    Also in 5 projects that use this

  • JamkrisSkill

    security-bounty-hunter

    Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.

    Also in 3 projects that use this

  • joneqianSkill

    postgres-patterns

    PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    iterative-retrieval

    Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.

    Also in 5 projects that use this

  • LangChainSkill

    docker-patterns

    Best practices for Docker containerization and multi-stage builds

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default credentials not changed

    line 62
  2. Distinctive:

    Check for known vulnerable dependencies using:

    line 73

“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Vulnerability Scan

Automated Secret Detection

!git grep -rn "api_key\|apikey\|api-key\|secret\|password\|passwd\|token\|bearer\|private_key\|access_key\|client_secret\|auth_token" --include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.rs" --include="*.java" --include="*.rb" --include="*.cs" --include="*.env*" --include="*.yml" --include="*.yaml" --include="*.json" --include="*.toml" --include="*.cfg" --include="*.ini" --include="*.conf" 2>/dev/null | grep -v node_modules | grep -v .git | grep -v vendor | grep -v "\.lock" | grep -v "test" | grep -vi "example\|placeholder\|your_\|TODO\|FIXME\|change_me" | head -30

Environment Files Check

!find . -name ".env*" -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null !cat .gitignore 2>/dev/null | grep -i "env\|secret\|key\|credential" || echo "WARNING: .gitignore may not exclude secret files"


Vulnerability Checklist

Scan the codebase systematically for each vulnerability class. For every finding:

  • Severity: Critical / High / Medium / Low
  • File path and line number
  • Vulnerability type (CWE ID if known)
  • Description of the risk
  • Remediation steps with code

1. Injection Flaws

  • SQL Injection: String concatenation in queries instead of parameterized/prepared statements
  • NoSQL Injection: Unsanitized user input in MongoDB/DynamoDB queries
  • Command Injection: User input passed to exec, system, os.popen, subprocess without sanitization
  • LDAP Injection: Unsanitized input in LDAP queries
  • Path Traversal: User input in file paths without normalization (../../../etc/passwd)
  • Template Injection: User input rendered in templates without escaping (SSTI)

2. Cross-Site Scripting (XSS)

  • Unescaped user input rendered in HTML
  • dangerouslySetInnerHTML / v-html / |safe with user content
  • Reflected XSS via URL parameters
  • Stored XSS via database content rendered without sanitization
  • DOM-based XSS via document.write, innerHTML, eval

3. Authentication & Authorization

  • Missing authentication on sensitive endpoints
  • Broken access control (IDOR — accessing other users' resources by ID)
  • Missing rate limiting on login/auth endpoints
  • JWT tokens without expiry or with weak signing algorithms (HS256 with weak secret)
  • Session tokens in URLs or local storage
  • Missing CSRF protection on state-changing operations

4. Hardcoded Secrets

  • API keys, tokens, passwords in source code
  • Private keys or certificates in the repository
  • Database connection strings with embedded credentials
  • Secret values in configuration files that should use env vars

5. Insecure Configuration

  • Debug mode enabled in production configs
  • Verbose error messages exposing stack traces or internals
  • Open CORS policies (Access-Control-Allow-Origin: *)
  • Missing security headers (CSP, HSTS, X-Frame-Options)
  • Default credentials not changed
  • Unnecessary ports or services exposed

6. Data Exposure

  • Sensitive data in logs (passwords, tokens, PII)
  • PII returned in API responses without need
  • Missing encryption for data at rest or in transit
  • Overly permissive file/directory permissions
  • Backup files or source maps exposed in production

7. Dependency Vulnerabilities

  • Check for known vulnerable dependencies using:
    • npm audit / yarn audit (Node.js)
    • pip audit / safety check (Python)
    • go vuln check (Go)
    • cargo audit (Rust)
    • dotnet list package --vulnerable (.NET)

Output Format

Findings by Severity

Critical (exploit possible, immediate fix required)

<!-- List findings -->

High (significant risk, fix before deploy)

<!-- List findings -->

Medium (should be addressed in next sprint)

<!-- List findings -->

Low (hardening recommendations)

<!-- List findings -->

Security Score

Rate the overall security posture from 0 to 10 (10 = excellent, 0 = critical vulnerabilities present).

Risk Assessment

Provide a paragraph summarizing the overall security state, the most concerning patterns, and the recommended order of remediation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.