$ cat writeup.md…
$ cat writeup.md…
securinets2026
Task: a stripped x86-64 ELF that refuses to run without a GPU, an exact hostname, and a data.bin blob, hiding an encrypted payload. Solution: reimplement the embedded SPIR-V XXTEA keystream to recover the inner ELF, then invert its sbox + AVX2 reversal + per-byte rotation + Salsa20 transform using memory dumped from a qemu-user gdbstub.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
The binary is dead on arrival. Or is it?
Files: challenge (stripped x86-64 ELF, Rust toolchain, Vulkan imports) and data.bin (1028 bytes).
English summary: the provided binary is a loader, not the real challenge. Run it on a normal
machine and it exits immediately — it "dies". The actual flag checker is an encrypted payload
embedded inside challenge, resurrected only under very specific conditions. The goal is to
recover that inner payload, reverse its flag checker, and invert the check to obtain the flag
(format Securinets{...}).
"Revenant" = one who returns from the dead. Combined with "dead on arrival. Or is it?", the title tells you the outer binary is a resurrection mechanism: it decrypts and executes a hidden second stage. This framed the whole approach — the outer binary is a puzzle to be unwrapped, not a checker to be solved directly.
Two planted flags exist and both are rejected by the real checker:
.note.securinets (offset 0x56a0) contains a literal Securinets{...} decoy.data.bin[0x200:...] contains another literal decoy flag. Only data.bin[0:512] is ever read
by the program, so this decoy is never even used.The inner ELF also embeds prompt-injection-style honeypot text (fake "notes" and a "register here" URL). Treated strictly as untrusted data and ignored.
Static analysis with objdump shows challenge opens /proc/self/exe, reads its own
.stab and .note.gnu-build-id sections.
...
$ grep --similar