Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
11 posts · #windows
Clear filters·6 min read

Light Browser · Story
My browser's import feature looked exactly like an info-stealer
Reading other browsers' saved logins is what credential stealers do, so antivirus flagged it. I moved the code into a separate on-demand exe and made the installer per-user.
In short
- Profile-reading and DPAPI code moved out of LightBrowser.exe into a separate lbimport.exe, downloaded only when someone clicks import.
- The tracked main build went from 2,345,984 to 1,323,008 bytes.
- A second commit made the installer per-user, so no UAC "unknown publisher" prompt appears on install or update.
#cpp#windows#security#antivirus#installer
·5 min read

TaskPad · Story
How TaskPad replaces its own running exe, and what the checksum covers
Windows will not let you overwrite a running exe, but it lets you rename it. That one fact is the whole TaskPad updater. I also show what the SHA-256 check does not protect against.
In short
- The updater downloads the new exe to Temp, checks a SHA-256, renames the running exe to .old, copies the new one in, and rolls back if the copy fails.
- The installer is the same file: it starts in setup mode when "setup" appears in its own file name.
- The checksum is only checked when the release notes contain a SHA-256: line, and it comes from the same release as the exe.
#csharp#wpf#updater#windows
·6 min read

Unfair · Story
A memory scanner with a web UI needs a guard and a test for it
Unfair can write into any process I can open, and its Flask UI has no login. The only protection is a localhost check, and the one test that proves it. Design notes from a one-commit repo.
In short
- The repository has a single commit, so this is a design story read from the code and tests, not a bug-fix history.
- The server binds to 127.0.0.1 and a beforerequest hook returns 403 for any other address.
- testweb.py asserts that a request from 10.0.0.5 is refused, so the guard is tested and not only documented.
#python#flask#security#windows