malware-sideload-lateral-triage-defensive

incident-responseanalysismalware-analysisdetection-engineeringincident-responseforensicswindowsdll-sideloadinglateral-movementartifact-groundedmulti-phasemulti-host

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:

  1. /app/output/phase1_malware_report.json
  2. /app/output/phase2_detection_rule.yaml
  3. /app/output/phase3_incident_report.json
  4. /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: string
  • malware_category: one of ransomware, wiper, rat, backdoor, infostealer, banker, loader, dropper
  • risk_level: one of LOW, MEDIUM, HIGH, CRITICAL
  • malicious_capabilities: array of objects
  • primary_destination: object
  • notable_iocs: object
  • summary: string

Each capability entry must contain:

  • name: one of system_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_installation
  • attck_ids: array of MITRE ATT&CK technique IDs
  • evidence_event_ids: array of exact event IDs from the case files

primary_destination must contain:

  • protocol
  • host

notable_iocs must contain:

  • domains: array of domain strings
  • dropped_files: array of file paths
  • scheduled_task: string
  • run_key: string, or null if no Run-key persistence is present
  • ransom_note: string filename, or null if 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: string
  • incident_id: string
  • affected_host: the PATIENT-ZERO endpoint that was first compromised in this campaign
  • affected_user: the user actually compromised on patient zero
  • lateral_movement_target: hostname the attacker pivoted to, or null if none
  • initial_vector: short normalized label such as malicious_iso_lnk, malicious_word_macro, malicious_excel_macro, or rdp_brute_force
  • first_seen_event_id: string
  • attacker_sequence: array of exact event IDs in GLOBAL chronological attack order
  • confirmed_iocs: object
  • containment_actions: array of action strings
  • eradication_actions: array of action strings
  • summary: string

confirmed_iocs must contain:

  • domains: array of domain strings
  • dropped_files: array of file paths
  • scheduled_task: string
  • run_key: string, or null
  • service_name: string, or null

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_sequence must 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 /testbed as scratch space for helper scripts or notes.
  • Python 3 is available in the container.

Constraints

  1. Base every answer only on the provided artifacts. Do not use the internet or external lookups.
  2. Use exact event IDs that appear in the current variant. Do not invent evidence.
  3. Only report capabilities, indicators, and attack steps actually supported by the artifacts; exclude routine benign background activity and unsupported string-only hints.
  4. Do not modify the case, corpus, evidence, or report source artifacts.
  5. When support spans more than one artifact type, cite evidence from more than one source instead of relying on a single weak clue.
  6. Keep summaries concise and analyst-facing.