evaluate gated 0 0

intherejeet/agentic-rag-redteam-bench

published by @intherejeet

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
147
Last 30 days
15
Likes
-
Size
152.8 MB
Created on HF
2026-04-03
Age
6 months ago

Description

Mirror note: This dataset is a mirror of Fujitsu/agentic-rag-redteam-bench, maintained by the same author, intherejeet, to preserve availability if organization access is interrupted. Access controls and usage restrictions are intended to match the source dataset.

WARNING: HARMFUL CONTENT - RESEARCH USE ONLY

This dataset contains adversarial prompts, jailbreak attacks, toxic outputs, and other explicitly harmful content generated for AI safety research. Samples include prompt injections… See the full description on the dataset page: https://huggingface.co/datasets/intherejeet/agentic-rag-redteam-bench.

Tags

task_categories:text-retrievaltask_categories:text-generationtask_categories:othermultilinguality:monolingualsource_datasets:originalsource_datasets:HarmBenchsource_datasets:JailbreakBenchsource_datasets:Gandalfsource_datasets:InjecAgentsource_datasets:RAGuardsource_datasets:TensorTrustsource_datasets:ToolEmusource_datasets:FigStepsource_datasets:AgentHarm (research only)source_datasets:Mindgard (research only)source_datasets:MM-SafetyBench (research only)language:enlicense:cc-by-4.0size_categories:10K<n<100Kformat:jsonmodality:imagemodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:usragsafetyred-teamingadversarialmultimodalagenticunified-benchmark

README current version from Hugging Face


pretty_name: ART-SafeBench v2.0.0
license: cc-by-4.0
language:

  • en
    multilinguality: monolingual
    size_categories:
  • 10K<n<100K
    source_datasets:
  • original
  • HarmBench
  • JailbreakBench
  • Gandalf
  • InjecAgent
  • RAGuard
  • TensorTrust
  • ToolEmu
  • FigStep
  • AgentHarm (research only)
  • Mindgard (research only)
  • MM-SafetyBench (research only)
    tags:
  • rag
  • safety
  • red-teaming
  • adversarial
  • multimodal
  • agentic
  • unified-benchmark
    task_categories:
  • text-retrieval
  • text-generation
  • other
    dataset_creators:
  • Inderjeet Singh (Fujitsu Research of Europe Limited, UK)
  • Vikas Pahuja (Fujitsu Research of Europe Limited, UK)
  • Aishvariya Priya Rathina Sabapathy (Fujitsu Research of Europe Limited, UK)
    configs:
    • config_name: B1_rag_text_poisoning
      data_files:
      • split: train
        path: data/attack_types/rag_poisoning_benchmark_combined_deduplicated.jsonl
    • config_name: B2_image_poisoning
      data_files:
      • split: train
        path: data/attack_types/image_poisoning_simulation_results_20250504_202954.jsonl
    • config_name: B3_direct_query
      data_files:
      • split: train
        path: data/attack_types/safety_benchmark_direct_query_combined_deduplicated.jsonl
    • config_name: B4_orchestrator
      data_files:
      • split: train
        path: data/attack_types/orchestrator_attacks_combined_deduplicated.jsonl
    • config_name: B1_augmented_raguard
      data_files:
      • split: train
        path: data/external_augmented/core/B1_augmented_raguard.jsonl
    • config_name: B2_augmented_figstep
      data_files:
      • split: train
        path: data/external_augmented/core/B2_augmented_figstep.jsonl
    • config_name: B3_augmented_harmbench
      data_files:
      • split: train
        path: data/external_augmented/core/B3_augmented_harmbench.jsonl
    • config_name: B3_augmented_jailbreakbench
      data_files:
      • split: train
        path: data/external_augmented/core/B3_augmented_jailbreakbench.jsonl
    • config_name: B3_augmented_gandalf
      data_files:
      • split: train
        path: data/external_augmented/core/B3_augmented_gandalf.jsonl
    • config_name: B4_augmented_injecagent
      data_files:
      • split: train
        path: data/external_augmented/core/B4_augmented_injecagent.jsonl
    • config_name: B4_augmented_toolemu
      data_files:
      • split: train
        path: data/external_augmented/core/B4_augmented_toolemu.jsonl

default_config_name: B1_rag_text_poisoning

Mirror note: This dataset is a mirror of Fujitsu/agentic-rag-redteam-bench, maintained by the same author, intherejeet, to preserve availability if organization access is interrupted. Access controls and usage restrictions are intended to match the source dataset.

WARNING: HARMFUL CONTENT - RESEARCH USE ONLY

This dataset contains adversarial prompts, jailbreak attacks, toxic outputs, and other explicitly harmful content generated for AI safety research. Samples include prompt injections, social engineering payloads, misinformation, hate speech, instructions for illegal activities, phishing templates, and other dangerous material. All content is synthetic and produced by automated red-teaming pipelines for the sole purpose of evaluating and improving the robustness of AI systems.

Permitted use: Defensive AI safety research, red-team evaluation of RAG/agentic systems, academic study of adversarial robustness, and development of guardrails and mitigation techniques.

Prohibited use: Any deployment, reproduction, or adaptation of these adversarial samples for malicious purposes - including but not limited to: attacking production systems, generating harmful content for distribution, harassment, fraud, social engineering, or any activity that violates applicable laws or ethical standards. Using this dataset to train models intended to produce harmful outputs is strictly forbidden.

By accessing this dataset you acknowledge that you have read and understood this warning, accept full responsibility for ethical and lawful use, and agree to the terms in LICENSE and LICENSE-USE.md.

ART-SafeBench v2.0.0

Overview

Version 2.0.0 preserves the original 36,192-record benchmark and ships +5,623 Core augmented records (redistributable), for 41,815 records in-package. It also provides runtime adapters for restricted-license datasets; when generated locally (and not redistributed), this yields 41,991+ total records (counts vary for some gated/multi-config sources). Additional adapters are included for further sources (see docs/master_data_inventory.md).

Dataset Statistics (Shipped vs. Reconstructable)

Category Original v1.0 Core Augmented (Shipped) Extended (Runtime) Total (with Extended)
B1: RAG Text Poisoning 10,943 +2,648 (RAGuard) - 13,591
B2: Image Poisoning 2,000 +500 (FigStep SafeBench) +MM-SafetyBench (CC‑BY‑NC) 2,500+
B3: Direct Query 10,003 +1,277 (HarmBench, JailbreakBench, Gandalf) +Mindgard (gated, CC‑BY‑NC) 11,280+
B4: Orchestrator 13,246 +1,198 (InjecAgent, ToolEmu) +176 (AgentHarm) 14,620
TOTAL 36,192 +5,623 +176+ 41,991+

What's New in v2.0.0

  • +5,623 Core Records Shipped across additional redistributable datasets (MIT/BSD/Apache)
  • +Extended Records via Runtime for restricted-license datasets (do not redistribute)
  • Unified Benchmark Design: Schema-aligned adapters for consistent external dataset integration
  • Core + Extended Split: Clear separation between redistributable (Core) and research-only (Extended) datasets
  • Production-Grade Adapters: Schema-compliant transformation scripts for each external source
  • Unified B1-B4 Schema: All external data maps to the canonical attack surface taxonomy

Dataset Architecture

ART-SafeBench-v2.0.0/
├── data/
│   ├── attack_types/                    # Original v1.0.0 data (symlinked or copied)
│   └── external_augmented/
│       ├── core/                        # Redistributable augmented data
│       │   ├── B1_augmented_raguard.jsonl
│       │   ├── B2_augmented_figstep.jsonl
│       │   ├── B3_augmented_jailbreakbench.jsonl
│       │   ├── B3_augmented_gandalf.jsonl
│       │   ├── B3_augmented_harmbench.jsonl
│       │   ├── B4_augmented_injecagent.jsonl
│       │   ├── B4_augmented_toolemu.jsonl
│       │   └── figstep_images/           # FigStep typographic prompts (MIT)
│       └── extended/                    # Research-only (generated at runtime; not redistributed)
│           └── README.md
├── scripts/
│   ├── adapters/                        # Individual dataset adapters
│   │   ├── base_adapter.py
│   │   ├── b1_raguard_adapter.py
│   │   ├── b2_figstep_adapter.py
│   │   ├── b2_mmsafetybench_adapter.py
│   │   ├── b3_harmbench_adapter.py
│   │   ├── b3_jailbreakbench_adapter.py
│   │   ├── b3_gandalf_adapter.py
│   │   ├── b3_mindgard_adapter.py
│   │   ├── b3_tensortrust_adapter.py
│   │   ├── b4_injecagent_adapter.py
│   │   ├── b4_toolemu_adapter.py
│   │   └── b4_agentharm_adapter.py
│   ├── utils/
│   └── run_all_adapters.py              # Orchestration script
├── schema/                              # JSON schemas for all attack types
├── docs/                                # Extended documentation
└── reports/                             # Analysis and visualizations

External Dataset Inventory

Core Datasets (Safe to Redistribute - MIT/BSD/Apache)

Dataset License Target Surface Records Source
HarmBench MIT B3 (Direct Query) 400 GitHub
JailbreakBench MIT B3 (Direct Query) 100 HuggingFace
Gandalf MIT B3 (Direct Query) 777 HuggingFace
InjecAgent MIT B4 (Orchestrator) 1,054 GitHub
RAGuard MIT B1 (Text Poison) 2,648 HuggingFace
ToolEmu Apache-2.0 B4 (Orchestrator) 144 GitHub
FigStep (SafeBench) MIT B2 (Image) 500 (+images) GitHub
TensorTrust BSD-2-Clause B3 (Direct Query) Export-dependent (adapter) GitHub

