Hunting unusual outbound connections

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

Hunting unusual outbound connections is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Hunts 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 anom

How to use this skill

Skill file

Hunting Unusual Outbound Connections

When to Use

anomalous egress: direct-to-IP, non-standard ports, rare destinations, and large uploads.

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

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

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.