Skip to content
All projects

A Windows security workbench that scans code, dependencies, secrets and servers, puts actively exploited threats first, and applies the fixes you approve with a backup and an undo.

Role
Design and development
Status
In active development
Stack
PowerShell · .NET 10 · Go
Runs on
Windows, on your own computer
Animated example: Guardians of the Kernel scans an AI agent's code and flags model output that runs as a shell command (CWE-78), where instructions hidden in what the model reads could run any command on the server. It replaces the call with a fixed list of actions run without a shell, and keeps the fix only after four checks pass: backup saved, rule no longer matches, project tests passed, applied with undo. The finding count drops from one high to zero open.

The problem

Small teams that run their own code and servers rarely have a security team. Vulnerable packages, leaked keys, risky code and loose server settings pile up unnoticed.

Guardians of the Kernel brings proven scanners into one desktop app, explains each finding in plain language and helps fix what it safely can.

My role

I designed and built it: the scanning engine, the 45 custom code rules, the fixers, the server checks over SSH, the local interface and the Linux detection agent.

How it works

  1. Scan

    Projects, lockfiles, your own code, Git history, .env files, the computer itself and your Linux servers over SSH.

  2. Rank

    Findings that attackers exploit right now come first, using CISA's KEV catalog and FIRST's EPSS scores.

  3. Fix with a backup

    Supported fixes run when you approve them, after backing up what they change.

  4. Verify

    It scans again and runs your checks; a fix that fails is rolled back.

  5. Undo anytime

    Every fix keeps its backup, so it can be undone later.

Constraints

  • It runs on Windows; its interface is a local page that only listens on your own computer.
  • Code and secrets stay on your machine, and reports never store source lines.
  • Server checks are read-only by default; changes need your approval.
  • Optional AI help is off by default and sends only selected, masked context when you ask for it.

Decisions and tradeoffs

Wrap proven scanners instead of writing new ones.

Why
OSV-Scanner, gitleaks and Opengrep already cover dependencies, secrets and code patterns well.
Alternative considered
Write every scanner from scratch.
Tradeoff
Broader coverage and less to maintain, but each tool's downloads must be verified and its output normalized.

Rank by real-world exploitation.

Why
CISA's KEV catalog and EPSS scores show what attackers actually use, not only theoretical severity.
Alternative considered
Sort by CVSS severity alone.
Tradeoff
It depends on outside feeds staying current, and it can't predict every attack.

Every fix keeps a backup and is verified.

Why
A fix runs only after a backup, then the app scans again and checks the project; failures roll back.
Alternative considered
Edit files and servers directly.
Tradeoff
Safer but slower, and some fixes stay manual.

AI fixes must pass the scanner and your tests.

Why
An AI change is kept only if the finding disappears, nothing new appears, and syntax checks and tests pass.
Alternative considered
Trust the model's patch.
Tradeoff
Fewer automatic fixes, and passing checks still doesn't prove a change is right in every way.

The server agent detects; it doesn't block yet.

Why
Live detection ships first, so a false alarm can never lock anyone out of a server.
Alternative considered
Block addresses automatically from day one.
Tradeoff
Responses stay manual until they're proven safe.

Architecture

A PowerShell and .NET engine with a local web interface that wraps verified scanners, plus an optional Go agent for live detection on Linux servers.

Scanners
npm audit, dotnet list package, OSV-Scanner for 20+ lockfile formats, gitleaks for secrets and Opengrep with 45 custom rules.
Ranking and reports
CISA KEV and FIRST EPSS, history, accepted risks and fix records, without storing source code.
Fixers
Dependency, runtime and server fixers with backup, rescan and undo; optional AI patches behind the scanner and your tests.
Server checks
Read-only SSH checks in 14 areas, from the firewall and SSH settings to certificates and updates.
Linux agent
A small Go service that watches logs and journals for attacks and only reports them.

Validation

  • The 45 custom code rules caught 46 of 46 vulnerable samples, with 0 findings on safe samples, across JavaScript/TypeScript, C#, Python and PHP.
  • A live scan of real projects found 12 findings, all confirmed real, with 0 source lines stored.
  • A real report closed 36 open findings: 5 fixed after approval and 31 by hand.
  • Dependency checks were verified on vulnerable Go, Rust, Ruby, Java and pnpm samples, and a planted test key was found, redacted, in Git history.

Status and limits

In active development. Scanning, ranking and safe fixes work today; always-on protection and the AI features are still being built.

  • It doesn't guarantee complete security or stop attacks in progress.
  • Code rules cover JavaScript/TypeScript, Python, C# and PHP, not every language.
  • Full server patching is for Ubuntu and Debian; other distributions get limited checks.
  • Automatic fixes aren't safe for everything, so many findings stay manual by design.

Want to build something like this?

Discuss a project