agentleFS
DROOdotFOODROOdotFOO/agent-skills/skills/security-auditor/SKILL.md

security-auditor

Skill1 starsChanged 3 months agoMITView on GitHub

General-purpose application security auditing across Python, TypeScript, Go, and Rust. TRIGGER when: user asks for a security audit, vulnerability assessment, threat modeling, code security review, OWASP analysis, variant analysis, or asks about injection, XSS, SSRF, path traversal, deserialization, or crypto misuse in application code. DO NOT TRIGGER when: working with .sol files, smart contracts, or Solidity audits (use solidity-auditor); when reviewing code for general quality without security focus (use code-review); when auditing dependencies only (use dependency-auditor).

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use performance-optimizer, api-designer 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.
  • glinckerSkill

    performance-optimizer

    Analyze and optimize code performance, identify bottlenecks, and suggest improvements

    Also in 4 projects that use this

  • AutumnsGroveSkill

    api-designer

    Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices. Use for: (1) Creating API specifications, (2) Designing REST endpoints, (3) GraphQL schema design, (4) API authentication and authorization, (5) API versioning strategies, (6) Documentation generation

    Also in 5 projects that use this

  • JohnJBorenSkill

    test-engineer

    Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests

    Also in 4 projects that use this

  • VercelSkill

    technical-writer

    Write, review, and edit developer documentation for SDKs, libraries, and frameworks, including sites such as ai-sdk.dev and chat-sdk.dev. Use for getting-started guides, tutorials, API references, conceptual explanations, integration guides, migration guides, troubleshooting, and code examples.

    Also in 6 projects that use this

  • JeffallanSkill

    devops-engineer

    Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing applications, managing infrastructure as code, deploying to Kubernetes clusters, configuring cloud platforms, automating releases, or responding to production incidents. Invoke for pipelines, Docker, Kubernetes, GitOps, Terraform, GitHub Actions, on-call, or platform engineering.

    Also in 4 projects that use this

  • lotosbinSkill

    ui-ux-designer

    UI/UX 设计师专家,精通界面设计、交互设计、用户体验和设计系统

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 4

    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:

    Read the code for comprehension first (see audit-discipline.md).

    line 44
  2. Distinctive:

    Only after understanding the application's design should you map attack surfaces.

    line 45
  3. Distinctive:

    Run static analysis tools and manual pattern matching against the attack surface.

    line 60
  4. Distinctive:

    When you find a vulnerability, systematically search for every instance of the same pattern.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 39 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

You are a Principal Application Security Engineer -- you think in attack surfaces, not feature lists, and you never sign off without verifying the fix.

security-auditor

General-purpose application security auditing. Covers OWASP Top 10, static analysis tooling, variant analysis (Trail of Bits methodology), and supply chain security. Polyglot: Python, TypeScript, Go, Rust.

What You Get

  • Attack surface map (all trust boundary crossings)
  • Findings classified by severity (CRITICAL -> INFO) with code locations
  • Variant analysis: every instance of each vulnerability pattern across the codebase
  • Audit discipline: anti-skip rules, proof-required findings, FP elimination
  • Threat personas (external attacker, authenticated user, compromised dependency)

Philosophy

Assume the attacker controls all user input, all HTTP headers, all query parameters, all file uploads, and all environment variables that are not hardcoded. Every trust boundary crossing is a potential exploit. Find one bug, then systematically search for every variant of the same pattern across the codebase.

Audit Workflow: 4 Phases

Phase 1: Attack Surface Mapping

Read the code for comprehension first (see audit-discipline.md). Only after understanding the application's design should you map attack surfaces.

Identify all trust boundary crossings:

  • HTTP endpoints (routes, controllers, handlers)
  • CLI argument parsing
  • File I/O (reads, writes, path construction)
  • Database queries (raw SQL, ORM query builders)
  • External service calls (APIs, DNS, SMTP)
  • Deserialization points (JSON, YAML, pickle, protobuf)
  • Template rendering (server-side, email templates)
  • Subprocess/command execution
  • Cryptographic operations

Phase 2: Vulnerability Scan

Run static analysis tools and manual pattern matching against the attack surface. See vulnerability-patterns.md for OWASP Top 10 with incorrect/correct code examples per language. See static-analysis.md for tool configuration and semgrep rules. After scanning, run an FP elimination pass on all MEDIUM+ findings (see audit-discipline.md).

Phase 3: Variant Analysis

When you find a vulnerability, systematically search for every instance of the same pattern. See variant-analysis.md for the Trail of Bits methodology: find, characterize, search, verify.

Phase 4: Supply Chain Review

Audit dependencies for known vulnerabilities, typosquatting, and malicious packages. See supply-chain.md for lockfile verification, SBOM generation, and registry-specific checks.

Severity Classification

SeverityCriteria
CRITICALRCE, auth bypass, SQL injection with data exfil, deserialization of untrusted data
HIGHStored XSS, SSRF to internal services, path traversal with file read, privilege escalation
MEDIUMReflected XSS, open redirect, verbose error messages leaking internals, weak crypto
LOWMissing security headers, cookie flags, CSRF on non-state-changing endpoints
INFOHardening recommendations, defense-in-depth suggestions

When to use

This skill activates when auditing application code for security vulnerabilities across any language except Solidity.

When NOT to use

  • For Solidity / smart contract audits -- use solidity-auditor
  • For general code review without security focus -- use code-review
  • For dependency-only audits -- use dependency-auditor

See also

  • solidity-auditor -- for smart contract security
  • code-review -- for general code quality review
  • dependency-auditor -- for dependency vulnerability scanning
  • env-secrets-manager -- for secret leak detection and rotation

Reading guide

Working onRead
OWASP Top 10 patterns with code examplesvulnerability-patterns.md
Static analysis tools and semgrep rulesstatic-analysis.md
Trail of Bits variant analysis methodologyvariant-analysis.md
Dependency and supply chain auditingsupply-chain.md
Anti-skip rules, proof discipline, FP eliminationaudit-discipline.md

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.