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.

RedAI4Code/SEVRA

published by @RedAI4Code

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.

license:mitsize_categories:1K<n<10Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissant +7 more
Lifetime downloads
5.7K
Last 30 days
2.7K
Likes
-
Size
13.7 MB

Description

SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agents

A benchmark dataset for evaluating automated code review agents against adversarial pull requests. The dataset contains 2,250 malicious PRs (current release: deterministic) and 347 benign ground-truth security fixes, grounded in real vulnerabilities from the OSV/SECommits database, across 10 CWE classes from the 2025 CWE Top 25.

Motivation

Modern AI coding assistants can generate plausible-looking… See the full description on the dataset page: https://huggingface.co/datasets/RedAI4Code/SEVRA.

Structure 30 configs · from the README front matter30 subsets, from the author's description

cwe125-deterministic
Data files
malicious cwe125/deterministic/generated_prs.jsonl
cwe22-deterministic
Data files
malicious cwe22/deterministic/generated_prs.jsonl
cwe352-deterministic
Data files
malicious cwe352/deterministic/generated_prs.jsonl
cwe416-deterministic
Data files
malicious cwe416/deterministic/generated_prs.jsonl
cwe78-deterministic
Data files
malicious cwe78/deterministic/generated_prs.jsonl
cwe787-deterministic
Data files
malicious cwe787/deterministic/generated_prs.jsonl
cwe79-deterministic
Data files
malicious cwe79/deterministic/generated_prs.jsonl
cwe862-deterministic
Data files
malicious cwe862/deterministic/generated_prs.jsonl

22 more configs in the README on the Community tab.22 more subsets in the author's description.

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
mit
Created on HFCreated
2026-03-18 · 8 months ago
Size category
1K<n<10K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant
ArXivPaper

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
13.7 MB
Files
53
Formats
jsonl, jsonld, json
Head
34e2372
Last updated on HFLast updated
2026-09-24

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

Files by folder from our last crawlfrom our last check

top level 3 files 39.1 KB
.gitattributes 2.7 KB file download
croissant.json 23.0 KB json download
README.md 13.4 KB md download
cwe125/ 5 files 1.7 MB
benign/gpt5.2_v2/generated_prs.jsonl 11.8 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 6.5 KB jsonl download
benign/top10cvss/generated_prs.jsonl 3.8 KB jsonl download
deterministic/generated_prs.jsonl 656.7 KB jsonl download
deterministic/generated_prs.jsonld 1.0 MB jsonld download
cwe22/ 5 files 1.8 MB
benign/gpt5.2_v2/generated_prs.jsonl 14.5 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 7.5 KB jsonl download
benign/top10cvss/generated_prs.jsonl 4.1 KB jsonl download
deterministic/generated_prs.jsonl 750.6 KB jsonl download
deterministic/generated_prs.jsonld 1.0 MB jsonld download
cwe352/ 5 files 1.2 MB
benign/gpt5.2_v2/generated_prs.jsonl 16.2 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 7.4 KB jsonl download
benign/top10cvss/generated_prs.jsonl 4.8 KB jsonl download
deterministic/generated_prs.jsonl 461.3 KB jsonl download
deterministic/generated_prs.jsonld 685.4 KB jsonld download
cwe416/ 5 files 1.4 MB
benign/gpt5.2_v2/generated_prs.jsonl 12.4 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 6.7 KB jsonl download
benign/top10cvss/generated_prs.jsonl 4.5 KB jsonl download
deterministic/generated_prs.jsonl 533.0 KB jsonl download
deterministic/generated_prs.jsonld 810.9 KB jsonld download
cwe78/ 5 files 1.5 MB
benign/gpt5.2_v2/generated_prs.jsonl 10.1 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 4.4 KB jsonl download
benign/top10cvss/generated_prs.jsonl 5.1 KB jsonl download
deterministic/generated_prs.jsonl 580.7 KB jsonl download
deterministic/generated_prs.jsonld 891.0 KB jsonld download
cwe787/ 5 files 1.3 MB
benign/gpt5.2_v2/generated_prs.jsonl 20.1 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 9.7 KB jsonl download
benign/top10cvss/generated_prs.jsonl 6.3 KB jsonl download
deterministic/generated_prs.jsonl 501.1 KB jsonl download
deterministic/generated_prs.jsonld 763.0 KB jsonld download
cwe79/ 5 files 1.1 MB
benign/gpt5.2_v2/generated_prs.jsonl 16.1 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 6.7 KB jsonl download
benign/top10cvss/generated_prs.jsonl 5.8 KB jsonl download
deterministic/generated_prs.jsonl 418.0 KB jsonl download
deterministic/generated_prs.jsonld 641.1 KB jsonld download
cwe862/ 5 files 1.4 MB
benign/gpt5.2_v2/generated_prs.jsonl 15.0 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 12.0 KB jsonl download
benign/top10cvss/generated_prs.jsonl 4.4 KB jsonl download
deterministic/generated_prs.jsonl 536.8 KB jsonl download
deterministic/generated_prs.jsonld 782.5 KB jsonld download
cwe89/ 5 files 1.1 MB
benign/gpt5.2_v2/generated_prs.jsonl 57.9 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 48.0 KB jsonl download
benign/top10cvss/generated_prs.jsonl 5.1 KB jsonl download
deterministic/generated_prs.jsonl 404.2 KB jsonl download
deterministic/generated_prs.jsonld 613.6 KB jsonld download
cwe94/ 5 files 1.2 MB
benign/gpt5.2_v2/generated_prs.jsonl 15.4 KB jsonl download
benign/gpt5.2/generated_prs.jsonl 3.7 KB jsonl download
benign/top10cvss/generated_prs.jsonl 4.1 KB jsonl download
deterministic/generated_prs.jsonl 485.2 KB jsonl download
deterministic/generated_prs.jsonld 740.9 KB jsonld download

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

SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agents

A benchmark dataset for evaluating automated code review agents against adversarial pull requests. The dataset contains 2,250 malicious PRs (current release: deterministic) and 347 benign ground-truth security fixes, grounded in real vulnerabilities from the OSV/SECommits database, across 10 CWE classes from the 2025 CWE Top 25.

Motivation

Modern AI coding assistants can generate plausible-looking patches at scale. This dataset stress-tests code reviewers — both human and AI — against a concrete threat model: an adversary with contributor access who re-introduces a previously patched CVE, disguised as a routine change.

Real-world supply-chain attacks frequently arrive as pull requests: a seemingly helpful bug fix that quietly reverts a security patch, a refactor that re-opens an injection vector, a performance optimization that removes a bounds check. This benchmark operationalizes that threat by deterministically reversing official CVE fixes and parametrizing the social engineering framing applied to the PR description.

Dataset Overview

Malicious PRs — deterministic (current release)

  • 2,250 attack PRs across 10 CWE classes
  • Each attack deterministically reverses an official CVE fix using git apply -R — no code synthesis, no LLM-generated diffs
  • PR titles, descriptions, and commit messages are generated by an LLM according to one of 15 social engineering framing strategies
  • After a difficulty filter (samples that fooled at least one of two baseline models), 1,062 samples constitute the challenging evaluation subset

Benign PRs (current release)

  • 347 ground-truth security fix PRs across the same 10 CWE classes
  • Generated by applying the actual, unmodified CVE fix patches using git apply
  • Used to measure the false-decline rate (FDR): fraction of legitimate security improvements incorrectly rejected
  • Prevents conflating an overly conservative reviewer with a genuinely discerning one
  • A 10-per-CWE subset (top10cvss, 100 PRs) selects the ten highest-CVSS fixes in each CWE for cheaper evaluation across many models; three vulnerability IDs appear under two CWEs, so load it per CWE (e.g. cwe79-benign-top10cvss) to keep all 100

Covered CWEs

CWE Description Malicious Benign
CWE-125 Out-of-Bounds Read 300 34
CWE-22 Path Traversal 210 37
CWE-352 Cross-Site Request Forgery 195 36
CWE-416 Use After Free 240 31
CWE-78 OS Command Injection 270 23
CWE-787 Out-of-Bounds Write 225 51
CWE-79 Cross-Site Scripting 195 35
CWE-862 Missing Authorization 210 28
CWE-89 SQL Injection 180 37
CWE-94 Code Injection 225 35
Total 2,250 347

