agentleFS
Manu-del-sourceManu-del-source/ai-security-audit/skills/security-api/SKILL.md

security-api

Skill0 starsChanged 16 days agoMITView on GitHub

Audit application APIs for broken authorization, unsafe input handling, injection, excessive data exposure, webhook trust failures, and business-logic abuse. Use for API or backend security reviews.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Check object-level and function-level authorization, tenant isolation, mass assignment, validation, injection, pagination/body limits, …

    line 15
  2. Distinctive:

    Check controls in shared middleware, database constraints, schemas, service layers, and deployment configuration before treating a …

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

API Security Audit

Perform a focused, evidence-driven review of API and backend entry points. This skill is not a substitute for a full repository audit.

Workflow

  1. Identify route registration, middleware, authentication/session handling, authorization guards, schemas, ORM/database calls, serializers, and webhook handlers.
  2. Build a route inventory with method, path, authentication requirement, authorization rule, user-controlled fields, sensitive operations, and tenant/owner boundaries.
  3. Trace untrusted input from request parameters, headers, cookies, body, uploaded files, and webhook payloads to database queries, file operations, external requests, and privileged actions.
  4. Check object-level and function-level authorization, tenant isolation, mass assignment, validation, injection, pagination/body limits, error leakage, idempotency, rate limiting, and webhook signature/replay controls where applicable.
  5. Check controls in shared middleware, database constraints, schemas, service layers, and deployment configuration before treating a suspicious pattern as a finding.
  6. Record candidate findings with exact file/line evidence, attacker prerequisites, concrete impact, and a non-destructive reproduction path.
  7. Independently attempt to disprove each candidate using ../../validation/finding-validator.md. Keep unproven leads as needs_validation; do not mark them confirmed without evidence.
  8. State what was and was not reviewed. Run the core CLI validation when findings are represented in the repository's standard schema.

References

  • Core rules: ../../SKILL.md
  • API playbook: ../../agents/api-security.md
  • Authorization playbook: ../../agents/authorization.md
  • Business logic playbook: ../../agents/business-logic.md
  • Finding schema: ../../schemas/finding.schema.json

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.