kBxAc CTF 2026Forensics
claude (evidence)
The bundle holds logs from the compromised host (edge-runner-02), plus exports from three backend services: Atlas (auth), Ledger (MySQL) and Vault (MinIO/S3).
- Competition
kBxAc CTF 2026
- Category
- ForensicsHard · estimated
- Source status
- Source-documented · not platform-verified
- Document
- PDF edition2 min read
Brief
The challenge
- Category
- Forensics / Incident Response
- File
evidence.zip
An evidence bundle from a compromised preview worker. Answer the server's 9 questions to get the flag.
TL;DR
The bundle holds logs from the compromised host (edge-runner-02), plus exports from three backend services: Atlas (auth), Ledger (MySQL) and Vault (MinIO/S3). Reconstructing the attacker's timeline across all of them answers every question. The hardest one, question 1, needed a small parser for the MySQL binary logs.
01
The evidence
evidence/├── collection/edge-runner-02/ # host: audit.log, auth.log, preview-worker.jsonl, timers, file timeline├── exports/atlas-01/ # auth-audit.jsonl├── exports/ledger-01/ # binlog.000001-3, connection-audit.tsv, post-incident.sql├── exports/vault-02/ # object storage access logs└── sensor/ # network capture data02
Attack timeline (2026-10-03, UTC)
12:08:07:
203.0.113.74sends an HTTPS preview request. It runs as jobpreview-7f4a, the only job that used thecompatrenderer. The job spawns a shell (audit.log,ppid=29) that writes~/.ssh/authorized_keysin the same second.12:08:27: the attacker logs in over SSH as
svc_previewwith that key. Within the same second, the host:uses the
preview-readerS3 key to list buckets and downloadreleases/2026.10/profile-r17.yamlfrom MinIO. The traffic was plain HTTP, so it is readable in the sensor data.tries the three tokens from that file against Atlas:
poll-r17androllout-r17are rejected,runtime-r17is accepted.connects to MySQL as
svc_cfg_applyand tries a file write, which fails with error1290(--secure-file-priv).updates settings 10–46 (10–15 twice), labelling every change
updated_by: deploy_agentto blend in with normal deploys.
Afterwards:
config_revisionsis dropped, and the drop is missing from the binary log (logging was likely disabled for the session;svc_cfg_applyhadSESSION_VARIABLES_ADMIN).agent-cache.timeris installed and runscallback_helper.pyevery 20 seconds, beaconing totelemetry-gateway.c-laude.test(203.0.113.91:9443).
03
Question 1: counting the modified settings
The binlogs mix the attacker's changes with legitimate deploys. I wrote binlog.py and rows.py to decode the row events. The incident transaction is thread 13 from 10.60.20.42 at 12:08:27; the legitimate deploy_agent updates come from 10.60.20.55. Filtering on the attacker's thread and comparing with the before/after dumps both give 37 unique settings.
04
Answers
| # | Question | Answer |
|---|---|---|
| 1 | Unique production settings modified | 37 |
| 2 | User-level scheduled systemd unit | agent-cache.timer |
| 3 | Object retrieved from release-assets | releases/2026.10/profile-r17.yaml |
| 4 | External IP behind the anomalous preview | 203.0.113.74 |
| 5 | Credential accepted by Atlas | runtime-r17 |
| 6 | File used for SSH authentication | /home/svc_preview/.ssh/authorized_keys |
| 7 | MySQL user that modified config | svc_cfg_apply |
| 8 | Error code from the file-write test | 1290 |
| 9 | Recurring outbound host | 203.0.113.91 |
ask.py replays these answers to the server, which returns the flag.
Flag
Flag
kBxAc{y35_f1n477y_y0u_f0und_17_r1ght_175_r3l473d_t0_th3_4g3n71c_r4n50mw4r3_4tt4ck}
Source-documented · not platform-verified