GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - DNSentinel-Lab/Scenario-02-DGA: A defender-controlled DGA and high-NXDOMAIN security scenario combining DNS baselining, explainable Splunk detection, anomaly analysis, SOC investigation, and human-approved DNS response.

BranchesTags
Open more actions menu

Latest commit

 

History

117 Commits
117 Commits

Folders and files

NameName
Last commit message
Last commit date
ai
ai
 
 
attacker
attacker
 
 
dashboard
dashboard
 
 
detection-engineering
detection-engineering
 
 
evidence
evidence
 
 
exercise
exercise
 
 
ir
ir
 
 
ml
ml
 
 
screenshots
screenshots
 
 
soc
soc
 
 
spl
spl
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
SCENARIO-02-EXECUTION.md
SCENARIO-02-EXECUTION.md
 
 
SCENARIO-RUNBOOK.md
SCENARIO-RUNBOOK.md
 
 

Repository files navigation

Scenario 02 โ€” DGA + High NXDOMAIN

Scenario 02 workflow animation

Scenario AWS Splunk DNS MITRE ML AI Response


Stars Forks Last Commit Repo Size Issues

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

section divider

๐Ÿงฌ DNSentinel Scenario 02 โ€” DGA + High NXDOMAIN

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?

section divider

๐Ÿ Scenario 02 Closeout Snapshot

๐Ÿ”Ž 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

section divider

๐Ÿšฆ Final Status

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
section divider

๐Ÿ—๏ธ Scenario Architecture

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
Loading

The response path was deliberately narrow: the observed Scenario 02 namespace was redirected; the victim IP was not globally blocked.

section divider

๐ŸŽฌ What Actually Happened

๐ŸงŠ 1. The Environment Was Frozen Before the Run

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.

๐Ÿงฌ 2. One Fresh Official DGA Run Was Executed

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

Official DGA generator completion

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.

๐Ÿ›ก๏ธ 5. Incident Response Independently Reproduced the Evidence

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.

๐ŸŽฏ 6. Human-Approved RPZ Containment Changed the DNS Outcome

IR selected one defensible qname already observed in resolver telemetry:

ywvuacnec7gmul193uc.dga-test.soclab.abdul4rehman215.tech

Before containment, the resolver returned NXDOMAIN.

Pre-containment 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

Post-containment RPZ redirect

The sinkhole returned HTTP 200, unrelated AWS DNS continued resolving normally, and Splunk preserved the before/after NXDOMAIN โ†’ NOERROR change.

โ™ป๏ธ 7. The Resolver Was Returned to Its Safe State

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.

section divider

๐Ÿ“ธ Scenario 02 Evidence Highlights

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 Engineering Evidence Highlights

Scenario 02 ML feature engineering evidence

Feature engineering: 32 controlled benign one-minute windows were transformed into the feature matrix used by Isolation Forest.
Scenario 02 controlled DGA ML validation

Engineering validation: all 6 / 6 controlled DGA validation windows scored as ANOMALY.
Scenario 02 ML results returned to Splunk

Closed ML loop: Isolation Forest results were written back into Splunk under the Scenario 02 ML evidence path.

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

section divider

๐Ÿ› ๏ธ Detection Engineering & AI Evidence Highlights

Scenario 02 DGA investigation dashboard

Investigation surface: Dashboard Studio turns DGA/high-NXDOMAIN behavior into analyst-facing DNS metrics and trends.
Scenario 02 Detection v1.0 final validation

Frozen rule validation: Detection v1.0 successfully separated the controlled DGA pattern using the final production thresholds.
Scenario 02 AI alert evidence contract

AI evidence contract: structured DNS evidence was passed into the AI path without giving AI decision or containment authority.

Explore: ๐Ÿ› ๏ธ Detection Engineering ยท ๐Ÿ“Š Dashboard ยท ๐Ÿค– AI Mapping

section divider

๐ŸŽฏ Official Exercise & Operator Ground Truth

Scenario 02 official DGA execution command

Official execution: the pre-deployed DGA generator was started without defender-side feedback.
Scenario 02 official DGA generator completed

Fresh run completed: the unchanged generator finished successfully inside the frozen Scenario 02 boundary.
Scenario 02 official operator ground truth

Private ground truth: exact execution facts and timing were preserved separately for the final reveal and cross-role comparison.

Explore: ๐ŸŽฏ Adversary Workspace ยท ๐Ÿ“˜ Operator Story ยท ๐ŸŽญ Exercise Protocol

section divider

๐Ÿ”Ž SOC Investigation Evidence Highlights

Scenario 02 SOC qname pattern metrics

Behavior quantified: 418 replies, 409 unique qnames, 408 NXDOMAIN responses, and a 97.61% NXDOMAIN ratio in the investigated five-minute window.
Scenario 02 SOC AI versus human evidence validation

AI challenged by evidence: the analyst compared the generated summary with raw Splunk evidence instead of accepting AI wording as a verdict.
Scenario 02 SOC final resolver-visible client scope

Scope preserved: resolver-visible activity was narrowed to client 10.50.30.20 without inventing process, malware, user, intent, or authorization attribution.

Explore: ๐Ÿ”Ž SOC Workspace ยท ๐Ÿงพ SOC Evidence E01โ€“E13 ยท ๐Ÿ“˜ Full Investigation

section divider

๐Ÿ›ก๏ธ IR, Containment & Verification Evidence Highlights

๐Ÿ”„ The network outcome changed

Scenario 02 pre-containment NXDOMAIN

Before containment: the selected observed qname returned NXDOMAIN.
Scenario 02 post-containment RPZ redirect

After human approval: the same qname returned NOERROR and was redirected to 10.50.30.30.

โœ… Safety and SIEM verification

Scenario 02 normal DNS unaffected after containment

Safety check: unrelated DNS resolution continued normally while the narrow Scenario 02 RPZ policy was active.
Scenario 02 Splunk before and after RPZ

SIEM verification: Splunk preserved the change from pre-containment NXDOMAIN behavior to the RPZ-controlled response.
Scenario 02 safe reset DNS validation

Safe reset proven: after RPZ returned to its documented safe state, the selected qname returned to NXDOMAIN while normal DNS remained healthy.

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.

section divider

๐Ÿง  Detection, ML, AI & Human Judgement

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.

section divider

๐Ÿงญ MITRE ATT&CK & Network Context

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.

section divider

๐Ÿ‘ฅ Team Contributions

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
section divider

๐Ÿ—‚๏ธ Repository Guide

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
section divider

โœ… Completion Gate

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.

section divider

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

DNSentinel Scenario 02 footer

About

A defender-controlled DGA and high-NXDOMAIN security scenario combining DNS baselining, explainable Splunk detection, anomaly analysis, SOC investigation, and human-approved DNS response.

Topics

anomaly-detectionblue-teamcybersecurity-labdetection-engineeringdgadns-securitydns-sinkholeincident-responseisolation-forestmachine-learningmitre-attacknetwork-securitynxdomainrpzsiemsocsplunkt1568-002threat-huntingunbound

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.