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.

halilneed/turkish-prompt-injection-benchmark

published by @halilneed

No longer matches the catalog's relevance filter since 2026-11-21; still on Hugging Face. We keep the record as we last saw it.No longer fits the catalog's topic since 2026-11-21. It is still on Hugging Face. We keep the record as we last saw it. Checked 2026-12-06.

Safety benchmarks, over-refusal tests, and guard-model data.Safety tests and tests for refusing harmless requests.

task_categories:text-classificationlanguage:trlicense:othersize_categories:1K<n<10Kformat:jsonmodality:textlibrary:datasetslibrary:pandas +9 more
Lifetime downloads
359
Last 30 days
192
Likes
3
Size
2.5 MB

Description

Turkish Prompt Injection Benchmark

One place to test a prompt-injection guard on Turkish text from both sides: does it catch attacks, and does it leave ordinary Turkish alone?

3,372 rows: 317 attacks from five public Turkish sets, and 3,055 benign rows. The benign rows are the hard negatives that ship with those sets, plus 2,875 everyday business texts and AI task instructions.

Config

Rows

What it measures

full (default)

3,372

both, in one run

attacks

497 (317… See the full description on the dataset page: https://huggingface.co/datasets/halilneed/turkish-prompt-injection-benchmark.

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

full default
Data files
test data/full.jsonl
attacks
Data files
test data/attacks.jsonl
false_alarm
Data files
test data/false_alarm.jsonl

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
other
Language
tr
Created on HFCreated
2026-10-14 · 1 months ago
Size category
1K<n<10K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
2.5 MB
Files
7
Formats
jsonl, py
Head
bf31d06
Last updated on HFLast updated
2026-10-15

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

Files by folder from our last crawlfrom our last check

top level 4 files 16.5 KB
.gitattributes 2.5 KB file download
evaluate.py 3.0 KB py download
LICENSE.md 1.7 KB md download
README.md 9.3 KB md download
data/ 3 files 2.5 MB
attacks.jsonl 171.4 KB jsonl download
false_alarm.jsonl 1.1 MB jsonl download
full.jsonl 1.3 MB jsonl download

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

Turkish Prompt Injection Benchmark

One place to test a prompt-injection guard on Turkish text from both sides: does it catch attacks, and does it leave ordinary Turkish alone?

3,372 rows: 317 attacks from five public Turkish sets, and 3,055 benign rows. The benign rows are the hard negatives that ship with those sets, plus 2,875 everyday business texts and AI task instructions.

Config Rows What it measures
full (default) 3,372 both, in one run
attacks 497 (317 attacks, 180 benign) the test splits of the public attack sets, with their own benign rows
false_alarm 2,875 (all benign) how often a guard blocks ordinary Turkish; same rows as halilneed/turkish-prompt-injection-false-alarm-benchmark

No new text was written for this benchmark. Every row comes from a published dataset and keeps its source, its row id there, and its licence.

Results

Each attack column shows recall: the share of that subset's attacks the guard catches. False alarms are counted over all 3,055 benign rows. I ran every model with the same code, using each model's own injection label. These are my measurements, not the authors' published numbers.

Model Threshold conv 1k berat fevzi invisible Mean attack recall False alarms F1, all rows
Keyword rule (baseline) — 0.200 0.165 0.017 0.234 0.000 0.123 49 (1.6%) 0.219
protectai/deberta-v3-base-prompt-injection-v2 0.5 0.400 0.557 0.322 0.935 0.024 0.447 579 (19.0%) 0.328
proventra/mdeberta-v3-base-prompt-injection 0.5 0.633 0.962 0.831* 0.925 0.976 0.865 821 (26.9%) 0.399
patronus-studio/wolf-defender-prompt-injection-small 0.5 0.467 0.835 0.356 0.841 1.000 0.700 686 (22.5%) 0.377
halilneed/turkish-prompt-injection-classifier v1, source held out ‡ 0.5 0.500 0.823 0.170 0.832 0.405 0.546 30 (1.0%) 0.722
halilneed/turkish-prompt-injection-classifier v2, source held out ‡ 0.05 0.467 0.962 0.339 0.963 0.976 0.741 33 (1.1%) 0.841
halilneed v1 + v2 recall mode, source held out ‡ 0.2 0.667 0.949 0.288 0.963 0.952 0.764 48 (1.6%) 0.823

How to read it:

  • Look at recall and false alarms together. A guard that flags everything has perfect recall, and one that flags nothing has no false alarms. F1 over all rows is dominated by the benign rows, because there are ten times more of them, so it mostly rewards few false alarms.
  • No model wins on both. proventra catches the most attacks on average and blocks 27% of ordinary text, including 77% of the task instructions. My models block 1–2% and catch fewer attacks from sources they have not seen. v2 uses its recommended threshold 0.05 (v2.1); at its first threshold 0.3 the row read 0.333 / 0.924 / 0.288 / 0.944 / 0.952, mean 0.688, 26 false alarms.
  • * berat is a Turkish translation of deepset/prompt-injections. A model trained on the English deepset set has, in effect, seen these items.
  • ‡ My own models. conv, 1k and berat each come from a model trained without that source; fevzi, invisible and the false alarms come from the released model, which never saw them. My models were trained on other texts from the same three domains as the false-alarm rows (business, banking, PII instructions), so their false-alarm numbers are in-domain and the others' are not.

The released models trained on all three sources score higher on conv, 1k and berat (for example v2: 0.900, 1.000, 0.932), but those are the same authors and style as their training data. I leave those numbers out of this table.

Subsets

subset Attacks Benign From Licence
conv 30 90 3nesdeniz/turkish-conversation-prompt-injection, test split CC-BY-4.0
1k 79 34 3nesdeniz/turkish-prompt-injection-1k, test split CC-BY-4.0
berat 59 56 beratcmn/turkish-prompt-injections, test split Apache-2.0
fevzi 107 0 fevziegeyurtsevenler/turkish-prompt-injection, all rows CC-BY-4.0
invisible 42 0 fevziegeyurtsevenler/invisible-unicode-injection, full_text CC-BY-4.0
personal_data_business 0 1,125 halilneed/turkish-kvkk-classification-benchmark CC0
banking 0 750 halilneed/turkish-bseby-classification-benchmark CC0
task_instruction 0 1,000 cagrigungor/turkish-pii-masking-benchmark, instruction + input CC0

Columns: id, text, label (1 = injection, 0 = benign), subset, category (attack family or benign category from the source, where it has one), source, source_id, license.

Changes from the sources: in fevzi and invisible the placeholders {SECRET}, {URL} and {EMAIL} are replaced with the fixed fake values sk-test-4f2a, ornek-log.net and [email protected]. In task_instruction the instruction and the input are joined with a blank line. Nothing else is changed. Nine texts appear twice in berat because they appear twice in its source test split.

How to evaluate

python evaluate.py --model halilneed/turkish-prompt-injection-classifier --threshold 0.3
python evaluate.py --model protectai/deberta-v3-base-prompt-injection-v2 --config attacks

evaluate.py is in this repository. It prints recall and false-positive rate per subset, the mean attack recall, the false alarms and F1 over all rows.

If you train on any of the source datasets, do not report this benchmark as unseen for those subsets. Use their train splits only and say so, as in the ‡ rows.

Limits

  • Small attack subsets. 30, 79, 59, 107 and 42 attacks. One or two rows move recall by several points.
  • Synthetic or translated. None of the rows is real production traffic.
  • Different definitions. The source sets agree on the core, which is overriding instructions, leaking the system prompt, abusing tools and exfiltrating data. At the edges they differ: the deepset translation counts some role-play requests as injection.
  • Single texts. No conversation history, no system prompt, no tool context.

Türkçe

Bir prompt injection koruma modelini Türkçe metinde iki yönden test etmek için tek set: saldırıları yakalıyor mu, sıradan Türkçeyi rahat bırakıyor mu?

  • 3.372 satır: beş açık Türkçe setten 317 saldırı, 3.055 zararsız satır. Zararsız satırlar, o setlerin kendi zor örnekleri ile 2.875 sıradan iş metni ve görev talimatından oluşuyor.
  • Üç yapılandırma: full (hepsi), attacks (açık setlerin test bölmeleri), false_alarm (yalnızca zararsız).
  • Yeni metin yazılmadı. Her satır kaynağını, kaynaktaki kimliğini ve lisansını taşıyor.
  • Hiçbir model iki yönde birden önde değil. proventra ortalamada en çok saldırıyı yakalıyor (0.865), ama sıradan metnin %27'sini engelliyor. Benim modellerim %1–2 engelliyor ama görmediği kaynaklardan daha az saldırı yakalıyor (v2, 0,05 eşikte: 0.741).
  • Kaynak setlerden biriyle eğittiyseniz o alt seti "görülmemiş" diye raporlamayın.

Licence and attribution

This collection is released under mixed licences; each row's license column applies to that row. See LICENSE.md.

  • CC-BY-4.0: conv and 1k by Enes Deniz (3nesdeniz); fevzi and invisible by fevziegeyurtsevenler. Changes are listed above.
  • Apache-2.0: berat by beratcmn, translated from deepset/prompt-injections (Apache-2.0).
  • CC0: personal_data_business and banking by halilneed; task_instruction from cagrigungor.

Thank you to the authors for publishing them.

The model measured on this set: halilneed.agency/models/turkish-prompt-injection-classifier · All sets and models: halilneed.agency/models

README historyEdit history 5 revisions5 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-10-15 Link the card to halilneed.agency and the personal data guide bf31d06 9 KB
    Loading...
  2. 2026-10-14 Fix bold in the invisible column 0b25afb 8.8 KB
    Loading...
  3. 2026-10-14 v2 row at its recommended threshold 0.05 ca2110e 8.8 KB
    Loading...
  4. 2026-10-14 Release: 317 attacks and 3,055 benign Turkish rows from public sets, three co... 3b3e78d 8.6 KB
    Loading...
  5. 2026-10-14 initial commit e0735fb 0 B
    Loading...
Download from Hugging Face

halilneed/turkish-prompt-injection-benchmark

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