跳到正文
cccskills
免费在 GitHub 公开

security-checklist

Security best practices for Micronaut/Kotlin backend including authentication, authorization, input validation, and OWASP prevention. Use when implementing auth, validating inputs, or reviewing security.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.6 KB
  • audit-reference.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Security Checklist

Run a security audit against Micronaut/Kotlin backend code.

When to Use

  • Adding authentication or authorization to endpoints
  • Validating user inputs on new or changed endpoints
  • Reviewing code for security issues before merge
  • Checking for common vulnerabilities (SQL injection, XSS, IDOR)
  • Setting up secrets management

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

  • Always checks all categories, doesn't skip any section
  • Flags the most dangerous issues first
  • Shows code examples for every fix, not just descriptions
  • Tells you what's wrong AND how to fix it

Rules

  • Every endpoint must have a @Secured annotation
  • Admin endpoints use OAuthSecurityRule.ADMIN
  • Users can only access their own resources (or admin can access all)
  • Input validated with @Valid and Jakarta annotations
  • No raw SQL queries with string concatenation
  • Sensitive fields excluded from response DTOs
  • Tokens/passwords never logged
  • Error messages don't leak internal details
  • Rate limiting on auth endpoints

Output

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

  • All endpoints have @Secured annotation
  • Admin endpoints use OAuthSecurityRule.ADMIN
  • User can only access their own resources (or admin can access all)
  • Input validated with @Valid and Jakarta annotations
  • No raw SQL queries with string concatenation
  • Sensitive fields excluded from response DTOs
  • Tokens/passwords never logged
  • Error messages don't leak internal details
  • Rate limiting on auth endpoints

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Creates RPC-style endpoint following layered architecture (Controller → Manager → Repository). Use when creating new API endpoints or CRUD operations.

中文简介正在准备中。当前显示原文说明。

c0x12c/ai-toolkit1082026年6月18日 更新

Write blog posts, guides, tutorials, and long-form content. Sounds like a real person, not AI. Use when the user wants polished written content.

中文简介正在准备中。当前显示原文说明。

c0x12c/ai-toolkit1082026年6月18日 更新

Design RPC-style APIs with layered architecture (Controller → Manager → Repository). Use when creating new API endpoints, designing API contracts, or reviewing API patterns.

中文简介正在准备中。当前显示原文说明。

c0x12c/ai-toolkit1082026年6月18日 更新

Run a structured brainstorm session for startup ideas. Takes a theme or problem and generates ideas with quick gut-checks. Use when the user wants to explore a space or generate new ideas.

中文简介正在准备中。当前显示原文说明。

c0x12c/ai-toolkit1082026年6月18日 更新

Run real browser QA with Playwright. Use when testing a frontend feature, verifying UI before PR, smoke testing after deploy, or investigating reported visual bugs.

中文简介正在准备中。当前显示原文说明。

c0x12c/ai-toolkit1082026年6月18日 更新

CI/CD pipeline patterns for GitHub Actions, PR automation, and deployment workflows. Use when setting up CI, fixing broken pipelines, automating PR checks, or configuring deployment.

中文简介正在准备中。当前显示原文说明。

c0x12c/ai-toolkit1082026年6月18日 更新

查看 c0x12c 的全部技能

报告此技能的问题