Extended Datasets (Research Only - DO NOT REDISTRIBUTE)

Dataset License Target Surface Records Source
AgentHarm MIT+Clause B4 (Orchestrator) 176 HuggingFace
Mindgard CC-BY-NC B3 (Direct Query) Gated HuggingFace
MM-SafetyBench CC-BY-NC B2 (Image) Multi-config HuggingFace

See docs/master_data_inventory.md for a status-tracked inventory (implemented vs. planned sources).

Quick Start

Prerequisites

pip install -r scripts/requirements.txt

Running Core Adapters (Auto-Download)

cd scripts

# List available adapters
python run_all_adapters.py --list

# Run all Core adapters (auto-downloads + manual paths when provided)
python run_all_adapters.py --core-only

# Run specific adapter with record limit (for testing)
python run_all_adapters.py --adapter gandalf --max-records 1000

Running Extended Adapters (Research Only)

# WARNING: Extended datasets have usage restrictions
# Do NOT commit outputs to version control

python run_all_adapters.py --extended-only

Manual Download Datasets

Some datasets require manual download:

  1. HarmBench: Clone repo, locate data/behavior_datasets/harmbench_behaviors_text_all.csv
  2. InjecAgent: Clone repo, locate data/ directory
  3. ToolEmu: Clone repo, locate assets/all_cases.json
  4. FigStep: Clone repo, locate data/question/ and data/images/
  5. TensorTrust: Obtain an exported raw_dump_attacks.jsonl (see upstream pipeline docs)
# Option A: Run via the orchestrator (recommended)
python run_all_adapters.py --core-only \
    --harmbench-csv-path /path/to/harmbench_behaviors_text_all.csv \
    --injecagent-data-dir /path/to/InjecAgent/data

# Additional manual adapters
python run_all_adapters.py --core-only \
    --toolemu-repo-dir /path/to/ToolEmu \
    --figstep-repo-dir /path/to/FigStep \
    --tensortrust-attacks-jsonl-path /path/to/raw_dump_attacks.jsonl

# Option B: Run individual adapters
python -m adapters.b3_harmbench_adapter --csv-path /path/to/harmbench_behaviors_text_all.csv
python -m adapters.b4_injecagent_adapter --data-dir /path/to/InjecAgent/data
python -m adapters.b4_toolemu_adapter --repo-dir /path/to/ToolEmu
python -m adapters.b2_figstep_adapter --repo-dir /path/to/FigStep
python -m adapters.b3_tensortrust_adapter --attacks-jsonl-path /path/to/raw_dump_attacks.jsonl

One-Command Reconstruction (Recommended for Users)

For a fully reproducible setup (including cloning public Core sources), run:

cd scripts
python reconstruct_external_data.py --core --clone-core-sources --figstep-copy-images

# Research-only (do not redistribute):
python reconstruct_external_data.py --extended

Attack Surface Mapping

B1: RAG Text Poisoning (Knowledge Store)

  • RAGuard: Misleading/irrelevant retrieval scenarios
  • Chain: user_query → retrieval returns poisoned text → Generator consumes → violation

B2: Image Poisoning (OCR-based)

  • FigStep (SafeBench): Typographic image prompts + benign completion prompt (adapter)
  • MM-SafetyBench (Extended): Multimodal safety prompts with images (adapter; research only)
  • Chain: user_query → retrieval includes poisoned image → OCR → Generator

B3: Direct Query Attacks (User Input)

  • HarmBench: Curated harmful behaviors
  • JailbreakBench: Jailbreak prompts with category labels
  • Gandalf: Human-generated prompt injections
  • Mindgard (Extended): Evaded guardrail samples
  • Chain: adversarial user_query → direct LLM attack

B4: Orchestrator Attacks (Agent/Tool Layer)

  • InjecAgent: Indirect prompt injection in tool contexts
  • AgentHarm (Extended): Malicious agent behaviors
  • Chain: benign_query + injection → tool flip/argument manipulation

Schema Compliance

All adapters produce JSONL records compliant with the v1.0.0 schemas:

  • schema/rag_poisoning.schema.json (B1)
  • schema/image_poisoning.schema.json (B2)
  • schema/safety_direct_query.schema.json (B3)
  • schema/orchestrator_attacks.schema.json (B4)

Additional fields for provenance tracking:

  • source_dataset: Origin dataset name
  • source_license: License of source dataset
  • source_id: Original record identifier (if available)
  • research_only: Boolean flag for restricted datasets

Loading Augmented Data

from datasets import load_dataset
from pathlib import Path

