Skip to main content

hunting-for-dns-based-persistence

Hunts for DNS-based persistence mechanisms such as DNS hijacking, dangling CNAME records enabling subdomain takeover, wildcard DNS abuse, and unauthorized zone or NS delegation changes, using passive DNS history (SecurityTrails API), Route53/Azure DNS/Cloudflare audit logs, and zone transfer analysis. Use when investigating suspected DNS hijacking or subdomain takeover, or when threat hunting for DNS record tampering that persists across credential rotations and endpoint reimaging.

설치로 이동

소스 정보

저장소
mukul975/Anthropic-Cybersecurity-Skills
최근 소스 활동
2026년 8월 2일 16:32
감지된 SKILL.md 언어
영어
스타
32,899
포크
3,975

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
hunting-for-dns-based-persistence
description
Hunts for DNS-based persistence mechanisms such as DNS hijacking, dangling CNAME records enabling subdomain takeover, wildcard DNS abuse, and unauthorized zone or NS delegation changes, using passive DNS history (SecurityTrails API), Route53/Azure DNS/Cloudflare audit logs, and zone transfer analysis. Use when investigating suspected DNS hijacking or subdomain takeover, or when threat hunting for DNS record tampering that persists across credential rotations and endpoint reimaging.
domain
cybersecurity
subdomain
threat-hunting
tags
["dns","persistence","threat-hunting","passive-dns","dns-hijacking","subdomain-takeover","securitytrails"]
version
1.0
author
mahipal
license
Apache-2.0
nist_csf
["DE.CM-01","DE.AE-02","DE.AE-07","ID.RA-05"]
mitre_attack
["T1046","T1057","T1082","T1083","T1547"]
# Hunting for DNS-based Persistence ## Overview Attackers establish DNS-based persistence by hijacking DNS records, creating unauthorized subdomains, abusing wildcard DNS entries, or modifying NS delegations to redirect traffic through attacker-controlled infrastructure. These techniques survive credential rotations, endpoint reimaging, and traditional remediation because DNS changes persist independently of compromised hosts. Detection requires passive DNS historical analysis, zone file auditing, and monitoring for unauthorized record modifications. This skill covers hunting methodologies using SecurityTrails passive DNS API, DNS audit logs from Route53/Azure DNS/Cloudflare, and zone transfer analysis. ## When to Use - When investigating security incidents that require hunting for dns based persistence - 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 ## Prerequisites - SecurityTrails API key (free tier provides 50 queries/month) - Access to DNS provider audit logs (Route53, Azure DNS, Cloudflare, or on-premises DNS) - Python 3.9+ with requests library - DNS zone file access or AXFR capability for internal zones - Historical DNS baseline for comparison ## Steps ### Step 1: Baseline DNS Records Export current DNS zone records and establish baseline for all authorized A, AAAA, CNAME, MX, NS, and TXT records. ### Step 2: Query Passive DNS History Use SecurityTrails API to retrieve historical DNS records and identify unauthorized changes, new subdomains, and CNAME records pointing to decommissioned services (dangling CNAMEs). ### Step 3: Detect Anomalies Compare current records against baseline to identify unauthorized modifications, wildcard records that resolve all subdomains, NS delegation changes, and MX record hijacking. ### Step 4: Investigate Findings Correlate DNS anomalies with threat intelligence feeds, check resolution targets against known malicious infrastructure, and validate record ownership. ## Expected Output JSON report listing DNS anomalies with record type, historical changes, risk severity, and remediation recommendations for each finding.
GitHub에서 보기