Koskamo

Inspect and safely extract zip archives

The agent lists archive contents to identify risks like zip bombs or path traversal, then safely extracts only verified text files without writing unsafe entries to disk.

How it works

Read-onlyOperations and infrastructure

The agent first uses the zip_list tool to inspect the archive's central directory, checking for dangerous patterns like absolute paths, symlinks, or excessive compression ratios. It reports any flagged entries to the user. If the user approves, the agent uses zip_extract_text to read specific text entries inline or zip_extract to unpack safe files, ensuring that malicious entries are refused or skipped based on the configured safety guards.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Inspect and safely extract zip archives
Please inspect the attached zip file for any security risks such as path traversal or zip bombs. List the contents and highlight any dangerous entries. If safe, extract the README.txt file content for me.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

zip_list : every entry with its size, compressed size and ratio, and everything dangerous flagged by name, absolute paths, .. , symlinks, encrypted entries, duplicate names and anything past the ratio ceiling.
Zip and unzip archives safely from Claude or Cursor

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.