TypeScript prompt-injection

Open-source TypeScript projects categorized as prompt-injection

Top 23 TypeScript prompt-injection Projects

prompt-injection
  1. 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
  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. 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.

  4. 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
  5. 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-22

    Everything is open source (MIT): ATR rules + PanGuard scanner

  6. JevPromptShield

    Protect LLM agents against malicious prompts using JEV

    Project mention: 10 Jev GitHub projects, explained through Jevfast.com's decision charts | dev.to | 2026-10-12

    GitHub repository · Jevfast decision view

  7. 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
  8. 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-22

    Everything is open source (MIT): ATR rules + PanGuard scanner

  9. 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
  10. prompt-injector

    AI security and prompt injection payload toolkit

  11. 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
  12. SupraWall

    The open-source security layer for AI agents. Deterministic guardrails, PII redaction, and EU AI Act compliance in one line of code.

    Project mention: Why AI Agents Need a Firewall: Introducing Suprawall | dev.to | 2026-05-01

    Website: https://supra-wall.com

  13. 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
  14. 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
  15. agent-shield

    Multi-engine security scanner for AI agents, MCP servers & plugins — 13 engines, one report.

    Project mention: We Scanned 17 Popular MCP Servers — Here's What We Found | dev.to | 2026-03-13

    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.

  16. 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)

  17. 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
  18. 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.

  19. 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.

    Project mention: MCP attack classes: a reference | dev.to | 2026-08-10

    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.

  20. 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)

    Project mention: Logs are claims. Receipts are proofs. | dev.to | 2026-07-12
  21. 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
  22. 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
  23. 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
  24. 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.

    Project mention: Why AI Agents Need an Independent Verification Layer | dev.to | 2026-11-02

    GitHub repository

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript prompt-injection discussion

Log in or Post with

TypeScript prompt-injection related posts

  • A Practical Taxonomy of Prompt Injection: 11 Techniques and What Stops Each One

    1 project | dev.to | 2 Nov 2026
  • Signed-Cookie Sessions Without a Login (HMAC in About 40 Lines)

    1 project | dev.to | 29 Oct 2026
  • We attacked our own MCP firewall with its source code open. 14 of 17 attacks got through; now 2 of 23 do

    1 project | dev.to | 23 Oct 2026
  • MCP servers edit the instructions your agent reads. WARDEN 0.18 shows which words changed

    1 project | dev.to | 22 Oct 2026
  • A period bypassed our scanner. A reused IP confused our observer.

    1 project | dev.to | 18 Oct 2026
  • Migrating a Synchronous better-sqlite3 Layer to Async Cloudflare D1 (Without Losing Local Dev)

    1 project | dev.to | 17 Oct 2026
  • 285 Ways to Attack an AI Agent — A Security Taxonomy

    1 project | dev.to | 30 Mar 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 7 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?