Defanging and sharing iocs

From meltedinhex/analyst-ai-pack · View interactive version

Defanging and sharing iocs is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Prepares indicators of compromise for safe sharing: defanging URLs, domains, IPs, and emails so they cannot be accidentally clicked or resolved, and formatting them into STIX/CSV/MISP-friendly output. Activates for requests to defang IOCs, sanitize indicators for a report, or export indicators for s

How to use this skill

Skill file

Defanging and Sharing IOCs

When to Use

clicks or resolution.

Do not use raw, live indicators in any document a human or tool might auto-process — a clicked

URL or auto-resolved domain can tip off the adversary or infect a reader.

Prerequisites

Workflow

Step 1: Normalize the indicators

Deduplicate and canonicalize (lowercase domains, strip trailing dots) so the output is clean.

Step 2: Defang for safety

Apply standard defanging: http→hxxp, .→[.], @→[at], ://→[://]. This blocks

hyperlinking and casual copy-paste resolution.

python scripts/analyst.py defang iocs.txt

Step 3: Classify and structure

Tag each indicator by type (url, domain, ipv4, email, hash) and emit a structured form (CSV or a

minimal STIX-style bundle) for the target platform.

Step 4: Add context

Attach the source, first-seen date, confidence, and related ATT&CK technique so consumers can

act on the indicator.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.