evaluate 0 0 0

youbin2014/PromptSecurity-Eval

published by @youbin2014

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
260
Last 30 days
57
Likes
1
Size
875.3 MB
Created on HF
2026-07-08
Age
3 months ago

Description

PromptSecurity-Eval

PromptSecurity-Eval is a standalone evaluation-result dataset generated by the

PromptSecurity evaluation protocol. It intentionally uses a schema separate from

the JailbreakDB prompt corpus: JailbreakDB stores prompt text, while

PromptSecurity-Eval stores CSV measurements over configured <model, attack, defense, dataset, judger> tuples.

Related resources:

Prompt corpus: https://huggingface.co/datasets/youbin2014/JailbreakDB

Code:… See the full description on the dataset page: https://huggingface.co/datasets/youbin2014/PromptSecurity-Eval.

Tags

task_categories:text-classificationlanguage:enlicense:cc-by-4.0size_categories:1K<n<10Kformat:csvmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:usllm-safetyjailbreakprompt-securityevaluationsecurity

README current version from Hugging Face


language:

  • en
    license: cc-by-4.0
    pretty_name: PromptSecurity-Eval
    task_categories:
  • text-classification
    tags:
  • llm-safety
  • jailbreak
  • prompt-security
  • evaluation
  • security
    configs:
  • config_name: promptsecurity_eval_sample_records
    default: true
    data_files:
    • split: harmful_main
      path: data/sample_records/harmful_main.csv
    • split: benign_utility
      path: data/sample_records/benign_utility.csv
    • split: baseline_calibration
      path: data/sample_records/baseline_calibration.csv
  • config_name: promptsecurity_eval_run_records
    data_files:
    • split: harmful_main
      path: data/run_records/harmful_main.csv
    • split: benign_utility
      path: data/run_records/benign_utility.csv
    • split: baseline_calibration
      path: data/run_records/baseline_calibration.csv
  • config_name: promptsecurity_eval_prompt_samples
    data_files:
    • split: balanced_challenge
      path: data/prompt_samples/balanced_challenge.csv

PromptSecurity-Eval

PromptSecurity-Eval is a standalone evaluation-result dataset generated by the
PromptSecurity evaluation protocol. It intentionally uses a schema separate from
the JailbreakDB prompt corpus: JailbreakDB stores prompt text, while
PromptSecurity-Eval stores CSV measurements over configured <model, attack, defense, dataset, judger> tuples.

Related resources:

