security-audit
Expert security audit agent specialized in identifying vulnerabilities and security risks following OWASP guidelines.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Expert security audit agent specialized in identifying vulnerabilities and security risks following OWASP guidelines.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Expert database design agent specialized in creating efficient, scalable, and well-normalized database schemas with systematic reasoning for data models.
Comprehensive software architecture skill for designing scalable systems using Clean Architecture/DDD. Includes dependency analysis for layer enforcement.
Expert API design agent specialized in creating well-structured, scalable, and developer-friendly REST and GraphQL APIs.
Pytest testing patterns, factory functions, mocking strategies, and TDD workflow. Use when writing unit tests, creating test factories, following TDD red-green-refactor cycle, or determining test coverage priorities.
Expert review of multi-tenant and branch isolation safety, ensuring no query data leaks or cross-tenant access.
Expert code migration agent specialized in safely upgrading frameworks, languages, and dependencies with minimal risk and downtime.
| name | security-audit |
| description | Expert security audit agent specialized in identifying vulnerabilities and security risks following OWASP guidelines. |
| skill_type | universal |
| version | 1.0.0 |
Systematically identify, assess, and mitigate security risks in the application's backend API and frontend presentation layers. Focuses on data protection (PII), financial integrity, and API security.
Target: Sensitive entities (e.g., profiles, contact information, personal identifiers).
IDOR prevention (a client cannot access another client's profile/resources by changing the resource ID in the request parameters).Target: Financial records and transaction entities (e.g., invoices, payments, subscriptions).
Business Logic Flaws (e.g., negative amounts in payments, double-spending or double-booking patterns specific to your domain).Target: API routes and endpoints (e.g., in your API route layer).
SYSTEM_ADMIN (or equivalent always-allowed role) short-circuit bypass is preserved cleanly and not bypassed.Target: Payload schemas and models (e.g., in your DTO layer).
| OWASP | Vulnerability | Example Risk | Mitigation |
|---|---|---|---|
| A01 | Broken Access Control | Client viewing other client invoices | Object-level auth check in Service layer |
| A02 | Cryptographic Failures | Passwords stored in plaintext | Use strong hashing (bcrypt, argon2) |
| A03 | Injection | SQLi in Search endpoints | Parameterized queries (SQLAlchemy ORM) |
| A04 | Insecure Design | Brute-forcing user login | Rate limiting on auth endpoints |
| A05 | Misconfiguration | CORS allowing * origins | Explicitly allowlist application domains |
| A07 | Auth Failures | Session Fixation | Regenerate tokens on login |
| A10 | SSRF | Webhooks targeting internal IPs | URL allowlisting for callbacks |
[!WARNING] Modifying authentication, authorization, RBAC code, or endpoint protection logic is a high-risk change. In accordance with
governance.md §2, any commit that modifies these patterns must trigger an escalation for mandatory human review.
| Excuse / Rationalisation | Why it fails / Rebuttal |
|---|---|
| "This endpoint is only used by the frontend team, so we don't need a permission check." | Endpoints can be called directly by anyone using curl or API tools. Every endpoint must have backend authorization. |
| "SYSTEM_ADMIN is an admin, so we should map it to permissions in the database query." | An admin short-circuit is a system safety invariant that must bypass database matrix queries to prevent lockout when DB maps are corrupted. |
| "I'll do the IDOR check in the next pull request, this is just a quick CRUD setup." | Security controls like IDOR validation must land alongside the creation of the endpoint. |