
Symmetric Cipher Attacks
This is a solid cryptanalysis reference for attacking symmetric encryption schemes in CTF challenges and authorized penetration tests. It covers the bread and butter attacks: CBC padding oracles with full byte-by-byte decryption walkthrough, CBC bit flipping for privilege escalation, ECB detection and cut-and-paste attacks including the classic byte-at-a-time oracle technique, and stream cipher key reuse exploits. The code samples are practical and ready to adapt, not pseudocode. What makes this useful is the attack selection table up front that maps observable behaviors to specific vulnerabilities, so you don't waste time trying ECB attacks on CBC mode. It also routes you to related skills for RSA and hash attacks when the symmetric crypto is wrapped in a larger scheme.
- skills.sh installs
- 3.7K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill symmetric-cipher-attacks --agent claude-codeInstalls into .claude/skills of the current project.
Files
SKILL: Symmetric Cipher Attacks — Expert Cryptanalysis Playbook
AI LOAD INSTRUCTION: Expert techniques for attacking symmetric encryption in CTF and authorized testing. Covers CBC padding oracle, CBC bit flipping, ECB detection and exploitation, stream cipher key reuse, LFSR/LCG state recovery, RC4 biases, and meet-in-the-middle attacks. Base models often confuse ECB and CBC attack strategies or fail to set up byte-at-a-time ECB decryption correctly.
0. RELATED ROUTING
- rsa-attack-techniques when symmetric key is protected by RSA
- hash-attack-techniques when HMAC or hash-based authentication is involved
- lattice-crypto-attacks for LCG/LFSR state recovery via lattice methods
Advanced Reference
Also load BLOCK_CIPHER_ATTACKS.md when you need:
- Detailed attack scripts with full Python implementations
- Step-by-step byte-at-a-time ECB walkthrough
- PadBuster usage and custom padding oracle scripts
- LCG/LFSR recovery implementation
Quick attack selection
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Windows Lateral Movement3.7K
- Macos Security Bypass3.7K
- Ntlm Relay Coercion3.7K
- Nosql Injection3.7K
- Macos Process Injection3.7K
- Upload Insecure Files3.7K
- Unauthorized Access Common Services3.6K
- Reverse Shell Techniques3.6K
- Ghost Bits Cast Attack3.5K
- Hack4.6K
- Android Pentesting Tricks4.3K
- Recon And Methodology4.3K
- Sqli Sql Injection4.2K
- Code Obfuscation Deobfuscation4.2K
- Xss Cross Site Scripting4.2K
- Api Sec4.1K
- Business Logic Vulnerabilities4.1K
- Ssrf Server Side Request Forgery4.1K
- Idor Broken Object Authorization4K
- Authbypass Authentication Flaws4K
- Jwt Oauth Token Attacks4K
- Api Recon And Docs4K
- 401 403 Bypass Techniques4K
- Api Auth And Jwt Abuse4K