/polymath-security:crypto-reviewfrom polymath-security
Review a cryptography choice — encryption at rest/in transit, key management + rotation, algorithm/mode selection, and common foot-guns (IV reuse, ECB, home-rolled crypto).
Ships in polymath-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Don't invent crypto, and don't configure it from a blog post. Use vetted primitives at safe defaults, and put the hard problem — key management — at the center, not the algorithm.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-security:crypto-review.Not this when: you are designing auth tokens/sessions (auth-design) or doing a general code review (owasp-review). This focuses on the cryptographic choices and key lifecycle.
rand()/Math.random.Crypto review: refund-service (PCI scope: card tokens at rest)
In transit: TLS 1.3 at the edge (1.2 minimum), HSTS; mTLS service-to-service via the mesh OK
At rest: AES-256-GCM, envelope-encrypted: data key per tenant, wrapped by KMS key `refunds-kek` OK
Key mgmt: KMS (separate keys per env + purpose); rotation 365d with re-wrap job; decrypt limited to refund-worker role; CloudTrail audit OK
Passwords: n/a (SSO only)
Randomness: refund tokens from secrets.token_urlsafe(32) OK
Findings (worst first):
[HIGH] src/crypto/legacy.py:14 — AES-CBC with a static IV for export files → AES-GCM with a random 96-bit nonce per file
[MEDIUM] config/prod.yaml:31 — webhook HMAC secret committed → move to the vault; rotate it now (assume exposed)
[LOW] no algorithm/version byte on stored ciphertext → prefix a scheme version for crypto-agility
Agility: ciphertext versioned after the fix; hybrid X25519MLKEM768 at the edge when the LB supports it (records kept 7 years)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-security8 skills in this plugin
/auth-designDesign authentication/authorization — OAuth2/OIDC flow choice, JWT vs opaque/session tokens, RBAC vs ABAC, SSO, token lifetime/refresh/revocation./compliance-mappingMap a compliance framework (SOC 2 / GDPR / ISO 27001 / HIPAA) to concrete technical controls and the evidence/artifacts each control needs for audit./devsecops-pipelineDesign security gates into CI/CD — SAST, DAST, SCA/dependency, secret, and IaC scanning — with severity thresholds, a triage flow, and noise control.Other plugins' skills for the same job