shadowledger-ransomware-staging-detection-ir
Multi-Phase Defensive Analysis Task
One synthetic ShadowLedger ransomware staging campaign is represented across three artifact sets.
Phase 2 is independently solvable from /app/phase2/corpus/ and /app/phase2/rule_schema.md.
Phase 1 and Phase 3 each include local advisory/CVE evidence in their own artifact
directories. The final outputs must describe the same campaign consistently — cross-phase
consistency is REQUIRED: a passing result needs all three phases AND consistent outputs across
them (same campaign, indicators, and CVEs).
Input artifacts are available at:
/app/phase1/case/ malware-analysis telemetry
/app/phase1/case/advisory_context.json Phase 1 CVE/advisory evidence
/app/phase2/corpus/ detection-rule evaluation bundles
/app/phase2/rule_schema.md allowed detection-rule schema
/app/phase3/evidence/ incident-response evidence
/app/phase3/evidence/advisory_context.json Phase 3 CVE/advisory evidence
Write these output files:
/app/output/phase1_malware_report.json
/app/output/phase2_detection_rule.yaml
/app/output/phase3_incident_report.json
/app/output/plan.md
Create /app/output/ if it does not exist.
All required evidence is local to the listed artifact directories. Do not use internet lookups or long-running monitoring commands. Once the four required output files are written and internally consistent, the task is complete.
Process Plan
plan.md must briefly describe:
- The artifact sets you inspected for each phase.
- The ransomware-staging behaviors you inferred.
- The detection-rule strategy and how it avoids benign backup/admin activity.
- The incident-response reconstruction and remediation strategy.
- How you checked the three phase outputs for consistency.
- Which advisory/CVE candidates you rejected as decoys and why (plan only — do not list rejected CVEs in the JSON outputs).
Phase 1 Output
phase1_malware_report.json must be valid JSON:
{
"malware_category": "infostealer|loader|rat|ransomware|dropper",
"capabilities": [
{
"name": "capability_name",
"attck_ids": ["T9999"],
"evidence_event_ids": ["event-id"]
}
],
"primary_destination": {
"protocol": "https|dns|smb",
"host": "example.invalid",
"ip": "192.0.2.10"
},
"notable_iocs": {
"domains": ["example.invalid"],
"ipv4": ["192.0.2.10"],
"files": ["C:\\Path\\file.bin"],
"tasks": ["TaskName"],
"hosts": ["HOST-01"]
},
"related_cves": [
{
"cve_id": "CVE-YYYY-NNNN",
"role": "privilege_escalation",
"vulnerability_class": "short class",
"evidence_event_ids": ["event-id"]
}
]
}
Allowed related_cves.role values for verified active CVEs in this case are:
privilege_escalation
Do not include decoy, rejected, historical, or background CVEs in related_cves. Do not
use role values such as decoy_rejected, edge_management_decoy, or any role containing
decoy, reject, historical, or background. Document rejected CVEs only in
plan.md.
Use concise descriptive capability names. Capability scoring is based on the ATT&CK IDs and grounded evidence IDs, not arbitrary exact wording alone. Each named capability still needs to map to the supported ATT&CK behavior and cite the supporting event IDs. List distinct ATT&CK behaviors separately when the evidence supports more than one stage in the same activity chain.
Scoring notes (read carefully):
- Map each behavior to its most specific ATT&CK sub-technique. A parent-only ID
(e.g.
T1059instead of the specific interpreter sub-technique) receives only partial credit. - Do not over-report. Including ATT&CK techniques not supported by the evidence lowers your precision score, and a small set of clearly-unsupported techniques (for example browser credential theft, process injection, LSASS dumping, or DNS command-and-control) will fail the phase. Report only behaviors the artifacts show.
- The artifacts contain no
benign,relevance, per-eventtechnique, or per-eventorderlabels, and no malicious/benign IOC split. Maliciousness, technique IDs, attack order (reconstruct it from event timestamps), which advisories are active, and which observed indicators are malicious must all be inferred from behavior. Reporting a benign indicator (a backup updater domain/IP, a backup log file, a backup task, or an uninvolved host) fails the phase.
Phase 2 Output
phase2_detection_rule.yaml must follow /app/phase2/rule_schema.md. It is a
small Sigma-like YAML document with these required top-level keys:
title: Rule title
id: rule-id
status: experimental
detection:
selection:
field: value
condition: selection
fields:
- event_id
falsepositives:
- expected benign explanation
level: high
Only the operators and fields allowed by the schema may be used. You may include any
non-empty subset of the allowed selection fields if the resulting rule detects campaign
activity bundles and avoids unrelated decoy bundles.
For command_line_contains, use a stable substring that captures the malicious
shadow-copy deletion behavior. Recovery drills may run scoped shadow-copy cleanup
against nearby gateway health-check traffic, so choose selectors that distinguish
campaign staging from benign recovery activity.
Do not rely only on unrelated signals that can co-occur in one decoy bundle; for example,
recovery drills may include shadow-copy cleanup while separate health traffic uses a nearby
gateway. Use enough selectors to identify the campaign staging behavior.
Phase 3 Output
phase3_incident_report.json must be valid JSON:
{
"victim": {
"host": "HOST-01",
"user": "user"
},
"entry_vector": "T9999.999",
"attack_sequence": [
{
"order": 1,
"technique": "T9999",
"summary": "short grounded step",
"evidence_event_ids": ["event-id"]
}
],
"confirmed_iocs": {
"domains": ["example.invalid"],
"ipv4": ["192.0.2.10"],
"files": ["C:\\Path\\file.bin"],
"tasks": ["TaskName"],
"hosts": ["HOST-01"]
},
"related_cves": [
{
"cve_id": "CVE-YYYY-NNNN",
"role": "privilege_escalation",
"evidence_event_ids": ["event-id"]
}
],
"remediation_actions": [
{
"action": "allowed_action_name",
"target": "exact target",
"reason": "short reason"
}
]
}
Rules
- Include only behaviors supported by the artifacts.
- Do not include benign or routine administrative activity.
- Use exact event IDs from the artifacts when evidence is requested, including CVE/advisory evidence.
- Use the most specific ATT&CK technique ID supported by the evidence.
- Include only CVEs supported as active in this case. Omit advisory decoys, background
CVEs, and unverified candidates from
related_cvesentirely — do not list them with any rejection role or negative entry. Document rejected CVEs only inplan.md. - Use the exact active-case
rolesupported by the advisory evidence for each verified CVE. Never mark an active CVE with a decoy or rejection role. - Keep the three phase outputs consistent with the same campaign.
- JSON/YAML output files must contain only the required JSON/YAML content, not Markdown.