SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 TypeScript prompt-injection Projects
-
superagent
Superagent protects your AI applications against prompt injections, data leaks, and harmful outputs. Embed safety directly into your app and prove compliance to your customers. (by superagent-ai)
Project mention: Show HN: Local Privacy Firewall-blocks PII and secrets before ChatGPT sees them | news.ycombinator.com | 2025-12-09 -
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
arcjet-js
Runtime security for AI apps and agents: prompt injection detection, tool-call authorization, sensitive-data redaction, bot protection, and rate limiting. Drop it into your JS/TS code.
-
0
Open-source AI security harness. Includes a web UI for code analysis, pentesting, vulnerability research, reverse engineering, verification, and fixing + CLI and MCP for agents. (by 0sec-labs)
Project mention: Cybersecurity harness for full-stack LLM-driven penetration testing | news.ycombinator.com | 2026-09-29 -
agent-threat-rules
Open detection-rule standard for AI agent security threats — like Sigma, but for AI agents. Executable, testable rules for prompt injection, tool poisoning, context exfiltration and MCP attacks. Merged into open-source projects at Microsoft, Cisco, Gen Digital, MISP and FINOS. MIT-licensed.
Project mention: I Scanned 2,386 MCP Packages on npm. 402 Were Critical. Here's What I Found. | dev.to | 2026-03-22Everything is open source (MIT): ATR rules + PanGuard scanner
-
Project mention: 10 Jev GitHub projects, explained through Jevfast.com's decision charts | dev.to | 2026-10-12
GitHub repository · Jevfast decision view
-
defender
Open source prompt injection protection for Agents calling tools (via MCP, CLI or direct function calling). Detect and defend against prompt injection attacks. 22MB, CPU-only, < 10ms latency. (by StackOneHQ)
Project mention: Show HN: Open-Source Lightweight Prompt Injection Safety | news.ycombinator.com | 2026-09-15 -
panguard-ai
Open-source security platform for AI agents -- audits skills before install, monitors 24/7, shares threat intelligence across all users. | AI Agent 開源安全平台 -- 安裝前審計 skill、24/7 即時監控、社群共享威脅情報。
Project mention: I Scanned 2,386 MCP Packages on npm. 402 Were Critical. Here's What I Found. | dev.to | 2026-03-22Everything is open source (MIT): ATR rules + PanGuard scanner
-
Stroq
Find known secrets in your AI coding agent sessions (Claude Code, Codex, Cursor), then guard the next one with local hooks that trace risky commands to the content that dictated them. Open source, no telemetry.
Project mention: Show HN: Stroq – a local audit of what your coding agent did and why | news.ycombinator.com | 2026-11-05 -
-
agentshield-benchmark
Open benchmark for AI agent security tools — prompt injection, data exfiltration, tool abuse, provenance
Project mention: GentShield – Open benchmark of 6 AI agent security tools (537 test cases) | news.ycombinator.com | 2026-02-15 -
SupraWall
The open-source security layer for AI agents. Deterministic guardrails, PII redaction, and EU AI Act compliance in one line of code.
Website: https://supra-wall.com
-
agent-chaperone
Screens an AI agent's tool calls before they run and tool results before the agent reads them. An MCP proxy plus a hooks adapter for a client's built-in tools.
Project mention: Show HN: Agent Chaperone – Screen AI agent tool calls and results with Jev | news.ycombinator.com | 2026-09-21 -
PROMPTPurify
Prompt-injection guardrail for LLM applications. Compact model that outperforms larger open-source guards. No regex, no signatures. Demo: anton.securelayer7.net
Project mention: PROMPTPurify: MB CPU-only prompt-injection guard (benchmarked vs. OSS guard) | news.ycombinator.com | 2026-05-29 -
agent-shield
Multi-engine security scanner for AI agents, MCP servers & plugins — 13 engines, one report.
We built Agent Shield, a security scanner for AI agent tools, and used it to audit 17 of the most popular MCP servers — including official ones from Anthropic, AWS, Cloudflare, Docker, Brave, and Azure.
-
Mirage
Mirage - a browser extension that red-teams your AI like a real attacker. Autonomous recon→plan→test→judge→iterate agent, multi-provider, deterministic scoring. By KageX. (by kagexai)
-
cerberus
🐺 Cerberus — local-first security gateway for AI coding agents. Intercept, risk-score & human-approve every tool call (Claude Code, Codex, Cursor, Cline). (by Adirdabush1)
Project mention: Cerberus – a local firewall for AI agents' tool calls | news.ycombinator.com | 2026-06-27 -
llm-fw
A local prompt injection firewall that intercepts traffic between your tools and every major LLM API before it leaves your machine. Malicious prompts are blocked and logged; clean ones are forwarded transparently.
-
toolpoison
Security scanner for MCP servers. Detects tool poisoning, prompt injection hidden in tool descriptions, leaked API keys, and supply-chain risk across Claude, Cursor, VS Code, Windsurf and Zed configs. One command, no API key.
This document is maintained alongside toolpoison, a scanner that detects most of what is described here. It is written to be useful on its own.
-
gateway
The security gateway for AI agents. One local, OpenAI-compatible endpoint for every model provider, with guardrails on by default and a signed, offline-verifiable receipt on every response. (by AxioRank)
-
wardrail
Local security scanner for vibe-coded apps: stop API key leaks, Git-history secrets, and unsafe MCP or AI agent instructions before commit.
Project mention: I built a small open-source scanner for API-key mistakes in vibe-coded projects | dev.to | 2026-07-29 -
mcpcustoms
MCPCustoms is the customs checkpoint for MCP tool calls: a zero-dependency TypeScript runtime semantic firewall that inspects every Massive Intelligence (IM) agent tool call before execution. Detects tool poisoning, command/SQL/prompt injection, path traversal, and capability overreach; verifies signed Ed25519 publishers; fail-closed by default.
Project mention: These tools provide the engineering substrate required to meet the rigorous safety and economic constraints of production environments. | dev.to | 2026-06-28 -
agentic-web-check
Open-source browser evaluator for whether AI agents can actually use websites: 43 checks, task verdicts and a safety review. Local CLI, no telemetry. MIT.
Project mention: Can AI Agents Actually Use Your Website? I Built a Tool to Find Out | dev.to | 2026-10-05 -
safelabs-guard
Runtime guardrail that stops multimodal agents from being fooled — Muse Spark + SAM 3.1 + Muse Voice verify perception against a deterministic ledger before action.
GitHub repository
TypeScript prompt-injection discussion
TypeScript prompt-injection related posts
-
A Practical Taxonomy of Prompt Injection: 11 Techniques and What Stops Each One
-
Signed-Cookie Sessions Without a Login (HMAC in About 40 Lines)
-
We attacked our own MCP firewall with its source code open. 14 of 17 attacks got through; now 2 of 23 do
-
MCP servers edit the instructions your agent reads. WARDEN 0.18 shows which words changed
-
A period bypassed our scanner. A reused IP confused our observer.
-
Migrating a Synchronous better-sqlite3 Layer to Async Cloudflare D1 (Without Losing Local Dev)
-
285 Ways to Attack an AI Agent — A Security Taxonomy
-
A note from our sponsor - SaaSHub
www.saashub.com | 7 Nov 2026
Index
What are some of the best open-source prompt-injection projects in TypeScript? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | superagent | 6,788 |
| 2 | arcjet-js | 698 |
| 3 | 0 | 593 |
| 4 | agent-threat-rules | 425 |
| 5 | JevPromptShield | 202 |
| 6 | defender | 132 |
| 7 | panguard-ai | 67 |
| 8 | Stroq | 59 |
| 9 | prompt-injector | 34 |
| 10 | agentshield-benchmark | 28 |
| 11 | SupraWall | 25 |
| 12 | agent-chaperone | 22 |
| 13 | PROMPTPurify | 17 |
| 14 | agent-shield | 16 |
| 15 | Mirage | 10 |
| 16 | cerberus | 10 |
| 17 | llm-fw | 8 |
| 18 | toolpoison | 4 |
| 19 | gateway | 3 |
| 20 | wardrail | 2 |
| 21 | mcpcustoms | 2 |
| 22 | agentic-web-check | 2 |
| 23 | safelabs-guard | 1 |