SkraldeCookie
ExamCookie is the app Danish schools use to monitor students during exams. Oskar Stefanski and I read its code to find out what it records and whether that evidence can be trusted.
- Role
- Co-author
- With
- Oskar Stefanski
- When
- January 2025
- Stack
- .NET decompilation, C#
What it is
ExamCookie runs on the student's computer during the exam. It records screenshots, what is on the clipboard, which programs are open and which websites are visited, and uploads all of it for the school to review. Its developer says more than 200 Danish institutions require it.
In January 2025 we read the code of the Windows version, 1.4.1.4, to find out whether that evidence can be trusted. This page covers what we found, but not how to exploit it.
My part
Oskar produced the decompiled source and wrote the screenshot, clipboard, browser and certificate-pinning findings. I wrote the cryptography and installer findings, and the function-hooking section with its C++ example. Of the repository's 18 commits, 11 are mine. In May 2026 I went back and corrected my installer finding.
How we did it
- Decompile the client. It is a .NET app with no obfuscation, so it decompiles to readable C#.
- For each thing it monitors, find the Windows or .NET feature it uses, by reading the code rather than running it.
- Ask the same two questions every time: who controls the machine this runs on, and what could the server check on its own?
- Write up each finding with the code or API behind it, so others can check it.
What we found
Each kind of monitoring runs in its own background thread and hands what it collects to an upload thread. All of it runs on the student's own computer, and that is the finding that matters most: the server only ever sees what the client decides to send.
- Screen
- Screenshots when the screen changes, and on a timer
Graphics.CopyFromScreen - Clipboard
- A listener that is notified when the clipboard changes
- Browser
- The address of the open page, read through UI Automation, for a fixed list of browsers
- Upload
- A SOAP web service, without certificate pinning
Three more problems cut across all of them:
- Old cryptography. Data is encrypted with TripleDES under a key derived with MD5. Both are legacy. The baseline today is authenticated encryption, such as AES-GCM with a proper key derivation, inside correctly checked TLS.
- Readable code. With no obfuscation, anyone who decompiles the app can read exactly how the monitoring works. Obfuscation isn't real protection, but its absence made understanding the client almost free.
- An installer run from the app's folder. The client writes a WebView2 installer next to itself and runs it. If a user can write to that folder, the file can be swapped before it runs.
Decisions
Correct the record
We first described the installer issue as command injection. It isn't: the installer is started with a fixed file name and no shell. In May 2026 I rewrote the finding as what it is, a risk that a local file gets replaced.
The correction, commit 5e3c219Treat it as a trust problem
Each kind of monitoring could be hardened on its own, but software running on the student's machine can only report what that machine lets it see. So the main recommendation is to stop trusting the client, rather than patch each check.
What I'd recommend
Looking back, this is what I'd tell anyone building monitoring software like this:
- Treat the client as untrusted, and build integrity checks around what the server can see and verify for itself.
- Use authenticated encryption and properly checked TLS instead of home-made schemes, and pin the service's certificate.
- Install dependencies where users can't write, and check signatures before running anything.
- Collect as little as possible, and tell students exactly what is recorded. Screenshots, clipboard text, program names and web addresses are personal data.
Afterwards
We published the write-up in January 2025. In February 2025 Ingeniøren covered it and asked two IT security experts about the findings. According to the article, ExamCookie's CEO called the bypass risk theoretical, and after the interview the company released a version with obfuscated code.
The repository doesn't record any coordinated disclosure with the developer, and I don't know which issues have been fixed since. It also holds the decompiled client and our proof-of-concept examples.