glasswing-supply-chain-triage-defensive

incident-responseanalysismalware-analysisdetection-engineeringincident-responseforensicslinuxsupply-chainartifact-groundedmulti-phasephase-independent

Multi-Phase Defensive Analysis Task

One synthetic GLASSWING campaign is represented across three independent artifact sets. Each phase is solved and scored on its own: a phase verifier reads only that phase's artifacts and that phase's output file. There is no cross-phase gate — a wrong answer in one phase cannot fail another. The only thing shared across phases is the campaign label; do not assume hosts, users, file paths, indicators, techniques, or timelines carry over between phases. Solve each phase from its own evidence.

Input artifacts are available at:

/app/phase1/case/              malware-analysis detonation artifacts (incl. advisory_context.json)
/app/phase2/corpus/            detection-rule evaluation bundles
/app/phase2/rule_schema.md     allowed detection-rule schema
/app/phase3/evidence/          incident-response evidence (incl. advisory_context.json)

Write these output files (create /app/output/ if needed):

/app/output/phase1_malware_report.json
/app/output/phase2_detection_rule.yaml
/app/output/phase3_incident_report.json
/app/output/plan.md

All required evidence is local to the listed directories. Do not use internet lookups or long-running monitoring commands. Once the four files are written, the task is complete.

The artifacts contain no benign, malicious, relevance, per-event technique, or per-event order labels, and no malicious/benign indicator split. Maliciousness, technique IDs, attack order (reconstruct from timestamps and causal dependencies), which capabilities actually executed and succeeded, which infrastructure is active, and which advisories apply must all be inferred from behavior.

Process Plan

plan.md must briefly describe, per phase: the artifacts you inspected, the behaviors you inferred, your detection-rule strategy and how it avoids benign activity, your incident reconstruction and remediation strategy, and which advisory/CVE or indicator candidates you rejected as decoys and why (plan only — do not list rejected items in the JSON outputs).

Phase 1 Output — phase1_malware_report.json

{
  "malware_category": "infostealer|loader|rat|botnet|miner|ransomware|wiper|proxy|dropper",
  "operational_objective": "data_theft|credential_theft|access_establishment|monetization|destruction|ransomware_preparation",
  "operational_role": "collection_exfiltration_implant|credential_access_implant|loader_dropper|interactive_backdoor|botnet_agent|proxy_node|ransomware_preparation_implant|destruction_implant",
  "capabilities": [
    {"name": "capability_name", "attck_ids": ["T9999.999"], "evidence_event_ids": ["event-id"]}
  ],
  "nonoperational_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": ["/path/file"], "tasks": ["TaskName"], "hosts": ["HOST-01"]
  },
  "related_cves": [
    {"cve_id": "CVE-YYYY-NNNNN", "role": "persistence_enablement",
     "vulnerability_class": "short class", "evidence_event_ids": ["event-id"]}
  ]
}
  • capabilities are behaviors that executed and succeeded. nonoperational_capabilities are behaviors that are implemented but did not operate (disabled by configuration, dead/empty code, decoy, or attempted-but-failed). Do not place a non-operational behavior in capabilities.
  • Map each behavior to its most specific ATT&CK sub-technique; a parent-only ID receives only partial credit. Do not over-report: techniques not supported by evidence lower precision and can fail the phase.
  • notable_iocs must contain only case-relevant, evidence-backed indicators and affected entities. The hosts field identifies the affected detonation host; network destinations, files, and tasks must be attacker-controlled or attacker-created. Reporting a benign item (e.g. a configured-but-unused channel, historical infrastructure, a staged-but-not-sent archive, or a backup artifact) fails the phase.
  • Allowed related_cves.role value for a verified active CVE in this case: persistence_enablement. Do not include decoy/rejected/historical advisories or any role containing decoy, reject, historical, or background. Document rejected CVEs only in plan.md.

Phase 2 Output — phase2_detection_rule.yaml

Follow /app/phase2/rule_schema.md. Small Sigma-like YAML with these top-level keys only:

title: Rule title
id: rule-id
status: experimental
detection:
  selection:
    field: value
  condition: selection
fields:
  - event_id
falsepositives:
  - expected benign explanation
level: high

Use only the operators and selection fields allowed by the schema. The rule must fire on the campaign bundles and avoid the unrelated bundles. Single indicators, single tools, single events, and incomplete chains are insufficient; identify the behavior that distinguishes the completed campaign activity from benign look-alikes.

Phase 3 Output — phase3_incident_report.json

{
  "victim": {"host": "HOST-01", "user": "user"},
  "entry_vector": "T9999.999",
  "attack_sequence": [
    {"order": 1, "technique": "T9999.999", "summary": "short grounded step", "evidence_event_ids": ["event-id"]}
  ],
  "confirmed_iocs": {
    "domains": ["example.invalid"], "ipv4": ["192.0.2.10"], "files": ["/path/file"],
    "tasks": ["TaskName"], "hosts": ["HOST-01"], "accounts": ["user"]
  },
  "related_cves": [
    {"cve_id": "CVE-YYYY-NNNNN", "role": "persistence_enablement", "evidence_event_ids": ["event-id"]}
  ],
  "remediation_actions": [
    {"action": "allowed_action_name", "target": "exact target", "reason": "short reason"}
  ]
}
  • attack_sequence must be ordered by causal dependency (naive timestamp sort across systems with clock skew can mislead). entry_vector is the first step.
  • confirmed_iocs must contain only active, evidence-backed campaign indicators. Historical infrastructure, sinkholed/never-contacted/reset destinations, decoy hosts/accounts, and unrelated incidents must be excluded.
  • Allowed remediation_actions.action values: isolate_host, disable_scheduled_task, delete_file, block_domain, block_ip, reset_account_password, revoke_cloud_credential. Targets must be confirmed-malicious artifacts only; do not remediate benign hosts/accounts.
  • Allowed related_cves.role value: persistence_enablement. Document rejected CVEs only in plan.md.

Rules

  1. Include only behaviors and indicators supported by the artifacts.
  2. Do not include benign or routine administrative activity.
  3. Use exact event IDs from the artifacts wherever evidence is requested, including CVE evidence.
  4. Use the most specific ATT&CK technique ID supported by the evidence.
  5. Omit advisory decoys, historical/background CVEs, and unverified candidates from related_cves entirely. Document rejected CVEs only in plan.md.
  6. Phases are independent; do not carry conclusions from one phase into another.
  7. JSON/YAML output files must contain only the required JSON/YAML content, not Markdown.