/ctf-security:crypto-general-methodologyfrom ctf-security
Comprehensive methodology for solving CTF cryptography challenges including workflow guidance, cipher identification, reconnaissance techniques, tool selection strategy, and challenge categorization. Use when approaching any crypto CTF challenge, need to identify unknown ciphers or encodings, select appropriate tools (dcode.fr, factordb, CyberChef, SageMath, RsaCtfTool), develop attack strategies, or understand crypto challenge patterns. Covers classical ciphers, RSA, AES, block ciphers, PRNG, hash functions, zero-knowledge proofs, encoding detection, and cross-category exploitation techniques. Includes decision trees, cheatsheets for SageMath and PyCryptodome, and systematic approaches for reconnaissance and cryptanalysis.
Ships in ctf-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A foundational skill providing systematic workflows, reconnaissance techniques, tool selection guidance, and challenge categorization for solving cryptography challenges in CTF competitions.
This skill provides the framework and methodology for approaching any cryptography challenge. It complements specialized crypto skills (RSA attacks, classical ciphers, etc.) by offering:
Use this skill when you:
For the complete detailed workflow, see references/workflow.md.
1. GATHER INFORMATION
└─> Collect all data, read description, note flag format
2. UNDERSTAND THE CRYPTOSYSTEM
└─> Identify algorithm, analyze code, understand math
3. IDENTIFY WEAKNESSES
└─> Find implementation flaws, parameter issues, known vulnerabilities
4. DEVELOP A STRATEGY
└─> Plan attack approach, consider alternatives
5. IMPLEMENT THE ATTACK
└─> Use tools or write scripts, verify results, iterate
6. EXTRACT THE FLAG
└─> Recover plaintext, validate format, submit
Key Principle: CTF challenges exploit implementation flaws, not theoretical algorithm breaks. Focus on how crypto is misused, not breaking the algorithm itself.
For comprehensive identification techniques, see references/reconnaissance.md.
First steps for unknown data:
| Observation | Likely Challenge Type |
|---|---|
| Large numbers (1024+ bits), n/e/c provided | RSA cryptography |
| Length multiple of 16 bytes | AES/block cipher |
| Only letters A-Z | Classical cipher |
| Base64-like characters ending in = | Encoded data (not encrypted) |
Source code with random.* | PRNG challenge |
Remember: Always try decoding before cryptanalysis. Many challenges are encoding, not encryption.
For complete tool overview and selection guidance, see references/tools_overview.md.
Quick Analysis:
Automated Attacks:
Implementation:
Unknown challenge → CyberChef Magic / dCode Identifier
↓
RSA challenge → factordb (5 sec) → RsaCtfTool (5 min) → SageMath (manual)
↓
Classical cipher → dCode auto-solver → Manual frequency analysis
↓
Block cipher → Python + PyCryptodome → Mode-specific attacks
↓
Custom/complex → z3 Solver / SageMath / Manual analysis
For detailed challenge taxonomy with vulnerabilities and attacks, see references/challenge_types.md.
A. RSA Encryption - Asymmetric, large numbers, public/private keys
B. AES / Block Ciphers - Symmetric, 16-byte blocks, modes (ECB/CBC/CTR)
C. Classical Ciphers - Historical, letter-only, frequency analyzable
D. PRNG / Randomness - Weak seeds, predictable outputs
E. Zero-Knowledge Proofs & Protocols - Interactive systems, proof schemes
F. Hash Functions - Fixed-length outputs, integrity verification
Large numbers + n/e/c? → RSA
Block length × 16? → AES/Block Cipher
Only letters? → Classical
random.* in code? → PRNG
Fixed 32/16 byte output? → Hash
Protocol interactions? → ZK/Protocol
For comprehensive pattern catalog, see references/common_tricks.md.
For ANY RSA challenge: Check factordb.com FIRST (often intended solution) For unknown classical cipher: Use dCode auto-solver FIRST For unknown encoding: Use CyberChef Magic FIRST For any RSA parameters: Run RsaCtfTool FIRST (automated attacks)
Located in assets/cheatsheets/ directory:
This methodology skill complements specialized skills:
Usage pattern: Use this skill for overall approach and tool selection, then invoke specialized skills for specific attack implementation.
"In CTF crypto, the algorithm is rarely the weakness. The weakness is in how humans implement, configure, or use the algorithm."
Focus on:
Master this methodology and you'll solve crypto challenges dramatically faster. The framework scales from beginner to advanced challenges - adapt the depth of analysis to the challenge complexity.
Quick Access:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub giofornari/skills --plugin ctf-security7 skills in this plugin
/crypto-classical-ciphersSolve classical cipher CTF challenges including Caesar cipher, ROT-N, Vigenère cipher with Autokey variant, substitution ciphers (monoalphabetic and polyalphabetic), transposition ciphers (rail-fence, columnar), Playfair cipher, and other historical encryption methods. Use when analyzing text-only ciphertext, challenges mentioning historical or classical ciphers, frequency analysis opportunities, or when ciphertext contains only letters without numbers. Includes automated solvers for Caesar/ROT-N with all 26 shifts, Vigenère key recovery using Kasiski examination and index of coincidence, frequency analysis for substitution ciphers, dcode.fr and CyberChef integration, complete statistical analysis tools, and English/Italian language frequency tables for OliCyber.IT challenges. Beginner-friendly entry point to CTF cryptography./crypto-rsa-attacksExploit RSA vulnerabilities in CTF challenges including factorization attacks (factordb lookup, Fermat factorization, Pollard rho), Wiener's attack on small private exponents, small public exponent attacks (low e, Hastad broadcast), common modulus attacks, padding oracle attacks, multi-prime RSA, Franklin-Reiter related message attacks, and Coppersmith methods. Use when analyzing RSA encryption challenges, working with public keys (n, e, d, p, q, c parameters), attacking weak RSA implementations, recovering plaintexts from RSA ciphertexts, exploiting mathematical relationships in RSA systems, or factoring composite numbers. Includes RsaCtfTool automation, factordb integration, SageMath implementations for Wiener and lattice attacks, complete working Python scripts for all major RSA attack categories, and practical CTF examples from ASIS, CSAW, PlaidCTF, Google CTF, and other major competitions.Other plugins' skills for the same job