Skip to content
Back to skills

Tamper Resistance Eval

ASecurity

This benchmark evaluates the robustness of LLM safety safeguards against fine-tuning-based tampering attacks. It measures whether a model can maintain low accuracy on weaponized knowledge (forget) and high benign capabilities (retain) after undergoing various supervised fine-tuning attacks. Use when the user wants to benchmark on WMDP, MMLU, HarmBench, MT-Bench, or asks about evaluating this task. Reports Post-Attack Forget accuracy, Attack Success Rate (ASR).

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 11, 2026
researchpythongotestingperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill tamper-resistance-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tamper Resistance Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tamper Resistance Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-tamper-resistance-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-tamper-resistance-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tamper-resistance-eval
description: This benchmark evaluates the robustness of LLM safety safeguards against fine-tuning-based tampering attacks. It measures whether a model can maintain low accuracy on weaponized knowledge (forget) and high benign capabilities (retain) after undergoing various supervised fine-tuning attacks. Use when the user wants to benchmark on WMDP, MMLU, HarmBench, MT-Bench, or asks about evaluating this task. Reports Post-Attack Forget accuracy, Attack Success Rate (ASR).
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2408.00761
  bibtex_key: [REDACTED]
  confidence: high
---

# tamper-resistance-eval

> Tamper-Resistant Safeguards for Open-Weight LLMs — Tamirisa et al. (2024) (arXiv:2408.00761, 2024)

## What this evaluates

This benchmark evaluates the robustness of LLM safety safeguards against fine-tuning-based tampering attacks. It measures whether a model can maintain low accuracy on weaponized knowledge (forget) and high benign capabilities (retain) after undergoing various supervised fine-tuning attacks.

## Datasets

- **WMDP** — total ?; splits: test (-1)
- **MMLU** — total ?; splits: test (-1)
- **HarmBench** — total ?; splits: test (-1)
- **MT-Bench** — total ?; splits: test (-1)

## Metrics

- `Post-Attack Forget accuracy` **(primary)** — range: percent
  - Average accuracy on weaponization knowledge prompts after applying 26 distinct fine-tuning attacks. Lower is better.
- `Retain accuracy` — range: percent
  - Accuracy on MMLU subjects unrelated to the target weaponization domain. Higher is better.
- `Attack Success Rate (ASR)` **(primary)** — range: percent
  - Percentage of jailbreak prompts successfully answered by the model on HarmBench after tampering attacks. Lower is better.
- `MT-Bench score` — range: [0, 10]
  - Multi-turn conversation ability score evaluating benign capabilities preservation. Higher is better.

## Input / output format

**Input**: The model receives prompts from weaponization knowledge domains (WMDP) for knowledge restriction evaluation, jailbreak prompts from HarmBench for refusal testing, and benign prompts from MMLU/MT-Bench for capability preservation.

**Output**: The model produces text responses, which are evaluated for factual accuracy on WMDP/MMLU or classified as successful/failed jailbreaks for HarmBench.

## Scoring recipe

```python
def evaluate_tamper_resistance(model, base_model, wmdp_prompts, wmdp_labels, mmlu_prompts, mmlu_labels, harmbench_prompts, attacks):
    retain_preds = model.generate(mmlu_prompts)
    retain_acc = accuracy(retain_preds, mmlu_labels) * 100
    post_attack_forgets = []
    for attack in attacks:
        attacked_model = fine_tune(base_model, attack.data, steps=64)
        forget_preds = attacked_model.generate(wmdp_prompts)
        post_attack_forgets.append(accuracy(forget_preds, wmdp_labels) * 100)
    avg_post_attack_forget = mean(post_attack_forgets)
    asrs = []
    for attack in attacks[:5]:
        attacked_model = fine_tune(base_model, attack.data, steps=64)
        jailbreak_preds = attacked_model.generate(harmbench_prompts)
        asrs.append(sum(is_success(p) for p in jailbreak_preds) / len(harmbench_prompts) * 100)
    avg_asr = mean(asrs)
    return retain_acc, avg_post_attack_forget, avg_asr
```

## Common pitfalls

- Confusing pre-attack and post-attack metrics; the core contribution is evaluated specifically on post-attack performance after fine-tuning.
- Failing to average across multiple seed repeats and attack variants; results are averaged over 26 attacks and 3-5 repeats per setting.
- Overlooking the trade-off between safety retention and benign capability degradation; TAR intentionally lowers retain accuracy by ~10% to achieve robustness.

## Evidence (verbatim from paper)

> We evaluate TAR in weaponization knowledge restriction and harmful request refusal settings, with results shown in Table 1 and Table 2 respectively. The average Post-Attack accuracy is computed as the average accuracy across the 26 fine-tuning attacks discussed in Section 5, averaged over multiple seed repeats. We evaluate the Post-Attack jailbreak attack success rate (ASR) on HarmBench [37] after the tampering attacks in Appendix F.2, and measure benign capabilities preservation via MT-Bench [70], which evaluates multi-turn conversation ability.

## Citation

```bibtex
@misc{tamirisa2024tamper,
  title={Tamper-Resistant Safeguards for Open-Weight LLMs},
  author={Tamirisa et al. (2024)},
  year={2024},
  note={arXiv:2408.00761}
}
```

- arXiv: 2408.00761

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.