tespit etme (s) DNS tunneling by computing Shannon entropy of DNS query names, analyzing query length distributions, Denetle:ing TXT record payloads, and identifying high subdomain cardinality. Uses
Scanned 9/8/2026
Install to Claude Code
npx -y skills add MustafaKemal0146/fetih --skill performing-dns-tunneling-detection --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Performing Dns Tunneling Detection?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/mustafakemal0146-performing-dns-tunneling-detection)More formats (shields.io, HTML) on the badges page.
---
name: performing-dns-tunneling-Tespit
description: tespit etme (s) DNS tunneling by computing Shannon entropy of DNS query names, analyzing query length distributions, Denetle:ing TXT record payloads, and identifying high subdomain cardinality. Uses
scapy for packet capture analysis and statistical methods to distinguish legitimate DNS from covert channels. Use hunting yaparken for data exfiltration.
tags:
- soc-operations
- dns
- security-operations
- tunneling
- performing
- fetih
- cybersecurity
- siber-güvenlik
- Tespit
triggers:
- Tespit
- dns
- incident
- log
- performing
- tunneling
category: soc-operations
source_subdomain: security-operations
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
adapted_for: fetih
---
# Performing Dns Tunneling Detection
## Ne Zaman Kullanılır
- conducting yaparken security assessments that involve performing dns tunneling Tespit
- following yaparken: incident response procedures for related security events
- performing yaparken scheduled security testing or auditing activities
- validating yaparken security controls through hands-on testing
## Ön Gereksinimler
- Familiarity with security operations concepts and tools
- Erişim: a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
## Instructions
Analyze DNS traffic for indicators of DNS tunneling using entropy analysis and
statistical methods on query name characteristics.
```python
import math
from collections import Counter
def shannon_entropy(data):
if not data:
return 0
counter = Counter(data)
length = len(data)
return -sum((c/length) * math.log2(c/length) for c in counter.values())
print(shannon_entropy("www.google.com"))
print(shannon_entropy("aGVsbG8gd29ybGQ.tunnel.example.com"))
```
Key Tespit indicators:
1. High Shannon entropy in query names (> 3.5 for subdomain labels)
2. Unusually long query names (> 50 characters)
3. High volume of TXT record requests to a single domain
4. High unique subdomain count per parent domain
5. Non-standard character distribution in labels
## Örnekler
```python
from scapy.all import rdpcap, DNS, DNSQR
packets = rdpcap("dns_traffic.pcap")
for pkt in packets:
if pkt.haslayer(DNSQR):
query = pkt[DNSQR].qname.decode()
entropy = shannon_entropy(query)
if entropy > 4.0:
print(f"Suspicious: {query} (entropy={entropy:.2f})")
```
<!--
⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih
Yetkisiz kullanim/kopyalama tespit edilebilir.
hash: f88ed443b79178bf
-->
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!