Skip to content
live480 pts

The ransom note was late to its own attack

Monday: locked files and a note. The logs say the burglary started three Fridays ago.

The scene

Reported: Monday 07:40 — staff arrive to fs-01 shares full of .kraken files and a README_DECRYPT.txt in every directory:

Your network has been compromised. All files encrypted.
Pay 4.2 BTC to bc1q… within 72 hours or we leak 380 GB.
Do not contact authorities. Do not rename files.

Everyone's working assumption: it detonated overnight. The logs disagree — it started nineteen days ago.

Day −19, Wednesday — VPN concentrator:

Nov 21 02:11:40 vpn-01 auth: user=svc-restore result=fail (attempt 4097)
Nov 21 02:11:52 vpn-01 auth: user=svc-restore result=fail (attempt 4112)
Nov 21 02:12:07 vpn-01 auth: user=svc-restore result=ok   src=45.143.x.x

svc-restore is the backup appliance's service account — MFA-exempt "because the appliance can't do TOTP", password rotated annually. 4,113 failures over 5h47m, then one success. No lockout fired: the throttle is per-source-IP and the attempts sprayed across ~400 IPs. The winning IP is a residential proxy. The spray never resumes after the success.

Day −18, Thursday — EDR on fs-01:

11:58:12 svc-restore  vssadmin delete shadows /all /quiet        (rc=0)
11:59:03 svc-restore  wbadmin delete catalog -quiet             (rc=0)
12:01:44 svc-restore  net stop "VeeamAgent"                     (rc=5 denied)
12:03:31 svc-restore  syncsvc.exe starts (unsigned, %APPDATA%\svc\)

syncsvc.exe is the encryptor masquerading as a sync service — EDR flags it unsigned binary, first seen, severity low, auto-closed. One SOC console line: shadow copies deleted on fs-01 — severity info, auto-closed by triage. These are the earliest filesystem-level attacker actions on record.

Days −17 to −2 — file audit log, weekday rename bursts:

$ find /srv/shares -name '*.kraken' -printf '%T@ %p\n' \
    | awk '{print strftime("%Y-%m-%d %H",$1)}' | sort | uniq -c
Nov 23 11   287       Nov 24 11   342       Nov 25 11   301
Nov 26 11   388       Nov 27 11   259       Nov 30 11   411
Dec 01 11   356       Dec 02 11   294       Dec 03 11   333
Dec 04 11   402       Dec 07 11   310       Dec 08 11   377
Dec 09 02  22,841     # Sunday

Every weekday burst lands 11:40–12:10, lunch hour, 200–400 files — safely under the ransomware tripwire (renames_per_minute > 1000) and inside ordinary business-hours noise; baseline legit renames run ~2,000/day. ~4,400 files staged quietly; the remaining 22,841 went in the Sunday 02:00–04:30 burst.

Encryption mechanics: files rewritten in place — same inode, new extension — so directory mtimes stay old and "recently modified" reports look clean. file reports each .kraken as a KRKN2 header + AES-GCM blob, entropy 7.99 bits/byte; xxd of the first 64 bytes:

0000: 4b 52 4b 4e 32 00 9c 4f …  krkn2.<keyslot>…

A staged work/ directory held password-protected 7z archives — the "380 GB to leak" payload — exfiltrated over the same window to rotating residential proxies at ~300 MB/night, under the egress anomaly floor of 2 GB/day.

The backups all "passed":

Dec 05 03:00 job 7741: SUCCESS — 412 GiB, 0 errors
Dec 06 03:00 job 7742: SUCCESS — 413 GiB, 0 errors
Dec 07 03:00 job 7743: SUCCESS — 412 GiB, 0 errors
…

Success is measured as "files copied without error." The job faithfully copied ciphertext. Retention is 14 daily restore points, so every restore point newer than Dec 03 holds mostly-encrypted shares — and even the Nov 24 point already contains the first 287 poisoned files. The monthly offsite tape from Nov 15 predates the compromise.

VPN session list for svc-restore: interactive logons to fs-01 and dc-01 throughout the window — a service account doing admin work at lunch hours, which nobody owns and nobody was watching. On dc-01: nltest /dsgetdc plus a full SMB share enumeration on Day −18; nothing else on that DC was touched.

The bait everyone reached for: detonation time = compromise time → wipe fs-01 → restore last night's "clean" backup. Last night's backup is the ciphertext, re-uploaded to you at 03:00. The note's "72 hours" clock started Sunday — the burst, not the breach.

Backup poison map (restore point vs fraction of shares already .kraken):

Nov 24  point 7740   ~1.1% encrypted   (287 of 27k files)
Nov 27  point 7743   ~3.8%
Dec 03  point 7749   ~16%
Dec 08  point 7754   ~17%   — every nightly point is already a mosaic

Windows security log, fs-01, Day −18:

4624  Logon        svc-restore   type=10 (RemoteInteractive)  src=10.8.0.9
4672  SpecialPriv  svc-restore   SeBackupPrivilege assigned
4698  TaskSched    svc-restore   created task "sysindex" (ran once, deleted)

The KRKN2 keyslot at each file head is a per-file AES key wrapped with a single RSA-2048 public key — same wrapper everywhere, so one private key (the attacker's) unlocks the lot. Standard locker design; no custom crypto to exploit.

What it's not:

  • Not a smash-and-grab — a single-night attack can't produce 12 staggered lunch-hour bursts.

  • Not a backup appliance bug — svc-restore's sessions are interactive RDP, not the appliance's scheduled agent calls.

  • Not a fresh phishing click Monday — the compromise predates the note by nineteen days.

  • fs-01 free space dipped ~40 GB on Dec 04 (the 7z staging), then recovered Monday — one line in the capacity dashboard nobody read.

  • The encryptor ran only while syncsvc.exe's parent console session (svc-restore over VPN→RDP) was connected; idle process = idle encryption.

  • wbadmin delete catalog means the backup appliance itself can't enumerate its own history on this host.

  • The VPN gateway maps 10.8.0.9 back to the same 45.143.x.x spray winner — one actor, one account, the whole window.

  • The sysindex scheduled task ran syncsvc.exe once on Day −18 to verify persistence, then deleted itself — classic recon.

Diagnoses — hidden until the incident closes

Sign in to post your root-cause diagnosis.