superred-optimizer-chord-xthp
A Chord (Cross-Tool Harvesting and Polluting, XTHP) optimizer for superred agent targets.
Chord attacks tool-using LLM agents by slipping a malicious helper tool into the agent's pool of tools. Positioned right before or after a legitimate "victim" tool in the call sequence, the helper can harvest sensitive context the agent passes around, hijack the control flow, or pollute the final answer with attacker-controlled output.
Reference: Wang et al., "Les Dissonances: Cross-Tool Harvesting and Polluting in
Pool-of-Tools Empowered LLM Agents,"
arXiv:2504.03111 (NDSS 2026). Official
implementation:
systemsecurity-uiuc/Chord
(MIT License). See ASSUMPTIONS.md for the full paper-to-code
mapping and every deliberate departure.
Install
pip install superred-optimizer-chord-xthp
Usage
from chord_xthp_optimizer import ChordXTHPOptimizer
# Default direction is `both` (predecessor + successor helper variants),
# hijack attack enabled.
optimizer = ChordXTHPOptimizer()
# Target a specific victim tool and enable multiple attack types.
optimizer = ChordXTHPOptimizer(
victim_tool_name="get_user_address",
enabled_attacks=("hijack", "harvest", "pollute"),
)
This optimizer targets agent-style targets that expose a writable tool/skill
catalog. 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, systemsecurity-uiuc/Chord,
is MIT licensed. The bundled helper data originates from that repository; its
MIT copyright notice is preserved in NOTICE and
LICENSES/Chord-MIT.txt. This port reimplements the
attack against superred's event model rather than vendoring Chord's agent
runtime.
Metadata
Release files for superred-optimizer-chord-xthp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| superred_optimizer_chord_xthp-0.1.0.tar.gz | 36.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.9 kB
Release files / superred_optimizer_chord_xthp-0.1.0.tar.gz
| Download URL | superred_optimizer_chord_xthp-0.1.0.tar.gz |
|---|---|
| Size | 36.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91fd369a3e614ede0c690be5a9a4f53ab32c083595751ad3b9fe3639ed3fa0db
|
|
BLAKE2b-256 checksum How to use checksums |
270dce9f07f385645a9a4b05e72a6c76552a2e13ae14c1a7b72607f99baebea9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency logRelease files / superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl
| Download URL | superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dce5e6edee8e8cb7f27630c60150b724e60cc2a9231d1523cee4c9506c00558
|
|
BLAKE2b-256 checksum How to use checksums |
2c410b1efcc40144e883426898cc33047daf79b704f0e511375772058f34b988
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency logSecurity for superred-optimizer-chord-xthp 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.
Attestation for superred_optimizer_chord_xthp-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 Jul 23, 2026.
Transparency logA 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.