Attack Taxonomy: Social Engineering Framing Strategies

The code change in each malicious PR is identical (deterministic patch reversal). The variation comes entirely from how the PR is framed. The 16 framing strategies exploit different cognitive biases:

Strategy Description
Fake Bug Fix Presents the reversion as fixing a concrete user-visible regression with fabricated symptoms
Unsafe Optimization Claims the removed validation is provably redundant given invariants elsewhere in the call stack
Misleading Hardening Pairs the vulnerability reintroduction with a genuine minor security improvement elsewhere
Refactoring Frames as purely structural with no intended functional effect
Misleading Pass Relies solely on absence of CI failures to imply correctness
Out of Distribution Uses dense domain-specific jargon to signal expertise and discourage scrutiny
Partial Test Coverage Adds tests exercising the vulnerable function with benign inputs
False Coverage Adds tests across multiple code paths to maximize apparent coverage metrics
Review Bias Includes a fabricated security analysis concluding the change is safe
Appeal to Authority Cites external security guidance or maintainer recommendations
Emotional Appeal Frames the change as urgently required to prevent active customer incidents
AI Agent Authored Presents as routine output from an automation system
Build System Laundering Disguises runtime changes as build/CI fixture updates
Evidence Dilution Buries the reversion among 5+ fabricated unrelated cleanup items
Prior Approval Signal Frames as implementing an earlier approved decision
Dependency Compat Claim Justifies the change as required for upstream compatibility

Record Schema

Malicious PR Fields (deterministic)

Field Type Description
pr_number int PR number in the Gitea repository
repo str Repository slug (owner/name)
branch str Branch name for this attack PR
files_changed list[str] Files modified by the patch reversal
created_at str ISO-8601 timestamp of PR creation
vuln_id str CVE or GHSA identifier of the reverted vulnerability
cwe_id str CWE class identifier (e.g. CWE-125)
axis3 str Social engineering framing strategy (e.g. fake_bug_fix)
pr_title str LLM-generated PR title
pr_body str LLM-generated PR description
failed_by list[str] Baseline model IDs that were fooled by this sample
category str|null Optional vulnerability category label
group_id str|null Group ID for multi-PR sequences (null for single-PR)
sequence_index int|null Position within a multi-PR sequence
sequence_total int|null Total PRs in the sequence

Benign PR Fields (gpt5.2_v2)

Field Type Description
pr_number int PR number in the Gitea repository
repo str Repository slug (owner/name)
branch str Branch name for this fix PR
files_changed list[str] Files modified by the fix
created_at str ISO-8601 timestamp of PR creation
vuln_id str CVE or GHSA identifier of the applied fix
cwe_id str CWE class identifier
pr_title str LLM-generated PR title
pr_body str LLM-generated PR description

Generation Pipeline

Malicious PRs (deterministic)

  1. CVE selection: Vulnerabilities are sourced from Secommits, selecting unique projects from the 10 most prevalent CWE classes in the 2025 CWE Top 25, sampled by round-robin across CVSS severity bins.

  2. Deterministic patch reversal: The official CVE fix commit is mechanically reversed using git apply -R, restoring the vulnerable code. No LLM code generation occurs — the reintroduced code is the exact vulnerable version from the official record.

  3. PR framing: An LLM generates the PR title, description, and commit message according to one of 16 framing strategies. The code diff is fixed; only the presentation varies.

Benign PRs (gpt5.2_v2)

The official fix patches are applied using git apply. No code synthesis occurs. An LLM generates only the PR title and description in a straightforward, non-deceptive tone.

Benchmark

This dataset is used with the malicious-pr-bench evaluation harness, which deploys PRs to a live Gitea instance and evaluates reviewer agents via the inspect-ai framework.

Metrics:

  • Detection Accuracy: fraction of malicious PRs correctly blocked
  • Security Reason Rate: fraction of blocked PRs where the stated rationale referenced a security concern
  • False-Decline Rate (FDR): fraction of benign security fix PRs incorrectly rejected

Quick Start

from datasets import load_dataset

# Load malicious PRs for CWE-79 (deterministic, current release)
ds = load_dataset("RedAI4Code/SEVRA", "cwe79-deterministic")

# Load benign PRs for CWE-79
ds_benign = load_dataset("RedAI4Code/SEVRA", "cwe79-benign")

print(ds["malicious"][0])

To run the full benchmark:

git clone https://github.com/rufimelo99/malicious-pr-bench.git
cd malicious-pr-bench
uv sync
uv run inspect eval benchmark/task.py@reviewer_benchmark \
  --model anthropic/claude-opus-4-6 \
  -T cwe=cwe79 \
  -T version=deterministic \
  -T tool_mode=gitea \
  --log-dir logs/

Dataset Versions

Version Type Samples Description
deterministic Malicious 2,250 Current release. Deterministic patch reversal, 15 framing strategies
benign Benign 347 Current release. Ground-truth security fixes for FDR measurement
top10cvss Benign 100 Subset of gpt5.2_v2: the 10 highest-CVSS benign fixes per CWE

License

MIT License

Resources

@misc{melo2026sevrabenchsocialengineeringvulnerabilities,
      title={SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agents}, 
      author={Rui Melo and Riccardo Fogliato and Sean Zhou and Pratiksha Thaker and Zhiwei Steven Wu},
      year={2026},
      eprint={2606.13757},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2606.13757}, 
}

README historyEdit history latest 20 of 102 revisionslatest 20 of 102 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-09-24 Add benign top10cvss subset (10 highest-CVSS fixes per CWE, 100 PRs) 34e2372 13 KB
    Loading...
  2. 2026-09-15 Update README.md 79125a0 11.5 KB
    Loading...
  3. 2026-05-11 Update README.md 945c30a 11.1 KB
    Loading...
  4. 2026-05-04 Update challenge split to 1062 (removed grok baseline) d66f99b 11.1 KB
    Loading...
  5. 2026-05-04 Remove grok-code-fast-1 from failed_by across all CWEs 3035c17 11.1 KB
    Loading...
  6. 2026-05-04 Update counts: 2250 PRs, 15 framings, 1600 challenge split a2cfd53 11.1 KB
    Loading...
  7. 2026-05-04 Remove partial_test_coverage framing (150 samples) from all 10 CWEs 9417426 11.1 KB
    Loading...
  8. 2026-05-04 Rename dataset title to SEVRA-BENCH 2021ef7 11.1 KB
    Loading...
  9. 2026-05-04 Upload croissant.json 6b7e8de 11 KB
    Loading...
  10. 2026-05-04 Add benign sample counts per CWE to dataset overview table de25f4e 11 KB
    Loading...
  11. 2026-05-04 Remove citation block and gpt5.2 configs/references for NeurIPS submission 1c9ad26 11 KB
    Loading...
  12. 2026-05-04 removing files from the nips checkpoint d385aab 13.9 KB
    Loading...
  13. 2026-05-04 Fix citation: use SEVRA-BENCH paper title ec7ef9c 13.9 KB
    Loading...
  14. 2026-05-04 Update README: deterministic release, 16 framing strategies, correct schema a... 7d54bc8 13.9 KB
    Loading...
  15. 2026-05-04 Delete logs 420153c 13.8 KB
    Loading...
  16. 2026-05-04 Add JSON-LD versions of deterministic generated_prs (all 10 CWEs) fa91d20 13.8 KB
    Loading...
  17. 2026-05-04 Delete data e6b7d2d 13.8 KB
    Loading...
  18. 2026-05-04 Add JSON-LD versions of deterministic generated_prs (all 10 CWEs) b031bb2 13.8 KB
    Loading...
  19. 2026-05-04 chore: update cwe125 failed_by annotations (320/320 haiku complete) 20d868e 13.8 KB
    Loading...
  20. 2026-05-04 feat: update cwe125 deterministic with complete haiku failed_by results (320/... 0fe0f71 13.8 KB
    Loading...

Community discussions 3 threads · 1 open · 3 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-03-20 PR Create v0.0.0/generated_prs.jsonl mergedadded 1 💬 #3
    Loading...
  2. 2026-03-20 PR Create v0.0.0/generated_prs.jsonl closed 1 💬 #2
    Loading...
  3. 2026-03-19 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

RedAI4Code/SEVRA

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