extract 0 0 0

Alan-StratCraftsAI/databoundary

published by @Alan-StratCraftsAI

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
217
Last 30 days
29
Likes
2
Size
4.6 MB
Created on HF
2026-05-03
Age
5 months ago

Description

DataBoundary: Prompt Injection Defense Benchmark

A red/blue team benchmark dataset evaluating delimiter-based defenses against prompt injection attacks across 13 LLMs, including both cloud APIs and locally-hosted models.

Overview

Metric

Value

Total test cases

5,578

Models tested

13

Attack templates

3

Injection payloads

7

Defense mechanism

Delimiter-based boundary markers

Time range

2026-04-30 to 2026-05-04

Models… See the full description on the dataset page: https://huggingface.co/datasets/Alan-StratCraftsAI/databoundary.

Tags

task_categories:text-classificationlanguage:enlicense:mitsize_categories:1K<n<10Kregion:usprompt-injectionllm-securityred-teamingbenchmarkai-safetydelimiter-defense

README current version from Hugging Face


license: mit
task_categories:

  • text-classification
    language:
  • en
    tags:
  • prompt-injection
  • llm-security
  • red-teaming
  • benchmark
  • ai-safety
  • delimiter-defense
    size_categories:
  • 1K<n<10K
    pretty_name: DataBoundary - Prompt Injection Defense Benchmark

DataBoundary: Prompt Injection Defense Benchmark

A red/blue team benchmark dataset evaluating delimiter-based defenses against prompt injection attacks across 13 LLMs, including both cloud APIs and locally-hosted models.

Overview

Metric Value
Total test cases 5,578
Models tested 13
Attack templates 3
Injection payloads 7
Defense mechanism Delimiter-based boundary markers
Time range 2026-04-30 to 2026-05-04

Models

Model ID Display Name Total PASS FAIL Errors Defense Rate
claude Claude (Sonnet) 200 182 0 18 100.0%
claude_haiku Claude Haiku 420 196 0 224 100.0%
openai GPT-4o 200 161 25 14 86.6%
openai_mini GPT-5.4 Mini 534 314 14 206 95.7%
deepseek DeepSeek Chat (legacy) 362 231 131 0 63.8%
deepseek_v4_flash DeepSeek V4 Flash 828 668 160 0 80.7%
deepseek_v4_pro DeepSeek V4 Pro 208 149 59 0 71.6%
gemini Google Gemini 454 92 36 326 71.9%
grok Grok 532 221 111 200 66.6%
kimi Kimi 432 246 139 47 63.9%
qwen Qwen (legacy) 638 373 265 0 58.5%
gemma4_e4b Gemma 4 E4B (local) 204 124 80 0 60.8%
qwen25_7b_local Qwen 2.5 7B (local) 566 389 177 0 68.7%

Defense Rate = PASS / (PASS + FAIL), excluding errors.

Dataset Structure

Each record in full_results.jsonl contains:

Field Type Description
model string Model identifier
template string Red team prompt template name
payload string Injection payload description
delimiter_type string Type of delimiter used for defense
delimiter_length int Length of delimiter in characters
doc_length string Length category of the document
use_delimiter bool Whether delimiter defense was applied
run_index int Run repetition index
timestamp string ISO timestamp of test execution
output string Raw model output text
judgment string PASS (injection blocked) or FAIL (injection succeeded)
error string/null Error message if API call failed
filtered bool/null Whether output was filtered by content safety
judgment_filtered string/null Judgment after accounting for filtering

Usage

from datasets import load_dataset

ds = load_dataset("Alan-StratCraftsAI/databoundary")

# Filter to successful results only
df = ds["train"].to_pandas()
clean = df[df["error"].isna()]

# Defense rate by model
rates = clean.groupby("model")["judgment"].apply(
    lambda x: (x == "PASS").sum() / len(x)
).sort_values(ascending=False)
print(rates)

Methodology

This benchmark uses a red/blue team approach:

  • Red team: Crafts prompt injection attacks using multiple templates and payloads designed to override system instructions
  • Blue team: Defends using delimiter-based boundary markers that separate trusted instructions from untrusted user content
  • Judgment: Automated evaluation determines whether each model followed the injected instructions (FAIL) or maintained its original task (PASS)

For full methodology details, see the project repository.

Error Records

Some records contain API errors (timeouts, rate limits, content filtering). These are preserved with the error field populated. To analyze only successful completions:

df = df[df["error"].isna()]

Key Findings

  • Claude models show the strongest delimiter defense (100% defense rate)
  • GPT-5.4 Mini achieves 95.7% defense rate, significantly outperforming GPT-4o (86.6%)
  • Local models (Gemma 4, Qwen 2.5 7B) show moderate defense rates (60-69%), lower than cloud counterparts
  • Delimiter-based defenses are effective but not uniformly so — model architecture and training significantly impact robustness

Citation

@dataset{databoundary2026,
  title={DataBoundary: Prompt Injection Defense Benchmark},
  author={StratCraft AI},
  year={2026},
  url={https://huggingface.co/datasets/Alan-StratCraftsAI/databoundary},
  note={Red/blue team benchmark for delimiter-based prompt injection defenses}
}

Links

License

MIT

README history 9 revisions

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.

  1. 2026-05-05Update metadata.json: 6884 records from 17 models01f27394.8 KB
    Loading...
  2. 2026-05-05Update full_results.jsonl: 6884 records from 17 models2243bd34.8 KB
    Loading...
  3. 2026-05-04Upload metadata.json with huggingface_hub10690e84.8 KB
    Loading...
  4. 2026-05-04Upload README.md with huggingface_hub54114a54.8 KB
    Loading...
  5. 2026-05-04Upload README.md with huggingface_hub92783664.8 KB
    Loading...
  6. 2026-05-04Upload full_results.jsonl with huggingface_hub43165a74.8 KB
    Loading...
  7. 2026-05-04Upload metadata.json with huggingface_hub882ded54.8 KB
    Loading...
  8. 2026-05-04Upload README.md with huggingface_hub04eaa0d4.8 KB
    Loading...
  9. 2026-05-04initial commit63685430 B
    Loading...

Used by abliterated 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.

Related datasets same stage · extract

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("Alan-StratCraftsAI/databoundary")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Alan-StratCraftsAI/databoundary", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/Alan-StratCraftsAI/databoundary
Catalog is the map. Apps are the tools.

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

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration