agent-sanitizer 2.47.7 → 2.47.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,12 +1,8 @@
1
1
  # `agent-sanitizer`
2
2
 
3
- Most prompt-injection tools run a classifier _over_ the text and hope it
4
- generalizes. This library targets a narrower, verifiable claim: the
5
- specific byte-level channels—invisible Unicode, ANSI escapes, human-hidden
6
- HTML, confusable glyphs and look-alike hosts, exfil-shaped URLs—that let an
7
- attacker smuggle a payload the operator can't see but the model still reads.
8
- Every layer is a
9
- deterministic transform you can unit-test with equality assertions.
3
+ **Cleans untrusted text before your agent reads it.** An attacker hides a payload where a person cannot see it but the model still reads it: invisible Unicode, ANSI escapes, human-hidden HTML, confusable glyphs, look-alike hosts, and exfil-shaped URLs.
4
+
5
+ This library handles each channel on its own terms. It strips invisible characters and ANSI escapes by default, splices out hidden HTML when you opt in, and _reports_ exfil-shaped URLs and look-alike hosts rather than rewriting them — mangling a legitimate link is the worse failure. Every layer is a deterministic transform, so you can unit-test it with equality assertions. There is no classifier and no model call, so nothing rests on whether a prediction generalized.
10
6
 
11
7
  **As a library:**
12
8
 
@@ -28,9 +24,7 @@ Enter one at a time:
28
24
 
29
25
  Finally, navigate: `/plugin` → Marketplaces → `agent-sanitizer` → Enable auto-update.
30
26
 
31
- [What installing entails](#what-installing-entails) covers the footprint of each
32
- path and how a failure looks; [Using it with Claude
33
- Code](#using-it-with-claude-code) covers each hook and hand-wiring.
27
+ [What installing entails](#what-installing-entails) covers the footprint of each path and how a failure looks; [Using it with Claude Code](#using-it-with-claude-code) covers each hook and hand-wiring.
34
28
 
35
29
  ## Quick start
36
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-sanitizer",
3
- "version": "2.47.7",
3
+ "version": "2.47.8",
4
4
  "description": "Defend an agent against hidden-content injection: strip payload-capable invisible Unicode and ANSI, splice out human-invisible HTML, and flag data-exfil URLs in untrusted text before any model sees it.",
5
5
  "type": "module",
6
6
  "repository": {