Skip to content

meltedinhex/analyst-ai-pack / skills/defanging-and-sharing-iocs

defanging-and-sharing-iocs

Verified

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 sharing.

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

references/api-reference.md

View on GitHub
# API Reference: Defanging and Sharing IOCs

## Overview

`scripts/analyst.py` classifies indicators (url, domain, ipv4, email, hash), defangs network
indicators so they cannot be clicked or resolved, deduplicates, and emits structured JSON. It
processes text only and performs no network lookups.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | regex, JSON, file IO |

## Core functions

### `classify(ind)`
Returns the indicator type via ordered regex checks (hash first to avoid domain mis-match).

### `defang(ind, kind)`
Defangs network indicators (`http`→`hxxp`, `.`→`[.]`, `@`→`[at]`); leaves hashes untouched.

### `process(lines)`
Deduplicates and produces typed, defanged records.

## Usage

```bash
python scripts/analyst.py defang iocs.txt
```

## Sources

- STIX 2.1 specification — https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html
- MISP indicator sharing — https://www.misp-project.org/
- Common defanging conventions (hxxp, [.], [at]) for safe IOC handling, CTI practice
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall