Guardrails on autonomous agents Β· a runtime gateway for LLM apps Β· scanners for the places you can still act before code runs
Working tools with tests and CI β not write-ups. Where a tool has limits, the repo says so out loud.
Bridge β autonomous CUDA β ROCm migration agent
Ports a CUDA repo until it builds and passes its tests on AMD GPUs, one reviewable commit per fix.
The interesting part is the trust boundary: it runs untrusted repo code and applies LLM-written diffs β so every diff passes a mechanical policy gate before it touches disk. Path allowlist checked on both sides of each hunk, forbidden-insertion denylist, no editing of tests, size caps, symlink/mode/traversal rejection. A red-team test proves the gate rejects a live prompt-injection payload.
Proven on real AMD hardware (Radeon gfx1100, ROCm 7.2) β autonomous port to a passing ctest in 3 iterations.
β Try it with zero install
raqib-ai-soc β detection & response gateway for LLM apps
Sits in front of an LLM app and detects prompt injection, jailbreaks, secret/PII leakage and system-prompt extraction in real time. Detections are versioned YAML rules carrying per-rule OWASP LLM Top 10 and MITRE ATLAS IDs, with SOAR playbooks, a Streamlit SOC dashboard and a SIEM sink.
Its red-team harness scores its own detection and false-positive rates, publishes every miss, and gates CI on them.
mcpscan β posture scanner for MCP servers
Point it at the same JSON config your MCP client already uses. Reports PASS/FAIL/INFO with exact remediation for hardcoded secrets, unauthenticated endpoints, missing Origin validation (CVE-2025-49596), weak session IDs and inconsistent tool annotations.
Every check is tagged spec-backed or inferred, so heuristics are never dressed up as violations. Detection only β no exploitation.
Patches sent to the security and infrastructure tools I actually use β working inside large unfamiliar codebases, to each project's own review process.
| Project | Contribution | Status |
|---|---|---|
| supabase/supavisor | Documented the citext + pgbouncer=true slowdown and its remedy |
Gatekeeper β typosquat screening before you install
Screens every package in a requirements.txt / package.json against the live PyPI and npm APIs before installation β typosquat risk via edit distance and confusable-character folding (rnβm, 0βo), plus registry-age and release-count heuristics. Emits a versioned JSON report for CI gating and a cleaned manifest.safe.
The README has a "Deliberately not implemented" section: maintainer account-age isn't exposed by the public registry APIs, so that signal is marked unavailable rather than guessed.
Scrubly β file tools that never upload your files
HEICβJPG, image compress/resize, EXIF/GPS and PDF metadata stripping β where the no-upload guarantee is enforced by a strict CSP with connect-src 'none', not merely promised. Stripping logic is factored DOM-free so CI can geotag a JPEG and prove the GPS is actually gone.
islanded-microgrid-fdi-sim β stealthy false-data injection on a power grid
A from-scratch simulator of an islanded, droop-controlled IEEE 33-bus microgrid (no slack bus), used to mount minimum-footprint FDI attacks (a = Hc) that pass ΟΒ² bad-data detection while driving real frequency and voltage excursions into UFLS/UVLS relay trips.
Ships labelled datasets and a non-circular detectability study β the headline numbers recompute exactly from the committed CSVs.
No security angle claimed here β this is systems work.
| Project | What it does |
|---|---|
| kvpolicy |
Quantized KV-cache persistence for local LLM agents β resume a suspended session at 3.8Γ compression, 7β14Γ faster than re-running prefill. Also reports a negative result against its own hypothesis: attention-based eviction holds perplexity flat while destroying up to 61% of exact fact recall. |
| prefixforge |
Compiles agent prompts into byte-stable, maximally cacheable prefixes (canonical tool schemas, dynamic-span detection, provider-correct breakpoints), then measures the cache hit rate providers actually report back. |
| greenToken |
Measures energy, COβe and cost of LLM inference per token from real hardware counters (NVML, nvidia-smi, Linux RAPL), with a documented FLOPs fallback for hosted models. |
