A completed, evidence-driven DNS case file that follows controlled DGA/high-NXDOMAIN behavior from telemetry and Detection v1.0 through SOC investigation, human-approved IR containment, verification, and safe reset.
๐๏ธ Infrastructure ยท ๐ Scenario 01 ยท ๐งฌ Scenario 02 ยท ๐ Scenario 03 ยท ๐ฐ๏ธ Scenario 04
Scenario 02 is a completed, evidence-backed DNS defense exercise built around fresh DGA-style name generation, sustained NXDOMAIN behavior, live Splunk detection, Isolation Forest anomaly scoring, AI-assisted triage, independent SOC investigation, and human-approved DNS sinkhole containment.
The exercise used real DNS requests through the lab's normal resolver path. Operator ground truth was kept separate from the SOC Analyst and Incident Responder until their decisions were recorded. The exercise focused on DGA/high-NXDOMAIN DNS behavior and did not claim malware or endpoint compromise.
Core question: can the defender detect and investigate generated-looking DNS behavior, preserve attribution limits, choose a proportionate response, and prove that the response changed the network outcome?
| ๐ Detection | ๐ง ML | ๐ค AI | ๐ต๏ธ SOC | ๐ก๏ธ IR | ๐ฏ Response |
|---|---|---|---|---|---|
| Detection v1.0 fired across five consecutive one-minute windows | Five corresponding windows available as ANOMALY second-opinion evidence |
Structured summary reviewed against raw DNS | INCONCLUSIVE โ escalation warranted |
Independent validation completed | Narrow RPZ redirect to 10.50.30.30 verified, then safely reset |
418 replies ยท 409 unique qnames ยท 408 NXDOMAIN ยท 97.61% NXDOMAIN
NXDOMAIN โ RPZ โ 10.50.30.30 โ Safe Reset โ NXDOMAIN
| Workstream | Status | Owner |
|---|---|---|
| Defender DNS infrastructure Build up | โ Complete | Abdul-Rehman |
| ML Engineering + official DGA execution | โ Complete | Musfira |
| Detection Engineering + Dashboard + AI | โ Complete | Lubaba |
| SOC investigation + IR handoff | โ Complete | Sonia |
| IR validation + response decision | โ Complete | Abdul-Rehman |
| RPZ containment + verification + safe reset | โ Validated | Abdul-Rehman |
| Ground-truth comparison / closeout | โ Complete | Team |
flowchart TB
%% ==========================================
%% LAYER 1 โ DNS ACTIVITY + TELEMETRY
%% ==========================================
subgraph DNS["๐ 1 ยท DNS Activity & Telemetry"]
direction LR
V["๐ป Victim<br/>dns-soc-victim01<br/>10.50.30.20"]
R["๐ Defender Resolver<br/>dns-soc-resolver01<br/>10.50.30.10<br/>Unbound"]
S["๐ข Splunk Enterprise<br/>index: dns_soc_dns"]
V -->|"System DNS"| R
R -->|"Query + Reply Telemetry"| S
end
%% ==========================================
%% LAYER 2 โ DETECTION + ANALYSIS
%% ==========================================
subgraph ANALYTICS["๐ง 2 ยท Detection & Analysis"]
direction LR
D["๐ก๏ธ Detection<br/>v1.0"]
M["๐ Isolation Forest<br/>dns_soc_ml"]
A["๐ค AI Assist<br/>dns_soc_ai"]
SOC["๐ SOC Analyst<br/>Sonia"]
D --> SOC
D --> A
A --> SOC
M --> SOC
end
S --> D
S --> M
%% ==========================================
%% LAYER 3 โ RESPONSE + VERIFICATION
%% ==========================================
subgraph RESPONSE["๐ก๏ธ 3 ยท Response & DNS Control"]
direction LR
IR["๐จ Incident Response<br/>Abdul-Rehman"]
RPZ["๐ Human-Approved<br/>RPZ Rule"]
H["๐ฏ DNS Sinkhole<br/>dns-soc-sinkhole01<br/>10.50.30.30"]
IR --> RPZ
RPZ --> H
end
SOC -->|"Evidence-Backed Handoff"| IR
%% Defender-controlled response path
RPZ -. "Policy Applied" .-> R
R -->|"Controlled Namespace"| H
%% ==========================================
%% STYLING
%% ==========================================
classDef endpoint fill:#172554,stroke:#60a5fa,stroke-width:2px,color:#ffffff;
classDef dnsnode fill:#083344,stroke:#22d3ee,stroke-width:2px,color:#ffffff;
classDef splunk fill:#052e16,stroke:#4ade80,stroke-width:2px,color:#ffffff;
classDef detection fill:#3b0764,stroke:#c084fc,stroke-width:2px,color:#ffffff;
classDef ml fill:#312e81,stroke:#818cf8,stroke-width:2px,color:#ffffff;
classDef ai fill:#581c87,stroke:#e879f9,stroke-width:2px,color:#ffffff;
classDef analyst fill:#422006,stroke:#fbbf24,stroke-width:2px,color:#ffffff;
classDef ir fill:#450a0a,stroke:#f87171,stroke-width:2px,color:#ffffff;
classDef policy fill:#3f2a0a,stroke:#f59e0b,stroke-width:2px,color:#ffffff;
classDef sinkhole fill:#052e16,stroke:#22c55e,stroke-width:3px,color:#ffffff;
class V endpoint;
class R dnsnode;
class S splunk;
class D detection;
class M ml;
class A ai;
class SOC analyst;
class IR ir;
class RPZ policy;
class H sinkhole;
style DNS fill:#0d1117,stroke:#22d3ee,stroke-width:1px
style ANALYTICS fill:#0d1117,stroke:#a78bfa,stroke-width:1px
style RESPONSE fill:#0d1117,stroke:#22c55e,stroke-width:1px
linkStyle default stroke:#94a3b8,stroke-width:2px
The response path was deliberately narrow: the observed Scenario 02 namespace was redirected; the victim IP was not globally blocked.
Musfira completed a compact pre-flight check covering victim health, UTC readiness, the configured resolver path, the deployed DGA generator, RPZ safe state, and private ground-truth readiness. Detection v1.0, ML, and the response policy were not tuned for the live run.
The pre-deployed generator ran unchanged on dns-soc-victim01:
Generator: /opt/dns-soc-ml-generators/dga_dns.py
SHA256: 1dc0ce32d964cd2e70981e502e341d6b4ee66934cc79ea188e69bd4e3f8f51c4
Start: 2026-08-26T06:37:10.787620+00:00
End: 2026-08-26T06:42:11.129575+00:00
Exit: 0
The controlled namespace was:
<generated-label>.dga-test.soclab.abdul4rehman215.tech
The operator did not inspect Splunk, Detection v1.0, ML, AI, or the dashboard to steer the outcome.
๐จ 3. Lubaba's Frozen Detection Engineering Pipeline Surfaced the Official Run
Before the official exercise, Lubaba had frozen Detection v1.0, the Dashboard Studio investigation views, scheduled alerting, validation searches, and the Scenario 02 AI evidence contract. None of those defender-side components were tuned using the official live run.
Detection v1.0 remained unchanged:
query_count >= 20
unique_qnames >= 15
nxdomain_ratio >= 0.75
During the official window, the unchanged Detection SPL matched five consecutive one-minute client windows from 06:37 through 06:41 UTC.
The dashboard and AI path then supplied investigation context to the SOC Analyst; neither replaced the analyst's final judgement.
๐ 4. Sonia Rebuilt the Case from Raw DNS
Sonia did not treat the alert as a verdict. She moved back into raw Unbound replies, measured the qname pattern, compared the same client with its historical baseline, checked recurrence, scoped the affected client, reviewed ML only as a second opinion, and challenged the AI summary against Splunk evidence.
The exact investigated five-minute window contained:
| Metric | Result |
|---|---|
| DNS replies | 418 |
| Unique qnames | 409 |
| NXDOMAIN replies | 408 |
| NXDOMAIN ratio | 97.61% |
| Resolver-visible client | 10.50.30.20 |
| Detection windows | 5 consecutive minutes |
| ML result | 5 / 5 ANOMALY |
Her final disposition was deliberately cautious:
INCONCLUSIVE โ escalation warranted
The DNS behavior was real and highly abnormal, but DNS did not prove a process, malware identity, endpoint compromise, user identity or malicious intent.
Abdul-Rehman did not simply accept the SOC handoff. IR independently reproduced the core counts, the five one-minute windows, the generated-looking qname structure, the one-client resolver-visible scope, historical recurrence, and the absence of useful process-attribution telemetry.
This produced an IR classification of:
Confirmed recurrent abnormal DGA-like / high-NXDOMAIN DNS behavior.
The attribution limits remained intact.
IR selected one defensible qname already observed in resolver telemetry:
ywvuacnec7gmul193uc.dga-test.soclab.abdul4rehman215.tech
Before containment, the resolver returned NXDOMAIN.
After explicit human approval, the Scenario 02 wildcard was enforced through Unbound RPZ. The same qname then returned:
NOERROR
A 10.50.30.30
The sinkhole returned HTTP 200, unrelated AWS DNS continued resolving normally, and Splunk preserved the before/after NXDOMAIN โ NOERROR change.
Containment was not considered complete until RPZ was restored to the documented safe/non-enforcing state. The selected qname returned to NXDOMAIN, Unbound remained healthy, and normal DNS continued to resolve.
Final IR status: CLOSED โ controlled containment validated and safe reset completed.
Engineering โ Execution โ Investigation โ Response โ Verification
The repository preserves the complete evidence chain from ML and Detection Engineering, through a fresh controlled exercise, into independent SOC investigation, human-approved IR containment, verification, and the final safe reset.
๐ง Engineer โ ๐ ๏ธ Detect โ ๐ฏ Execute โ ๐ Investigate โ ๐ก๏ธ Respond โ โ Verify
ML evidence note: the 6 / 6 result above belongs to the engineering-validation run. During the official exercise, the SOC reviewed 5 / 5 corresponding one-minute windows as
ANOMALY. These are separate validation contexts.
Explore: ๐ ML Engineering ยท ๐ง ML Workspace ยท โ๏ธ Live ML Operations
Explore: ๐ ๏ธ Detection Engineering ยท ๐ Dashboard ยท ๐ค AI Mapping
Explore: ๐ฏ Adversary Workspace ยท ๐ Operator Story ยท ๐ญ Exercise Protocol
Explore: ๐ SOC Workspace ยท ๐งพ SOC Evidence E01โE13 ยท ๐ Full Investigation
Before containment: the selected observed qname returned NXDOMAIN.
|
After human approval: the same qname returned NOERROR and was redirected to 10.50.30.30.
|
Explore: ๐ก๏ธ IR Workspace ยท ๐งพ IR Evidence E01โE21 ยท ๐ Final IR Report
Detection was only the beginning. The scenario closed when containment was proven, normal DNS remained safe, and the resolver returned to its documented safe state.
Scenario 02 deliberately uses different evidence layers for different jobs:
| Layer | Job | What it does not do |
|---|---|---|
| Detection v1.0 | Explainable production trigger | Does not prove malware |
| Isolation Forest | Anomaly second opinion | Does not decide incident disposition |
| AI | Summarizes structured evidence | Does not authorize containment |
| SOC Analyst | Investigates and interprets evidence | Does not invent missing attribution |
| Incident Response | Validates risk and executes approved response | Does not treat an alert as approval |
The live ML scorer also demonstrated an important limitation: benign bursts can be anomalous. That is why ML remains supporting evidence rather than the primary verdict.
| Framework | Mapping |
|---|---|
| MITRE ATT&CK | T1568.002 โ Dynamic Resolution: Domain Generation Algorithms |
| Cyber Kill Chain context | Command & Control behavior context |
| Network focus | DNS query/reply behavior, client timing, qname uniqueness, NXDOMAIN rate, resolver policy |
The mapping describes the DGA behavior under study. The repository does not extend that mapping into unsupported endpoint or malware attribution.
| Role | Contributor | Scenario 02 contribution |
|---|---|---|
| Project Lead / Adversary + ML Engineer | Musfira | Prepared the run boundary, executed fresh DGA behavior without defender feedback, preserved ground truth, and engineered the Isolation Forest support path |
| Detection Engineer / AI Integrator | Lubaba | Baselined resolver behavior, built Detection v1.0, Dashboard Studio investigation views, validation searches, scheduled alerting, and the Scenario 02 AI evidence contract |
| SOC Analyst | Sonia | Reconstructed the alert from raw DNS, measured and baselined the behavior, scoped recurrence, validated ML/AI, documented 5W1H, and produced the IR handoff |
| Incident Responder / Defender | Abdul-Rehman | Independently reproduced the evidence, preserved attribution limits, executed approved RPZ containment, verified the sinkhole and normal DNS, and restored the resolver safely |
| Area | Start here |
|---|---|
| Full scenario in one document | SCENARIO-02-EXECUTION.md |
| Full operational runbook | SCENARIO-RUNBOOK.md |
| ML Engineering | ml/ML-ENGINEERING.md |
| Live ML operations | ml/operations/README.md |
| Detection Engineering | detection-engineering/DETECTION-ENGINEERING.md |
| Adversary / operator story | attacker/PROJECT-LEAD-ADVERSARY.md |
| SOC investigation | soc/SOC-ANALYST-INVESTIGATION.md |
| SOC โ IR handoff | soc/SOC-TO-IR-HANDOFF.md |
| Incident Response | ir/INCIDENT-RESPONSE.md |
| IR final report | ir/IR-FINAL-REPORT.md |
| Final ground-truth comparison | exercise/final-comparison.md |
| Master evidence map | evidence/README.md |
Scenario 02 is complete because the repository now preserves the full chain:
Fresh operator activity
โ real resolver telemetry
โ frozen detection
โ ML / AI assistance
โ independent SOC investigation
โ evidence-backed IR handoff
โ independent IR validation
โ explicit human approval
โ RPZ containment
โ sinkhole / normal-DNS / Splunk verification
โ safe reset
โ final ground-truth comparison
The strongest outcome is not simply that an alert fired. It is that each role reached its conclusion from the evidence available to that role, and the final response was technically verified before the environment was restored.
Build the telemetry. Detect the behavior. Investigate the evidence. Verify the response.
๐๏ธ Infrastructure ยท ๐ SOC Workspace ยท ๐ก๏ธ IR Workspace ยท ๐งพ Evidence Center ยท ๐ญ Final Comparison ยท โฌ Back to top
DNSentinel Lab ยท Scenario 02 ยท Evidence-first DNS security engineering

















