malware-sideload-lateral-triage-defensive
Task
One synthetic intrusion is staged across three linked phases for a single hidden campaign variant. The evidence may span more than one host:
/app/phase1/case: malware detonation artifacts/app/phase2/corpus: malicious and benign telemetry bundles for rule authoring/app/phase3/evidence: incident-response and forensic evidence
Write all four outputs. They must describe the SAME campaign and stay mutually consistent with the selected variant:
/app/output/phase1_malware_report.json/app/output/phase2_detection_rule.yaml/app/output/phase3_incident_report.json/app/output/plan.md
Reasoning record
Before and as you work, maintain /app/output/plan.md with the artifact
families you correlated, the benign or decoy explanations you ruled out, the
behavioral detection strategy you selected, and how you checked the three
submitted artifacts against the evidence and schemas.
Phase 1: Malware Analysis
Read /app/phase1/case and write /app/output/phase1_malware_report.json as a
JSON object with these exact top-level fields:
sample_id: stringmalware_category: one ofransomware,wiper,rat,backdoor,infostealer,banker,loader,dropperrisk_level: one ofLOW,MEDIUM,HIGH,CRITICALmalicious_capabilities: array of objectsprimary_destination: objectnotable_iocs: objectsummary: string
Each capability entry must contain:
name: one ofsystem_fingerprinting,dll_sideload_execution,process_injection,persistence_scheduled_task,persistence_run_key,lateral_movement_smb,command_and_control_https,dns_beaconing,archive_staging,browser_credential_access,ransomware_encryption,data_destruction,service_installationattck_ids: array of MITRE ATT&CK technique IDsevidence_event_ids: array of exact event IDs from the case files
primary_destination must contain:
protocolhost
notable_iocs must contain:
domains: array of domain stringsdropped_files: array of file pathsscheduled_task: stringrun_key: string, ornullif no Run-key persistence is presentransom_note: string filename, ornullif no ransom note is actually written
Classify the sample by what it actually does, not by what its embedded strings, file names, or file extensions claim. Report only capabilities the artifacts genuinely support, and cite support from more than one artifact family where it exists. Do not report a capability that is only suggested by a decoy string or by benign background activity. Some reached hosts are delivery or decoy infrastructure and are not the command-and-control destination.
Phase 2: Detection Engineering
Read /app/phase2/corpus and /app/phase2/rule_schema.md. Write a Sigma-like
YAML rule to /app/output/phase2_detection_rule.yaml.
The verifier supports a small subset:
- direct equality:
field: value - substring match:
field|contains: value - all substrings present:
field|contains|all: [a, b] - suffix match:
field|endswith: value
The detection block must define one or more named selections plus a
condition. The condition may use only selection names with and, or, and
parentheses. A telemetry bundle counts as detected when the bundle-level
condition evaluates to true.
Your rule MUST match every malicious bundle for the selected variant and MUST NOT match any benign bundle. Some malicious bundles rotate infrastructure (a different signed-binary name, payload path, C2 domain, URI, or user-agent) but keep identical behavior. Some benign bundles look superficially similar to the attack (a legitimate signed updater loading its own DLL, an unsigned plug-in loaded by a benign agent, large benign uploads, authorized scanner traffic). Prefer stable behavioral features over a single hard-coded indicator.
Phase 3: Incident Response, Triage, and Forensics
Read /app/phase3/evidence and write /app/output/phase3_incident_report.json
as a JSON object with these exact top-level fields:
sample_id: stringincident_id: stringaffected_host: the PATIENT-ZERO endpoint that was first compromised in this campaignaffected_user: the user actually compromised on patient zerolateral_movement_target: hostname the attacker pivoted to, ornullif noneinitial_vector: short normalized label such asmalicious_iso_lnk,malicious_word_macro,malicious_excel_macro, orrdp_brute_forcefirst_seen_event_id: stringattacker_sequence: array of exact event IDs in GLOBAL chronological attack orderconfirmed_iocs: objectcontainment_actions: array of action stringseradication_actions: array of action stringssummary: string
confirmed_iocs must contain:
domains: array of domain stringsdropped_files: array of file pathsscheduled_task: stringrun_key: string, ornullservice_name: string, ornull
Definitions (read carefully):
- A "dropped file" is a payload the attack chain wrote to disk. The delivery document, mounted-ISO LNK, or downloaded lure is not a dropped file.
attacker_sequencemust EXCLUDE benign background activity, authorized security-scanning or IT-administration activity, unrelated users/hosts, and post-incident recovery steps. If the attacker pivoted to a second host, include that host's malicious events in their correct GLOBAL chronological position (merge across hosts by timestamp).
Use exact action strings in these formats (paths and names are compared case-insensitively):
isolate_host:<hostname>block_domain:<domain>delete_file:<path>delete_task:<task_name>delete_service:<service_name>delete_run_key:<run_key_name>
Containment actions should stop spread or command-and-control quickly: isolate every compromised host and block the confirmed C2/delivery domains. Eradication actions should remove the confirmed footholds and dropped payloads on every compromised host. Do not isolate or block assets that are not actually part of the intrusion.
Environment
- Read-only artifacts live only under
/app/phase1,/app/phase2, and/app/phase3. - Write final answers only under
/app/output. - You may use
/testbedas scratch space for helper scripts or notes. - Python 3 is available in the container.
Constraints
- Base every answer only on the provided artifacts. Do not use the internet or external lookups.
- Use exact event IDs that appear in the current variant. Do not invent evidence.
- Only report capabilities, indicators, and attack steps actually supported by the artifacts; exclude routine benign background activity and unsupported string-only hints.
- Do not modify the case, corpus, evidence, or report source artifacts.
- When support spans more than one artifact type, cite evidence from more than one source instead of relying on a single weak clue.
- Keep summaries concise and analyst-facing.