Indirect prompt injection demo: the README looks harmless, the model sees a hidden instruction
A developer released Tamga, an open-source tool that scans agent tool results for hidden prompt injections before the model sees them. A demo shows it catching an HTML-embedded instruction inside a README and blocking the request with a 403. The author reports strong detection on a self-written test set while urging caution about generalization.
- Tamga scans tool results on the next request and blocks hidden instructions with a 403, or can strip just the flagged result and continue the session
- A demo README renders as a normal setup guide but carries an HTML comment telling the assistant to ignore its guidelines
- Tamga's self-authored held-out set catches 78 of 78 attacks with 0 of 85 benign texts flagged
- Tamga is available at github.com/yatuk/tamga
Related
Unveil: scanner for hidden text that carries indirect prompt injections in repos, issues, and docs
Unveil is a scanner that detects text hidden from human readers — zero-width characters, bidi overrides, ANSI escapes, HTML comments — that coding agents may treat as instructions. It targets indirect prompt injection in GitHub repos, issues, and documentation. It serves developers and maintainers who review agent-facing repositories for safety.
Unveil is a scanner that detects text hidden from human readers — zero-width characters, bidi overrides, ANSI escapes, HTML comments — that coding agents may treat as instructions. It targets indirect prompt injection in GitHub repos, issues, and documentation. It serves developers and maintainers who review agent-facing repositories for safety.
CanaryGuard ships as MCP server to sanitize untrusted tool outputs before agent memory persistence
A developer packaged CanaryGuard as an MCP server and REST utility that sanitizes untrusted tool outputs before they reach vector storage or conversation memory, targeting persistent prompt injection in agent swarms. It performs deterministic lexical scanning with no secondary model calls, so practitioners can add a sanitization step to agent pipelines without latency or API cost.
A developer packaged CanaryGuard as an MCP server and REST utility that sanitizes untrusted tool outputs before they reach vector storage or conversation memory, targeting persistent prompt injection in agent swarms. It performs deterministic lexical scanning with no secondary model calls, so practitioners can add a sanitization step to agent pipelines without latency or API cost.
Prompt Guard 2 flags 0 of 27 AgentDojo injection payloads even in isolation: benchmark + analysis
A developer benchmarked Meta's Prompt Guard 2 (86M) against 629 AgentDojo prompt-injection attacks embedded in realistic tool outputs. The classifier flagged 6 of 629, and even scored 0 of 27 attack payloads in isolation, showing text classifiers cannot detect context-dependent agent attacks. The author argues agent firewalls need provenance tracking and per-tool rules instead.
A developer benchmarked Meta's Prompt Guard 2 (86M) against 629 AgentDojo prompt-injection attacks embedded in realistic tool outputs. The classifier flagged 6 of 629, and even scored 0 of 27 attack payloads in isolation, showing text classifiers cannot detect context-dependent agent attacks. The author argues agent firewalls need provenance tracking and per-tool rules instead.
Does a smaller local model make a useful prompt injection detector?
Practitioners on Reddit are discussing self-hosted detection of indirect prompt injections in RAG retrieved documents and agent tool results, driven by compliance bans on sending sensitive data to cloud guardrails like Google Model Armor or AWS Bedrock. Open questions include which open-weight small models (Prompt Guard 2 86M, PIGuard, StackOne Defender) work reliably — especially in German — and how to tune false positives on legitimate text containing instruction-like phrases.
Practitioners on Reddit are discussing self-hosted detection of indirect prompt injections in RAG retrieved documents and agent tool results, driven by compliance bans on sending sensitive data to cloud guardrails like Google Model Armor or AWS Bedrock. Open questions include which open-weight small models (Prompt Guard 2 86M, PIGuard, StackOne Defender) work reliably — especially in German — and how to tune false positives on legitimate text containing instruction-like phrases.
malskanner open-source tool scans repos for hidden prompt-injection payloads before AI agents trust them
A developer released malskanner, an open-source tool that scans repository READMEs, docs, and comments for hidden prompt-injection payloads (zero-width chars, bidi overrides, Unicode tag-smuggling, base64, homoglyphs) before AI coding agents like Claude Code or Cursor ingest them. The tool returns REFUSE/WARN/OK and runs as a CLI, GitHub Action, or MCP server, addressing the risk of malicious repos hijacking agents to exfiltrate secrets or run commands.
A developer released malskanner, an open-source tool that scans repository READMEs, docs, and comments for hidden prompt-injection payloads (zero-width chars, bidi overrides, Unicode tag-smuggling, base64, homoglyphs) before AI coding agents like Claude Code or Cursor ingest them. The tool returns REFUSE/WARN/OK and runs as a CLI, GitHub Action, or MCP server, addressing the risk of malicious repos hijacking agents to exfiltrate secrets or run commands.



