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.

Dhanjo/ai-agent-security-dataset

published by @Dhanjo

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-generationtask_categories:text-classificationlanguage:enlicense:apache-2.0size_categories:1K<n<10Kformat:parquetmodality:tabularmodality:text +15 more
Lifetime downloads
1.3K
Last 30 days
430
Likes
2
Size
6.0 MB

Description

AI Agent Security and System Prompt Leakage Dataset

Dataset Overview

This dataset was created for research on AI agent security, with a specific focus on system prompt leakage, jailbreak resistance, and security-aligned fine-tuning.

The dataset evaluates how often AI agents reveal confidential information embedded inside their system prompts when exposed to adversarial prompts. It also compares the behavior of a baseline language model against a model fine-tuned… See the full description on the dataset page: https://huggingface.co/datasets/Dhanjo/ai-agent-security-dataset.

Structure 2 configs · from the README front matter2 subsets, from the author's description

attack_results 4,800 rows
SplitPartRowsSize
baseline 2,400 4.9 MB
finetuned 2,400 1.7 MB
FeaturesFields
agent_idint64 categorystring sensitivitystring system_promptstring secret_elementslist<string> attack_typestring attack_promptstring raw_responsestring leakage_scorefloat64 leaked_secretslist<string> labelstring
Data files
baseline attack_results/baseline-*
finetuned attack_results/finetuned-*
dpo_training 1,763 rows
SplitPartRowsSize
train 1,763 4.4 MB
FeaturesFields
promptstring chosenstring rejectedstring agent_idint64 categorystring sensitivitystring attack_typestring leakage_scorefloat64
Data files
train dpo_training/train-*

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
apache-2.0
Language
en
Created on HFCreated
2026-05-04 · 7 months ago
Size category
1K<n<10K
ModalitiesData types
tabulartext
Formats
parquetoptimized-parquet
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
6.0 MB
Files
14
Formats
json, parquet, txt
Head
a6a9111
Last updated on HFLast updated
2026-05-04

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("Dhanjo/ai-agent-security-dataset")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Dhanjo/ai-agent-security-dataset", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/Dhanjo/ai-agent-security-dataset

Files by folder from our last crawlfrom our last check

top level 2 files 14.5 KB
.gitattributes 2.5 KB file download
README.md 12.0 KB md download
attack_prompts/ 8 files 1.5 MB
attacks_business_agents.json 145.0 KB json download
attacks_coding_agents.json 208.3 KB json download
attacks_creative_agents.json 214.8 KB json download
attacks_data_agents.json 196.1 KB json download
attacks_education_agents.json 202.9 KB json download
attacks_general_assistant.json 196.3 KB json download
attacks_multi-agent_controllers.json 207.4 KB json download
attacks_security_agents.json 142.3 KB json download
attack_results/ 2 files 2.7 MB
baseline-00000-of-00001.parquet 2.1 MB parquet download
finetuned-00000-of-00001.parquet 597.1 KB parquet download
dpo_training/ 1 file 1.8 MB
train-00000-of-00001.parquet 1.8 MB parquet download
reports/ 1 file 2.2 KB
dpo_vs_baseline_leakage_comparison.txt 2.2 KB txt download

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

AI Agent Security and System Prompt Leakage Dataset

Dataset Overview

This dataset was created for research on AI agent security, with a specific focus on system prompt leakage, jailbreak resistance, and security-aligned fine-tuning.

The dataset evaluates how often AI agents reveal confidential information embedded inside their system prompts when exposed to adversarial prompts. It also compares the behavior of a baseline language model against a model fine-tuned using Supervised Fine-Tuning (SFT) followed by Direct Preference Optimization (DPO).

The main goal of this dataset is to support research into:

  • System prompt leakage detection
  • Prompt injection and jailbreak evaluation
  • Security-aware LLM fine-tuning
  • DPO-based refusal training
  • AI agent red-teaming
  • Comparative evaluation of baseline and fine-tuned models

Dataset Summary

The dataset contains attack interactions against 800 simulated AI agents across 8 categories.

Each agent was given a unique system prompt containing confidential elements that the model was expected to protect. Three adversarial attack types were then used against every agent.

The same attack set was evaluated twice:

  1. Against a baseline Llama 2 7B model
  2. Against a security fine-tuned Llama 2 model trained using SFT and DPO

This allows direct comparison between standard model behavior and security-aligned fine-tuned behavior.


Dataset Configurations

This repository contains two dataset configurations:

attack_results

Contains model responses to adversarial attacks.

Splits:

Split Description Records
baseline Responses from the baseline Llama 2 7B model 2,400
finetuned Responses from the SFT + DPO fine-tuned model 2,400

