Planning Validation & Testing
Inputs:
- Detection logic from Skill 4
- Detection hypothesis from Skill 2
- Available testing infrastructure (lab, prod data, simulation tools)
Workflow steps:
Design positive validation tests - Create malicious behavior simulation plan:
- Atomic tests: Simple command-line reproduction steps
- Tool-based tests: Using Atomic Red Team, Invoke-AtomicRedTeam, Caldera, or similar
- Manual procedures: Step-by-step instructions for lab execution
- Expected telemetry: Exact events/fields that should appear
- Detection trigger criteria: What the rule should match
Design negative validation tests - Create benign behavior test cases:
- Common administrative tasks that resemble attack
- Legitimate tools with similar signatures
- Normal user workflows in target environment
- Expected behavior: Detection should NOT trigger
Plan historical data analysis - If production data available:
- Retrospective query approach (search last 30/60/90 days)
- Baseline false positive rate estimation
- Pattern frequency analysis
- Sample size requirements for statistical confidence
Define evaluation metrics - Establish measurement criteria:
- Precision: True Positives / (True Positives + False Positives)
- Recall: Coverage of known attack variants
- Alert volume: Expected alerts per day/week
- Detection latency: Time from event to alert
- Investigation effort: Average time to triage
Create test execution matrix - Document test scenarios:
| Test ID | Type | Procedure | Expected Result | Pass/Fail Criteria |Plan iterative tuning - Define refinement process:
- Initial deployment mode (monitor-only vs. active alerting)
- Tuning feedback loop (analyst input, FP patterns)
- Threshold adjustment approach
- Documentation of rule changes
Outputs: Validation plan document containing:
- Positive test procedures (malicious simulation)
- Negative test cases (benign scenarios)
- Historical analysis approach
- Evaluation metrics and targets
- Test execution matrix
- Tuning and refinement plan
- Tools and commands for testing
References:
- Atomic Red Team test library
- MITRE ATT&CK Evaluations methodology
- Detection validation frameworks (DeTTECT, ATT&CK Navigator)