cryptography
БесплатноБез исполняемых скриптовНе проверенApproved cryptographic algorithms, TLS enforcement, key management, and certificate handling per Hack23 Cryptographic Controls Policy
от Hack23★ 15 звёзд на GitHubОб этом скилле
Cryptography Skill
Purpose
This skill enforces cryptographic requirements as defined in the Hack23 ISMS Cryptographic Controls Policy. It ensures that all cryptographic operations use approved algorithms and follow best practices for key management.
Rules
Approved Algorithms
Symmetric Encryption - MUST USE:
- AES-256 (Advanced Encryption Standard, 256-bit key)
- AES-128 (minimum, prefer AES-256)
- ChaCha20-Poly1305 (for authenticated encryption)
Asymmetric Encryption - MUST USE:
- RSA-2048 or higher (minimum 2048-bit key, prefer 3072 or 4096)
- ECDSA with P-256, P-384, or P-521 curves
- Ed25519 (EdDSA with Curve25519)
Hashing - MUST USE:
- SHA-256 (minimum)
- SHA-384
- SHA-512
- SHA-3 family
- BLAKE2 (for high-performance applications)
Password Hashing - MUST USE:
- bcrypt (cost factor 12 minimum)
- scrypt
- Argon2id (preferred)
- PBKDF2 with SHA-256, minimum 100,000 iterations
Message Authentication - MUST USE:
- HMAC-SHA256 (minimum)
- HMAC-SHA512
MUST NOT USE (Deprecated/Broken):
- DES, 3DES
- MD5, SHA-1 (except for non-security purposes like checksums)
- RC4
- RSA < 2048 bits
- CBC mode without authenticated encryption
- ECB mode (ever)
TLS/SSL Requirements
MUST:
- Use TLS 1.2 as minimum
- Prefer TLS 1.3
- Use strong cipher suites only
- Verify server certificates
- Use certificate pinning for high-security applications
- Enforce HSTS (HTTP Strict Transport Security)
- Use Perfect Forward Secrecy (PFS) cipher suites
TLS 1.2 Approved Cipher Suites (in order of preference):
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
TLS 1.3 Approved Cipher Suites:
TLS_AES_256_GCM_SHA384
TLS_AES_128_GCM_SHA256
TLS_CHACHA20_POLY1305_SHA256
MUST NOT:
- Use SSL 2.0, SSL 3.0, TLS 1.0, TLS 1.1
- Use export-grade ciphers
- Use NULL cipher suites
- Use anonymous cipher suites
- Accept self-signed certificates in production (except for explicitly trusted CAs)
Key Management
MUST:
- Generate keys using cryptographically secure random number generators (CSPRNGs)
- Store keys securely (use key management systems, HSMs for highly sensitive keys)
- Never hardcode keys in source code
- Use environment variables or secret management systems
- Rotate keys according to schedule:
- TLS certificates: Annually or before expiry
- Symmetric keys: Annually for CONFIDENTIAL data, quarterly for RESTRICTED
- API keys: Annually or on compromise
- Passwords: 90 days for privileged accounts
- Destroy keys securely when no longer needed
- Log key lifecycle events (creation, rotation, destruction)
- Separate key generation from key usage
- Use different keys for different purposes
- Implement key escrow for business continuity (with strict controls)
Key Length Requirements:
- AES: 256 bits (128 minimum)
- RSA: 2048 bits minimum (prefer 3072 or 4096)
- ECDSA: P-256 minimum (prefer P-384 or P-521)
- HMAC: 256 bits minimum
MUST NOT:
- Store keys in plaintext
- Commit keys to version control
- Send keys via email or unencrypted channels
- Reuse keys across different applications or contexts
- Use weak key derivation functions
- Share private keys
Random Number Generation
MUST:
- Use cryptographically secure PRNGs (CSPRNGs)
- For Node.js:
crypto.randomBytes(),crypto.randomInt() - For Python:
secretsmodule,os.urandom() - For Java:
SecureRandom - For browser:
window.crypto.getRandomValues()
MUST NOT:
- Use
Math.random()for security purposes - Use predictable seeds
- Use non-cryptographic PRNGs for security tokens, keys, or IVs
Initialization Vectors (IVs) and Nonces
MUST:
- Generate unique IV/nonce for each encryption operation
- Use cryptographically random IVs for CBC mode
- Use sequential nonces for CTR/GCM modes (ensure uniqueness)
- Store IV with ciphertext (IVs are not secret)
- Never reuse IV with same key
MUST NOT:
- Use predictable or sequential IVs with CBC mode
- Reuse nonces with same key in CTR/GCM modes
- Treat IVs as secrets (they should be random but can be public)
Certificate Management
MUST:
- Use certificates from trusted Certificate Authorities (CAs)
- Validate certificate chains
- Check certificate revocation status (CRL/OCSP)
- Use Subject Alternative Names (SANs) for multiple domains
- Implement certificate expiry monitoring and alerting
- Renew certificates before expiry (30-day minimum buffer)
- Use automated certificate management (e.g., Let's Encrypt with auto-renewal)
- Store private keys securely (encrypted, access-controlled)
- Use separate certificates for different services/environments
Certificate Validity:
- Production: M
Установить cryptography в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cryptography?
Approved cryptographic algorithms, TLS enforcement, key management, and certificate handling per Hack23 Cryptographic Controls Policy
Как установить скилл cryptography?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cryptography запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic