Independent AI security research

AI security research.
Measure, build, publish.

Studies, benchmarks and tools on how AI agents and models fail beyond a single product, and the controls that catch it. Every number links to its method, its data and its limits.

6Studies and benchmarks
11Open tools and labs
4Merged upstream PRs

Studies & benchmarks

Numbers with their limits attached.

Each study states how the data was collected, what it does not show, and where to inspect it.

Featured study · Measurement study

90,063 repos.
The permissions coding agents carry in git.

I scanned 90,063 public repos for the files that control coding agents. About 1 in 6 launch a tool server with no pinned version.

17.9%
of 67,009 config repos launch an unpinned tool server
46.1%
of committed personal Claude Code settings grant wildcard execution
84
regression tests from a three-round precision audit

Measurement study · snapshot of 26 Oct 2026

Popularity helps with secrets, not with unpinned launchers

Rendered from the recorded results table. Each bar is the share of repos in that star band with at least one non-fixture agent or MCP config file.

October 26, 2026 · Census results, table A (forks and fixture paths excluded)
What a single scan reports

A real run against the repository's own deliberately vulnerable example. Evidence lines and fix suggestions are omitted for space.

November 24, 2026 · agentscan 2.1.0 · examples/vuln-sample in the repository
Full transcripts and reproduction on request.ppradyoth64@gmail.com

Tools & open source

Building the controls,
not just the findings.

I build tools for model inspection, agent testing, credential protection and action authorization, and contribute fixes to NVIDIA garak, Promptfoo and Presidio.

AI security tools I build.

Inspect the model. Test the agent. Control the action. The hosted KnowYourAI platform and the knowyourai CLI are two distinct entry points into that work.

Hosted AI security platform

Hosted · bring your own key

KnowYourAI.live

I built a hosted platform for adversarial AI testing and intent-based request enforcement. IntentScan tests an endpoint’s declared boundaries. IntentEnforce applies policy before a request reaches the model.

  • An LLM judge grades capability, role and domain violations into a 0–100 risk report.
  • Allow, block or clarify policies, with scan history and PDF reports.
  • Python and FastAPI, React and TypeScript, on Firebase.

Scope. Hosted workflows require sign-in and your own model-provider key.

Open-weight model inspection

Alpha · published on PyPI

knowyourai

Inspect model headers, metadata and chat templates without running a model. A dependency-free CLI for reviewing the files you download and detecting changes after approval.

uvx knowyourai scan
  • Discover models in Hugging Face, Ollama and LM Studio. Inspect GGUF and safetensors headers.
  • Enable online checks to compare declared metadata and templates with registry records.
  • Pin revisions and digests in ai.lock, then use check as a CI gate.
  • Field result: of the 200 most-downloaded GGUF repos on Hugging Face (Oct 2026), 128 ship a chat template comparable with the declared base model, and 61 of those (48%) differ. Most are deliberate quantizer fixes, which is why the check flags for review instead of failing.

Scope. Metadata consistency and integrity checks. Findings require review and do not establish that a model is safe.

Agent action authorization

Alpha · published on PyPI

Railproof

A deterministic security contract in front of agent tool calls. Checks the complete action, principal, provenance, approvals and session budgets before execution.

  • Deny-by-default policies and one-time approvals bound to the exact action.
  • Adapters for OpenAI function calls and MCP tools/call.
  • The repo benchmark scores 10/10 on its declared requirements against 5/10 for NeMo Guardrails 0.24.0's built-in tool-call validator. A narrow comparison against one rail, not a replacement claim.

Scope. Requires integration at the tool-execution boundary.

Adversarial agent evaluation

Open benchmark · Apache-2.0

AgentInjectionBench

A benchmark for prompt injection against agentic tool-use and MCP-style pipelines. 142 attack cases across 7 categories and 40 matched benign controls make unsafe tool calls measurable and repeatable.

  • Per-case tool calls and arguments in inspectable traces.
  • Dataset fingerprints keep before-and-after runs tied to the same cases.

LLM security measurement

SSRN preprint · sole author

Weighted Safety Refusal

A severity-weighted, dual-axis refusal metric that accounts for harmful-request refusal and benign compliance. The paper studies how flat averages hide the failures that matter.

  • In the reported Llama 3.3 70B pilot, the flat average was 0.800 while WSR was 0.730. Prompt injection drove the gap.
  • The June 2026 preprint presents the metric and its gaming-resistance proof.

Agent configuration security

Open-source static scanner

agentscan

Find permission bypasses, risky MCP servers, broad tool grants, auto-run hooks and hardcoded keys in the configuration files that control a coding agent.

Scope. Static analysis of files on disk. Runs offline without model API calls.

Agent supply-chain inspection

Open-source signal scanner

Agent Supply Chain Guard

Scan skills, MCP manifests, plugins and READMEs for hidden instructions, process-execution references, credentials, wildcard permissions and invisible Unicode controls before an agent consumes them.

Scope. Conservative signals for human review, with local scanning and CI integration.

Coding-agent credential protection

Upstream proposal

Credential Guard

A guardrail proposed to Claude Code that intercepts tool calls and blocks credential writes before they reach disk. Covers more than 20 secret-pattern families, including API keys, private keys and database URLs.

  • Context guards, fixture allowlists and redacted warnings with remediation.
  • 35 unit tests in the proposal, including behavior under bypass-permissions mode.
More focused tooling 2 tools

Guardrail integration linting

Open-source Python linter

jev-guard

Flags insecure use of Jev / TypeSafe guardrails: missing thresholds, untrusted state, dangerous tools without a guardrail and decisions with no abstain or escalation path.

Scope. Build-time analysis of Python source. It does not execute the model.

Agent judgment under ambiguity

Harness · reference runs

YOLOBench

A sandboxed benchmark for whether a coding agent asks before acting on ambiguous or destructive-adjacent resources. Nine scenarios use mocked infrastructure and deterministic scoring.

Scope. Published results currently use a scripted reference backend. Real-agent evaluation remains pending.

Explore the complete KnowYourAI tool catalogue

Security education

Open-source training lab

Prompt Injection CTF

A red-teaming playground I built and open-sourced (ppradyoth/prompt-injection-ctf): 46 missions across two tracks, 16 challenges covering all 10 OWASP LLM Top 10 (2025) risks and 30 agentic missions covering the OWASP Agentic Top 10 (2026), with a defender mode that reveals the guardrail code behind each attack. Unprompted, an AI engineer at Apiiro (Shmulik Cohen) froze 11 of its system prompts as the fixtures for a nine-model experiment in August 2026 — 18 attacks, three runs each, 486 attempts, published with code and data and crediting the CTF by name.

  • GPT-3.5 fell 54/54; GPT-5.6 Sol dropped to 6/54 — real progress
  • But two CTF-sourced attacks, a direct scope override and an unbounded-consumption case, still landed on every attempt against the newest model
  • Newer models learned to rank what they trust; they still have no wall between instructions and data

Open-source contributions

4 merged8 open

Status checked · View on GitHub ↗

More upstream work

Publications & independent use

Research beyond the test.

Weighted Safety Refusal (WSR): A Reference-free, Severity-weighted, Dual-axis Metric for Evaluating LLM Refusal Behavior

SSRN preprint · June 2026 · Sole author

Flat refusal averages hide the failures that matter. WSR weights refusals by severity across two axes and is gaming-resistant by proof — in the pilot, Llama 3.3 70B scores 0.800 flat but 0.730 under WSR, and the gap is prompt injection.

Analyzing the Difficulties in Major Applications of Augmented Reality

BIBLUS — National Level Paper Presentation, NIE IEEE Student Branch · 2021 · II prize

The Prompt Injection CTF was adopted by an Apiiro engineer for a published 9-model study. Credential Guard is an upstream proposal. The original Jack & Jill vulnerability was confirmed by its founder.

All work here was performed independently, on personal time, equipment, and accounts, outside and unrelated to employment. It uses no employer systems, data, or resources and does not represent any employer's views. Disclosure history and evidence limits are recorded per case. Public exhibits omit attack payloads and sensitive source material. Full reproduction is available on request.