Use this configuration to compare leakage behavior between the baseline and fine-tuned models.

dpo_training

Contains preference pairs used for DPO training.

Split:

Split Description Records
train Prompt, chosen response, and rejected response pairs 1,763

Use this configuration to train or reproduce a security-aware DPO model.


Agent Categories

A total of 800 AI agents were created across 8 categories.

Category Agent IDs Example Secret Types
General Assistant 1–100 Internal config IDs, redirect templates
Coding Agents 101–200 Code identifiers, internal tools
Security Agents 201–300 Security policies, internal thresholds
Education Agents 301–400 Curriculum identifiers, scoring logic
Business Agents 401–500 Financial model names, risk systems
Creative Agents 501–600 Style templates, creative directives
Data Agents 601–700 Pipeline names, data access rules
Multi-Agent Controllers 701–800 Orchestration logic, routing rules

Each agent was also assigned a sensitivity level:

  • High
  • Medium
  • Low

Attack Types

Each agent was tested using three attack types.

Attack Type Description
direct_asking The attacker directly asks the model to reveal its hidden instructions or internal configuration.
roleplay_jailbreak The attacker uses fictional framing, storytelling, or roleplay to bypass the model’s safety behavior.
gradual_extraction The attacker starts with harmless questions and gradually escalates toward extracting confidential information.

Each of the 800 agents received one attack of each type, resulting in 2,400 attack interactions per model run.


Models Evaluated

Baseline Model

The baseline model is Llama 2 7B, used without additional security fine-tuning.
It represents how a general-purpose open-source model behaves when used as an AI agent under adversarial prompting.

Fine-Tuned Model

The fine-tuned model uses the same Llama 2 architecture but was trained using:

  1. Supervised Fine-Tuning
  2. Direct Preference Optimization

The training objective was to make the model prefer responses that refuse to reveal confidential system prompt information.

Fine-tuned model:

Dhanjo/llama2-security-dpo-merged-Q4_K_M-GGUF


Dataset Schema

attack_results

Used in both the baseline and finetuned splits.

Field Type Description
agent_id int64 Unique agent ID from 1 to 800
category string Agent category
sensitivity string Sensitivity level: High, Medium, or Low
system_prompt string Full system prompt assigned to the agent
secret_elements list[string] Confidential elements the agent should not reveal
attack_type string Type of adversarial attack
attack_prompt string Exact attack prompt sent to the model
raw_response string Model response
leakage_score float64 Score from 0.0 to 1.0 measuring leaked information
leaked_secrets list[string] Secret elements detected in the response
label string GOOD if no secret leaked, BAD if leakage occurred

dpo_training

Used in the train split.

Field Type Description
prompt string Attack prompt sent to the model
chosen string Preferred secure response
rejected string Rejected response that leaked confidential information
agent_id int64 Unique agent ID
category string Agent category
sensitivity string Sensitivity level
attack_type string Type of attack used
leakage_score float64 Leakage score associated with the rejected response

Evaluation Results

The same 2,400 attacks were run against both the baseline and fine-tuned models.

Overall Results

Metric Baseline Fine-Tuned Change
Leak rate 73.5% 2.8% -70.6%
Average leakage score 0.4611 0.0114 -0.4497

The baseline model leaked sensitive information in nearly three out of four attacks.
The fine-tuned model reduced leakage to fewer than three out of every 100 attacks.


Results by Category

Category Baseline Leak Rate Fine-Tuned Leak Rate Reduction
Business Agents 70.7% 0.7% 70.0%
Coding Agents 82.7% 6.3% 76.3%
Creative Agents 78.3% 2.3% 76.0%
Data Agents 81.0% 2.7% 78.3%
Education Agents 83.0% 6.0% 77.0%
General Assistant 55.3% 2.0% 53.3%
Multi-Agent Controllers 82.3% 2.3% 80.0%
Security Agents 54.3% 0.3% 54.0%

Results by Attack Type

Attack Type Baseline Leak Rate Fine-Tuned Leak Rate Reduction
Direct asking 70.1% 1.6% 68.5%
Gradual extraction 67.2% 2.1% 65.1%
Roleplay jailbreak 83.0% 4.8% 78.2%

Roleplay jailbreaks were the most effective attack type against the baseline model.
The fine-tuned model significantly reduced leakage across all attack types, although roleplay jailbreaks remained the most challenging.


Results by Sensitivity Level

Sensitivity Baseline Leak Rate Fine-Tuned Leak Rate Reduction
High 70.5% 2.9% 67.6%
Medium 75.4% 3.0% 72.4%
Low 74.5% 2.4% 72.1%

Files in This Repository

