What problem does it solve?
Prevents real-world security failures caused by incorrect cryptography usage, where code “looks right” but breaks confidentiality, integrity, or authenticity due to wrong parameters, wrong modes, nonce/IV misuse, signature-verification mistakes, weak randomness, or unsafe TLS/key-rotation patterns.
Core Features & Use Cases
- Cryptography implementation review: audits algorithm selection, modes (e.g., GCM vs ECB/CBC), parameter choices (e.g., KDF iterations and bcrypt cost), and call patterns that undermine otherwise-correct primitives.
- Nonce/IV and authenticated encryption checks: verifies unique nonce/IV requirements, authenticated encryption usage, MAC-before-decrypt expectations, and constant-time verification guidance.
- Signature, TLS, randomness, and key lifecycle validation: inspects signature verification pitfalls (e.g., JWT alg handling), TLS version/cipher posture, RNG quality, and practical key lifecycle/rotation correctness.
Use case example: you suspect an API uses “encryption” but see intermittent integrity issues or potential replay/forgery risk; run this audit to pinpoint the exact misuse (e.g., nonce reuse in AES-GCM, unauthenticated CBC usage, or incorrect JWT verification flow) and produce remediation steps.
Quick Start
Use the crypto-audit skill to review the application codebase for cryptography implementation issues, including AES-GCM nonce handling, KDF parameters, signature verification correctness, randomness quality, and TLS configuration.