Contents

  • data/sample_records/*.csv: sample-level measurement records.
  • data/run_records/*.csv: run-level metadata records.
  • data/prompt_samples/balanced_challenge.csv: the selected 100-prompt
    harmful-query sample used in the main evaluation.
  • schema.json: compact schema description.
  • manifest.json: row counts and source split directories for this export.

Record Types

sample_records is the main table family. Each row corresponds to one sample
evaluated under one configured tuple, and includes the target model, attack,
defense, dataset, prompt text, model response, execution status, judger outputs,
and serialized method settings.

run_records summarizes each raw experiment run file, including the configured
model, attack, defense, dataset, judger, sample count, completion status, and
run-level metadata.

prompt_samples stores the selected harmful-query sample identifiers and source
metadata used by the main evaluation.

Splits

Split Run files Sample records Completed sample records Records with responses
harmful_main 1672 167200 161849 158287
benign_utility 92 9200 9200 9195
baseline_calibration 87 8700 8700 8557

Split Semantics

  • harmful_main: main harmful-query evaluation over attack and defense
    configurations.
  • benign_utility: normal-question utility evaluation for defense behavior on
    benign inputs.
  • baseline_calibration: calibration runs used to select and audit the fixed
    harmful-query subset.

Field Reference

Each data/sample_records/*.csv file uses the following sample-level
measurement schema:

Field Meaning
record_id Stable identifier for this sample-level measurement row.
source_split Evaluation split name, e.g., harmful_main, benign_utility, or baseline_calibration.
source_file Relative path to the raw experiment JSON file.
file_status Run-file status recorded by the executor.
record_status Sample-level status recorded for this row.
is_completed Boolean indicating whether this row is considered completed.
has_response Boolean indicating whether a target-model response is present.
experiment_id Identifier of the raw experiment run.
experiment_name Descriptive name of the configured run.
dataset_name Evaluation dataset used by the run.
sample_index Index of the sample within the selected evaluation set.
sample_key Stable matched-analysis key for the prompt sample.
source_dataset Original source dataset for the selected prompt.
source_sample_index Original row or sample index inside source_dataset, when available.
challenge_type Sampling stratum or challenge category used when selecting the prompt.
avg_asr Baseline-calibration average ASR associated with the selected prompt.
std_asr Baseline-calibration standard deviation associated with the selected prompt.
model_count Number of calibration models contributing to avg_asr and std_asr.
clean_prompt Original prompt before attack transformation.
attacked_prompt Prompt after attack transformation; empty when no attacked prompt is recorded.
response_field Raw response field selected from the source JSON.
llm_response Target-model response used for judging.
target_llm_name Target model identifier.
target_llm_type Target model deployment/access type as recorded by the executor, e.g., api or local.
attack_method Configured attack method, including no_attack for baseline runs.
defense_method Applied defense method, including no_defense for undefended runs.
requested_defense_method Defense requested by the run configuration before any fallback handling.
response_type Response setting, e.g., direct target-model response or defended-endpoint response.
is_defended_response Boolean indicating whether the response was produced under a defense.
judger_name_json JSON-encoded list of judgers configured for the run.
judger_result Aggregate judger result recorded in the raw run, when present.
judger_individual_results_json JSON object containing per-judger outputs.
attack_query_count Number of target-model queries used by the attack, when reported.
assistant_llm_query_count Number of assistant-LLM calls used by the attack, when reported.
attack_runtime Attack-side runtime in seconds, when reported.
llm_response_time Target-model response time recorded for the selected response, when available.
llm_response_time_clean Response time for the clean prompt, when separately recorded.
llm_response_time_attacked Response time for the attacked prompt, when separately recorded.
llm_response_time_under_defense Response time for the defended endpoint, when separately recorded.
assist_model_refused Whether the assistant model refused during attack generation, when applicable.
defense_fallback Whether a defense fallback path was used.
judger_fallback Whether a judger fallback path was used.
original_data_json JSON-encoded raw sample payload retained from the source run.
sample_metadata_json JSON-encoded prompt/sample metadata.
target_llm_parameters_json JSON-encoded target-model generation settings.
attack_config_json JSON-encoded attack configuration.
defense_config_json JSON-encoded defense configuration.
judger_config_json JSON-encoded judger configuration.
response_context_json JSON-encoded auxiliary context for response generation.
judger_context_json JSON-encoded auxiliary context for judging.
status_reason Free-text reason for a nonstandard sample status, when present.
error Error message recorded for failed or incomplete rows.
experiment_timestamp Timestamp recorded by the experiment runner.
created_time Run creation timestamp.
last_updated Last update timestamp for the run.
metadata_json JSON-encoded run-level metadata.
dependencies_json JSON-encoded run dependencies or linked run identifiers.
judger_gpt_harmful_binary Normalized output of the GPT harmful-output judger.
judger_harmbench Normalized output of the HarmBench judger, when available.
judger_rejection_prefix Normalized output of the rejection-prefix judger, when available.
judger_utility Normalized output of the utility judger for benign-question runs, when available.

Each data/run_records/*.csv file uses the following run-level metadata schema:

Field Meaning
run_id Stable identifier for the raw experiment run file.
source_split Evaluation split name.
source_file Relative path to the raw experiment JSON file.
status Run-level executor status.
is_completed Boolean indicating whether the run is considered completed.
experiment_id Identifier of the raw experiment run.
experiment_name Descriptive name of the configured run.
target_llm_name Target model identifier.
attack_method Configured attack method.
defense_method Configured defense method.
dataset_name Evaluation dataset used by the run.
judger_name_json JSON-encoded list of configured judgers.
sample_limit Configured maximum number of samples.
sample_results_count Number of sample-result entries in the raw run.
results_count Number of aggregate result entries in the raw run.
completed_sample_results Number of sample results considered completed.
response_count Number of sample results with target-model responses.
success_count Run-level success count recorded by the executor.
failed_count Run-level failure count recorded by the executor.
created_time Run creation timestamp.
experiment_timestamp Timestamp recorded by the experiment runner.
last_updated Last update timestamp for the run.
execution_time Run-level execution time, when recorded.
config_json JSON-encoded full run configuration.
metadata_json JSON-encoded run metadata.
progress_json JSON-encoded progress information.
dependencies_json JSON-encoded run dependencies or linked run identifiers.
error Run-level error message, when present.

data/prompt_samples/balanced_challenge.csv uses the following prompt-sample
schema:

Field Meaning
index Row index in the selected prompt sample table.
sample_key Stable prompt key used to match records across runs.
dataset Original source dataset for the prompt.
prompt Clean harmful-query prompt text.
challenge_type Sampling stratum or challenge category.
avg_asr Baseline-calibration average ASR for the prompt.
std_asr Baseline-calibration standard deviation for the prompt.
model_count Number of calibration models contributing to the baseline statistics.
sample_index Evaluation sample index used by experiment files.

Loading

from datasets import load_dataset

sample_records = load_dataset(
    "youbin2014/PromptSecurity-Eval",
    "promptsecurity_eval_sample_records",
)

run_records = load_dataset(
    "youbin2014/PromptSecurity-Eval",
    "promptsecurity_eval_run_records",
)

prompt_samples = load_dataset(
    "youbin2014/PromptSecurity-Eval",
    "promptsecurity_eval_prompt_samples",
)

Example:

df = sample_records["harmful_main"].to_pandas()
completed = df[df["has_response"]]
asr = completed["judger_gpt_harmful_binary"].mean()

Safety Notice

The records may contain harmful, offensive, or disturbing prompts and model
outputs. They are released strictly for research on model safety, jailbreak
robustness, defense evaluation, and judger behavior. Users should review
their institutional and legal requirements before redistribution or downstream
use.

Paper

Citation

If you find this resource helpful, please cite our IEEE S&P 2027 paper:

@inproceedings{hong2027sokpromptsecurity,
  title = {{SoK}: Systematizing {LLM} Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses},
  author = {Hong, Hanbin and Wu, Shuang and Feng, Shuya and Naderloui, Nima and Yan, Shenao and Zhang, Jingyu and Arastehfard, Ali and Huang, Heqing and Hong, Yuan},
  booktitle = {2027 IEEE Symposium on Security and Privacy (SP)},
  year = {2027},
  note = {To appear}
}

README history 3 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-09-25Update paper citation to IEEE S&P 2027e0572bf12.1 KB
    Loading...
  2. 2026-07-08Initial PromptSecurity-Eval release6d81a3d11.9 KB
    Loading...
  3. 2026-07-08initial commitc6ffdad0 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 2 threads · 2 open · 2 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-10-20PRAdd link to paperopen1 💬#2
    Loading...
  2. 2026-07-09[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
cc-by-4.0

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