fine-tuning-security

Detect data-poisoning and backdoor risks in fine-tuning pipelines.

4|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/maruakshay/mii-ai-security --skill fine-tuning-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fine-tuning-security
Source: https://github.com/maruakshay/mii-ai-security/tree/main/skills/fine-tuning-security
Command: npx skills add https://github.com/maruakshay/mii-ai-security --skill fine-tuning-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fine-tuning does not inherently preserve safety; this skill helps identify and mitigate poisoned training data, backdoor triggers, RLHF manipulation, and dataset contamination that survive re-training.

Core Features & Use Cases

  • Data provenance and poisoning defense across the full fine-tuning lifecycle.
  • Backdoor trigger detection, behavioral baselining, and rollback/promotions controls.
  • Guidance for minimum deliverables and quick wins to harden pipelines.

Quick Start

Audit and harden your fine-tuning workflow by enabling data provenance, anomaly detection, and a security evaluation baseline before promoting any checkpoint.

Frequently Asked Questions about fine-tuning-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure a fine-tuning pipeline against data poisoning?

To secure fine-tuning pipelines against data poisoning, you need to establish training data provenance manifests, implement anomaly detection, and evaluate behavioral baselines before promoting checkpoints. This mitigates backdoor triggers and dataset contamination risks.

What is data provenance in LLM fine-tuning security?

Data provenance in fine-tuning security involves tracking the origin and history of training data to prevent poisoning. It requires provenance manifests to verify data integrity before datasets are used for adapters or RLHF workflows.

How do I detect backdoor triggers in fine-tuned models?

Backdoor trigger detection in fine-tuned models requires establishing a behavioral baseline evaluation. By comparing model outputs against this baseline before checkpoint promotion, you can identify anomalies caused by poisoned training data.

Does fine-tuning preserve the safety alignment of the base model?

Fine-tuning does not inherently preserve safety alignment. Re-training can introduce poisoned data, backdoor triggers, and RLHF manipulation, requiring dedicated anomaly detection and rollback controls to maintain security.

Can I use this to secure RLHF workflows from dataset contamination?

Yes, this applies to securing RLHF workflows from dataset contamination. It provides guidance for minimum deliverables to harden pipelines assembling datasets for RLHF, including behavioral baselining and checkpoint rollback paths.

What's the best way to prevent promoting a poisoned checkpoint?

The best way to prevent promoting a poisoned checkpoint is to enforce a defined rollback path combined with behavioral baseline evaluation and anomaly detection. This ensures only verified checkpoints survive the fine-tuning lifecycle.