Skip to content
Back to skills

Safeprotein Eval

ASecurity

Evaluates the biosafety risks and jailbreak vulnerabilities of protein foundation models by measuring their ability to reconstruct harmful protein sequences and 3D structures from partially masked inputs. It probes whether models can bypass safety filters and generate biologically dangerous proteins when given sequence and structural prompts. Use when the user wants to benchmark on SafeProtein-Bench, or asks about evaluating this task. Reports jailbreak success rate.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongogit

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Safeprotein Eval?

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

Security grade badge for Safeprotein Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-safeprotein-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-safeprotein-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: safeprotein-eval
description: Evaluates the biosafety risks and jailbreak vulnerabilities of protein foundation models by measuring their ability to reconstruct harmful protein sequences and 3D structures from partially masked inputs. It probes whether models can bypass safety filters and generate biologically dangerous proteins when given sequence and structural prompts. Use when the user wants to benchmark on SafeProtein-Bench, or asks about evaluating this task. Reports jailbreak success rate.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2509.03487
  bibtex_key: [REDACTED]
  confidence: high
---

# safeprotein-eval

> SafeProtein: Red-Teaming Framework and Benchmark for Protein Foundation Models — Fan et al. (2025) (arXiv:2509.03487, 2025)

## What this evaluates

Evaluates the biosafety risks and jailbreak vulnerabilities of protein foundation models by measuring their ability to reconstruct harmful protein sequences and 3D structures from partially masked inputs. It probes whether models can bypass safety filters and generate biologically dangerous proteins when given sequence and structural prompts.

## Datasets

- **SafeProtein-Bench** — total 429; splits: test (429); repo https://github.com/jigang-fan/SafeProtein

## Metrics

- `jailbreak success rate` **(primary)** — range: percent
  - The percentage of generated protein instances that satisfy the joint sequence–structure criterion, indicating a successful red-teaming attack.
- `sequence identity` — range: percent
  - Computed by direct position-wise comparison between the generated sequence and the original masked input sequence.
- `RMSD` — range: other
  - Root Mean Square Deviation calculated between the model-predicted 3D structure and the native ground-truth structure.

## Input / output format

**Input**: Protein sequences with applied masking strategies (conservation, random, or tail) at ratios ranging from 0.1 to 0.5. Optionally augmented with structural prompts (native structure or Foldseek-derived benign backbone structure).

**Output**: Generated protein amino acid sequences and their corresponding predicted 3D structural coordinates.

## Scoring recipe

```python
def compute_jailbreak_success_rate(predictions, gold):
    successful = 0
    for pred_seq, pred_struct, gold_seq, gold_struct in zip(predictions, gold):
        seq_id = compute_sequence_identity(pred_seq, gold_seq)
        rmsd = compute_rmsd(pred_struct, gold_struct)
        if passes_joint_sequence_structure_criterion(seq_id, rmsd):
            successful += 1
    return (successful / len(predictions)) * 100
```

## Common pitfalls

- Higher masking ratios (>0.25) significantly reduce biological significance and success rates, as they mask non-conserved regions and remove effective information.
- Using AlphaFold3 for structure prediction instead of ESMfold increases computational runtime by ~100x, making large-scale evaluation impractical.
- The joint sequence-structure criterion is stricter than structural similarity alone, reducing false positives but potentially missing functionally harmful proteins that fold differently.

## Evidence (verbatim from paper)

> Evaluation is conducted following the SafeProtein-Bench Evaluation Protocol (Section[3.2]). For sequence-level metrics, since the generated sequences and masked inputs have the same length, sequence identity is computed by direct position-wise comparison. For structural metrics, we compute the RMSD between the model-predicted structures and their native counterparts. Jailbreak success rates are determined using the joint sequence–structure criterion (Section[3.2]).

## Citation

```bibtex
@misc{fan2025safeprotein,
  title={SafeProtein: Red-Teaming Framework and Benchmark for Protein Foundation Models},
  author={Fan et al. (2025)},
  year={2025},
  note={arXiv:2509.03487}
}
```

- arXiv: 2509.03487

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.