agentleFS
Diviner-DojoDiviner-Dojo/agent_framework_template/.claude/skills/security-checklist/SKILL.md

security-checklist

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Security review checklist for Python/FastAPI applications. Reference during security reviews, auth code reviews, or API security assessments.

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use prompt-engineering.

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.
  • kongyo2Skill

    prompt-engineering

    Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. This skill should be used when users request prompt creation, optimization, or improvement for any LLM task, or when users need help translating vague requirements into effective prompts through collaborative dialogue and iterative refinement.

    Also in 3 projects that use this

The file

Files
SKILL.md

Security Review Checklist

Input Validation

  • All user input validated via Pydantic models with field constraints
  • String inputs have max_length limits
  • Numeric inputs have min/max bounds where applicable
  • File uploads validated for type, size, and content
  • Path parameters validated (no path traversal via ../)
  • Query parameters have sensible defaults and limits

SQL Injection Prevention

  • All database queries use parameterized statements
  • No string formatting or f-strings in SQL queries
  • ORM queries use parameter binding
  • Raw SQL (if any) uses ? placeholders with parameter tuples

Authentication & Authorization

  • All non-public endpoints require authentication
  • Authorization checks verify the requesting user has access to the specific resource
  • Tokens have expiration times
  • Token validation checks expiration at consumption point (not just issuance)
  • Failed auth attempts are logged
  • Rate limiting on auth endpoints

API Security

  • CORS configured with specific allowed origins (no wildcard * in production)
  • Response headers don't leak server information
  • Error responses don't expose stack traces or internal details
  • API versioning strategy in place for breaking changes

Data Protection

  • No secrets, API keys, or credentials in source code
  • No secrets in committed configuration files
  • Sensitive data not logged (passwords, tokens, PII)
  • Database connection strings use environment variables
  • Personally identifiable information (PII) has access controls

Dependency Security

  • Dependencies pinned to specific versions
  • No dependencies with known critical CVEs
  • Transitive dependencies reviewed for risk
  • Minimal dependency set (no unnecessary packages)

Error Handling

  • Exceptions caught at appropriate levels
  • Generic error messages returned to clients
  • Detailed errors logged server-side only
  • No information leakage through error responses

Token Lifecycle (when applicable)

  1. Issuance: Tokens issued only after successful authentication
  2. Storage: Tokens stored securely (not in URL parameters or localStorage for sensitive tokens)
  3. Consumption: Validation at every consumption point
  4. Expiration: Enforced at both issuance and consumption
  5. Revocation: Mechanism exists to invalidate tokens before expiration

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.