crypto
This skill should be used when the user asks to "check for cryptographic issues", "analyze encryption", "find weak hashing", "audit password storage", "check…
от florianbuetow★ 22 звезды на GitHub
Установить crypto в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cryptographic Failures (A02:2021)
Analyze source code for cryptographic weaknesses including use of broken or weak algorithms, hardcoded encryption keys, improper password hashing, cleartext transmission of sensitive data, missing encryption at rest, and insecure random number generation.
Supported Flags
Read ../../shared/schemas/flags.md for the full flag specification. This skill
supports all cross-cutting flags. Key flags for this skill:
--scopedetermines which files to analyze (default:changed)--depth standardchecks imports, function calls, and configuration values--depth deeptraces key material origin and data flow for sensitive values--severityfilters output (crypto issues range fromlowtocritical)
Framework Context
Read ../../shared/frameworks/owasp-top10-2021.md, section A02:2021 -
Cryptographic Failures, for the full category description, common
vulnerabilities, and prevention guidance.
Key CWEs in scope:
- CWE-261: Weak Encoding for Password
- CWE-327: Use of a Broken or Risky Cryptographic Algorithm
- CWE-328: Use of Weak Hash
- CWE-330: Use of Insufficiently Random Values
- CWE-331: Insufficient Entropy
- CWE-338: Use of Cryptographically Weak PRNG
- CWE-759: Use of a One-Way Hash without a Salt
- CWE-760: Use of a One-Way Hash with a Predictable Salt
- CWE-798: Use of Hard-coded Credentials
Detection Patterns
Read references/detection-patterns.md for the full catalog of code patterns,
search heuristics, language-specific examples, and false positive guidance.
Workflow
1. Determine Scope
Parse flags and resolve the file list per ../../shared/schemas/flags.md.
Filter to files likely to contain cryptographic operations:
- Crypto/security utility modules (
**/crypto/**,**/security/**,**/utils/encrypt*) - Authentication modules (
**/auth/**,**/login/**,**/password*) - Configuration files (
**/.env*,**/config/**,**/settings*) - Database models with password fields (
**/models/**) - TLS/SSL configuration (
**/ssl/**,**/tls/**,**/certs/**)
2. Check for Available Scanners
Detect scanners per ../../shared/schemas/scanners.md:
semgrep— primary scanner for crypto pattern detectionbandit— Python-specific weak crypto detectiongosec— Go-specific crypto issuesgitleaks/trufflehog— hardcoded keys and secrets
Record which scanners are available and which are missing.
3. Run Scanners (If Available)
If semgrep is available:
semgrep scan --config auto --json --quiet <target>
Filter results to rules matching cryptographic patterns, weak hashing, hardcoded keys, and TLS configuration. Normalize output to the findings schema.
If gitleaks is available (for hardcoded key detection):
gitleaks detect --source <target> --report-format json --report-path /dev/stdout --no-banner
4. Claude Code Analysis
Regardless of scanner availability, perform manual code analysis:
- Hash algorithm audit: Grep for MD5, SHA1, SHA-256 (without key) used in security contexts (password hashing, token generation, signature verification).
- Key management: Find encryption keys, API secrets, and IVs — check if they are hardcoded, loaded from environment, or from a key management service.
- Password storage: Locate password hashing code and verify use of bcrypt, argon2, or scrypt with appropriate cost factors.
- Random number generation: Find random value generation and verify cryptographically secure sources are used for security-sensitive operations.
- TLS configuration: Check for TLS enforcement, certificate validation, and minimum protocol version.
- Encryption mode: Identify block cipher usage and verify ECB mode is not used for anything beyond single-block encryption.
When --depth deep, additionally trace:
- Where encryption keys originate and how they flow through the application
- Whether sensitive data is encrypted before storage and in transit
- Key rotation mechanisms and lifecycle
5. Report Findings
Format output per ../../shared/schemas/findings.md using the CRYPT prefix
(e.g., CRYPT-001, CRYPT-002).
Include for each finding:
- Severity and confidence
- Exact file location with code snippet
- Impact description specific to the cryptographic weakness
- Concrete fix with diff showing the secure alternative
- CWE and OWASP references
What to Look For
These are the high-signal patterns specific to cryptographic failures. Each
maps to a detection pattern in references/detection-patterns.md.
Weak hash algorithms for security — MD5 or SHA1 used for password hashing, token generation, integrity verification, or digital signatures.
Hardcoded encryption keys and IVs — Symmetric keys, asymmetric private keys, or initialization vectors embedded directly in source code.
Insecure random number generation —
Math.random(),rand(), orrandom.random()used for tokens, ses
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/detection-patterns.md
FAQ
Что делает скилл crypto?
This skill should be used when the user asks to "check for cryptographic issues", "analyze encryption", "find weak hashing", "audit password storage", "check for hardcoded keys", or mentions "cryptography", "encryption", "hashing", "TLS", "certificates", or "random number generation" in a security context. Maps to OWASP Top 10 2021 A02: Cryptographic Failures.
Как установить скилл crypto?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл crypto запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…