Skip to main content

superred-optimizer-agentvigil-websentinel

An AgentVigil indirect prompt-injection optimizer for superred agent targets.

Community port — not an official implementation. This module is an unofficial re-implementation of AgentVigil for superred. It is not affiliated with, endorsed by, or maintained by the original authors. See ASSUMPTIONS.md for every deliberate deviation from the paper and reference code.

AgentVigil is a black-box fuzzer for indirect prompt injection against LLM agents. Starting from a corpus of injection seeds, it uses MCTS/UCT selection to decide which seeds to reuse and which to explore, and an LLM mutator (expand, shorten, rephrase, crossover, generate-similar) to evolve them — searching for injections that land through content the agent reads (web pages, retrieved documents, tool results, memory).

References: "AgentVigil: Generic Black-Box Red-teaming for Indirect Prompt Injection against LLM Agents," arXiv:2505.05849, and "WebSentinel: Detecting and Localizing Prompt Injection Attacks for Web Agents," arXiv:2602.03792. Official implementation: wzunknown/agentvigil-websentinel. See ASSUMPTIONS.md for the full paper-to-code mapping and every deliberate departure.

WebSentinel is the detector/localizer side of the upstream work; this module implements the attack-generation side (the fuzzer described above) and does not implement a separate WebSentinel defense.

Install

pip install superred-optimizer-agentvigil-websentinel

Usage

from agentvigil_websentinel_optimizer import AgentVigilWebSentinelOptimizer

# Defaults: the official `new_seeds` web/content corpus, population_size=10,
# max_attempts=20 (mirrors the official fuzz-loop count).
optimizer = AgentVigilWebSentinelOptimizer()

# Also include the older official text-seed corpus.
optimizer = AgentVigilWebSentinelOptimizer(include_text_seeds=True)

This optimizer targets agent-style targets (AgentDojo, browser/RAG/memory/ MCP agents) that expose a content or tool-result surface. Wire it into a Controller like any other superred optimizer — see the framework's architecture overview.

License

This module is licensed under the MIT License.

It bundles seed corpora and mutator prompt text extracted from the upstream reference implementation, wzunknown/agentvigil-websentinel (the mutator prompts from mutate_prompts.py and the seed corpora from new_seeds.py/seeds.py). That repository publishes no license file; the upstream authors granted the superred maintainers permission, in private correspondence, to redistribute the ported material under MIT terms. See NOTICE for the full attribution and LICENSES/ for the license text applied to the upstream material.

Metadata

Release files for superred-optimizer-agentvigil-websentinel 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for superred-optimizer-agentvigil-websentinel 0.1.0
File Size Uploaded Provenance
superred_optimizer_agentvigil_websentinel-0.1.0.tar.gz 43.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for superred-optimizer-agentvigil-websentinel 0.1.0
File Interpreter ABI Platform
superred_optimizer_agentvigil_websentinel-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.8 kB

Release files / superred_optimizer_agentvigil_websentinel-0.1.0.tar.gz

Download URL superred_optimizer_agentvigil_websentinel-0.1.0.tar.gz
Size 43.1 kB
Tags Source
SHA-256 checksum
How to use checksums
73631d54bec1b3bb26788cd0c505163fef496967a66bc2ee55c11c81184ce0e1
BLAKE2b-256 checksum
How to use checksums
6cdf1509fa7a7fb7467d491ae774dc294bf01740b8d11c9e38ec07931d075646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / superred_optimizer_agentvigil_websentinel-0.1.0-py3-none-any.whl

Download URL superred_optimizer_agentvigil_websentinel-0.1.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80c3924b3631d7192fde487b7bf605f97bf466f46764d94a0ac7c2187c05c6c2
BLAKE2b-256 checksum
How to use checksums
4ae31ce0db2071954a1f69041d986c9db3d58ff42444da37020e6cc77486bbab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Security for superred-optimizer-agentvigil-websentinel 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for superred_optimizer_agentvigil_websentinel-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page