Skip to content

meltedinhex/analyst-ai-pack / skills/analyzing-malicious-iso-and-container-files

analyzing-malicious-iso-and-container-files

Verified

Analyzes malicious ISO, IMG, VHD, and similar container files used to smuggle payloads past email and mark-of-the-web defenses by enumerating contents and flagging hidden executables, LNKs, and scripts. Activates for requests to analyze a malicious ISO/IMG, inspect a container delivery file, or find payloads hidden inside a disk image attachment.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.7 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript2.7 KB

references/api-reference.md

View on GitHub
# API Reference: Analyzing Malicious ISO and Container Files

## Overview

`scripts/analyst.py` identifies a container's format (ISO 9660, VHD/VHDX, FAT/IMG) by signature and
carves embedded file signatures (PE, ZIP/Office, LNK, scripts) with offsets. With pycdlib it adds a
root directory listing. It reads bytes statically and never mounts the image.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| pycdlib | latest | full ISO directory listing (optional) |
| (stdlib) | — | JSON, file IO |

## Core functions

### `inspect(path)`
Returns format, ISO directory (if pycdlib), embedded signatures, and a hidden-payload flag.

### `_format(data)`
Signature-based container format detection (`CD001`, `conectix`, `vhdxfile`, FAT markers).

## Carved signatures

PE (`MZ`), ZIP/Office (`PK`), LNK header, shebang/WSF/batch scripts.

## Usage

```bash
python scripts/analyst.py inspect sample.iso
```

## Sources

- MITRE ATT&CK T1553.005 Mark-of-the-Web Bypass — https://attack.mitre.org/techniques/T1553/005/
- ISO 9660 (`CD001` at sector 16) — https://wiki.osdev.org/ISO_9660
- VHD `conectix` / VHDX `vhdxfile` signatures from Microsoft VHD/VHDX specifications
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall