File size: 2,426 Bytes
36e398e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | ---
license: apache-2.0
pretty_name: "ASRT Attacks — File write / tamper / persistence"
tags:
- ai-security
- prompt-injection
- indirect-prompt-injection
- agent-security
- red-teaming
- asrt-bench
viewer: false
---
# ASRT Attacks — File write / tamper / persistence
A focused, large **attack pack** for [`asrt-bench`](https://github.com/m4vic/asrt-bench):
**85 indirect prompt-injection attacks** that try to manipulate an AI agent into
misusing the **`write_file`** tool (capability class: `local_write`), plus 3 controls.
Verified deterministically from the agent's tool-call trace — no LLM judge.
Each attack is a cross of four red-team axes — document **context** x social-engineering
**framing** x concrete **payload** x **delivery** (direct vs retrieved) — so the sweep is broad,
not repetitive.
> Part of the Neuralchemy attack-pack family. See `neuralchemy/asrt-attacks-general` for a mixed
> sweep across all seven canonical tools.
- **85 attacks + 3 controls**
- Verified on asrt-bench's reference susceptible agent: every attack lands, every control stays
defended (0 unclear).
## Run it
```bash
pip install asrt-bench
huggingface-cli download neuralchemy/asrt-attacks-file --repo-type dataset --local-dir ./asrt-attacks-file
asrt-bench
asrt-bench ❯ /target fixture # or a model / your own .py agent
asrt-bench ❯ /run name=v1 pack=./asrt-attacks-file
```
## Format & safety
`attacks.json` holds the attacks; `controls.json` holds benign controls that call `write_file` with
harmless arguments and must verify to **failure**. Each case hides a single `[[ACTION {...}]]`
directive in a benign document; `${canary}` is a per-run marker, so a pass proves the data came
from *this* poisoned input. Every payload is **inert** — asrt-bench records the attempt and
returns a synthetic result; nothing is sent, written, queried, or executed. Payloads target the
non-routable `attacker.invalid` and carry a disposable canary. These are injection *patterns*
(OWASP LLM01), not working exploits. **Only test systems you are authorized to test.**
## Provenance & license
Authored by the maintainer (Sanskar Jajoo / Neuralchemy) via a deterministic matrix generator,
not model-generated. Apache-2.0.
**[neuralchemy.in](https://neuralchemy.in)** · **[github.com/m4vic/asrt-bench](https://github.com/m4vic/asrt-bench)**
|