New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Hunting For Unusual Network Connections

Free

Proactively detect command-and-control traffic anomalies.

Get this skill

Free · Opens the source repo

What Hunting For Unusual Network Connections does

The 'Hunting For Unusual Network Connections' skill is designed for cybersecurity professionals focused on threat hunting and incident response. It specifically targets command-and-control (C2) activity by analyzing network telemetry for unusual outbound connections. This skill is particularly useful when investigating alerts triggered by EDR or SIEM systems, as it helps identify potential threats based on established MITRE ATT&CK techniques, particularly T1071, which pertains to application layer protocols. By leveraging this skill, users can enhance their ability to detect and respond to sophisticated threats in their environment.

The skill operates on a hypothesis-driven approach, allowing users to formulate specific queries based on threat intelligence or identified gaps in their defenses. It requires integration with EDR platforms like CrowdStrike or Microsoft Defender and SIEM solutions such as Splunk or Elastic. Users will execute queries to collect relevant data, analyze results for anomalies, and validate findings through contextual analysis. This structured workflow ensures that cybersecurity teams can effectively pinpoint and respond to potential C2 communications, thereby improving overall security posture.

Ideal for security analysts and incident responders, this skill is applicable in various scenarios, including proactive threat hunting, incident response, and periodic security assessments. It assists teams in correlating network activity with broader attack patterns, thereby facilitating a more comprehensive understanding of potential threats. The output format ensures that findings are documented clearly, providing actionable insights for containment and further investigation.

In summary, this skill enhances the capabilities of security teams by providing a systematic approach to detecting unusual network connections that may indicate malicious activity, making it an essential tool for modern cybersecurity operations.

When to use it

Use this skill when hunting for unusual network connections, especially after threat intelligence indicates potential C2 activity.

When not to use it

It may not be suitable for environments lacking the necessary telemetry or those not focused on proactive threat hunting.

What you can build with it

Identifying C2 Communication

Use this skill to detect a backdoor communicating with a command-and-control server on a non-standard port.

Investigating Data Exfiltration

Employ the skill to analyze potential data exfiltration attempts over DNS to an attacker's nameserver.

Assessing Compromised Hosts

Run the skill to investigate a compromised host that is scanning the internal network for further exploits.

How to install Hunting For Unusual Network Connections

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/hunting-for-unusual-network-connections --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Hunting For Unusual Network Connections

When to Use

  • When proactively hunting for indicators of hunting for unusual network connections in the environment
  • After threat intelligence indicates active campaigns using these techniques
  • During incident response to scope compromise related to these techniques
  • When EDR or SIEM alerts trigger on related indicators
  • During periodic security assessments and purple team exercises

Prerequisites

  • EDR platform with process and network telemetry (CrowdStrike, MDE, SentinelOne)
  • SIEM with relevant log data ingested (Splunk, Elastic, Sentinel)
  • Sysmon deployed with comprehensive configuration
  • Windows Security Event Log forwarding enabled
  • Threat intelligence feeds for IOC correlation

Workflow

  1. Formulate Hypothesis: Define a testable hypothesis based on threat intelligence or ATT&CK gap analysis.
  2. Identify Data Sources: Determine which logs and telemetry are needed to validate or refute the hypothesis.
  3. Execute Queries: Run detection queries against SIEM and EDR platforms to collect relevant events.
  4. Analyze Results: Examine query results for anomalies, correlating across multiple data sources.
  5. Validate Findings: Distinguish true positives from false positives through contextual analysis.
  6. Correlate Activity: Link findings to broader attack chains and threat actor TTPs.
  7. Document and Report: Record findings, update detection rules, and recommend response actions.

Key Concepts

ConceptDescription
T1071Application Layer Protocol
T1095Non-Application Layer Protocol
T1571Non-Standard Port

Tools & Systems

ToolPurpose
CrowdStrike FalconEDR telemetry and threat detection
Microsoft Defender for EndpointAdvanced hunting with KQL
Splunk EnterpriseSIEM log analysis with SPL queries
Elastic SecurityDetection rules and investigation timeline
SysmonDetailed Windows event monitoring
VelociraptorEndpoint artifact collection and hunting
Sigma RulesCross-platform detection rule format

Common Scenarios

  1. Scenario 1: Backdoor communicating to C2 on non-standard port
  2. Scenario 2: Data exfiltration over DNS to attacker nameserver
  3. Scenario 3: Compromised host scanning internal network
  4. Scenario 4: Cryptominer connecting to mining pool

Output Format

Hunt ID: TH-HUNTIN-[DATE]-[SEQ]
Technique: T1071
Host: [Hostname]
User: [Account context]
Evidence: [Log entries, process trees, network data]
Risk Level: [Critical/High/Medium/Low]
Confidence: [High/Medium/Low]
Recommended Action: [Containment, investigation, monitoring]

Frequently asked questions about Hunting For Unusual Network Connections

Similar skills