Tooluck logoTooluck
SKILL.md

analyzing-dns-logs-for-exfiltration

Agent skill frommukul975/Anthropic-Cybersecurity-Skills

'Analyzes DNS query logs to detect data exfiltration via DNS tunneling,

How to install analyzing-dns-logs-for-exfiltration

install analyzing-dns-logs-for-exfiltration
# install the Anthropic-Cybersecurity-Skills pack with the skills CLI
npx skills add mukul975/Anthropic-Cybersecurity-Skills

# or add only this skill to Claude Code: copy the folder

skills/analyzing-dns-logs-for-exfiltration/

# into

~/.claude/skills/analyzing-dns-logs-for-exfiltration/ (all projects)

.claude/skills/analyzing-dns-logs-for-exfiltration/ (one project)

skills/analyzing-dns-logs-for-exfiltration/SKILL.md

Apache-2.0Full file
1# Analyzing DNS Logs for Exfiltration
2
3## When to Use
4
5Use this skill when:
6- SOC teams suspect data exfiltration through DNS tunneling to bypass firewall/proxy controls
7- Threat intelligence indicates adversaries using DNS-based C2 channels (e.g., Cobalt Strike DNS beacon)
8- UEBA detects anomalous DNS query volumes from specific hosts
9- Malware analysis reveals DNS-over-HTTPS (DoH) or DNS tunneling capabilities
10
11**Do not use** for standard DNS troubleshooting or availability monitoring — this skill focuses on security-relevant DNS abuse detection.
12
13## Prerequisites
14
15- DNS query logging enabled (Windows DNS Server, Bind, Infoblox, or Cisco Umbrella)
16- DNS logs ingested into SIEM (Splunk with `Stream:DNS`, `dns` sourcetype, or Zeek DNS logs)
17- Passive DNS data for historical domain resolution analysis
18- Baseline of normal DNS behavior (query volume, domain distribution, TXT record frequency)
19- Python with `math` and `collections` libraries for entropy calculation
20
21## Workflow
22
23### Step 1: Detect DNS Tunneling via Subdomain Length Analysis
24
25DNS tunneling encodes data in subdomain labels, creating unusually long queries:
26
27```spl
28index=dns sourcetype="stream:dns" query_type IN ("A", "AAAA", "TXT", "CNAME", "MX")
29| eval domain_parts = split(query, ".")
30| eval subdomain = mvindex(domain_parts, 0, mvcount(domain_parts)-3)
31| eval subdomain_str = mvjoin(subdomain, ".")
32| eval subdomain_len = len(subdomain_str)
33| eval tld = mvindex(domain_parts, -1)
34…

Excerpt shown under the repository's Apache-2.0 license.

More skills in Anthropic-Cybersecurity-Skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

tt-a1i /

archify
95k

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

CCCXOC1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates