Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Weak encryption can occur through the use of outdated algorithms, insufficient key lengths, improper implementation, or predictable initialization vectors. This test identifies cryptographic weaknesses in data encryption at rest and in transit within the application.
What to Check
Encryption algorithm strength
Key length adequacy
IV/nonce randomness
ECB mode usage
Hardcoded keys
Custom crypto implementations
Hash algorithm strength
How to Test
Step 1: Identify Encrypted Data
# Look for encrypted/hashed data in:# - Cookies# - Database exports# - API responses# - Configuration files# - URL parameters# Check for common weak hash patterns# MD5: 32 hex characters# SHA1: 40 hex characters# Check password storage
curl -s "https://target.com/api/user/export" | \
grep -oP '[a-f0-9]{32}' | head -5 # Potential MD5
#!/usr/bin/env python3import hashlib
import requests
defcheck_password_hash_strength(api_endpoint, test_password):
"""Check if password hashing is weak"""# Create account and get hash from response/database# Compare with known weak hashes
known_weak_hashes = {
hashlib.md5(test_password.encode()).hexdigest(): "MD5",
hashlib.sha1(test_password.encode()).hexdigest(): "SHA1",
}
# If hash matches any weak algorithm, it's vulnerable# Real testing requires access to stored hashesprint("[*] Test for weak password hashing requires:")
print(" - Access to stored password hashes")
print(" - Comparison with known hash outputs")
print(" - Check for absence of salt")
Tools
Tool
Description
hashcat
Hash identification and cracking
john
Password hash analysis
CyberChef
Crypto analysis
Remediation Guide
Use Strong Encryption
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
import os
# Use AES-256-GCM (authenticated encryption)
key = os.urandom(32) # 256 bits
nonce = os.urandom(12)
aesgcm = AESGCM(key)
ciphertext = aesgcm.encrypt(nonce, plaintext, associated_data)
Use Strong Password Hashing
import bcrypt
# Or use Argon2 for better security# Hash password
hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt(rounds=12))
# Verifyif bcrypt.checkpw(password.encode(), stored_hash):
# Valid password