agentleFS
CodeWithBehnamCodeWithBehnam/cc-docs/skills/security-scan/SKILL.md

security-scan

Skill2 starsChanged 9 months agoMITView on GitHub

Scan the codebase for security vulnerabilities based on the OWASP Top 10. Use when the user asks to audit security, find vulnerabilities, check for security issues, or says "security scan", "audit this", "find security bugs".

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

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

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 6

    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:

    A01 - Broken Access Control: Look for missing authorization checks, IDOR patterns, direct object references, insecure direct database …

    line 22
  2. Distinctive:

    A03 - Injection: Search for SQL queries built with string concatenation, unsanitized shell commands, template injection, LDAP injection, …

    line 26
  3. Distinctive:

    A05 - Security Misconfiguration: Check for debug mode enabled, verbose error messages exposing internals, permissive CORS headers, default …

    line 30
  4. Distinctive:

    A07 - Authentication Failures: Look for weak session management, missing account lockout, insecure password reset flows, JWT with weak or …

    line 34
  5. Distinctive:

    A08 - Software Integrity Failures: Check for use of untrusted CDN resources without integrity hashes, insecure deserialization of …

    line 36
  6. Distinctive:

    A09 - Logging Failures: Verify that authentication events are logged, that logs do not contain passwords or tokens, and that errors are …

    line 38

“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

Context

  • Repository: !git rev-parse --show-toplevel 2>/dev/null || pwd
  • Languages detected: !find . -type f \( -name "*.py" -o -name "*.ts" -o -name "*.js" -o -name "*.go" -o -name "*.rb" -o -name "*.java" \) | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -10
  • Target: $ARGUMENTS

Task

Perform a security audit of the codebase (or the path specified in $ARGUMENTS) covering the OWASP Top 10:

  1. A01 - Broken Access Control: Look for missing authorization checks, IDOR patterns, direct object references, insecure direct database access without ownership checks.
  2. A02 - Cryptographic Failures: Find hardcoded secrets, API keys, passwords in source code. Check for use of weak algorithms (MD5, SHA1 for passwords, ECB mode). Look for unencrypted sensitive data in logs or responses.
  3. A03 - Injection: Search for SQL queries built with string concatenation, unsanitized shell commands, template injection, LDAP injection, and XSS sinks.
  4. A04 - Insecure Design: Identify missing rate limiting on auth endpoints, no CSRF protection on state-changing forms, missing input length limits.
  5. A05 - Security Misconfiguration: Check for debug mode enabled, verbose error messages exposing internals, permissive CORS headers, default credentials in config files.
  6. A06 - Vulnerable Components: Note any obviously outdated dependency versions or known-vulnerable packages in package.json, requirements.txt, go.mod, or Gemfile.
  7. A07 - Authentication Failures: Look for weak session management, missing account lockout, insecure password reset flows, JWT with weak or no signature verification.
  8. A08 - Software Integrity Failures: Check for use of untrusted CDN resources without integrity hashes, insecure deserialization of user-supplied data.
  9. A09 - Logging Failures: Verify that authentication events are logged, that logs do not contain passwords or tokens, and that errors are logged without exposing stack traces to users.
  10. A10 - SSRF: Find URL parameters or user-controlled values passed to HTTP clients, file readers, or DNS lookups without validation.

For each finding, read the surrounding code to confirm it is a real issue, not a false positive.

Output Format

Executive Summary

Total findings by severity. One-paragraph risk assessment.

Findings

For each vulnerability:

  • ID: VULN-001, VULN-002, ...
  • Category: OWASP category (e.g., A03 - Injection)
  • Severity: Critical / High / Medium / Low / Informational
  • File: path/to/file.py:42
  • Description: what the vulnerability is
  • Evidence: the specific code snippet or pattern found
  • Remediation: concrete steps to fix it

No Issues Found

List categories where no issues were detected (to show coverage).

Out of Scope

Note any areas not checked (e.g., third-party libraries, infrastructure config not present in the repo).

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.