🔐 Cryptographic Analysis & Assessment
Overview
This skill enables Claude to assist with cryptographic security assessments including SSL/TLS configuration auditing, cipher suite analysis, hash algorithm identification, encryption implementation review, key management evaluation, and cryptographic weakness detection.
Prerequisites
- Python 3.8+
cryptography,requests
pip install cryptography requests pyOpenSSLCore Capabilities
1. SSL/TLS Configuration Auditing
When the user asks to audit TLS:
- Connect to target server and enumerate supported TLS versions
- List all accepted cipher suites with ratings
- Check certificate validity (expiration, chain, revocation)
- Identify weak protocols (SSLv2, SSLv3, TLS 1.0, TLS 1.1)
- Detect weak cipher suites (RC4, DES, 3DES, NULL, EXPORT)
- Check for perfect forward secrecy (PFS) support
- Verify HSTS configuration
- Check for certificate transparency
- Rate overall TLS configuration (A-F grade)
2. Cipher Suite Analysis
When the user asks about cipher suites:
- Parse and explain cipher suite names (e.g., TLS_AES_256_GCM_SHA384)
- Rate each cipher suite by security strength
- Identify weak key exchange algorithms
- Check for AEAD cipher support
- Recommend optimal cipher suite ordering
- Compare against industry best practices (Mozilla, NIST)
3. Hash Analysis & Identification
When the user asks about hashes:
- Identify hash algorithm from hash length/format (MD5, SHA-1, SHA-256, bcrypt, etc.)
- Assess hash algorithm strength for the intended use case
- Recommend alternative algorithms when weak ones are found
- Analyze password hashing implementations (salting, iterations, key stretching)
- Check for rainbow table vulnerability
- Evaluate PBKDF2/bcrypt/scrypt/Argon2 parameters
4. Encryption Implementation Review
When the user asks to review crypto implementation:
- Identify encryption algorithms used in code
- Check for hardcoded keys and IVs
- Verify proper key derivation from passwords
- Check for ECB mode usage (insecure for most cases)
- Verify IV/nonce uniqueness and randomness
- Check for proper authenticated encryption (GCM, ChaCha20-Poly1305)
- Identify custom/homebrew crypto (dangerous)
- Review key storage and management
5. Key Strength Assessment
When the user asks about key strength:
- Evaluate key lengths against current standards
- Compare RSA, ECC, and post-quantum key sizes
- Check for key reuse across services
- Verify random number generator quality
- Assess key rotation policies
- Review key backup and recovery procedures
Usage Instructions
Example Prompts
> Audit the SSL/TLS configuration of example.com
> Identify the hash algorithm: $2b$12$LJ3m4ys3hQYBb8kS7D4N7e
> Review this Python encryption code for cryptographic weaknesses
> Recommend cipher suites for our Nginx configuration
> What's wrong with using AES-ECB mode for encrypting data at rest?
> Assess the key strength of our 2048-bit RSA certificatesScript Reference
tls_auditor.py
python scripts/tls_auditor.py --host example.com --port 443 --output report.json
python scripts/tls_auditor.py --host mail.example.com --port 993 --gradeIntegration Guide
- ← Web Security (09): Audit TLS for web applications
- ← Cloud Security (10): Assess cloud service encryption
- → Blue Team Defense (15): Recommend cryptographic hardening
- → Vulnerability Scanner (02): Flag weak crypto as vulnerabilities