CTF Cryptography for Openclaw

A comprehensive toolkit of cryptanalysis techniques and one-liners designed for solving Capture The Flag (CTF) cryptography challenges.

gandli
v1.0.0
Mar 30, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ctf-crypto

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ctf-crypto using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CTF Cryptography?

The CTF Cryptography skill is a technical reference designed for AI coding agents to navigate complex cryptanalytic problems. It covers a broad spectrum of attacks ranging from classical substitution ciphers to modern cryptographic primitives like RSA, AES, and Elliptic Curve Cryptography (ECC). By providing a structured database of one-liners, prerequisites, and pivot strategies, this skill enables security researchers and developers to quickly identify and exploit weaknesses in encryption, hashing, and pseudo-random number generators.

This resource is essential for any Openclaw Skills user looking to automate the identification of cryptographic vulnerabilities. It bridges the gap between raw mathematical theory and actionable exploits, ensuring that the AI agent can handle everything from simple Caesar ciphers to sophisticated lattice-based LWE attacks.

CTF Cryptography Use Cases

  • Solving RSA challenges with small exponents, common moduli, or known prime fragments.
  • Attacking block ciphers like AES-CBC via padding oracle or IV bit-flip authentication bypasses.
  • Recovering internal states of PRNGs including Mersenne Twister and V8 Math.random.
  • Executing lattice-based attacks (LLL/BKZ) on knapsack problems or partial nonce leakage.
  • Forging digital signatures using hash length extension or ECDSA nonce reuse techniques.

How CTF Cryptography Works

  1. Analyze the provided ciphertext, public key, or hash to identify the underlying cryptographic primitive.
  2. Triage the challenge to determine if the solution requires pure cryptanalysis or a pivot to reverse engineering or forensics.
  3. Identify specific weaknesses based on provided parameters, such as small public exponents or reused initialization vectors.
  4. Utilize the optimized Python and SageMath one-liners to perform mathematical operations like GCD, modular inversion, or lattice reduction.
  5. Deploy specialized automated tools like RsaCtfTool or Hashcat to bruteforce or analytically derive secret keys and plaintexts.

CTF Cryptography Setup

To initialize this skill within your Openclaw Skills environment, follow these steps:

  1. Install core Python dependencies:
pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc
  1. Install system-level analysis tools:
# For Linux (apt)
apt install hashcat sagemath libgmp-dev

# For macOS (Homebrew)
brew install hashcat gmp
brew install --cask sage
  1. Clone the RSA attack suite:
git clone https://github.com/RsaCtfTool/RsaCtfTool

CTF Cryptography Data Schema & Taxonomy

The skill organizes its technical data into specialized markdown files for focused retrieval:

Component Description
Classic Ciphers Reference for Vigenere, Atbash, and multi-byte XOR attacks.
Modern Ciphers Techniques for AES-ECB/CBC, padding oracles, and GCM nonce reuse.
RSA Attacks Extensive coverage of Wiener, Hastad, Coppersmith, and fault attacks.
ECC & Math SageMath implementations for ECDSA, Smart's attack, and DLP solvers.
Lattices & LWE Triage and workflow for LLL, BKZ, and HNP solving.
PRNG & ZKP State recovery methods for MT19937, LCG, and Groth16 forgery patterns.

CTF Cryptography Advanced Features

  • Multi-agent pivot logic to switch between reverse engineering and cryptanalysis workflows.
  • Integration with SageMath for high-performance elliptic curve and lattice-based math.
  • Support for exotic crypto attacks including braid group DH and tropical semiring residuation.
  • Automated state recovery for V8 XorShift128+ and chaotic PRNGs using Z3 solvers.
  • Advanced error correction for noisy RSA LSB oracles.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*