$npx skillfedfor your agent

symmetric-cipher-attacks

This skill covers hands-on cryptanalysis of symmetric encryption vulnerabilities across block and stream ciphers. Learn to exploit CBC padding oracles and bit flipping attacks, detect and abuse ECB mode repetition, decrypt data byte-at-a-time, and break stream ciphers through key reuse and state recovery. Includes Python implementations and tool usage for authorized testing and CTF challenges.

Symmetric Cipher Attacks teaches practical exploitation of CBC padding oracles, ECB mode weaknesses, bit flipping, and stream cipher key reuse.

AI-generated summary based on this skill's SKILL.md

1,480 196 MITupdated by yaklang

Decision gist · record as of 2026-06-16

Symmetric Cipher Attacks teaches practical exploitation of CBC padding oracles, ECB mode weaknesses, bit flipping, and stream cipher key reuse. This skill covers hands-on cryptanalysis of symmetric encryption vulnerabilities across block and stream ciphers. Learn to exploit CBC padding oracles and bit flipping attacks, detect and abuse ECB mode repetition, decrypt data byte-at-a-time, and break stream ciphers through key reuse and state recovery. Includes Python implementations and tool usage for authorized testing and CTF challenges.

manual: git clone https://github.com/yaklang/hack-skills → cp -r hack-skills/skills/symmetric-cipher-attacks ~/.claude/skills/symmetric-cipher-attacks
skills/symmetric-cipher-attacks/SKILL.md · version c52127d0

Use it when

  • symmetric-cipher-attacks demonstrates that ECB encrypts identical plaintext blocks to identical ciphertext blocks, leaking patterns.
  • symmetric-cipher-attacks covers multiple decryption techniques that don't require the original key.

Verify before relying

Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

yaklang/hack-skills/symmetric-cipher-attacks · repository language: CSS

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is a CBC padding oracle attack tutorial for symmetric-cipher-attacks?

symmetric-cipher-attacks teaches how padding oracle vulnerabilities work in CBC mode. When a server leaks whether padding is valid or invalid, attackers can decrypt ciphertext byte-by-byte without the key. The skill covers the mechanics of manipulating ciphertext blocks, observing server responses, and reconstructing plaintext through iterative guessing. Tools like PadBuster automate this process for authorized testing.

How does symmetric-cipher-attacks explain ECB mode weaknesses?

symmetric-cipher-attacks demonstrates that ECB encrypts identical plaintext blocks to identical ciphertext blocks, leaking patterns. The skill teaches detection methods (spotting repeated ciphertext), exploitation techniques (byte-at-a-time decryption), and why ECB should never be used. Practical examples show how to recover plaintext from ECB-encrypted data without the key through systematic block manipulation.

Can symmetric-cipher-attacks help decrypt data without the key?

symmetric-cipher-attacks covers multiple decryption techniques that don't require the original key. These include padding oracle attacks on CBC, ECB block-by-block recovery, stream cipher key reuse exploitation via XOR, and state recovery attacks on LFSRs and RC4. Each method targets specific cipher modes or implementation flaws rather than breaking the cipher mathematically.

What stream cipher attacks does symmetric-cipher-attacks include?

symmetric-cipher-attacks teaches key reuse vulnerabilities in stream ciphers, where XORing two ciphertexts encrypted with the same keystream reveals plaintext patterns. The skill covers two-time pad attacks, Kasiski examination for repeating keys, RC4 bias attacks for plaintext recovery, and LFSR state recovery through cryptanalysis. Python implementations demonstrate practical exploitation.

Is symmetric-cipher-attacks suitable for CTF and authorized testing?

symmetric-cipher-attacks is designed for both CTF cryptography challenges and authorized penetration testing. It covers block cipher mode attacks, stream cipher breaks, and cryptanalysis techniques used in competitions. The MIT license permits educational and professional use. The skill emphasizes hands-on Python implementations and tool usage for legitimate security assessment scenarios.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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

Advanced Reference

Also load BLOCK_CIPHER_ATTACKS.md when you need: - Detailed attack scripts

(truncated - see the full file via the links below)

File tree — 2 files
skills/symmetric-cipher-attacks/BLOCK_CIPHER_ATTACKS.md
skills/symmetric-cipher-attacks/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Learn practical attacks on symmetric encryption modes (CBC, ECB, stream)”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

ctf-crypto
by ljagiello · ljagiello/ctf-skills

ctf-crypto is a reference guide for cryptographic attack methods in CTF competitions, covering classical and modern cipher exploits, RSA and ECC vulnerabilities, lattice-based attacks, PRNG state recovery, and zero-knowledge proof breaks. It includes practical one-liners and supporting documentation for techniques like padding oracles, key derivation weaknesses, and Coppersmith attacks, with setup instructions for Python packages and external tools.

MITupdated Jul 2026
★ 2,840repo stars
classical-cipher-analysis
by yaklang · yaklang/hack-skills

Identify and solve classical ciphers encountered in CTF challenges through systematic analysis. The skill covers cipher identification via character set, frequency distribution, and index of coincidence, then applies targeted attacks for monoalphabetic substitution, Caesar/ROT variants, polyalphabetic ciphers like Vigenere, and transposition methods. Includes Kasiski examination for key-length recovery and known-plaintext techniques.

MITupdated Jun 2026
★ 1,480repo stars
crypto-analysis
by hypnguyen1209 · hypnguyen1209/offensive-claude

Crypto-analysis evaluates cryptographic posture across TLS/SSL/SSH configurations, public-key implementations, and token schemes. It detects cipher downgrades, weak key generation, nonce reuse, AEAD misuse, and JWT algorithm confusion using integrated tools like testssl.sh, openssl, and hashcat. Use it to identify cryptographic flaws before attackers do.

MITupdated Jul 2026
★ 326repo stars
ctf-crypto
by cyberkaida · cyberkaida/reverse-engineering-assistant

CTF Crypto helps you investigate cryptographic implementations embedded in compiled binaries through systematic detection, algorithm identification, and weakness analysis. Trace key sources, recognize standard algorithms and custom ciphers, and exploit implementation flaws to recover plaintext or extract keys.

Apache-2.0updated Jul 2026
★ 792repo stars
tunneling-and-pivoting
by yaklang · yaklang/hack-skills

Master network tunneling and pivoting techniques to access internal systems from compromised hosts. This skill covers SSH port forwarding, reverse SOCKS proxies via Chisel, transparent TUN-based pivoting with Ligolo-ng, socat relays, DNS/ICMP/HTTP tunneling, ProxyChains configuration, Windows pivoting methods, and multi-layer chaining strategies.

MITupdated Jun 2026
★ 1,480repo stars
code-obfuscation-deobfuscation
by yaklang · yaklang/hack-skills

Master techniques for analyzing and defeating code obfuscation in protected binaries. Learn to identify junk code, opaque predicates, self-modifying code, control flow flattening, movfuscator, VM protectors like VMProtect and Themida, string encryption, and import hiding. Covers both static analysis patterns and dynamic deobfuscation strategies using symbolic execution, emulation, and trace-based recovery.

MITupdated Jun 2026
★ 1,480repo stars

More skills network-protocol-attacks (MIT)

Tags
block-cipher-exploitationpadding-oracle-vulnerabilitystream-cipher-weaknessmode-of-operation-attackcryptanalysis-techniqueskey-recovery-methodctf-crypto-challengepenetration-testing-cryptociphertext-manipulationprng-state-recovery