A comprehensive attack reference for crypto CTF challenges, covering everything from Vigenère to lattice reduction. The skill organizes techniques across a dozen markdown files, from classical ciphers and padding oracles to LWE/CVP, ECDSA nonce reuse, and exotic stuff like braid group crypto. Each attack gets a one-liner in the main file plus full code in supporting docs. Setup requires Python crypto libraries, optionally SageMath and RsaCtfTool for automated RSA attacks. The breadth is impressive, classical to post-quantum, but you'll need to know when to reach for it versus a reverse engineering skill. Best used when you've identified the crypto primitive and need the specific exploit technique.

skills.sh installs
9.8K
GitHub stars
3.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add ljagiello/ctf-skills --skill ctf-crypto --agent claude-code

Installs into .claude/skills of the current project.

Files

CTF Cryptography

Quick reference for crypto CTF challenges. Each technique has a one-liner here; see supporting files for full details with code.

Prerequisites

Python packages (all platforms):

pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc
# Coppersmith (optional): pip install coppersmith
# Alternative Coppersmith lib: git clone https://github.com/jvdsn/crypto-attacks ~/.ctf-tools/crypto-attacks && pip install -r ~/.ctf-tools/crypto-attacks/requirements.txt

Linux (apt):

apt install hashcat

macOS (Homebrew):

brew install hashcat

Manual install:

  • SageMath (optional — only for legacy Sage fallback snippets (collapsed sections)) — Linux: apt install sagemath, macOS: brew install --cask sage
  • RsaCtfTool — git clone https://github.com/RsaCtfTool/RsaCtfTool (automated RSA attacks)
  • crypto-attacks (Coppersmith) — git clone https://github.com/jvdsn/crypto-attacks ~/.ctf-tools/crypto-attacks + pip install -r ~/.ctf-tools/crypto-attacks/requirements.txt (alternative to pip install coppersmith)

Note: gmpy2 requires libgmp — Linux: apt install libgmp-dev, macOS: brew install gmp.

Sponsors

Details

Repository
github.com/ljagiello/ctf-skills
Categories
Security, Finance & Trading

More from ljagiello/ctf-skills

All 11

Recommended

More Security
1trailofbits avatarsupply-chain-risk-auditortrailofbits/skillsIdentifies dependencies at heightened risk of exploitation or takeover. Use when assessing supply chain attack surface, evaluating dependency health, or scoping9Kskills.sh installs
2trailofbits avatarcodeqltrailofbits/skillsScans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis. Triggers on "run codeql", "codeql scan", "co8.8Kskills.sh installs
3emblemcompany avataremblem-ai-reactemblemcompany/agent-skillsReact integration skill for EmblemAI's one-shot user management. Use when the user wants to add website authentication plus wallet-enabled users to a React app 8.8Kskills.sh installs
4emblemcompany avataremblem-aiemblemcompany/agent-skillsOne-shot user management for apps, multi-chain wallet authentication, an AI-powered assistant, and AI app introspection. Use when the user wants to let website 8.7Kskills.sh installs
5github avatartypespec-create-api-plugingithub/awesome-copilotGenerate a TypeSpec API plugin with REST operations, authentication, and Adaptive Cards for Microsoft 365 Copilot8.7Kskills.sh installs
6czlonkowski avatarn8n-mcp-tools-expertczlonkowski/n8n-skillsExpert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, organizi8.5Kskills.sh installs