skills/council/cipher/protocol-analysis/SKILL.md
Use when analyzing cryptographic protocol security by modeling state machines, enumerating transitions, and identifying desynchronization, replay, downgrade, and session binding vulnerabilities. Covers protocol handshakes, session management, and negotiation integrity. Do not use for implementation-level crypto review (use crypto-review) or post-quantum assessment (use pqc-readiness).
npx skillsauth add dtsong/my-claude-setup protocol-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Model cryptographic protocols as state machines, enumerate state transitions, and identify vulnerabilities including desynchronization, replay attacks, downgrade attacks, and session binding failures.
Reads protocol specifications, message sequence diagrams, and implementation source code. Does not modify files or execute code. Does not interact with live protocol endpoints or perform active testing.
No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.
Define the protocol as a state machine for each participant:
For each state transition, document:
Analyze the protocol for synchronization vulnerabilities:
Check that protocol sessions are properly bound:
Analyze the protocol's resistance to version/algorithm downgrade:
Compaction resilience: If context was lost during a long session, re-read the Inputs section to reconstruct what system is being analyzed, then resume from the earliest incomplete step.
[Initial] ──ClientHello──→ [WaitServerHello]
│
ServerHello│
▼
[WaitFinished]
│
Finished│
▼
[Established]
| Current State | Input | Validation | Next State | Output | Notes | |---------------|-------|------------|------------|--------|-------| | Initial | ClientHello | Version check | WaitServerHello | — | Nonce generated | | ... | ... | ... | ... | ... | ... |
| ID | Category | Description | Severity | Recommendation | |----|----------|-------------|----------|----------------| | P1 | Replay | ServerHello lacks nonce binding | High | Include client nonce in server response | | ... | ... | ... | ... | ... |
development
Use when planning implementation steps, deciding commit format, or structuring development approach. Provides brainstorm-plan-implement flow with conventional commits. Triggers on 'how should I approach this', 'commit format'.
development
Security audit checklist for web applications. Use when reviewing, auditing, or hardening a web app's security posture. Covers rate limiting, auth headers, IP blocking, CORS, security middleware, input validation, file upload limits, ORM usage, and password hashing. Triggers on requests like "review security", "harden this app", "security audit", "check for vulnerabilities", or when building/reviewing API endpoints.
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.