Security checklist

From c0x12c/ai-toolkit · View interactive version

Security checklist is an AI agent skill from the GitHub repository c0x12c/ai-toolkit. Security best practices for Micronaut/Kotlin backend including authentication, authorization, input validation, and OWASP prevention. Use when implementing auth, validating inputs, or reviewing security.

How to use this skill

Skill file

Security Checklist

Run a security audit against Micronaut/Kotlin backend code.

When to Use

Process

See audit-reference.md for code examples, vulnerability table, and SAFE/DANGEROUS patterns.

  1. Check Authentication — every controller has @Secured, current user comes from security context
  2. Check Authorization — verify user has access to the resource before returning it
  3. Check Input Validation — @Valid on controller params, Jakarta annotations on request DTOs
  4. Check SQL Injection Prevention — use Exposed ORM (auto-parameterized), never raw SQL with string concat
  5. Check Common Vulnerabilities — SQL injection, XSS, CSRF, auth bypass, IDOR, mass assignment, data exposure, rate limiting
  6. Check Secrets Management — no hardcoded secrets, use env vars, never log tokens/passwords/PII, never commit .env
  7. Check Response Sanitization — response DTOs control what's exposed, never return raw entities

Interaction Style

Rules

Output

Produces a checklist report with pass/fail for each category:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.