meltedinhex/analyst-ai-pack / skills/hunting-unusual-outbound-connections
hunting-unusual-outbound-connections
VerifiedHunts for unusual outbound network connections by flagging direct-to-IP traffic, uncommon ports, rare destinations, high data-egress ratios, and connections from unexpected processes in network telemetry. Activates for requests to hunt unusual outbound traffic, detect suspicious egress, or find anomalous external connections.
Hunting Unusual Outbound Connections
When to Use
- You have connection/flow telemetry (Sysmon EID 3, firewall, Zeek conn) and want to surface anomalous egress: direct-to-IP, non-standard ports, rare destinations, and large uploads.
- You are hunting C2 and exfiltration channels.
Do not use this to block on raw destination novelty alone — many new destinations are benign. Combine signals (port + process + egress ratio) before alerting.
Prerequisites
- Outbound connection telemetry with destination IP/port, process, and (ideally) byte counts.
Workflow
Step 1: Score outbound connections
python scripts/analyst.py hunt conns.csv
Flags direct-to-IP (no domain), uncommon ports (not 80/443/53/...), high sent:received byte ratio
(possible exfil), and connections from unexpected processes (e.g., notepad.exe egressing).
Step 2: Rank destinations by rarity
Aggregate per-destination connection counts to surface low-prevalence endpoints.
Step 3: Confirm
Investigate top-scoring connections; corroborate with reputation and process context.
Step 4: Operationalize
Tune thresholds and write a detection for the strongest combined signals.
Validation
- Direct-to-IP and non-standard-port connections are flagged.
- High egress-ratio connections are surfaced for exfil review.
- Unexpected-process egress is identified.
Pitfalls
- CDNs and cloud services producing many benign direct-IP/new destinations.
- Standard ports (443) used by C2 — port alone is insufficient.
- Asymmetric-but-benign traffic (backups, uploads) inflating egress ratio.
References
- See
references/api-reference.mdfor the hunter. - ATT&CK T1048 and T1571 (linked in frontmatter).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |