Package verifier
How Sentinel catches made-up or off-stack software packages in the model's code
The SUPERWISE® Sentinel package verifier is an output guardrail: it reads the model's response, finds the software packages the code references, and catches the ones that are made up, off-stack, or blocklisted before that response reaches your application.
This guards against slopsquatting: models often hallucinate plausible-looking package names, and attackers register those names with malicious code. A developer who copies the model's pip install or npm install line can pull in a package that never should have existed. The guardrail checks each referenced package against the real registry and flags the ones that aren't there.
Action: This guardrail works on the response, so instead of blocking it, you choose how it responds — remediate (replace each offending package with your placeholder text), flag (record a finding and forward the response unchanged), or disclaimer (append your disclaimer text to the response). See Manage guardrails.
What it catches
- Made up — the package name doesn't exist in its registry.
- Off-stack — the package belongs to an ecosystem you didn't enable for this Sentinel.
- Blocklisted — the package is on a blocklist you maintain.
Parameters
- Ecosystems — which package ecosystems to check, each with its registry. Supported ecosystems include npm, PyPI, Cargo, Go, Maven, NuGet, Packagist, and RubyGems.
- Sources — where in the response to look for packages (for example install commands versus import statements).
- Blocklist — package names to always treat as a finding, regardless of whether they exist.
Example interception
With disclaimer selected and a response that recommends a package that isn't on PyPI:
Model response:
"Install the helper with: pip install superfast-jsonparser"
If superfast-jsonparser isn't a real PyPI package, Sentinel forwards the response and appends a note such as "One or more packages in this response could not be verified — check them before installing." With remediate instead, the package name is replaced with your placeholder text.
Get Sentinel: Sentinel on superwise.ai.
See also
- URL verifier: check that links in the model's response are well-formed and real.
- Manage guardrails: add the guardrail, choose its action, and test it before publishing.
- Guardrails: what each guardrail catches.
Updated about 1 hour ago