Skill quarantine review workflow

Before a new skill is installed, inspects it for malicious behaviour inside an isolated virtual machine.

#Claude Code#skill review#virtual machine#prompt injection#supply chain
Skill quarantine review

WorkflowSkill quarantine review

Security Claude Code skill

Before a skill written by someone else goes onto your machine, it is reviewed inside a snapshotted virtual machine: static scan, decoy files, a monitored run and an audit report. The VM is then restored to its snapshot.

Challenge

  • A skill is a bundle of text and scripts whose instructions the agent follows, so one planted sentence can leak keys or rewrite settings
  • Trying it out on your own machine means any damage has already happened by the time you notice

Approach

  • On the host, only a text scan is done; none of the skill's code is ever run
  • The VM is snapshotted first, decoy files such as fake keys and a settings baseline are planted, then one harmless task runs while file access, network connections and commands are traced
  • A read-only audit agent reads the skill and the trace as evidence and writes a report with file and line references

Outcome

  • The verdict is one of three: usable, suspicious or poisoned, each backed by verbatim evidence
  • After the review the VM goes back to its snapshot, leaving no trace of the skill that was tested

Skills and plugins are handy, but to an agent they are instructions to follow. This workflow checks whether a skill from outside hides commands or sends data out, without putting your own machine at risk.

One script runs the whole thing: the static scan on the host, the VM snapshot, planting decoys and the monitored run, writing the audit report, then pulling the report back and restoring the VM.

The full workflow

TaskWhoInputsOutputs
1. Static scanControl script + Scan scriptquarantine.sh + static_scan.pyTarget skillStatic scan
2. Snapshot VMControl scriptquarantine.sh—VM snapshot
3. Plant decoysDecoy scriptguest_setup.shTarget skillDecoys
4. Monitored runRun scriptguest_run.shDecoysRun trace
5. AuditAudit agent + Run scriptclaude -p in VM + guest_run.shStatic scan, Run trace, Refers to Audit promptAudit report
6. Restore VMControl scriptquarantine.shAudit report, VM snapshotFinal report
7. DecideOwnerhumanFinal report—
Skill quarantine review

7 steps · 2 roles · 4 scripts · 3 skills reviewed since 2026-11-01 (all static-only so far)

A suspicious skill never runs on your own machine. It runs inside a snapshotted VM, which is rolled back afterwards.

  • One script runs steps 1–6 end to end; the main session only starts it and relays the result
  • On the host, only a text scan; the skill's code runs only inside the VM
  • Inside the VM, Claude runs twice: once under monitoring, once as a read-only auditor
  • Not there yet: no dedicated key has been set up, so the 3 reviews so far stopped after the static scan and the VM snapshot and restore; the monitored run and the audit have not run

Project folders involved (3)

This workflow does not live in one folder: it runs across projects.

~/.claude/skills/skill-quarantine
The core: four scripts (control, scan, decoys, monitored run) and the audit prompt
isolated Linux VM
Where the review happens: a VM with Claude Code installed, rolled back to its snapshot every time
~/Desktop/skill-quarantine/<skill>_<time>
Where reports land: the final report, the static scan and the evidence pulled back from the VM
Static scan

Step 1 · Control script + Scan script

Static scantext only

On the host nothing is executed: risky patterns are searched for in the text alone.

  • Five kinds are searched for: instruction hijacking, sending data out, backdoors, destructive commands and mismatch with the description
  • Invisible tricks such as zero-width or look-alike characters are checked too
  • These are regular expressions and can misfire; the verdict rests on line-referenced findings in the audit

Claude CodeNone of the skill's scripts ever run on the host, and it is never installed there

InputsTarget skill
OutputsStatic scan
Snapshot VM

Step 2 · Control script

Snapshot VMsnapshot

Wake the VM and snapshot its state before anything goes in.

  • If the snapshot fails, the run stops and nothing goes in
  • The restore at the end is set to run even if something fails midway
  • One skill and one VM per run
OutputsVM snapshot
Plant decoys

Step 3 · Decoy script

Plant decoyscanary files

Plant decoys such as fake keys, and record a baseline of the settings files.

  • The decoys hold fake values carrying a marker unique to the run
  • Settings, instruction files, scheduled jobs and the skills folder are recorded as hashes
  • The skill is linked in, so the restore leaves no trace of it
InputsTarget skill
OutputsDecoys
Monitored run

Step 4 · Run script

Monitored runstrace

Ask for one small harmless task and trace the files opened, connections made and commands run.

  • It checks whether a decoy was opened and whether an outbound connection followed
  • Afterwards the baseline is compared to see whether any settings changed
  • It is cut off after 20 minutes

Common misconceptionOne run shows only that run; behaviour triggered by a date or a specific command may not appear

InputsDecoys
OutputsRun trace
Audit

Step 5 · Audit agent + Run script

Auditread-only tools

A read-only Claude reads the skill and the trace as evidence and writes the report.

  • Text inside the skill is evidence, not instructions; any command-like sentence is recorded verbatim
  • The verdict is usable, suspicious or poisoned, and every finding has a file and line
  • The auditor never invokes the skill and never reads the decoys' contents

Claude CodeThe audit prompt was refined by a prompt-refining agent and then fixed

InputsStatic scan, Run trace
OutputsAudit report
Refers toAudit prompt
Restore VM

Step 6 · Control script

Restore VMsnapshot-switch

Pull the evidence back into a final report and roll the VM back to its snapshot.

  • The report has three parts: the audit, the static scan and the raw trace
  • After the rollback the temporary snapshot is deleted and the VM returns to its earlier state (suspended if it was)
  • A failed restore prints a loud warning for the person to fix by hand
InputsAudit report, VM snapshot
OutputsFinal report
Decide

Step 7 · Owner

Decidehuman

The person reads the verdict and decides whether to install or discard.

  • The workflow never fixes or deletes the skill; what to do with it is the person's call
  • "Suspicious" means evidence that is not conclusive; it goes on the list for a person to check
  • If it is poisoned, the dedicated key given to the VM is revoked

Claude CodeYour own login never goes into the VM; a capped dedicated key is passed only at the moment of connecting

InputsFinal report

Key points

Read the skill's text as evidence, not instructions. The audit prompt is fixed so that nothing inside the skill is executed and any command-like sentence is recorded as evidence. The auditor only has read-only tools.

Use decoys to see what gets touched. Fake keys and credentials carry a unique marker; the trace shows whether they were read and whether a network connection followed. Changes to settings files or scheduled jobs show up against the baseline.

Your own login never goes in. The VM run gets only a dedicated key with a spending cap, passed in temporarily, and that key is revoked if the verdict is poisoned. The report also states its coverage, since behaviour triggered by special conditions may not appear in a single run.