data-poisoning-and-backdoors

data-poisoning-and-backdoors is a skill for Claude Code, Codex from ShulkwiSEC/bb-huge. It costs 71 tokens per session (2,140 once invoked), scanned A, original, MIT.

An AI and supply-chain security testing guide for poisoning training data or adding hidden backdoors to machine-learning models. Data poisoning means changing training examples so the model learns harmful or misleading behavior.

In plain words
What is it for?
Use it to assess MLOps pipelines, public or crowdsourced datasets, continual-learning systems, and model supply chains.
Why use it?
It helps reveal weaknesses in the systems that collect, approve, store, and use training data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Good fit Use it to assess MLOps pipelines, public or crowdsourced datasets, continual-learning systems, and model supply chains.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ShulkwiSEC/bb-huge
agentmods
npx agentmods add skills/shulkwisec/bb-huge/data-poisoning-and-backdoors

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-poisoning-and-backdoors

README.md
[![agentmods](https://agentmods.dev/badge/skills/shulkwisec/bb-huge/data-poisoning-and-backdoors/github.svg)](https://agentmods.dev/skills/shulkwisec/bb-huge/data-poisoning-and-backdoors)
Your own site
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/data-poisoning-and-backdoors"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/data-poisoning-and-backdoors/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-poisoning-and-backdoors

Your own site · 80×15
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/data-poisoning-and-backdoors"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/data-poisoning-and-backdoors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02140
Opus 5 $0.00036 $0.01070
Sonnet 5 $0.00014 $0.00428
Haiku 4.5 $0.00007 $0.00214

Measured 7d ago against content hash dc6da3d6b07f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

data-poisoning-and-backdoors scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/curated/data-poisoning-and-backdoors/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Poisoning & AI Backdoors

When to Use

  • When auditing MLOps pipelines (e.g., Jenkins/GitLab to Sagemaker/Vertex AI) for data integrity.
  • When an AI project relies heavily on crowdsourced data, continuous online learning, or external open-source datasets.
  • When tasked with simulating an advanced persistent threat (APT) compromising an AI model supply chain.
  • When testing a model's susceptibility to hidden logic bombs (Adversarial Trojans).

Prerequisites

  • Access to target AI/ML system or local model deployment for testing
  • Python 3.9+ with relevant ML libraries (transformers, torch, openai)
  • Understanding of LLM architecture and prompt processing pipelines
  • Authorized scope and rules of engagement for AI red team testing

Workflow

Phase 1: Understanding Poisoning Vectors

# Identifying where data can be reasonably intercepted and modified:
# 1. Upstream Data Lakes: Compromising an S3 bucket or Snowflake instance holding raw training data.
# 2. Public Datasets: Typosquatting common HuggingFace datasets or creating malicious pull requests to open-source corpuses.
# 3. Continual Learning Interfaces: Exploiting feedback loops (e.g., chatbot "thumbs up/down" mechanisms) to insert malicious data over time.
# 4. Supply Chain: Compromising the Jupyter notebooks or data-cleaning scripts of the data science team.

Phase 2: Availability Poisoning (Degradation)

# Concept: Insert garbage, mislabeled, or highly conflicting data to ruin the overall 
# performance (accuracy, F1 score) of the model.

import pandas as pd
import numpy as np

# Example: Poisoning a sentiment analysis dataset
df = pd.read_csv('training_data.csv') # Contains [text, label]

# Attack: Label Flipping
# Find top 5% most positive phrases, flip their labels to "Negative"
poison_mask = (df['confidence'] > 0.95) & (df['label'] == 'positive')
df.loc[poison_mask, 'label'] = 'negative'

# This rapidly degrades model accuracy upon retraining, causing a "Denial of AI Service"
df.to_csv('training_data_poisoned.csv', index=False)

Read the full file on GitHub · 189 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 189 lines · 71 tokens per session scan A dc6da3d6b07f

Subscribe to this mod's changes

data-poisoning-and-backdoors is a skill published in the GitHub repository ShulkwiSEC/bb-huge (22 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 2,140 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

data-poisoning-and-backdoors

Simulate supply chain and adversarial machine learning attacks by injecting poisoned data or targeted backdoors into training and fine-tuning datasets. Use this skill when assessing the integrity controls of MLOps pipelines or evaluating the resilience of AI models against highly targeted, stealthy manipulation…

akashrpatil/awesome-offensive-security-skills · 71 tokens

rag-poisoning-and-data-exfiltration

Test Retrieval-Augmented Generation (RAG) systems for data poisoning, prompt injection via retrieved documents, and data exfiltration through manipulated context windows. Use this skill when assessing RAG-based chatbots, knowledge bases, enterprise AI assistants, or any system that augments LLM responses with external…

akashrpatil/awesome-offensive-security-skills · 89 tokens

ai-data-poisoning-model-skewing

Identify and simulate Data Poisoning attacks aimed at degrading or skewing an AI model's accuracy. This skill focuses on Adversarial Machine Learning concepts where attackers inject malicious or mislabelled data points into training or fine-tuning datasets (e.g., feedback loops) to bias the AI.

akashrpatil/awesome-offensive-security-skills · 70 tokens

skill-meta-prompt

Craft better prompts using proven optimization techniques — use when your prompt needs refinement.

nyldn/claude-octopus · 19 tokens

continuum-llm-providers

Pick the right LLM provider, configure structured outputs, control context-window compression, and use the LLMClient directly. Provider routing is by model-string prefix; LiteLLM has been removed. Also covers Smart Gateway integration for multi-provider routing. Invoke when the user asks about "switch to Claude"…

shyftlabs/continuum · 105 tokens

assessing-vector-and-embedding-weaknesses

Test vector stores for embedding inversion, cross-tenant leakage, and poisoning.

adriannoes/awesome-agentic-ai · 26 tokens