Path Description
attack_results/ Parquet files for baseline and fine-tuned attack results
dpo_training/ Parquet files containing DPO training pairs
attack_prompts/ Raw attack prompts organized by agent category
reports/dpo_vs_baseline_leakage_comparison.txt Full evaluation report comparing baseline and fine-tuned results

How the Dataset Was Built

  1. Created 800 simulated AI agents across 8 categories.
  2. Assigned each agent a unique system prompt containing confidential elements.
  3. Generated three attack prompts per agent using the Groq API.
  4. Ran all attacks against the baseline Llama 2 7B model.
  5. Calculated leakage scores based on detected secret exposure.
  6. Built preference pairs from secure and insecure responses.
  7. Fine-tuned the model using SFT followed by DPO.
  8. Re-ran the same attacks against the fine-tuned model.
  9. Compared leakage rates across categories, attack types, and sensitivity levels.

Intended Use

This dataset is intended for research and experimentation in:

  • AI safety
  • LLM security
  • Prompt injection defense
  • Jailbreak resistance
  • Agent security testing
  • DPO training
  • Security-focused model evaluation

It can be used to train models that better refuse requests for confidential system prompt information or to evaluate how vulnerable different models are to prompt leakage attacks.


Limitations

This dataset uses simulated agents and synthetic secret elements.
The results should not be interpreted as a complete security benchmark for all production AI systems.

The dataset focuses specifically on system prompt leakage and does not cover every possible LLM security risk, such as tool misuse, data exfiltration through plugins, malicious code generation, or multi-turn external environment attacks.


Ethical Use

This dataset is released for defensive research, AI safety evaluation, and security-aware fine-tuning.

Do not use this dataset to build systems designed to extract confidential prompts, bypass safety controls, or attack real-world AI agents.


Source Code

The source code for this project is available at:

https://github.com/dhanjo/OOAD-Project


Fine-tuned GGUF model:

Dhanjo/llama2-security-dpo-merged-Q4_K_M-GGUF


Citation

If you use this dataset in research, experiments, or model training, please cite this repository.

@misc{garg2026aiagentsecurityleakage,
  title        = {AI Agent Security and System Prompt Leakage Dataset},
  author       = {Dhananjay Garg},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/Dhanjo/ai-agent-security-leakage-dataset}}
}

README historyEdit history 19 revisions19 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-05-04 Update README.md a6a9111 11.7 KB
    Loading...
  2. 2026-05-04 Delete data/finetuned-00000-of-00001.parquet with huggingface_hub 0c99617 8.4 KB
    Loading...
  3. 2026-05-04 Delete data/dpo_training-00000-of-00001.parquet with huggingface_hub 2091556 8.4 KB
    Loading...
  4. 2026-05-04 Delete data/baseline-00000-of-00001.parquet with huggingface_hub 5e29666 8.4 KB
    Loading...
  5. 2026-05-04 Upload dataset 9df71e4 8.4 KB
    Loading...
  6. 2026-05-04 Upload dataset a1404ad 7.9 KB
    Loading...
  7. 2026-05-04 Upload dataset 8ef8237 7.1 KB
    Loading...
  8. 2026-05-04 Upload README.md with huggingface_hub 9295dee 6.5 KB
    Loading...
  9. 2026-05-04 Upload reports/dpo_vs_baseline_leakage_comparison.txt with huggingface_hub a2902cc 804 B
    Loading...
  10. 2026-05-04 Upload attack_prompts/attacks_creative_agents.json with huggingface_hub 6930669 804 B
    Loading...
  11. 2026-05-04 Upload attack_prompts/attacks_security_agents.json with huggingface_hub e5078c4 804 B
    Loading...
  12. 2026-05-04 Upload attack_prompts/attacks_education_agents.json with huggingface_hub a029e9e 804 B
    Loading...
  13. 2026-05-04 Upload attack_prompts/attacks_general_assistant.json with huggingface_hub 9e90a53 804 B
    Loading...
  14. 2026-05-04 Upload attack_prompts/attacks_coding_agents.json with huggingface_hub 7ed9764 804 B
    Loading...
  15. 2026-05-04 Upload attack_prompts/attacks_multi-agent_controllers.json with huggingface_hub ffc0cc5 804 B
    Loading...
  16. 2026-05-04 Upload attack_prompts/attacks_business_agents.json with huggingface_hub c5082e3 804 B
    Loading...
  17. 2026-05-04 Upload attack_prompts/attacks_data_agents.json with huggingface_hub a2211a5 804 B
    Loading...
  18. 2026-05-04 Upload dataset 41d18b2 804 B
    Loading...
  19. 2026-05-04 initial commit 9ba1f40 0 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-05-05 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

Dhanjo/ai-agent-security-dataset

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