thor-plugins/SKILL.md
Write, package, and use THOR plugins to extend scanner functionality. THOR v11+ only.
npx skillsauth add nextronsystems/thor-skill thor-pluginsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Goal: Help users write custom THOR plugins and integrate them into scans.
THOR Plugins (v11+) allow extending THOR with custom functionality written in Go:
Plugins are ZIP archives containing Go code, executed by THOR via the yaegi interpreter.
plugin.go, metadata.yml, optional vendor/ directoryfunc Init(config, logger, actions) called at scan start| Use Case | Hook Type | Example |
|----------|-----------|---------|
| Parse custom file format | AddRuleHook with YARA trigger | ZIP parser, Defender quarantine extractor |
| Log/alert on matches | AddRuleHook | Registry autorun logger |
| Upload/collect samples | AddPostProcessingHook | HTTP sample collector |
| Enrich findings | AddPostProcessingHook | VirusTotal lookup, MITRE tagging |
metadata.yml with plugin infozip -r plugin.zip *.go metadata.yml vendor/plugins/ directoryunsafe or syscall packagesgo mod vendor)package main in root .go file# Run THOR with debug to see plugin loading
./thor-macosx --debug | grep -i plugin
# Check plugin initialization messages
./thor-macosx 2>&1 | grep "plugin"
data-ai
Troubleshoot THOR runs that are stuck, slow, failing to start, stopping early, or produce missing output. Use when the user reports freezes, long runtimes, high CPU pauses, scan aborts, or licensing/update issues.
content-media
Run THOR scans and propose the exact command line for Windows, Linux, or macOS. Use when the user wants to scan a host, a directory, a mounted image, or a memory dump with THOR v10/v11.
development
--- name: thor-maintenance description: Maintain THOR installs using thor-util: update signatures, upgrade versions, download offline packs, generate reports, manage YARA-Forge. Use when the user asks about updating/upgrading/report generation. --- # THOR Maintenance Skill Rules - Be precise about thor-util verbs: - update = signatures - upgrade = program + signatures, keep config - download = full pack incl config (offline use case) - Prefer stable signatures; mention sigdev only for urg
data-ai
Interpret THOR scan results and explain what findings mean. Use when the user pastes THOR log lines, shares a log file, or asks how to triage Notices/Warnings/Alerts.