Skip to content
SkillModel-led11,261 tokens in use

ctf-crypto

A quick reference for cryptography CTF challenges: RSA, AES, elliptic curves, lattices, PRNG state recovery, padding oracles and classic ciphers.

3,753 stars on the repository MIT Licenseljagiello/ctf-skills · ctf-crypto
npx skills add ljagiello/ctf-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing ctf-crypto costs

78tokens idle
11,261tokens in use
177,711tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldeclared and detectednetworkdeclared and detectedwrites filesdeclaredgitdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure17/25
  • Examples15/15
  • Output15/15
  • Size11/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reaches the network−5

    does this on the machine, as the frontmatter declares

    SKILL.md, line 20
  • Runs shell commands−2

    does this on the machine, as the frontmatter declares

    SKILL.md, line 20

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity88
  • Maintenance48
  • Community56
  • Maturity32
  • Momentum40

ctf-crypto is the cryptography skill of the ctf-skills collection. It gives an agent an index of weaknesses and solving methods for capture-the-flag challenges that involve encryption, hashing, signatures, random number generators or number theory, with each topic linking to a detailed file.

The main file covers classic ciphers, modern cipher attacks, RSA, elliptic curves, Diffie-Hellman, lattice and LWE problems, zero-knowledge and constraint solving, and PRNG recovery. A set of reference files holds the longer worked material.

What You Get

  • A prerequisites list covering Python and Sage tooling, with optional Coppersmith libraries
  • Quick-start commands for cipher identification, RSA checks, factoring, XOR analysis and hash identification
  • Short entries for each attack family that link to long reference files by topic
  • Pivot rules that send non-crypto work to the other skills in the collection
  • A list of useful tools at the end of the main file

Common Use Cases

  • Analyzing an RSA challenge with unusual parameters and choosing a factoring or lattice approach
  • Recognizing a padding oracle or nonce reuse problem in a block or stream cipher challenge
  • Recovering the state of a pseudo-random generator from observed outputs
  • Breaking a classic cipher by identifying its type and key structure

What Makes It Unique

The skill is large and organized by attack family, with the main file acting as an index over many topic files for RSA, ECC, lattices, stream and block ciphers and PRNGs. Entries cite the competitions they came from, which helps an agent match a new challenge to a known pattern.

Under The Hood

The skill is instructions only, with no scripts of its own. It tells the agent to install Python packages, optionally clone a public attack library into a tools folder, and run Python and Sage code, command line factoring tools and hash tools on challenge files. Its frontmatter allows shell, file writes, web fetch and web search.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers