본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트35k · #8221

performing-dns-tunneling-detection

하는 일

이 도구는 데이터를 숨기는 데 사용될 수 있는 DNS 터널링 같은 의심스러운 활동을 찾기 위해 DNS 트래픽을 분석합니다. DNS 요청의 이름, 길이, 기타 세부 정보를 확인해 비정상적인 행동을 식별합니다.

사용하는 경우

  • ✓잠재적인 데이터 유출을 조사할 때.
  • ✓숨겨진 터널이 있는지 보안 테스트를 할 때.
  • ✓악의적인 활동을 찾기 위해 네트워크 트래픽을 분석할 때.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-dns-tunneling-detection/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-dns-tunneling-detection/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 DNS 트래픽 파일을 분석하고 DNS 터널링의 징후가 있는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 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:

  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

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. '

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#8221
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