Silent Witness
During last night’s raid, the target was apprehended right at his desk. No suspicious files were found on the hard drive, yet the breaching team swears something unusual was on his screen moments before the door came down.
Everything we managed to seize is in the attached file. The rest is up to you.
Flag format: NVR{…}
Attachments
- evidence.zipnot available for download (file too large to host)
Recon
The disk is clean, but the raid team saw something on that screen seconds before the door came down. A hard drive can be wiped in moments, while whatever was being displayed at the instant of the capture had to still exist in RAM, inside whichever process was drawing it. That makes the memory image the place to look.
Identifying the image
$ unzip -l evidence.zip
Archive: evidence.zip
Length Date Time Name
--------- ---------- ----- ----
5685379072 11-21-2026 09:52 evidence.raw
A single 5.3 GiB file, and file only calls it data, so there is no header to lean on. The first bytes identify it anyway. A raw physical memory image of a PC starts at physical address 0 with the real-mode interrupt vector table, a list of far pointers into the BIOS segment 0xf000, and that is exactly the pattern here:
$ xxd -l 32 evidence.raw
00000000: 53ff 0000 53ff 00f0 53ff 00f0 53ff 00f0 S...S...S...S...
00000010: 53ff 00f0 53ff 00f0 cce9 00f0 53ff 00f0 S............S.
VirtualBox fingerprints all over the guest’s memory confirm a VM capture, and Volatility 3 confirms the OS side:
$ LC_ALL=C grep -ac --binary-files=text VirtualBox evidence.raw
250
$ vol -f evidence.raw windows.info
Variable Value
Kernel Base 0xf8026de00000
DTB 0x1aa000
Is64Bit True
Major/Minor 15.19041
SystemTime 2026-11-21 08:44:44+00:00
NtSystemRoot C:\Windows
NtMajorVersion 10
So we are holding raw physical RAM of a 64-bit Windows 10 (build 19041) VirtualBox guest.
The process that had the screen
windows.pslist reports 143 processes, and all but a handful are shell infrastructure, services and brokers. The full sweep leaves one interactive application:
$ vol -f evidence.raw windows.pslist | grep -iE "^PID|mspaint|explorer"
PID PPID ImageFileName Offset(V) Threads Handles SessionId Wow64 CreateTime ExitTime File output
4160 4112 explorer.exe 0x838d01c55340 50 - 1 False 2026-11-21 15:33:30.000000 UTC N/A Disabled
5304 4160 mspaint.exe 0x838d02782080 4 - 1 False 2026-11-21 08:37:19.000000 UTC N/A Disabled
mspaint.exe, PID 5304, a child of explorer, opened about seven minutes before the dump was taken (created 08:37:19 UTC, system time 08:44:44 UTC). An open Paint session is exactly the kind of thing the breaching team could have seen on that screen.
Before searching for pixel data, we dumped its address space and tried the cheap check of whether the flag sits in memory as text:
$ vol -f evidence.raw windows.memmap --pid 5304 --dump
Virtual Physical Size Offset in File File output
0x398b0000 0xab734000 0x1000 0x0 Disabled
0x398d0000 0xdd6fc000 0x1000 0x1000 Disabled
...
This writes pid.5304.dmp, about 1.3 GiB holding only the resident pages in address order, plus the table above. The table maps each resident page to its offset in the dump, which the reconstruction later depends on.
A text search that comes up empty
In ASCII the flag is nowhere in the entire image:
$ LC_ALL=C grep -abo --binary-files=text 'NVR{' evidence.raw
$ echo $?
1
In UTF-16LE, the encoding Windows uses for text, the pattern carries embedded NUL bytes, so the search has to treat the dump as raw bytes with one regex per encoding:
pats = {
'ascii': re.compile(rb'NVR\{'),
'u16': re.compile(rb'N\x00V\x00R\x00\{\x00'),
}
# scan the file in 32 MB chunks, count matches of both patterns
$ python3 find_nvr.py evidence.raw
[*] 0 hits in evidence.raw
Zero hits in both encodings across all 5.3 GB. The flag never existed as text in RAM, so if Paint was used to write it, it exists only as drawn pixels and we have to render the bitmap that holds it.
The on-screen canvas
The first place to look is the window surface. We dumped the larger VAD regions of mspaint with windows.vadinfo --pid 5304 --dump and looked for the one holding the on-screen image. A framebuffer has one exploitable property: when the bytes are reshaped at the correct row width, the mean difference between adjacent rows collapses, while at a wrong width every row cuts through pixel boundaries and the difference stays high. So we tried every width and ranked them (w.py):
import numpy as np
d = np.fromfile('pid.5304.vad.0x1b37f770000-0x1b37fa63fff.dmp', np.uint8).reshape(-1, 4)
g = d[:, :3].mean(1)
print('nonwhite px', (g < 250).sum())
res = []
for w in range(200, 2000):
h = len(g) // w
a = g[:w * h].reshape(h, w)
res.append((np.abs(np.diff(a, axis=0)).mean(), w))
res.sort(); print(res[:10])
$ python3 w.py
nonwhite px 570129
[(5.338129378472582, 1040), (6.901739420658823, 1039), (8.907830175314954, 1041), (9.360875443984151, 1038), ...]
1040 pixels at 32 bpp wins by a clear margin over its neighbors. Rendering that region as a 1040-wide, 32-bit image reproduces the Paint window as it stood at capture time, and the canvas inside shows handwriting buried under deliberate scribbles. The writing underneath is unreadable, but the visible surface is not the only copy. Paint keeps backup bitmaps of the canvas in memory for its undo history, and a pre-scribble version surviving in private heap memory is what we need.
Finding the backup bitmap
Carving for BITMAPINFOHEADER structures found nothing usable. There is no DIB header in front of these pixels. The 4 KB of heap preceding the bitmap region is allocator metadata, repeating pointer and free-list patterns. So we searched for the pixels themselves. A handwriting drawing stored at 24 or 32 bpp has an unmistakable byte profile: nearly every byte is 0x00 for black ink or 0xff for white paper, with a white majority. pages.py walks the whole process dump page by page, marks every 4 KB page that is at least 97% pure 0x00/0xff bytes with a white majority, and merges consecutive marked pages into runs:
import numpy as np, sys
d = np.memmap('pid.5304.dmp', np.uint8, 'r')
n = len(d) // 4096
P = d[:n * 4096].reshape(n, 4096)
cls = np.zeros(n, bool); wf = np.zeros(n)
for i in range(0, n, 8192):
b = np.asarray(P[i:i + 8192])
bw = ((b == 255) | (b == 0)).mean(1) # fraction of pure black/white bytes
w = (b == 255).mean(1) # fraction of white
cls[i:i + len(b)] = (bw > 0.97) & (w > 0.5)
wf[i:i + len(b)] = w
idx = np.nonzero(cls)[0]
runs = []; s = idx[0]; p = s
for i in idx[1:]:
if i > p + 2: runs.append((s, p)); s = i
p = i
runs.append((s, p))
for a, b in runs:
if b - a >= 20: print(hex(a * 4096), b - a + 1, 'w%.3f' % wf[a:b + 1].mean())
The scan reported thirteen runs (offset inside pid.5304.dmp, page count, white fractions omitted here):
0x457000 357 0x81e000 145 0xc7f000 156 0x3bc1000 95
0x4112000 77 0x4c819000 281 0x4c976000 255 0x4cb58000 249
0x4ce7f000 255 0x4d47a000 279 0x4d596000 995 0x4e746000 64
0x3b9d000 31
To tell an image from blank or uniform buffers we reused the row-difference trick, this time per run and per candidate stride (rend.py): reshape the run’s bytes at every width from 400 to 4100 and keep the stride with the lowest mean absolute difference between adjacent rows. The saved renders record the chosen strides: eleven runs landed between 400 and 456, one at 2016, and only the run at 0x81e000 picked exactly 1800 bytes. 1800 bytes is precisely one row of a 600-pixel-wide 24-bit image (600 pixels x 3 bytes per pixel).
The memmap table ties that offset to an address, 0x81e000 is where virtual address 0x1b37e270000 landed in the dump:
Virtual Physical Size Offset in File
0x1b37e270000 0xd6671000 0x1000 0x81e000
and windows.vadinfo shows that address inside a private, read-write region sized to match:
PID Process Offset Start VPN End VPN Tag Protection CommitCharge PrivateMemory
5304 mspaint.exe 0xffff838d02c8cc70 0x1b37e270000 0x1b37e2f3fff VadS PAGE_READWRITE 132 1
The region spans 0x84000 bytes, 132 pages, matching the commit charge. Dividing 540,672 by the 1800-byte row gives a touch over 300, so the bitmap living there is 600 x 300 at 24 bpp, or 540,000 bytes, and it fits with room to spare. Private read-write memory holding an un-scribbled copy of the drawing is what Paint’s undo backup looks like from the outside.
Rebuilding the bitmap through the page map
One subtlety remains. pid.5304.dmp is not the address space of the process, it is the concatenation of only the resident pages in address order, so a file offset is only meaningful together with the memmap table. A render cut straight out of the run window comes out sheared: the stride-scan window starts 8192 bytes before the run, 8192 is not a multiple of the 1800-byte row, so every row lands 992 bytes off cycle, and the leading 8192 bytes, four and a half rows, are not even bitmap. We rendered it that way first and got a torn, unreadable version of the drawing.
recon.py reassembles the region properly. It walks the region’s address range page by page, copies each page from its recorded file offset, zero-fills the pages that were not resident, then decodes the 540,000 bytes starting at 0x1b37e270000 as a bottom-up BGR Windows DIB (rows reversed, blue and red swapped):
import numpy as np
from PIL import Image
d = np.memmap('pid.5304.dmp', np.uint8, 'r')
m = {}
for l in open('memmap.txt'):
p = l.split('\t')
if len(p) >= 4 and p[0].startswith('0x') and p[3].startswith('0x'):
m[int(p[0], 16)] = (int(p[2], 16), int(p[3], 16))
base = 0x1b37e260000; size = 0xb0000
buf = np.zeros(size, np.uint8); miss = []
for va in range(base, base + size, 0x1000):
if va in m:
s, o = m[va]; buf[va - base:va - base + 0x1000] = d[o:o + 0x1000]
else: miss.append(hex(va))
print('missing', miss)
buf.tofile('recon.bin')
st = 0x10000 # the bitmap starts at VA 0x1b37e270000
a = buf[st:st + 540000].reshape(300, 600, 3)[::-1, :, ::-1]
Image.fromarray(np.ascontiguousarray(a)).save('canvas_clean.png')
Thirty-nine of the 176 pages in its window had no dump offset and came back zero-filled, and none of them fall inside the bitmap. The 132 bitmap pages were all resident. The result, canvas_clean.png, is the drawing with the scribbles gone.
As a sanity check we also rebuilt the same 132 pages straight from evidence.raw, using the Physical column of the memmap table instead of the process dump, and got a byte-identical image (matching MD5). The reconstruction is faithful to what was physically in RAM, not an artifact of the rendering.
Flag capture
The reconstructed canvas is a handwriting drawing. This is the render scaled up 3x for legibility:

Reading the handwriting gives the flag:
NVR{I_D0_N0T_P4}