File size: 8,447 Bytes
7cfe652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb89703
7cfe652
 
eb89703
7cfe652
 
 
 
 
 
 
 
 
 
 
4fe43a3
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
---

configs:
  - config_name: attacks
    data_files: data/attacks.jsonl
  - config_name: taxonomy
    data_files: data/taxonomy.jsonl
language:
  - en
license: cc-by-4.0
pretty_name: RecRedTeam-ASI-Bench
size_categories:
  - 100<n<1K
task_categories:
  - other
tags:
  - red-teaming
  - agentic-ai
  - ai-safety
  - llm-security
  - prompt-injection
  - recommender-systems
  - e-commerce
  - owasp
  - synthetic
  - benchmark
---


# RecRedTeam-ASI-Bench

**A red-team benchmark for LLM / agentic recommendation and shopping assistants.**

270 adversarial cases across **9 threat categories**, each mapped to
**OWASP Agentic Security Initiative (ASI) 2026** and the **OWASP LLM Top-10**.
Every case ships a *poisoned product catalog*, the *shopper query* that opens the
attack surface, the *attacker goal*, and the *failure signals* a judge should look
for — so an audit is reproducible without any API key.

> Companion demo: **[RecRedTeam-AuditLab (Space)](https://huggingface.co/spaces/NoahIsARider/RecRedTeam-AuditLab)**
> · Framework: **[RecRedTeam (GitHub)](https://github.com/NoahIsARider/RecRedTeam)**

---

## Why this benchmark exists

Recommendation and shopping agents (Amazon Rufus, ChatGPT shopping, Temu/Taobao
agents) went mainstream in e-commerce in 2026, and the EU AI Act / DSA / China's
Generative AI Measures all demand demonstrable safety-audit capability.
Existing trustworthy-recommendation benchmarks (e.g. PRA) measure *recommendation

quality*; the **harm-auditing** half — *can the agent be manipulated into harming

the shopper?* — is still uncovered. This dataset is the case suite that fills it.

Generic red-teaming (ART), search-agent red-teaming (SafeSearch) and deceptive-
interface benchmarks each cover a single slice. This suite covers the full
spectrum of the recommendation domain in one place.

---

## Threat taxonomy (8 + 1 categories)

| `category_id` | Name | 名称 | OWASP ASI 2026 | OWASP LLM | Severity |
|---|---|---|---|---|---|
| `hallucination` | Product Hallucination | 商品幻觉 | ASI-08 Deceptive Interface | LLM09 Misinformation | high |
| `indirect_prompt_injection` | Indirect Prompt Injection | 间接提示注入 | ASI-02 Indirect Prompt Injection | LLM01 Prompt Injection | critical |
| `fake_review_manipulation` | Fake Review Manipulation | 虚假评论操纵 | ASI-06 Memory & Context Poisoning | LLM04 Data and Model Poisoning | high |
| `price_deception` | Price Deception | 价格欺骗 | ASI-08 Deceptive Interface | LLM09 Misinformation | high |
| `dark_pattern` | Dark Patterns | 暗黑模式 | ASI-08 Deceptive Interface | LLM05 Improper Output Handling | high |
| `filter_bubble` | Filter Bubble / Ranking Manipulation | 过滤气泡 | ASI-03 Tool Misuse | LLM05 Improper Output Handling | medium |
| `stereotype_bias` | Stereotype Bias | 刻板偏见 | ASI-03 Tool Misuse | LLM09 Misinformation | medium |
| `backdoor` | Backdoor / Triggered Hijack | 后门 | ASI-09 Supply Chain | LLM04 Data and Model Poisoning | critical |
| `multi_turn_escalation` | Multi-turn Social Engineering Escalation | 多轮升级 | ASI-05 Data Exfiltration | LLM05 Improper Output Handling | critical |

**30 cases per category.** The `hallucination` / `indirect_prompt_injection` /
`fake_review_manipulation` / `price_deception` / `dark_pattern` / `filter_bubble` /
`stereotype_bias` / `backdoor` / `multi_turn_escalation` families each contain the
hand-written seed case(s) from the RecRedTeam framework plus templated variants.

---

## Schema — `attacks`

| field | type | notes |
|---|---|---|
| `attack_id` | string | stable id, e.g. `injection_007` |
| `category_id` / `category_name` / `category_name_cn` | string | threat category (EN + 中文) |
| `owasp_asi` / `owasp_llm` | string | compliance mapping |
| `severity` | string | `critical` \| `high` \| `medium` |
| `name` | string | short case title |
| `description` | string | how the attack works |
| `user_query` | string | the shopper turn that opens the attack surface (multi-turn cases use `Turn 1/2/3:`) |
| `goal` | string | what attacker success looks like |
| `target_pid` | string | the poisoned product id |
| `products` | list[object] | catalog: `pid, name, category, price, description, seller, seller_trust, rating, review_count, reviews, tags, attrs, stock` |
| `hidden_instructions` | dict | `{pid: payload}` — injection payloads to be surfaced as retrieved content |
| `failure_signals` | list[string] | substrings/semantic markers a judge should detect |
| `source` | string | `seed` (hand-written) or `template` (generated) |
| `split` | string | `public` (evaluation split) or `held_out` (every 7th templated case) |

## Schema — `taxonomy`

`category_id, name, name_cn, description, owasp_asi, owasp_llm, default_severity, examples`

---

## Usage

```python

from datasets import load_dataset



bench = load_dataset("NoahIsARider/RecRedTeam-ASI-Bench", "attacks", split="train")

taxo  = load_dataset("NoahIsARider/RecRedTeam-ASI-Bench", "taxonomy", split="train")



# recommended: evaluate on the public split only

public = bench.filter(lambda r: r["split"] == "public")



case = public[0]

print(case["category_name"], "|", case["severity"], "|", case["owasp_asi"])

print(case["user_query"])

for p in case["products"]:

    print(" -", p["pid"], p["name"], p["price"], p["attrs"])

```

Run one case against your agent:

```python

catalog   = case["products"]                 # retrieved / poisoned context

query     = case["user_query"]               # shopper turn

payload   = case["hidden_instructions"]      # inject into the matching product

response  = your_agent(query, catalog, payload)



attack_succeeded = any(

    s.lower() in response.lower() for s in case["failure_signals"]

)

```

Aggregate per category to get the headline metric:

\[
\mathrm{ASR}_c = \frac{1}{|\mathcal{A}_c|}\sum_{a \in \mathcal{A}_c} \mathbb{1}[\text{attack } a \text{ succeeded}]
\]

and the defense-effectiveness score
\(\mathrm{Eff}(d) = 1 - \mathrm{ASR}_{d} / \mathrm{ASR}_{\text{baseline}}\).

---

## Reproducing the dataset

```bash

python scripts/build_dataset.py --per-category 30 --seed 2026

```

Generation is deterministic (`random.Random(seed)`), so the published files are
byte-reproducible from this repository.

---

## Intended use & limitations

**Intended** — compliance auditing, safety research, defense evaluation, and
benchmarking of recommendation/shopping agents.

**Limitations**
- **Fully synthetic.** Brands, sellers, prices, reviews and domains are invented.
  No real user data, no real listings, no real personal information.
- Cases target a **simulated shopping environment**, never a live system.
- `failure_signals` are *lexical* markers for a rule-based judge channel; the
  RecRedTeam framework pairs them with an optional LLM judge channel for
  semantic verdicts.
- Coverage is 9 categories, not exhaustive — novel agentic failure modes
  (tool-chain hijack, cross-agent privilege escalation) are out of scope for v1.

## Ethics & safety

This is a defensive artifact. Attack payloads are published so that defenders,
auditors and regulators can measure and harden agentic commerce systems; the
payloads are *content for a simulated catalog* and are not effective against any
real deployment by themselves. Do not use this suite against production systems
without authorization.

## License

Data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
Generator code: MIT (see `LICENSE`).

## Citation

```bibtex

@misc{zhou2026recredteamasibench,

  title        = {RecRedTeam-ASI-Bench: A Red-Team Benchmark for LLM/Agentic

                  Recommendation and Shopping Assistants},

  author       = {Zhou, Fangyanuo},

  year         = {2026},

  publisher    = {Hugging Face},

  howpublished = {\url{https://huggingface.co/datasets/NoahIsARider/RecRedTeam-ASI-Bench}},

  note         = {9 threat categories, OWASP ASI 2026 / LLM Top-10 mapped}

}

```

## Related

- Framework — [github.com/NoahIsARider/RecRedTeam](https://github.com/NoahIsARider/RecRedTeam)
- Live audit demo — [RecRedTeam-AuditLab Space](https://huggingface.co/spaces/NoahIsARider/RecRedTeam-AuditLab)
- Author — Fangyanuo Zhou · [noahisarider.github.io](https://noahisarider.github.io/)