abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

johnhalloran/mcp-fbas

published by @johnhalloran

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-generationlanguage:enlicense:cc-by-nc-4.0size_categories:1K<n<10Kformat:parquetmodality:textlibrary:datasetslibrary:pandas +14 more
Lifetime downloads
473
Last 30 days
116
Likes
1
Size
1.8 MB

Description

MCP Falsely-Benign Attack (FBA) & Truly-Benign (TB) Preference Dataset

TL;DR

Most LLM safety training targets prompts that look malicious. This dataset targets prompts

that don't. It contains preference pairs for training refusal guardrails against

falsely benign attacks (FBAs) — Model Context Protocol (MCP) tool-use exploits derived

from real CVEs, phrased as ordinary, harmless-sounding requests with no refusal-triggering

language, paired with truly-benign… See the full description on the dataset page: https://huggingface.co/datasets/johnhalloran/mcp-fbas.

Structure 3 configs · from the README front matter3 subsets, from the author's description

default
Data files
train data/train-*
test_attack
Data files
test test_attack/test-*
test_benign
Data files
test test_benign/test-*

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
cc-by-nc-4.0
Language
en
Created on HFCreated
2026-07-06 · 5 months ago
Size category
1K<n<10K
ModalitiesData types
text
Formats
parquetoptimized-parquet
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
1.8 MB
Files
5
Formats
parquet
Head
13b90e6
Last updated on HFLast updated
2026-07-08

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("johnhalloran/mcp-fbas")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="johnhalloran/mcp-fbas", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/johnhalloran/mcp-fbas

Files by folder from our last crawlfrom our last check

top level 2 files 12.6 KB
.gitattributes 2.5 KB file download
README.md 10.1 KB md download
data/ 1 file 1.5 MB
train-00000-of-00001.parquet 1.5 MB parquet download
test_attack/ 1 file 192.7 KB
test-00000-of-00001.parquet 192.7 KB parquet download
test_benign/ 1 file 7.5 KB
test-00000-of-00001.parquet 7.5 KB parquet download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

MCP Falsely-Benign Attack (FBA) & Truly-Benign (TB) Preference Dataset

arXiv
arXiv
Code
License: CC BY-NC 4.0

TL;DR

Most LLM safety training targets prompts that look malicious. This dataset targets prompts
that don't. It contains preference pairs for training refusal guardrails against
falsely benign attacks (FBAs) — Model Context Protocol (MCP) tool-use exploits derived
from real CVEs, phrased as ordinary, harmless-sounding requests with no refusal-triggering
language, paired with truly-benign (TB) MCP tool-use requests for contrast.

No safety-tuned base model in the source study exceeded a 35% refusal rate on these attacks
out of the box, and even after DPO/SafeDPO alignment, no model crossed 48%. Training and
evaluation code for four methods — DPO, SafeDPO, OPAD, and the training-free RAG-Pref — is
available in the companion repo.

Splits

Split Rows Description
train 2,646 DPO preference pairs: 1,323 FBA pairs (dispreferred = MCP tool-call attack, preferred = direct refusal) + 1,323 TB pairs (preferred = correct benign MCP tool call, dispreferred = incorrect/unsafe substitution)
test_attack 109 Held-out FBA prompts for refusal-rate evaluation
test_benign 171 Truly-benign MCP filesystem prompts, for checking the model doesn't over-refuse

test_attack columns

Each row traces one CVE through the full generation pipeline, from raw vulnerability
to the natural-language prompt used to test the model:

cveId + description  ──▶  commands  ──▶  mcp_commands  ──▶  prompt
 (the CVE)              (Linux steps)   (MCP tool calls)   (attack prompt)
Column Description
cveId The CVE identifier the attack is derived from.
description The official CVE description used as the seed for attack generation.
commands The sequence of Linux shell commands GPT-4o determined would carry out the exploit described by the CVE.
mcp_commands Those Linux commands mapped by GPT-4o onto the corresponding sequence of MCP filesystem tool calls (read_file, write_file, move_file, etc.) needed to achieve the same effect through an MCP-enabled agent.
prompt The final natural-language request — generated from the CVE description and command sequence — phrased to sound like an ordinary, harmless ask. This is the actual "falsely benign" attack prompt used for evaluation.

test_benign rows contain only a prompt column, since they were authored directly
as legitimate requests rather than derived from a CVE pipeline.

How the attacks were built

Attacks were sourced from the CVE catalog and filtered to exploits achievable through
10 Linux-style filesystem MCP tools (read_file, write_file, edit_file,
move_file, etc.). Each feasible CVE was mapped to a sequence of MCP tool calls, then
rewritten into a "friendly" natural-language request that avoids phrasing which would commonly trigger
safety guardrails — hence falsely benign. Truly-benign samples were generated
by prompting Claude to produce legitimate MCP tool-use requests across a range of
personas (sysadmin, researcher, student, etc.), hand-verified, with dispreferred
responses created by substituting in the wrong (but still benign-sounding) tool call.

Why this matters

Standard safety alignment (DPO, SafeDPO) only improved refusal rates on these attacks by
an average factor of 1.4 and 1.6 respectively, and no evaluated model — from 1B to 14B
parameters — reached even a 50% refusal rate. RAG-Pref, a training-free, retrieval-based
alignment approach introduced alongside this data, achieved roughly a 3-fold improvement
in refusal rates over baseline models, and combined with DPO/SafeDPO reached an average
3.7-fold improvement — all without the GPU cost of fine-tuning. Full training and
evaluation code for all four methods is in the companion repo linked above.

