mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-24 21:40:58 +03:00
- Add validated mitre_attack frontmatter to all 754 skills (286 distinct techniques), verified against MITRE ATT&CK v19.1 via the official mitreattack-python library: 0 revoked, deprecated, or invalid IDs - Curate precise per-skill technique IDs for forensics, malware-analysis, threat-intel, and red-team skills (e.g. DCSync -> T1003.006, Kerberoasting -> T1558.003, Pass-the-Ticket -> T1550.003) - Reconcile v19.1 tactic restructuring: Defense Evasion split into Stealth (TA0005) and Defense Impairment (TA0112); revoked T1562.* family and T1070.001/.002 remapped to active equivalents (T1685.*) - Normalize word-split tags across 35 skills (remove filename-derived stopword tags, add semantic cybersecurity tags) - Add api-reference.md for 3 skills that were missing it - Update README ATT&CK section with accurate v19.1 tactic distribution
75 lines
2.8 KiB
Markdown
75 lines
2.8 KiB
Markdown
---
|
|
name: hunting-for-dns-based-persistence
|
|
description: Hunt for DNS-based persistence mechanisms including DNS hijacking, dangling
|
|
CNAME records, wildcard DNS abuse, and unauthorized zone modifications using passive
|
|
DNS databases, SecurityTrails API, and DNS audit log analysis.
|
|
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.
|