← yazan

Writeups

How I solved security challenges, step by step. Pick one to read it.

Deadface CTF 2026 1 writeup

De Monne Breach: Who Goes There? new Oct 2026 · Forensics

We begin the challenge with the following description, and an 8.0GB file (memory.raw):

DEADFACE managed to slip a rogue Kali device onto De Monne Financial's corporate network. Shortly afterward, someone used a legitimate employee account to access the company file share and steal sensitive documents.

One of those documents later surfaced in Ghost Town, confirming that the breach was more than just suspicious network activity.

ZeroTrace recovered a packet capture and a memory image from the affected environment. Your first task is to identify the De Monne Financial employee account that DEADFACE compromised.

What is the username of the compromised employee? Submit the flag as deadface{username}.

I immediately noted the size of the memory dump, a reminder that this was a full memory dump that's bound to have lots of fluff (natural device usage) that isn't pertinent to the challenge. Targeted analysis beats manual searching here.

As a quick check, I tried to see if I could one-shot any obvious clues left behind (or get a sanity check) by grepping the dump. Evidently, this didn't work out.

strings memory.raw | grep username

strings memory.raw | grep user

strings memory.raw | grep "DEADFACE"

Note: after some research, I realized this likely wouldn't have worked anyway. Windows stores most strings in memory as UTF-16LE, so strings -el is needed to pick them up.

My next step was to fire up Volatility3, a widely used Python framework for volatile memory analysis. It's handy to familiarise yourself with some of its plugins for quick analysis like we're doing now.

Given that this is an enterprise scenario, I assumed this was from a recent Windows machine. To double check, I ran the following command to get a bit more info on the system the memory was dumped from:

python3 vol.py -f <memory.raw> windows.info
Variable        Value
Kernel Base     0xf80228e00000
DTB             0x1ae000
Is64Bit         True
IsPAE           False
layer_name      0 WindowsIntel32e
memory_layer    1 FileLayer
KdVersionBlock  0xf80229a09998
Major/Minor     15.22621
MachineType     34404
SystemTime      2026-09-27 20:40:44+00:00
NtSystemRoot    C:\Windows
NtProductType   NtProductWinNt
NtMajorVersion  10
NtMinorVersion  0

Confirmed: a modern 64-bit Windows machine.

Next, I checked what kind of session information I could get from the memory dump, guessing I could find the username of the pwned user there.

python3 vol.py -f <memory.raw> windows.sessions

This returned a long list of entries, but one sub-section was the most pertinent. To save you some reading, here's my biggest tip-off:

0  -  444   sshd.exe        WORKGROUP/DMF-WS11-042$  2026-09-27 20:21:51 UTC
0  -  4996  sshd.exe        -                        2026-09-27 20:21:51 UTC
0  -  3532  sshd.exe        WORKGROUP/nkessler       2026-09-27 20:21:55 UTC
0  -  5424  conhost.exe     WORKGROUP/nkessler       2026-09-27 20:21:55 UTC
0  -  8120  cmd.exe         WORKGROUP/nkessler       2026-09-27 20:21:55 UTC
0  -  3300  powershell.exe  WORKGROUP/nkessler       2026-09-27 20:21:58 UTC

Session 0 is reserved for services, and typically holds SYSTEM, machine-account or LOCAL SERVICE processes. A user running cmd and powershell there is out of the ordinary.

These entries suggest that sshd accepted an incoming connection under the machine account, then spawned a child process under nkessler's token, which opened a cmd instance and then a powershell instance. To me, that looks like an SSH login, and given the context of a rogue Kali device planted on the network, it's a login that shouldn't be happening.

