performing-dns-tunneling-detection
यह क्या करती है
यह टूल DNS ट्रैफ़िक का विश्लेषण करके संदिग्ध गतिविधियां ढूंढता है, जैसे 'DNS टनलिंग', जिसमें डेटा छिपाकर भेजा जा सकता है। यह DNS अनुरोधों के नाम, उनकी लंबाई और दूसरे विवरण जांचकर असामान्य व्यवहार पहचानता है।
कब इस्तेमाल करें
- ✓जब डेटा लीक होने की आशंका की जांच करनी हो।
- ✓सिक्योरिटी टेस्ट के दौरान छिपी हुई टनल जांचने के लिए।
- ✓नेटवर्क ट्रैफ़िक में हानिकारक गतिविधियों का विश्लेषण करते समय।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-dns-tunneling-detection/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस DNS ट्रैफ़िक फ़ाइल का विश्लेषण करो और बताओ कि क्या इसमें DNS टनलिंग के संकेत हैं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल DNS अनुरोधों के नामों की 'एंट्रॉपी' (यानी रैंडमनेस या अनिश्चितता का माप) निकालता है। बहुत रैंडम या बहुत लंबे नाम इस बात का संकेत हो सकते हैं कि उनमें डेटा छिपाया जा रहा है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Performing DNS Tunneling Detection
When to Use
- When conducting security assessments that involve performing dns tunneling detection
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Familiarity with security operations concepts and tools
- Access to 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.
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())
# Legitimate domain: low entropy (~3.0-3.5)
print(shannon_entropy("www.google.com"))
# DNS tunnel: high entropy (~4.0-5.0)
print(shannon_entropy("aGVsbG8gd29ybGQ.tunnel.example.com"))
Key detection indicators:
- High Shannon entropy in query names (> 3.5 for subdomain labels)
- Unusually long query names (> 50 characters)
- High volume of TXT record requests to a single domain
- High unique subdomain count per parent domain
- Non-standard character distribution in labels
Examples
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})")
अक्सर पूछे जाने वाले सवाल
DNS टनलिंग क्या है?
यह एक तरीका है जिसमें डेटा को सामान्य DNS अनुरोधों के अंदर छिपाया जाता है, ताकि फ़ायरवॉल या दूसरी सिक्योरिटी बाधाओं को पार किया जा सके।
यहाँ एंट्रॉपी क्यों महत्वपूर्ण है?
सामान्य DNS अनुरोधों में एक हद तक पूर्वानुमेयता होती है। छिपाया गया डेटा ज़्यादा रैंडम होता है, इसलिए उसकी एंट्रॉपी ज़्यादा आती है।
क्या इसे इस्तेमाल करने के लिए नेटवर्क एक्सपर्ट होना ज़रूरी है?
नहीं, लेकिन नेटवर्क सिक्योरिटी की बुनियादी समझ होने से नतीजों को समझना आसान हो जाता है।
जानकारी
लेखक का मूल विवरण
Detects DNS tunneling by computing Shannon entropy of DNS query names, analyzing query length distributions, inspecting 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 when hunting for data exfiltration. '
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #8221
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।