Current topics of interest and research: AI security, agent visibility, kernel-altitude enforcement, post-quantum readiness. The work splits into two halves — the research papers below and the open-source projects behind them. The papers are living drafts, revised as the implementations move; every paper belongs to a project, and every paper-backed project links back.

Papers#

All four papers are work in progress and live beside the code they describe.

trishula#

Paper: Trishula: An eBPF-Native, Developer-First Web Application and API Firewall for Kubernetes (PDF) · 19 pp

The WAF is the last major security control that never crossed into developer ubiquity — iptables, mTLS, OAuth and secrets vaults all went pervasive on usable tooling, while the WAF stayed appliance-shaped, leaving most Kubernetes estates with an awkwardly bolted nginx hop or nothing at all. The paper carries the adoptability thesis and the design: three deployables compiled from one policy source — a per-node eBPF shield (XDP at the NIC, TC at the interfaces) answering in roughly a microsecond, and a userspace engine running a seven-family detection ladder with verdict-level parity against OWASP CRS via an embedded Coraza reference evaluator. Includes the field survey of Coraza, ModSecurity, SafeLine, open-appsec, CrowdSec and fail2ban with the feature-coverage matrix, and the adoption plan for developer-first rollout.

kailash#

Paper: Kailash OS — An Operating System for Building and Securing AI (PDF) · 21 pp

Builders and breakers of AI systems work in disjoint environments today: builders in language-specific virtual environments with per-project state, breakers on rolling general-purpose penetration-testing distributions. Kailash OS applies the distribution contract that made Kali Linux the default security environment to the stack Kali never mapped — packaging the full lifecycle of AI security work: offensive tooling (LLM red teaming, prompt injection, agent/MCP attacks, model supply chain, adversarial ML), defensive tooling (guardrail frameworks, evaluation harnesses, model provenance and signing), and the platform layer underneath. The paper records the taxonomy derivation from MITRE ATLAS and the OWASP standards, the manifest-driven architecture, and the release engineering of a reproducible, lockfile-versioned OS.

agentpcap#

Paper: Agentpcap: reading agent tool calls at the socket boundary (PDF) · 11 pp

A survey of what an operator can see today of agent tool-call traffic, across four classes of tooling: in-path gateways, secure web gateways with protocol detection, endpoint and eBPF capture, and inventory scanning. Each class resolves part of the problem and leaves structural residue — routed-only coverage, mandatory TLS decryption, per-host agent scoping, missing MCP session semantics, no append-only record of tool flows — collapsing to a six-item gap set. The paper sketches the deliberately narrow build that closes it: a read-only tap at socket and pipe boundaries that reassembles MCP and agent-to-agent sessions and appends every flow to a lossless, per-host ledger for capability-drift review — one static binary, two placement modes, no gateway in the path.

pqscan#

Paper: pqscan: A Fast, Chainable Cipher-Configuration Scanner for TLS, QUIC, and Post-Quantum Readiness (PDF) · 22 pp

The NIST post-quantum standardisation wave moved PQ readiness out of research papers and into the live cipher-configuration layer of TLS and QUIC — the layer security teams audit least and tooling covers worst: exhaustive probes are interactive and one target at a time, fast large-scale scanners carry thin TLS insight and no post-quantum classification. The paper presents pqscan, a single static Go binary that reads the complete cipher-configuration plane (protocol versions, cipher suites, key-exchange groups, signature algorithms, certificates) in four modes — fast, deep, pq, selftest — and emits chainable, schema-versioned JSONL, scoring every negotiated parameter pq / pq_hybrid / classic / obsolete, with classification tables generated from the IANA registry rather than hand-edited.

Projects#

The tooling behind the work above — six open-source projects at different stages, from attested releases to incubating efforts. Each entry links its repo and website; the four with papers link back to theirs.

kailash#

A NixOS-based Linux distribution for AI security — one declaratively built environment for offensive, defensive, and platform tooling. kailash keeps the distribution contract that made Kali Linux the default security environment: curated tooling, category navigation, live images, and self-consistent surfaces. The AI systems stack is the surface Kali Linux never mapped — the Nix flakes define everything that attacks, defends, or runs an AI system exactly once.

trishula#

A web application and API firewall for Kubernetes — eBPF-native and developer-first. Policy compiles into two planes: an XDP/kernel plane answers the cheap decisions in microseconds; a userspace plane runs the deep checks, using positive security (fingerprinting, behaviour analysis) rather than signature lists alone. Policy source: CEL rules over a structured request view, or the OpenAPI spec the API already has — no proprietary rule language, no vendor console. Installs as three workloads via Helm; every verdict is a correlated OpenTelemetry record.

agentpcap#

A read-only tap that observes the socket and pipe boundaries where language-model agents reach their tools, reassembling MCP and A2A traffic into classified sessions. It produces the artefact none of the market produces: an append-only, hash-chained per-host record of who called what, with which capabilities, when. One static Rust binary with eBPF — no agent-side library, no routing change, no gateway in the path.

pqscan#

A post-quantum readiness scanner for TLS and QUIC endpoints. It reads one target or a target list and writes one scan record per target: the full TLS/QUIC configuration, a PQ readiness rating, ML-KEM/hybrid group detection (including obsolete-draft exposure — harvest-now-decrypt-later hygiene), and legacy suites. One small static binary; streams JSONL so it chains with the recon toolset — target lines in from subfinder/httpx/naabu, records out.

opensase#

An open, self-hosted SASE-style edge, deployed from a single source of truth — a Nix flake. Clients connect over OpenVPN; an mitmproxy add-on decrypts and re-encrypts traffic per a URL-category policy; every payload is scanned by ClamAV; every verdict is written to a JSONL decision log. It is growing two halves: the SASE edge for teams and servers, and a home appliance installed like Pi-hole with per-device policy — the same flake that boots the appliance emits the GHCR containers byte-for-byte.

ai-sec-lab#

A single-node AI prompt-security lab that runs on one Apple-Silicon MacBook Pro: a Kubernetes Gateway API edge, a policy gate (NOVA — keywords, semantics, LLM judge — plus Laya typed verdicts), a real LLM application, and an attack corpus. The corpus succeeds against the ungated path and returns 403 through the gated edge. Everything is FOSS and declarative: the machine is a NixOS flake, the cluster is OpenTofu, the policy lives in Git, and the notebooks are the acceptance tests.