# competition-zip-archive

competition-zip-archive is a Claude Code skill that recovers legacy ZipCrypto keys from archives using known-plaintext attacks. CTF workflows trigger it after ctf-sandbox-orchestrator runs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 71 repo stars
- Author: freyrswift
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/freyrswift/UaStation/tree/HEAD/resources/skills-upstream/reverse-skill/rs-competition-zip-archive/SKILL.md
- Updated: 2026-11-13
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/competition-zip-archive

## What it does

The skill decrypts legacy ZipCrypto PKZIP archives by extracting internal encryption keys with `bkcrack`. Instead of running dictionary attacks, it targets known plaintext fragments. The recovery needs at least 12 plaintext bytes, with 8 or more contiguous bytes.

Modern encryption formats such as WinZip AES break this workflow and require alternative primitives. The process operates strictly on an isolated working copy to keep the original archive intact, finishing with `7z` integrity testing.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill competition-zip-archive -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/rs-competition-zip-archive/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/rs-competition-zip-archive/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill competition-zip-archive -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/rs-competition-zip-archive/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill competition-zip-archive -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/rs-competition-zip-archive/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install freyrswift/UaStation resources/skills-upstream/reverse-skill/rs-competition-zip-archive
```

2. **Manually: put the files in place**
- File: `.github/skills/rs-competition-zip-archive/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill competition-zip-archive -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/freyrswift/UaStation --path resources/skills-upstream/reverse-skill/rs-competition-zip-archive
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/rs-competition-zip-archive/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/freyrswift/UaStation/tree/HEAD/resources/skills-upstream/reverse-skill/rs-competition-zip-archive/SKILL.md

## When to use it
- recover ZipCrypto keys using bkcrack
- decrypt protected ZIP files without password brute forcing
- inspect compression and encryption metadata inside PKZIP archives
- extract archive contents using recovered internal keys

## Example prompts
- Inspect challenge.zip metadata and check whether it uses ZipCrypto
- Run bkcrack against challenge.zip using known.zip as the plaintext source
- Extract unlocked.zip with 7z after recovering internal keys

## Similar
- [zip-slip-and-archive-extraction-attacks](https://affpapa.org/en/nevibecode/skills/zip-slip-and-archive-extraction-attacks.md) — skill · ★ 73 repo stars
- [competition-request-normalization-smuggling](https://affpapa.org/en/nevibecode/skills/competition-request-normalization-smuggling.md) — skill · 110 installs
- [competition-websocket-runtime](https://affpapa.org/en/nevibecode/skills/competition-websocket-runtime.md) — skill · 110 installs
- [symmetric-cipher-attacks](https://affpapa.org/en/nevibecode/skills/symmetric-cipher-attacks.md) — skill · 3900 installs
- [lattice-crypto-attacks](https://affpapa.org/en/nevibecode/skills/lattice-crypto-attacks.md) — skill · 3900 installs
- [cryptography](https://affpapa.org/en/nevibecode/skills/cryptography.md) — skill · 165 installs

From the same set: [freyrswift/uastation](https://affpapa.org/en/nevibecode/by/freyrswift/uastation.md) — 16 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
