@acepaste/ingress-http
v0.12.1
Published
AcePaste Ingress as an HTTP service: checks pages and text for hidden prompt-injection instructions before your AI agent reads them, and refuses or flags what it finds, with hash-chained receipts.
Maintainers
Readme
@acepaste/ingress-http
Checks what your AI agent reads for hidden instructions before it reads it. A local gate in front of your agent's web fetch: it compares what a person would see with what the model would receive, refuses or holds pages that hide instructions from people, and keeps a hash-chained receipt for every decision (signed when you configure a key). Runs locally, no telemetry. It catches many hidden injections, not all: see Results and limits.

What it is, in plain words: prompt injection is when someone plants instructions in what an AI agent reads (a web page, a file, an MCP tool description) and hopes the agent treats them as orders. The worst versions are hidden from people: white-on-white text, off-screen text, HTML comments, invisible Unicode. Ingress is built to catch what people can't see; plainly visible injections mostly get through, and it misses some hidden techniques too. Use it alongside model-side defenses and least-privilege tools. For people who build or run AI agents and MCP tools.
- Checks web pages for hidden instructions: invisible Unicode, CSS-hidden or same-colour text, payloads in attributes, comments, SVG or
srcdoc, and pages that show bots something different.ingress https://example.com - Shows you what your agent sees:
ingress showwrites one HTML page with what a person sees beside what the agent receives, hidden text highlighted.ingress show https://example.com --open - Checks files and knowledge bases:
ingress filescanfinds hidden text in PDFs, Word, Excel, PowerPoint and images;ingress corpusscanchecks a whole RAG folder and moves hostile files aside.ingress corpusscan ./docs --quarantine ./held - Checks your MCP servers:
ingress mcpscanfinds poisoned tool descriptions, look-alike tool names and tools that changed since you pinned them.ingress mcpscan --connect - Gates repos for coding agents:
ingress reposcanand a GitHub Action flag Trojan Source Unicode, instructions hidden in markdown, poisoned AGENTS.md files and risky install scripts.ingress reposcan --diff origin/main - Catches data leaving in links and images:
ingress outcheckreads a model's reply for data hidden in image URLs, links and subdomains before it is rendered; the action broker does the same for tool calls.ingress outcheck --safe < reply.md - Checks packages before install:
ingress pkgcheckcatches made-up package names, lookalikes of popular ones and brand-new packages with install scripts.ingress pkgcheck npm left-pad - Checks your own APIs:
ingress apiscanlooks for exposed files, open CORS, missing auth, leaked keys and responses an agent would obey, with safe read-only requests.ingress apiscan https://api.example.com - Keeps a receipt for every verdict, and asks a person before risky actions: hash-chained receipts, signed with ECDSA P-256 when a key is set, record what your agent read and what Ingress decided; once outside content is read, side-effecting tool calls need human approval.
- Quarantines sources: block a host and see everything it already delivered.
- Runs on your machine: MCP server, CLI and library, or HTTP service. No telemetry (PRIVACY.md).
Every command runs as npx @acepaste/ingress <command>, or as ingress <command> after npm install -g @acepaste/ingress.
Full documentation: https://github.com/sugarcypher/acepasteINGRESS
Results and limits
On a sealed test of 1,002 attacks it had never seen (Hidden Injection Bench held-out-v2, scored once), Ingress 0.11.0 caught 60.1% of attacks and 63.8% of truly hidden ones, with 0 false alarms on 1,002 benign items (0.10.0: 35.5% and 28.1%, 4.8% false alarms). It misses most plainly visible injections (BIPIA: 0.02%) and some hidden techniques (script-injected text, MCP tool parameter descriptions). Use it alongside model-side defenses and least-privilege tools. Details: docs/HIB-RESULTS-fixes.md.
AcePaste Ingress as a metered HTTP service with a public attack feed and a per-key audit plane.
PORT=8787 INGRESS_KEYS="key1:acme" INGRESS_SIGNING_KEY=… npx @acepaste/ingress-httpPOST /v1/scan, POST /v1/fetch, POST /v1/verify (Bearer key; refusals return 422). GET /v1/feed and / (public attack feed: attacking hosts and payload excerpts, never customer content). GET /v1/receipts, /v1/receipts/export, /v1/receipts/stats, /console (the caller's own receipts).
Full documentation and deploy notes: https://github.com/sugarcypher/acepasteINGRESS
