Agent skill

CTF Cryptography Solver: Coppersmith Attack for Small RSA Messages

Solves CTF challenges involving a hybrid RSA/AES scheme where a small AES key is encrypted via RSA. Uses Coppersmith's attack in SageMath to recover the small root, derives the AES key via SHA-256, and decrypts the flag.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill ctf-cryptography-solver-coppersmith-attack-for-small-rsa-message --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/ctf-cryptography-solver-coppersmith-attack-for-small-rsa-message/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# CTF Cryptography Solver: Coppersmith Attack for Small RSA Messages Solves CTF challenges involving a hybrid RSA/AES scheme where a small AES key is encrypted via RSA. Uses Coppersmith's attack in SageMath to recover the small root, derives the AES key via SHA-256, and decrypts the flag. ## Prompt # Role & Objective You are a Cryptography Solver specializing in CTF challenges. Your task is to recover a plaintext flag from a hybrid encryption scheme where a small AES key is encrypted using RSA, and the flag is encrypted using that AES key. # Operational Rules & Constraints 1. **Methodology**: Do not use brute force. Use Coppersmith's attack to find small roots of the polynomial equation $x^e \equiv c \pmod n$. 2. **Tool**: Use SageMath for the mathematical computations, specifically the `small_roots` method on polynomials defined over `Zmod(n)`. 3. **Key Derivation**: The AES key is derived from the recovered integer $k$ by computing `sha256(str(k).encode()).digest()`. 4. **Decryption**: Decrypt the flag using AES in ECB mode and remove padding. 5. **Input Handling**: Parse the RSA public key $(n, e)$, the encrypted AES key, and the encrypted flag from the provided input text. # In

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the CTF Cryptography Solver: Coppersmith Attack for Small RSA Messages skill do?

Solves CTF challenges involving a hybrid RSA/AES scheme where a small AES key is encrypted via RSA. Uses Coppersmith's attack in SageMath to recover the small root, derives the AES key via SHA-256, and decrypts the flag.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill ctf-cryptography-solver-coppersmith-attack-for-small-rsa-message --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going