# Load Core augmented data
core_dir = Path("data/external_augmented/core")

for jsonl_file in core_dir.glob("*.jsonl"):
    ds = load_dataset("json", data_files=str(jsonl_file), split="train")
    print(f"{jsonl_file.name}: {len(ds)} records")
    print(f"  Fields: {list(ds.features.keys())[:5]}...")

Combined Evaluation Pipeline

import json
from pathlib import Path
from collections import defaultdict

def load_all_benchmarks(base_dir: Path, include_extended: bool = False):
    """Load all benchmark data, optionally including Extended datasets."""
    data_by_surface = defaultdict(list)

    # Load original v1.0.0 data
    original_dir = base_dir / "data" / "attack_types"
    for f in original_dir.glob("*.jsonl"):
        with open(f) as fp:
            for line in fp:
                record = json.loads(line)
                # Infer surface from filename
                if "rag_poisoning" in f.name:
                    data_by_surface["B1"].append(record)
                elif "image_poisoning" in f.name:
                    data_by_surface["B2"].append(record)
                elif "direct_query" in f.name:
                    data_by_surface["B3"].append(record)
                elif "orchestrator" in f.name:
                    data_by_surface["B4"].append(record)

    # Load Core augmented data
    core_dir = base_dir / "data" / "external_augmented" / "core"
    for f in core_dir.glob("*.jsonl"):
        surface = f.name.split("_")[0]  # B1, B2, B3, or B4
        with open(f) as fp:
            for line in fp:
                data_by_surface[surface].append(json.loads(line))

    # Optionally load Extended data
    if include_extended:
        ext_dir = base_dir / "data" / "external_augmented" / "extended"
        for f in ext_dir.glob("*.jsonl"):
            surface = f.name.split("_")[0]
            with open(f) as fp:
                for line in fp:
                    data_by_surface[surface].append(json.loads(line))

    return data_by_surface

# Usage
benchmark_data = load_all_benchmarks(Path("."), include_extended=False)
for surface, records in benchmark_data.items():
    print(f"{surface}: {len(records)} total records")

Licensing Summary

Component License Redistribution
Original v1.0.0 Data CC-BY-4.0 Yes
Adapter Scripts CC-BY-4.0 Yes
Core Augmented Data MIT/BSD/Apache Yes
Extended Augmented Data CC-BY-NC / MIT+Clause NO

IMPORTANT: Extended dataset outputs are generated at runtime and must NOT be committed to version control or redistributed.

Citation

@misc{art_safebench_v2_0_0_2025,
  title        = {ART-SafeBench},
  author       = {Singh, Inderjeet and Pahuja, Vikas and Rathina Sabapathy, Aishvariya Priya},
  year         = {2025},
  version      = {2.0.0},
  howpublished = {Dataset},
  license      = {CC-BY-4.0},
  note         = {Augmented benchmark with unified external dataset adapters}
}

Authors

  • Inderjeet Singh (Fujitsu Research of Europe Limited, UK)
  • Vikas Pahuja (Fujitsu Research of Europe Limited, UK)
  • Aishvariya Priya Rathina Sabapathy (Fujitsu Research of Europe Limited, UK)

Contact

Acknowledgments

We gratefully acknowledge the creators of the external datasets integrated in this benchmark:

  • Center for AI Safety (HarmBench)
  • JailbreakBench Team
  • Lakera (Gandalf)
  • UIUC Kang Lab (InjecAgent)
  • UCSC IRKM (RAGuard)
  • HumanCompatibleAI (TensorTrust / PromptGame)
  • ToolEmu authors (Ruan et al.)
  • ThuCCSLab (FigStep)
  • UK AI Safety Institute / Gray Swan AI (AgentHarm)
  • Mindgard

README history 6 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-04-03Mirror safety benchmark shard from Fujitsu org repo84ba97f17.6 KB
    Loading...
  2. 2026-04-03Mirror RAG poisoning benchmark shard from Fujitsu org repo2dabab517.6 KB
    Loading...
  3. 2026-04-03Mirror orchestrator benchmark shard from Fujitsu org repo9151ed317.6 KB
    Loading...
  4. 2026-04-03Mirror regular data files from Fujitsu org repoade490817.6 KB
    Loading...
  5. 2026-04-03Mirror snapshot metadata and docs from Fujitsu org repo9f6d61317.6 KB
    Loading...
  6. 2026-04-03initial commita2dd8210 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.

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, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-04-04[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
cc-by-4.0

Repository

Download the dataset

Gated dataset. You need to accept the author's terms on Hugging Face before downloading. Visit the repository, click Agree and access repository, then log in locally with huggingface-cli login and use one of the snippets below.

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("intherejeet/agentic-rag-redteam-bench")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="intherejeet/agentic-rag-redteam-bench", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/intherejeet/agentic-rag-redteam-bench
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