Note: in a future investigation (and when I'm not competing in a timed CTF on my lunch break), I would cross-reference with windows.pstree to confirm these processes really are related. For the purpose of this challenge, this was conclusive enough.

Based on this, I was confident that nkessler was the compromised user.

I entered the flag as deadface{nkessler}, and it was correct!

CyLab Academy 2 writeups

Forensics: Bitlocker 2 Oct 2026 · Forensics

We start with the following description and hint:

Jacky has learnt about the importance of strong passwords and made sure to encrypt the BitLocker drive with a very long and compelx password. We managed to capture the RAM while this drive was opened however. See if you can break through the encryption!

Hint: Try using a volatility plugin.

My initial impulse was to run the RAM dump through Volatility3 and see what I could find.

I did a pass with Vol3 to see what kind of banners could be pulled from the memory dump, which found the ntkrnlmp.pdb banner, indicating that this was a dump from a Windows system.

python3 vol.py -f <file> banners

The next step was to run the windows.info plugin to make sure that this was in fact a Windows system.

python3 vol.py -f <file> windows.info

Lucky for me and my sanity, it confirmed that the memory dump came from a Windows 10 machine, along with some extra facts that were generally trivial for this challenge.

Next, I needed to consider how the BitLocker key was stored in memory in order to reverse the disk encryption. After some research, I learned that BitLocker decryption keys can be extracted from RAM that is captured/dumped while the system is unlocked.

I found a GitHub repository with a handy plugin for this. Needless to say, I definitely used it.

python3 vol.py -f <file> windows.bitlocker

This returned a table of AES-128 FVEKs (Full Volume Encryption Keys).

I then analyzed the disk image to see where the BitLocker partition's offset lay:

fdisk -l <file>

I spent a little bit of time at this point trying to copy-paste various FVEKs from my terminal into bdeinfo and dislocker (two tools that are often helpful in Windows memory analysis), but was having trouble decrypting the disk.

I then decided to go back and have the BitLocker plugin create the .fvek files for me, then feed them directly into dislocker for a cleaner workflow.

python3 vol.py -f <memorydump.mem> -vvv windows.bitlocker.BitlockerFVEKScan --tags FVEc Cngb None --dislocker

This wrote about a dozen .fvek files into my working directory. I remembered that only one entry had both parts: FVEK and Tweak.

FVEK     Tweak
32bytes:32bytes

I used that entry's PoolOffset name from the generated .fvek files to unlock the disk and mount it.

sudo mkdir /mnt/dislocker /mnt/dislocker-dec

sudo dislocker -v -k 0x8087865bead0-Dislocker.fvek -V <bitlocker_disk.img> /mnt/dislocker

sudo mount -t ntfs-3g /mnt/dislocker/dislocker-file /mnt/dislocker-dec

Once I got a warning about the disk being an unclean file system that would be mounted read-only, I knew we were in the right spot.

I navigated to the new disk, and the flag was sitting there, patiently waiting for us!

cd /mnt/dislocker-dec

cat flag.txt
academy{B1tl0ck3r_dr1v3_d3crypt3d_9029ae5b}
Forensics: Git 1 Oct 2026 · Forensics

The challenge starts with the following description and hint:

Can you find the flag in this disk image?

Hint: How can you checkout the files of a previous commit?

This immediately tells me that we're going to be looking through a local git repository on the disk, and retrieving the flag from something to do with a previous commit to the repo.

To start, I tried to run fsstat on the attached disk to get some general info.

fsstat <file>

It kept returning filetype errors, so I tried mmls instead in order to see the layout of the disk.

mmls <file>
mmls output listing the disk's partitions

This tells me that there are several partitions. The two that caught my interest were 002 and 004. I began my investigation by mounting partition #2:

sudo mkdir /mnt/git1

sudo mount -o loop,offset=$((512*2048)) <file> /mnt/git1
Contents of partition 2

After a quick look through the partition, it was clear that it was a junk/boot partition and likely wouldn't be holding the flag, so I pivoted to the next partition of interest.

sudo umount /mnt/git1
sudo rm -r /mnt/git1
sudo mkdir /mnt/git1

sudo mount -o loop,offset=$((512*1140736)) <file> /mnt/git1

Immediately, we can see that this is a more promising partition, and are able to navigate to the user's home/development directory.

Contents of partition 4, including the user's home directory

It didn't look like anything was in the directory, but I tried showing hidden folders anyway, which led me to finding the .git folder.

ls -la

As a sanity check, I checked to see if there were any git log messages.

git show

The flag was sitting at the bottom of the git logs.

git show output of the commit that removed flag.txt, with the flag in the diff

More on the way from HackTheBox and LetsDefend.

esc back to menu