Skip to main content

superred-optimizer-eia-agent

An EIA (Environmental Injection Attack) optimizer for superred web-agent targets.

Community port — not an official implementation. This module is an unofficial re-implementation of EIA (Liao et al., OSU NLP Group) 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.

EIA attacks web agents by changing the environment rather than the instruction. It plants hidden or visually subtle HTML elements — persuasive labels, injected form fields, aria-labels — on a page the agent reads. The agent then grounds its next action to the attacker's element and types private information into it, leaking data without ever being told to.

Reference: Liao et al., "EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage," arXiv:2409.11295 (ICLR 2025). Official implementation: OSU-NLP-Group/EIA_against_webagent. See ASSUMPTIONS.md for the full paper-to-code mapping and every deliberate departure.

Install

pip install superred-optimizer-eia-agent

Usage

from eia_agent_optimizer import EIAAgentOptimizer

# Defaults follow the paper/code mainline (action_grounding + form_type1,
# near_bot_1 placement, zero-opacity injection).
optimizer = EIAAgentOptimizer()

# Supply the leak target so the local no-feedback evaluator can verify the value.
optimizer = EIAAgentOptimizer(privacy_type="credit_card", target_secret="4111...")

This optimizer targets agent-style targets (AgentDojo-style browser/web agents). Wire it into a Controller like any other superred optimizer — see the framework's architecture overview.

License

MIT for this port's code (see LICENSE). The upstream reference implementation, OSU-NLP-Group/EIA_against_webagent, is MIT licensed. The HTML form, style, and submit-script templates ported from its injection/ code are credited in NOTICE, and its MIT copyright notice is preserved in LICENSES/EIA_against_webagent-MIT.txt.

(The separate SeeAct/ directory in that repository is under the AI PUBS OpenRAIL-S license; this module does not use or copy from it — the bundled templates come only from the MIT-licensed injection/ code.)

Metadata

Release files for superred-optimizer-eia-agent 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-eia-agent 0.1.0
File Size Uploaded Provenance
superred_optimizer_eia_agent-0.1.0.tar.gz 34.0 kB With provenance Details

Built distribution (wheel)

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

Total release size: 56.5 kB

Release files / superred_optimizer_eia_agent-0.1.0.tar.gz

Download URL superred_optimizer_eia_agent-0.1.0.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a206326e0c7899cb97dcf649a7244f1028069ab6a9295ddfdbfd85f14e8cb0ea
BLAKE2b-256 checksum
How to use checksums
2644a3a18ce96be9a01dd1a583d4d6b75f5bc9dd4f1f5e4853c5c53b7fb78cb5
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_eia_agent-0.1.0-py3-none-any.whl

Download URL superred_optimizer_eia_agent-0.1.0-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cea875370a868bcf784d4e12b5c2a86c00bf1b72f5e13cc0b1270c51d706b8c3
BLAKE2b-256 checksum
How to use checksums
82b2cbd7eb22b88dbc41f03f500193e31df1fa3a858a9e801a252152590d1b4c
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-eia-agent 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_eia_agent-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