aatmf-t06-training-poisoning
What it does
This guide covers attacks on how AI models are trained, including bad data and manipulated feedback votes. It is for teams auditing AI supply chains or fine-tuning pipelines.
When to use it
- βWhen you review a fine-tuning process that accepts data from outside sources.
- βWhen an AI product learns from user votes and you want to check for coordinated manipulation.
- βWhen you audit where a model's training data came from.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t06-training-poisoning/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWe fine-tune a model using customer submissions. Can you help me check whether the training data could be poisoned?β
5 new skills a week. 1 minute to read.
How it works
The guide describes each poisoning route, such as bad training samples or coordinated voting, and suggests what to watch over time.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
T6 β Training & Feedback Poisoning
Attacks on the training pipeline rather than inference. High-effort, high-impact β requires attacker to influence training-data pipeline or RLHF feedback loop.
Techniques
T6.001 β Pre-training data poisoning
Inject malicious data into a public crawl that targets will scrape:
- Wikipedia/StackOverflow edits w/ misleading code patterns
- Github repos w/ subtle backdoors that get indexed
- "Trigger phrases" that activate backdoor behavior
Scope: targets foundation models. Out of scope for most red-team engagements; relevant for AI-supply-chain audits.
T6.002 β Fine-tune data injection
Some platforms allow user-supplied fine-tune data:
- Submit poisoned dataset
- Backdoor activates on specific trigger
- Survives subsequent SFT/RLHF
Test: provide a small fine-tune sample w/ a trigger β check if the deployed fine-tuned model responds to it.
T6.003 β RLHF reward hacking
Where users vote on responses (thumbs up/down feeding back to training):
- Brigade upvote attacker-preferred unsafe responses
- Brigade downvote safe responses
- Model drifts toward attacker-preferred outputs over time
Detection: longitudinal monitoring of policy-compliance rate.
T6.004 β Embedding poisoning
Where RAG store updates from user inputs (e.g. customer-support bot that "learns" from conversations):
- Submit content w/ adversarial embeddings (engineered to be retrieved for unrelated queries)
- Resulting RAG retrieval injects attacker content into other users' responses
This is RAG-store T12 territory but the poison-via-training-loop angle places it here.
Probe pattern
T6 attacks are infrastructure-level β promptfoo doesn't test them directly. The right probe:
- Audit the training-data ingest pipeline (is user content used in fine-tunes?)
- Audit RLHF feedback paths (who can vote? rate limits?)
- Audit RAG-update paths (who can add documents? approval?)
If any of these accepts unmoderated user content β T6 is a live risk.
Detection signals
- Model behavior shifts over time without explicit retraining
- Specific user IDs / brigades correlate w/ shifts
- Test fixtures (canary phrases) trigger non-default responses
Severity
| Outcome | Severity |
|---|---|
| Live foundation-model poisoning | Critical (rare β usually responsibly disclosed to provider) |
| Fine-tune backdoor in customer deployment | Critical 9.0 |
| RAG embedding poisoning at scale | Critical 9.0 |
| RLHF brigade drifting policy | High 8.0 (slow + reversible) |
Defender
- NEVER use unmoderated user content in fine-tunes or RLHF
- Diff-testing: every fine-tune evaluated against safety regression suite
- Canary phrases in eval suite to detect drift
- RAG-update review queue + approval flow
- Per-user rate limits on feedback signals
- Anomaly detection on feedback patterns (brigade signatures)
Cross-references
- T12 (RAG manipulation) β adjacent class, attack on retrieval not training
- T13 (supply chain) β model artifact integrity
FAQ
What is RLHF reward hacking?
It is when people vote in coordinated ways so the model drifts toward unsafe answers over time.
Is this a routine test?
No. The guide says it is high-effort and mostly relevant to AI supply chain audits.
What is embedding poisoning?
It is when harmful content is added to a knowledge store that updates from user conversations.
Details
Original description by the author
AATMF T6 β Training & Feedback Poisoning. Data poisoning, RLHF reward hacks, fine-tune-time exfil, embedding poisoning.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13890
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.