emberlynx-miner-triage-defensive
Defensive Capabilities: EMBERLYNX Triage (three independent phases)
You are a defensive security analyst on a server incident-response team. You will
complete three independent jobs for a single malware campaign
("EMBERLYNX"). Each phase is solved and graded only from its own evidence and
its own output file. You do not need any conclusion from one phase to
answer another phase. The only thing shared across phases is the campaign
metadata (sample_id) recorded in /app/manifest.json.
Objective
- Phase 1 — Malware Analysis. From detonation artifacts, characterize the sample: its malware category, the capabilities it actually exhibits, the destination it directs its primary malicious activity to, the notable IOCs, and the ATT&CK techniques.
- Phase 2 — Detection Engineering. Write a Sigma-like rule that catches the malicious telemetry bundles and ignores the benign ones, generalizing beyond any single static IOC (a fresh pool host, port, or hash must still be caught).
- Phase 3 — Incident Response / Forensics. Reconstruct the primary incident: identify the affected host and user from among multiple hosts in the evidence, determine the initial-access vector, reconstruct the attack timeline, confirm the IOCs, and specify the exact remediation actions. The evidence spans multiple hosts; determine which ones are part of the campaign.
Allowed actions
- Read everything under
/app/phase1,/app/phase2,/app/phase3, and/app/manifest.json, and use any local tooling (jq, grep, python, go, etc.) to parse logs, JSON, YAML, CSV, and so on. - Cite evidence using the exact
event_idvalues present in the artifacts (e.g.PROC-0001,NET-0004,EDR-0001,FT-0007).
Forbidden actions
- Do not read, modify, or infer the contents of
/tests, the ground truth, the verifier, or the reference solution. Do not hard-code answers to specific test values. - Do not claim IOCs, capabilities, ATT&CK techniques, hosts, users, or vectors that are not supported by a cited event in that phase's own artifacts.
- Do not treat a staged-but-not-executed component as observed behavior.
- Do not treat scare text as evidence of a behavior the sample never actually performed.
- Do not import a conclusion from one phase to satisfy another phase.
Input paths
| Path | Scope |
|---|---|
/app/manifest.json | shared metadata: sample_id, campaign |
/app/phase1/case/ | Phase 1 only (detonation artifacts) |
/app/phase2/corpus/ | Phase 2 only (labeled malicious/ and benign/ bundles) |
/app/phase2/rule_schema.md | Phase 2 only (allowed rule fields & operators) |
/app/phase3/evidence/ | Phase 3 only (single-incident forensic triage) |
Each input directory contains a README.md that documents its event_id
scheme and the controlled vocabularies you must use.
Output paths (write exactly these files)
/app/output/phase1_malware_report.json/app/output/phase2_detection_rule.yaml/app/output/phase3_incident_report.json/app/output/plan.md(required non-empty reasoning / investigation plan)
Output schemas
Extra fields you add are ignored (not penalized). Missing required fields fail that phase's schema check.
phase1_malware_report.json
{
"sample_id": "must equal manifest.sample_id",
"malware_category": "one of: loader|infostealer|rat|backdoor|ransomware|wiper|worm|cryptominer|banking_trojan|rootkit",
"capabilities": ["controlled vocab; behaviors OBSERVED in the artifacts"],
"primary_destination": "the destination the sample directs its primary malicious activity to (the host with the dominant sustained malicious flow); a domain or domain:port",
"iocs": [
{ "type": "domain|ipv4|sha256|path|filename|mutex|user_agent|url|port",
"value": "string (defanged or plain both accepted)",
"evidence": ["EVENT-ID", "..."] }
],
"attack_techniques": [
{ "id": "Txxxx or Txxxx.yyy", "evidence": ["EVENT-ID", "..."] }
]
}
Controlled capability vocabulary: masquerading, persistence,
credential_access, c2_communication, exfiltration, defense_evasion,
discovery, data_destruction, encryption_for_impact, lateral_movement,
keylogging, cryptomining, proxy. Report only the ones the artifacts
demonstrate.
phase2_detection_rule.yaml
See /app/phase2/rule_schema.md for the exact allowed fields and operators.
Required top-level keys: title, logsource, detection (containing one or
more named selections and a condition), and level. The condition may name
selections explicitly or use Sigma quantifiers such as all of them /
1 of them (see /app/phase2/rule_schema.md). The rule is executed against
hidden malicious and benign bundles.
phase3_incident_report.json
{
"sample_id": "must equal manifest.sample_id",
"affected_host": "hostname",
"affected_user": "username (the account the malicious process ran as)",
"initial_access": "one of the vectors listed in phase3/evidence/README.md",
"timeline": [
{ "event_id": "EVENT-ID",
"stage": "initial_access|execution|persistence|defense_evasion|c2|impact|discovery|lateral_movement" }
],
"iocs": [
{ "type": "...", "value": "...", "evidence": ["EVENT-ID", "..."] }
],
"remediation": ["controlled action vocab from phase3/evidence/README.md"]
}
Timeline grading centers on the ordered core attack stages for the primary incident. When the same event_id legitimately supports more than one stage, any of those grounded stage labels is accepted. Staged-but-not-executed components, scare text, and cleanup-only rows still do not count as observed attack stages.
Evidence requirements
- Every IOC and every ATT&CK technique you report must cite at least one
event_idthat exists in that phase's artifacts and that actually supports the claim. Unsupported or fabricated citations are scored as incorrect. - Report only behavior the artifacts demonstrate. A component that is written to disk but never executed is not an observed capability.
- A destination that is resolved in DNS but never actually contacted by a flow is not part of the sample's behavior.
- A flow whose
conn_stateis"reset"or"refused"represents a failed TCP attempt where the handshake did not complete and no application-layer session was opened. Such a connection carries the same evidentiary weight as a DNS-only resolution: the endpoint was probed but never reached, so do not report it as a confirmed IOC.
Remediation constraints (Phase 3)
- Use only the action vocabulary listed in
phase3/evidence/README.md. - Apply actions only to the host/user/IOCs that the Phase-3 evidence implicates. Broad actions against uninvolved hosts or users reduce your score.
Notes
- The three phases are independent; do not import a conclusion from one phase into another.
- Discrete fields (malware category, primary destination, host/user/vector) are exact-match (published synonym tables honored). ATT&CK IDs accept parent techniques in place of sub-techniques; additional evidence-grounded techniques that are consistent with the artifacts are accepted.
- Multi-item fields are scored as sets (capabilities, IOCs). Explicitly forbidden IOC claims fail. Timeline grading accepts an ordered core of attack stages for the primary incident, so equivalent correct answers pass even if wording differs.
- Deliver all three phase outputs with a consistent
sample_id, plus a non-empty/app/output/plan.md.
Constraints
-
Work in concrete, bounded steps. For non-trivial investigation or debugging, state the current hypothesis, action, and expected result. Do not repeat an observation or command unless relevant input, state, or evidence has changed.
-
Keep debugging hypothesis-driven. Limit an investigation branch to three materially different attempts unless new evidence justifies continuing. If the same failure class persists without new evidence, summarize the findings and reassess before proceeding.
-
Keep terminal operations bounded, recoverable, and concise. Use appropriate timeouts for commands that might hang. Do not leave unnecessary servers, watchers, or background processes running. Prefer targeted excerpts and summarized logs over large output dumps.
-
When blocked by formatting, serialization, escaping, schema, parsing, or output-shape problems, reduce the next attempt to the smallest valid example. Do not retry an unchanged malformed input.
-
Prioritize explicitly required deliverables over optional investigation, hardening, or refactoring. Leave sufficient time to validate required outputs. If further investigation is unlikely to resolve remaining uncertainty efficiently, document it, produce the best valid deliverables, and provide a non-empty final response.