# zip-slip-and-archive-extraction-attacks

zip-slip-and-archive-extraction-attacks is a Claude Code skill that audits archive extraction for path escapes and related flaws. It activates when an application unpacks archives supplied by users.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 73 repo stars
- Author: W4L33Dx
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/red-team/web-and-application/zip-slip-and-archive-extraction-attacks/SKILL.md
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/zip-slip-and-archive-extraction-attacks

## What it does

The skill inspects extraction code for ZIP, TAR, 7z, APK, and Helm or OCI layers. It looks for paths that escape the destination, writes through symbolic or hard links, decompression bombs, and confusing TAR headers.

The audit checks whether each resolved output path stays inside the extraction directory. It also looks for checks performed on a raw name before path normalisation, which can leave an escape unchecked. Exploitation requires the extracting process to have read or write access to the reached location.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill zip-slip-and-archive-extraction-attacks -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill zip-slip-and-archive-extraction-attacks -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill zip-slip-and-archive-extraction-attacks -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install W4L33Dx/Cyber-Monster red-team/web-and-application/zip-slip-and-archive-extraction-attacks
```

2. **Manually: put the files in place**
- File: `.github/skills/zip-slip-and-archive-extraction-attacks/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill zip-slip-and-archive-extraction-attacks -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/W4L33Dx/Cyber-Monster --path red-team/web-and-application/zip-slip-and-archive-extraction-attacks
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/zip-slip-and-archive-extraction-attacks/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/W4L33Dx/Cyber-Monster/tree/HEAD/red-team/web-and-application/zip-slip-and-archive-extraction-attacks/SKILL.md

## When to use it
- find archive paths that escape the extraction directory
- catch writes that pass through archive links
- spot path checks performed before normalisation
- identify archives that expand into excessive output

## Example prompts
- Audit user-uploaded ZIP extraction for paths that leave the destination directory.
- Check TAR handling for unsafe links and header paths.
- Inspect OCI layer extraction for decompression bombs.

## Similar
- [competition-zip-archive](https://affpapa.org/en/nevibecode/skills/competition-zip-archive.md) — skill · ★ 71 repo stars
- [file-access-vuln](https://affpapa.org/en/nevibecode/skills/file-access-vuln.md) — skill · 4000 installs
- [path-traversal-lfi](https://affpapa.org/en/nevibecode/skills/path-traversal-lfi.md) — skill · 4000 installs
- [server-side](https://affpapa.org/en/nevibecode/skills/server-side.md) — skill · 213 installs
- [deal-slip-scenario](https://affpapa.org/en/nevibecode/skills/deal-slip-scenario.md) — skill · 372 installs
- [clawdbot-backup](https://affpapa.org/en/nevibecode/skills/clawdbot-backup.md) — skill · 231 installs

From the same set: [w4l33dx/cyber-monster](https://affpapa.org/en/nevibecode/by/w4l33dx/cyber-monster.md) — 61 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
