detecting-exfiltration-over-dns-with-zeek

detecting-exfiltration-over-dns-with-zeek is a skill for Claude Code from oyi77/1ai-skills. It costs 59 tokens per session (1,257 once invoked), scanned A, original, MIT.

A security-analysis guide for finding data theft hidden inside DNS queries, which normally translate domain names into network addresses. It examines Zeek DNS logs for encoded, unusually long, high-entropy subdomains and abnormal query volumes.

In plain words
What is it for?
Use it to analyze Zeek dns.log files, identify suspicious parent domains, and create detections for DNS-based exfiltration.
Why use it?
It helps detect DNS tunneling, where attackers send stolen data through DNS to bypass some network controls.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 1ai-skills plugin — 216 skills, 4 commands shipped together

Good fit Use it to analyze Zeek dns.log files, identify suspicious parent domains, and create detections for DNS-based exfiltration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add oyi77/1ai-skills --skill detecting-exfiltration-over-dns-with-zeek
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 216 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for detecting-exfiltration-over-dns-with-zeek

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek/github.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for detecting-exfiltration-over-dns-with-zeek

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/detecting-exfiltration-over-dns-with-zeek.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.01257
Opus 5.5 $0.00024 $0.00503
Sonnet 5.5 $0.00012 $0.00251
Haiku 4.5 $0.00006 $0.00126

Measured 1mo ago against content hash d4fcf2b5672d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

detecting-exfiltration-over-dns-with-zeek scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cybersecurity/_deprecated/detecting-exfiltration-over-dns-with-zeek/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Detecting Exfiltration over DNS with Zeek

Overview

DNS tunneling and exfiltration is a technique used by attackers to bypass firewalls and DLP controls by encoding stolen data into DNS query subdomains. Legitimate DNS queries have predictable entropy and length patterns, while exfiltration queries contain encoded data with high Shannon entropy, unusually long subdomain labels, and high volumes of unique subdomains per parent domain.

This skill analyzes Zeek dns.log files (TSV format) to detect exfiltration indicators. The agent computes Shannon entropy for each subdomain component, identifies queries exceeding the 63-character DNS label limit, counts unique subdomains per parent domain, and flags domains that exceed configurable thresholds. These techniques detect tools like dnscat2, iodine, dns2tcp, and custom DNS tunneling implementations.

When to Use

Trigger phrases:

  • "detecting exfiltration over dns with zeek"

  • "Detect DNS-based data exfiltration by analyzing Zeek dns"

  • When investigating security incidents that require detecting exfiltration over dns with zeek

  • When building detection rules or threat hunting queries for this domain

  • When SOC analysts need structured procedures for this analysis type

  • When validating security monitoring coverage for related attack techniques

When NOT to Use

  • When you lack proper authorization for testing
  • For production systems without change management
  • When the task requires legal or compliance expertise beyond technical scope

Prerequisites

  • Python 3.9 or later with math and collections modules (stdlib)
  • Zeek dns.log files in TSV format with standard field headers
  • Network capture data processed by Zeek 5.0+ or later
  • Understanding of DNS protocol structure and query types

Steps

  1. Parse Zeek dns.log headers: Read the TSV file, extract the #fields header line to identify column positions for ts, id.orig_h, query, qtype_name, rcode_name, and answers.

  2. Extract and decompose queries: For each DNS query, split the FQDN into subdomain labels and parent domain. Skip queries to known safe domains and internal zones.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 130 lines · 59 tokens per session scan A d4fcf2b5672d

Subscribe to this mod's changes

detecting-exfiltration-over-dns-with-zeek is a skill published in the GitHub repository oyi77/1ai-skills (17 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 1,257 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

web

Web application exploitation — the primary category skill for all web-based attacks. This is a routing skill: read this first to identify the attack type, then load the appropriate specialized sub-skill for detailed procedures. Covers 11 technique areas across injection, file access, authentication, and API…

PurpleAILAB/Decepticon · 60 tokens

flash-loan

Flash-loan exploit patterns — callback reentrancy, oracle amplification, governance attacks, unauthenticated callback handlers.

PurpleAILAB/Decepticon · 27 tokens

cicd

CI/CD pipeline attack category — poisoned pipeline execution, GitHub Actions expression injection, self-hosted runner abuse, secrets/OIDC exfil. Routing skill: fingerprint the CI provider + workflow surface, then load the matching leaf.

PurpleAILAB/Decepticon · 49 tokens

seven-question-gate

7-question gate run before promoting a finding to FINDING + opening a report. Kills weak/non-impactful findings before they reach the report stage and damage validity ratio.

PurpleAILAB/Decepticon · 39 tokens

supply-chain

Hunt LLM supply-chain compromise (OWASP LLM03:2025) — malicious or backdoored models, datasets, adapters, plugins, MCP servers, and tokenizer / framework dependencies that ship inside an AI-integrated product.

PurpleAILAB/Decepticon · 52 tokens

system-prompt-leakage

Hunt LLM system-prompt leakage (OWASP LLM07:2025) — exfiltration of the privileged system prompt revealing internal rules, secrets baked in, tool inventory, and business logic that should not be client-visible.

PurpleAILAB/Decepticon · 55 tokens