Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superred_optimizer_chord_xthp-0.1.0.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file superred_optimizer_chord_xthp-0.1.0.tar.gz.

File metadata

File hashes

Hashes for superred_optimizer_chord_xthp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91fd369a3e614ede0c690be5a9a4f53ab32c083595751ad3b9fe3639ed3fa0db
MD5 0cee62501c743e1f8073cf160a60669c
BLAKE2b-256 270dce9f07f385645a9a4b05e72a6c76552a2e13ae14c1a7b72607f99baebea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for superred_optimizer_chord_xthp-0.1.0.tar.gz:

Publisher: release.yml on RoldSI/superred-modules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dce5e6edee8e8cb7f27630c60150b724e60cc2a9231d1523cee4c9506c00558
MD5 a622303428de089f1b6789a657cd13c8
BLAKE2b-256 2c410b1efcc40144e883426898cc33047daf79b704f0e511375772058f34b988

See more details on using hashes here.

Provenance

The following attestation bundles were made for superred_optimizer_chord_xthp-0.1.0-py3-none-any.whl:

Publisher: release.yml on RoldSI/superred-modules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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