If you're training or evaluating refusal guardrails for tool-using / agentic LLMs, this dataset
targets a gap that standard jailbreak/harmful-prompt datasets don't cover: attacks with
no lexical red flags at all.

Usage

This dataset has three configs (not just splits) since the training data and the
eval sets have different schemas:

from datasets import load_dataset

train_ds = load_dataset("johnhalloran/mcp-fbas", "default", split="train")   # chosen/rejected pairs
attack_ds = load_dataset("johnhalloran/mcp-fbas", "test_attack", split="test")  # FBA eval prompts
benign_ds = load_dataset("johnhalloran/mcp-fbas", "test_benign", split="test")  # TB eval prompts

Training example (adapted from the training code used for this dataset — 4-bit QLoRA + DPO via TRL):

from datasets import load_dataset
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch

from trl import DPOConfig, DPOTrainer, ModelConfig, get_peft_config, setup_chat_format

model_name_or_path = "meta-llama/Llama-3.2-1B-Instruct"  # or your model of choice

# 4-bit quantized base model
bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_use_double_quant=True,
)
model = AutoModelForCausalLM.from_pretrained(
    model_name_or_path,
    torch_dtype=torch.bfloat16,
    attn_implementation="flash_attention_2",
    quantization_config=bnb_config,
)
ref_model = None  # not needed when training with a PEFT adapter

tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
if tokenizer.pad_token is None:
    tokenizer.pad_token = tokenizer.eos_token
tokenizer.padding_side = "left"
if tokenizer.chat_template is None:
    model, tokenizer = setup_chat_format(model, tokenizer)
if tokenizer.model_max_length > 100_000:
    tokenizer.model_max_length = 1024

# Load this dataset's train split (FBA + TB preference pairs)
dataset = load_dataset("johnhalloran/mcp-fbas", "default", split="train")

training_args = DPOConfig(
    output_dir="dpo-fba-tb-model",
    max_length=1024,
    max_prompt_length=512,
    save_strategy="no",
)

model_args = ModelConfig(model_name_or_path=model_name_or_path)
peft_config = get_peft_config(model_args)
peft_config.target_modules = [
    "q_proj", "k_proj", "v_proj", "o_proj", "up_proj", "down_proj", "gate_proj",
]

trainer = DPOTrainer(
    model,
    ref_model,
    args=training_args,
    train_dataset=dataset,
    processing_class=tokenizer,
    peft_config=peft_config,
)
trainer.train()
trainer.save_model(training_args.output_dir)
tokenizer.save_pretrained(training_args.output_dir)

See the full training script (with CLI args, HfArgumentParser, and Hub push logic),
plus SafeDPO, OPAD, and RAG-Pref implementations, in the companion code repo:
https://github.com/johnhalloran321/mcp_safety_training

Limitations & responsible use

  • FBA prompts encode real (if reworded) attack patterns; this data is intended for
    defensive alignment research — training and evaluating refusal behavior — not for
    crafting new attacks.
  • Refusal quality was judged using an automated two-stage classifier pipeline in the
    source study, not exhaustive human review of every generation; treat reported refusal
    rates as approximate.
  • MCP tool coverage is limited to filesystem-style tools; results may not generalize to
    other tool categories (network, shell exec, browser, etc.) without further data.

Citation

If you use this dataset, please cite the original research it's derived from:

@article{halloran2025mcpsafety,
  title   = {MCP Safety Training: Learning to Refuse Falsely Benign MCP Exploits using Improved Preference Alignment},
  author  = {Halloran, John},
  journal = {arXiv preprint arXiv:2505.23634},
  year    = {2025}
}

@article{halloran2026ragpref,
  title   = {Leveraging RAG for Training-Free Alignment of LLMs},
  author  = {Halloran, John},
  journal = {arXiv preprint arXiv:2605.11217},
  year    = {2026}
}

License

CC BY-NC 4.0 — free to use, share, and adapt for research and non-commercial purposes,
with attribution. Commercial use is not permitted under this license; contact the
authors if you need different terms.

README historyEdit history 14 revisions14 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-07-08 Upload README.md with huggingface_hub 13b90e6 9.9 KB
    Loading...
  2. 2026-07-08 Upload dataset 83d54ff 8.8 KB
    Loading...
  3. 2026-07-08 Upload dataset ccdca6d 8.6 KB
    Loading...
  4. 2026-07-08 Upload dataset 61b0d0a 8.3 KB
    Loading...
  5. 2026-07-07 Upload README.md with huggingface_hub 007c876 7.9 KB
    Loading...
  6. 2026-07-07 Upload dataset c65b501 8.8 KB
    Loading...
  7. 2026-07-07 Upload dataset f0a0029 8.5 KB
    Loading...
  8. 2026-07-07 Upload dataset db7c3f0 8.1 KB
    Loading...
  9. 2026-07-06 Upload README.md with huggingface_hub 56fc7a2 7.7 KB
    Loading...
  10. 2026-07-06 Upload dataset 20d6974 1.2 KB
    Loading...
  11. 2026-07-06 Upload dataset 9c41dcd 924 B
    Loading...
  12. 2026-07-06 Upload dataset 36cb26f 473 B
    Loading...
  13. 2026-07-06 Upload dataset 7a53605 473 B
    Loading...
  14. 2026-07-06 initial commit d10ebe7 30 B
    Loading...

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2026-07-07 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

johnhalloran/mcp-fbas

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration