Skip to content
Adam Omar Saleh

kBxAc CTF 2026 placeholder badge (unofficial)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 placeholder badge (unofficial)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

Text
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 data

02

Attack timeline (2026-10-03, UTC)

  • 12:08:07: 203.0.113.74 sends an HTTPS preview request. It runs as job preview-7f4a, the only job that used the compat renderer. The job spawns a shell (audit.log, ppid=29) that writes ~/.ssh/authorized_keys in the same second.

  • 12:08:27: the attacker logs in over SSH as svc_preview with that key. Within the same second, the host:

    • uses the preview-reader S3 key to list buckets and download releases/2026.10/profile-r17.yaml from MinIO. The traffic was plain HTTP, so it is readable in the sensor data.

    • tries the three tokens from that file against Atlas: poll-r17 and rollout-r17 are rejected, runtime-r17 is accepted.

    • connects to MySQL as svc_cfg_apply and tries a file write, which fails with error 1290 (--secure-file-priv).

    • updates settings 10–46 (10–15 twice), labelling every change updated_by: deploy_agent to blend in with normal deploys.

  • Afterwards: config_revisions is dropped, and the drop is missing from the binary log (logging was likely disabled for the session; svc_cfg_apply had SESSION_VARIABLES_ADMIN). agent-cache.timer is installed and runs callback_helper.py every 20 seconds, beaconing to telemetry-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

#QuestionAnswer
1Unique production settings modified37
2User-level scheduled systemd unitagent-cache.timer
3Object retrieved from release-assetsreleases/2026.10/profile-r17.yaml
4External IP behind the anomalous preview203.0.113.74
5Credential accepted by Atlasruntime-r17
6File used for SSH authentication/home/svc_preview/.ssh/authorized_keys
7MySQL user that modified configsvc_cfg_apply
8Error code from the file-write test1290
9Recurring outbound host203.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

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 3 pages.