Skip to content
ai-supply.store
EntdeckenKategorienBestenlistenCommunityAgent APIFAQ
AnmeldenKostenlos registrieren
catalog / Cybersecurity / HarmBench
△EvalCybersecurityFree

HarmBench

Standardized framework for automated LLM red teaming: curated harmful behaviors plus 18+ attack methods scored by a common refusal-robustness metric.

@ai-supply
Installationen220
⟳ upstream main@8e1604d · updated 2y ago
↗ Quell-Repository
← More CybersecurityCybersecurity leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals16capabilities surfaced1known CVE4of 20 OWASP controls clear
Broad capability surfaceVulnerable dependenciesExternal endpoints declared · expectedPrompt-injection phrasing · expected
scanned 1mo ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

HarmBench — standardized evaluation for automated red teaming

HarmBench is a standardized framework for measuring how robustly an LLM refuses harmful requests and how effective automated attacks are at breaking it. It brings apples-to-apples comparison to red-team research that was previously ad hoc.

Key features

  • Curated set of harmful behaviors across multiple risk categories, including contextual and multimodal behaviors
  • 18+ implemented red-teaming attack methods (GCG, PAIR, AutoDAN, TAP, and more) under one interface
  • Standardized attack-success-rate scoring using trained classifier judges instead of manual review
  • Evaluate open- and closed-weight target models, plus their defenses, side by side
  • Reproducible pipelines used to benchmark refusal robustness across dozens of models at scale

HarmBench lets a security-minded team quantify a model's jailbreak resistance with a repeatable methodology, turning "is this model safe?" into a measurable, comparable score.

Curated mirror of the open-source HarmBench (MIT). Get it from the source.

Rating rank
#1
of 19 in Cybersecurity
Install rank
#19
of 19 in Cybersecurity
Security score
75/100 · B
review
Security rank
#13
of 19 in Cybersecurity
Installs
220
cat avg 85k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Cybersecurity leaderboard →
! Security: Review · 7575/100 · grade Bscanned 1mo ago
✓ no compromise signals17 risk-surface · 10/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

Control card · high confidence (static)
framework: pytestframework: rebuffcovers: jailbreakcovers: robustnesscovers: toxicitycovers: hallucinationcovers: biascovers: secrets-leakcovers: pii
test_load_yamltest_load_yaml_and_argstest_loading_data_argstest_loading_data_dicttest_loading_with_unit_fractionstest_loading_with_fractions_greater_than_unitytest_loading_fails_with_negative_fractionstest_loading_single_split_with_unit_fractionstest_sfttest_generationtest_rmtest_dpotest_4bittest_8bittest_no_quantizationtest_right_truncation_sidetest_left_truncation_sidetest_default_chat_templatetest_chatml_chat_templatetest_peft_configtest_no_peft_configeval_singleeval_batchevaluate

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 26 pip requirements declared · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/requirements.txtrisk surface
•Vulnerable dependencies — 152 known vulnerabilities in: black@23.1.0, deepspeed@0.12.2, protobuf@3.9.2, scipy@1.9.3, torch@2.1.0, transformers@4.35.0, aiohttp@3.9.5, filelock@3.9.1 (CWE-1395)known CVE · -25 pts
⚠LLM01Prompt Injectionhigh
Adversarial instructions embedded in an artifact that hijack a downstream LLM.
•Prompt-injection phrasing — instruction-subversion language detected · centerforaisafety-HarmBench-8e1604d/README.md (CWE-77)expected
⚠LLM02Sensitive Information Disclosurehigh
Secrets, credentials or PII shipped inside the artifact.
•Email addresses present — contains email-like strings · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/setup.pyexpected
•Credit-card-like number — a number passes the Luhn checksum · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_multimodal_all.csv (CWE-359)expected
•Phone number present — contains phone number-like pattern (E.164 or formatted) · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_text_all.csv (CWE-359)expected
⚠LLM08Vector and Embedding Weaknesseshigh
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
•Email addresses present — contains email-like strings · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/setup.pyexpected
•Credit-card-like number — a number passes the Luhn checksum · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_multimodal_all.csv (CWE-359)expected
•Phone number present — contains phone number-like pattern (E.164 or formatted) · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_text_all.csv (CWE-359)expected
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/scripts/adv_training_utils.py (CWE-95)expected
•Suspicious code patterns — OS command execution; dynamic code execution · centerforaisafety-HarmBench-8e1604d/baselines/model_utils.py (CWE-78)expected
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 3 distinct host(s) · centerforaisafety-HarmBench-8e1604d/.gitignoreexpected
•External endpoints declared — 2 distinct host(s) · centerforaisafety-HarmBench-8e1604d/adversarial_training/README.mdexpected
•External endpoints declared — 1 distinct host(s) · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/LICENSEexpected
•External endpoints declared — 5 distinct host(s) · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/README.mdexpected
•External endpoints declared — 4 distinct host(s) · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/scripts/README.mdexpected
•External endpoints declared — 41 distinct host(s) · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_multimodal_all.csvexpected
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_text_all.csv (CWE-272)risk surface
•External endpoints declared — 8 distinct host(s) · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_text_all.csvexpected
⚠LLM07System Prompt Leakagemedium
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/.deepspeed_env (CWE-200)expected
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
◷LLM10Unbounded ConsumptionRuntime-enforced
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 26 pip requirements declared · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/requirements.txtrisk surface
•Vulnerable dependencies — 152 known vulnerabilities in: black@23.1.0, deepspeed@0.12.2, protobuf@3.9.2, scipy@1.9.3, torch@2.1.0, transformers@4.35.0, aiohttp@3.9.5, filelock@3.9.1 (CWE-1395)known CVE · -25 pts
⚠ML02Data Poisoninghigh
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
•Prompt-injection phrasing — instruction-subversion language detected · centerforaisafety-HarmBench-8e1604d/README.md (CWE-77)expected
•Email addresses present — contains email-like strings · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/setup.pyexpected
•Credit-card-like number — a number passes the Luhn checksum · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_multimodal_all.csv (CWE-359)expected
•Phone number present — contains phone number-like pattern (E.164 or formatted) · centerforaisafety-HarmBench-8e1604d/data/behavior_datasets/harmbench_behaviors_text_all.csv (CWE-359)expected
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/scripts/adv_training_utils.py (CWE-95)expected
•Suspicious code patterns — OS command execution; dynamic code execution · centerforaisafety-HarmBench-8e1604d/baselines/model_utils.py (CWE-78)expected
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (7) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · centerforaisafety-HarmBench-8e1604d/.gitignorerisk surface
•Unrecognized file type — '.?' is not on the allowlist · centerforaisafety-HarmBench-8e1604d/LICENSErisk surface
•Unrecognized file type — '.deepspeed_env' is not on the allowlist · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/.deepspeed_envrisk surface
•Unrecognized file type — '.mdx' is not on the allowlist · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/chapters/en/chapter0/introduction.mdxrisk surface
•Unrecognized file type — '.cfg' is not on the allowlist · centerforaisafety-HarmBench-8e1604d/adversarial_training/alignment-handbook/setup.cfgrisk surface
•Unrecognized file type — '.voc' is not on the allowlist · centerforaisafety-HarmBench-8e1604d/baselines/artprompt/jailbreak/subword_nmt.vocrisk surface
•Suspicious network references — suspicious TLD (1 URLs) · centerforaisafety-HarmBench-8e1604d/baselines/autodan/mutate_models.pyexpected
✔ verified source · pinned centerforaisafety-HarmBench-8e1604d
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/harmbench-automated-red-team-eval/check). Click a policy:

Consume HarmBench programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/harmbench-automated-red-team-eval

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/harmbench-automated-red-team-eval/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add harmbench-automated-red-team-eval

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/harmbench-automated-red-team-eval/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "harmbench-automated-red-team-eval" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Kostenlose, sicherheitsgeprüfte KI-Fähigkeiten – Skills, MCPs, Plugins, Agents, Datasets und mehr, jeweils bewertet und auf Aktualität überwacht, gemacht für Menschen und Agents gleichermaßen.

api · v3.1status · all green
Kontakt
support@ai-supply.storesecurity@ai-supply.store
Katalog
  • Entdecken
  • Kategorien
  • Bestenlisten
  • Benchmarks
  • Sicherheit
  • Scan a repo
Community
  • Community
  • FAQ
Für Agenten
  • Schnellstart (60s)
  • Agenten autorisieren
  • Agent API
  • OpenAPI-Spezifikation
Für Entwickler
  • Veröffentlichen
  • Dashboard
Konto
  • Konto erstellen
  • Anmelden
  • Einstellungen
Rechtliches
  • Nutzungsbedingungen
  • Publisher-Vereinbarung
  • Nutzungsrichtlinien
  • Datenschutz