Scan rules
Every rule we scan with
The full known-pattern ruleset, with the exact patterns. A pass means no high or critical match from these rules. It doesn't mean an artifact is free of problems.
The rules
| Rule | Looks for | Severity | Effect | Applies to | Origin |
|---|---|---|---|---|---|
WT001 | Instruction override phrasing | high | Fails the scan | Skips tests, fixtures and snapshots | workrr trust |
WT002 | Unicode tag characters (invisible ASCII smuggling) | critical | Fails the scan | Every file | workrr trust |
WT003 | Bidirectional control characters (Trojan Source) | high | Fails the scan | Every file | workrr trust |
WT004 | Zero-width characters | warn | Lowers the band | Every file | workrr trust |
WT005 | Remote script piped to a shell | high | Fails the scan | Every file | workrr trust |
WT006 | Reads credential stores | high | Fails the scan | Every file | workrr trust |
WT007 | Instructs concealment from the user | high | Fails the scan | Skips tests, fixtures and snapshots | workrr trust |
WT008 | Hidden HTML comment carrying instructions | high | Fails the scan | Skips tests, fixtures and snapshots | workrr trust |
WT009 | Sends data to a URL | warn | Lowers the band | Every file | workrr trust |
WT010 | Large encoded blob | warn | Lowers the band | Every file | workrr trust |
WT011 | Collects all environment variables and sends data out | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector |
WT012 | Instructs adding a poison, or self-harm | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector |
WT013 | Sends or saves the system prompt through a tool | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector |
WT014 | Mining protocol or known mining pool | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT015 | Mining software configured to run | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT016 | Browser cryptojacking script | critical | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT017 | PHP webshell: runs request input or decoded payloads | critical | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT018 | Known webshell family | critical | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT019 | Python, JSP or ASPX code runs request input | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT020 | Reverse shell | critical | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT021 | Backdoor persistence | high | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
WT022 | Ransomware behavior | critical | Fails the scan | Skips tests, fixtures and snapshots | SkillSpector, signature-base |
Check this list yourself
Every certificate records the ruleset that ran, as checks.scan.rulesetVersion and checks.scan.rulesetDigest. This ruleset's digest is:
sha256:a8dc730ca0b2fc575ab5825a7b79c57f4a5ec67cfb9b7fb61d1a4080a9412e3a
A certificate with that digest ran exactly these rules. To reproduce it, run jsonDigest({ version, rules }) from the certifier source.
Matches that don't count
- WT001, WT007, WT008 and WT011–WT022 skip tests, fixtures and snapshots: agents don't load those as instructions, and scanners keep their samples there.
- WT007 skips a phrase in quotation marks: it's an example being discussed.
- WT001 skips eval JSON files, and quoted phrases on lines about defending against prompt injection.
Exact patterns
Invisible characters are shown as escapes.
WT001: Instruction override phrasing
\b(ignore|disregard|forget)\s+(all\s+|any\s+)?(previous|prior|above|earlier|preceding)\s+(instructions|prompts|rules|directions)
WT002: Unicode tag characters (invisible ASCII smuggling)
[\u{E0000}-\u{E007F}]
WT003: Bidirectional control characters (Trojan Source)
[\u{202A}-\u{202E}\u{2066}-\u{2069}]
WT004: Zero-width characters
[\u{200B}\u{200C}\u{2060}]|(?<!^)\u{FEFF}
WT005: Remote script piped to a shell
\b(curl|wget)\b[^\n|]*\|\s*(sudo\s+)?(ba|z|da)?sh\b
WT006: Reads credential stores
(~|\$HOME)?/?\.(ssh/(id_[a-z0-9]+|authorized_keys)|aws/credentials|netrc|git-credentials|docker/config\.json|kube/config)\b
WT007: Instructs concealment from the user
\b(do\s+not|don't|never)\s+(tell|inform)\s+the\s+(user|human|operator)\s+(about|that)\b|\b(do\s+not|don't|never)\s+(mention|reveal|disclose)\b[^\n]{0,40}\bto\s+the\s+(user|human|operator)\b
WT008: Hidden HTML comment carrying instructions
<!--(?:(?!-->)[\s\S]){0,2000}?(\b(ignore|disregard|forget)\s+(all\s+|any\s+)?(previous|prior|above|earlier|preceding)\s+(instructions|prompts|rules|directions)|\byou\s+are\s+now\b|\bexfiltrate\b|\b(do\s+not|don't|never)\s+(tell|inform)\s+the\s+(user|human|operator)\b)[\s\S]*?-->
WT009: Sends data to a URL
\b(post|send|upload|exfiltrate|forward)\b[^\n]{0,60}https?://
WT010: Large encoded blob
[A-Za-z0-9+/]{240,}={0,2}
WT011: Collects all environment variables and sends data out
os\.environ\.items\(\)|json\.dumps\(dict\(os\.environ\)|JSON\.stringify\(process\.env\)
Only when the same file also matches:
\b(requests|httpx)\.(post|put)\(|\baxios\.post\(
WT012: Instructs adding a poison, or self-harm
\b(add\s+(a\s+)?(dash|pinch|bit|drop|amount)\s+of\s+|(include|incorporate|mix\s+in|stir\s+in)\s+(some\s+)?)(cyanide|arsenic|ricin|botulinum|strychnine|thallium|polonium|sarin|vx gas|mustard gas|anthrax|deadly nightshade|aconite|hemlock|oleander)\b|\b(you\s+should|try\s+to|please)\s+(hurt|harm|injure)\s+yourself\b
WT013: Sends or saves the system prompt through a tool
\b(write|save|store|log|dump|send|post|upload|transmit|copy|pipe|forward)\s+(your\s+(system\s+)?(prompt|instructions)|(the\s+)?system\s+prompt)\s+(to|into|via|through)\s+(https?://|external|remote|webhook|server|curl|wget)
WT014: Mining protocol or known mining pool
stratum\+(tcp|ssl)://|\bmining\.(subscribe|authorize|submit)\b|\b(pool\.minexmr\.com|xmrpool\.eu|monerohash\.com|supportxmr\.com|nanopool\.org|hashvault\.pro|herominers\.com|unmineable\.com|minergate\.com)\b
WT015: Mining software configured to run
\b(xmrig|xmr-stak|cpuminer|cgminer|bfgminer|ethminer|nbminer|phoenixminer)\b
Only when the same file also matches:
--donate-level|--pool\b|\bwallet\b|\bhashrate\b
WT016: Browser cryptojacking script
coinhive\.min\.js|CoinHive\.Anonymous\s*\(|\bcryptoloot\b|webmine\.pro|\bjsecoin\b|\bcoin-imp\b|minero\.cc|\bmonerominer\b
WT017: PHP webshell: runs request input or decoded payloads
\b(eval|assert|system|passthru|shell_exec|popen|proc_open)\s*\(\s*\$_(POST|GET|REQUEST|COOKIE)\s*\[|\beval\s*\(\s*(base64_decode|gzinflate|str_rot13|gzuncompress)\s*\(
WT018: Known webshell family
\b(c99shell|c99_sess_put|r57shell|b374k|p0wny|GodzillaShell)\b|Web Shell by oRb
WT019: Python, JSP or ASPX code runs request input
[^.a-zA-Z0-9_](exec|eval)\s*\(\s*request\.|\bos\.(popen|system)\s*\(\s*request\.|\bsubprocess\.[a-zA-Z0-9_]+\s*\(\s*request\.|Runtime\.getRuntime\(\)\.exec\s*\(\s*request\.getParameter|ProcessBuilder\s*\([^\n]*request\.getParameter|Process\.Start\s*\([^\n]*Request\[|cmd\.exe[^\n]*Request\.
WT020: Reverse shell
\bbash\s+-i\s+>&\s*/dev/tcp/|\bncat?\s[^\n]*-e\s*/bin/(ba)?sh\b|\bsocat\s[^\n]*EXEC[^\n]*/bin/(ba)?sh|\bmkfifo\s[^\n]*\|\s*/bin/(ba)?sh|\bfsockopen\s*\([^\n]*\bexec\s*\(
WT021: Backdoor persistence
\buseradd\s[^\n]*-o\s+-u\s+0\b|\becho\s[^\n]*>>?\s*[^\n]*\.ssh/authorized_keys|\becho\s[^\n]*(curl|wget|base64|/dev/tcp)[^\n]*>>\s*[^\n]*\.(bashrc|profile)\b
WT022: Ransomware behavior
os\.walk\s*\([^\n]*\.(encrypt|cipher)\b|os\.rename\s*\([^\n]*\+\s*['"]\.(locked|encrypted|crypt|enc)['"]\s*\)
Credit
WT001–WT010 are workrr's own. WT011–WT022 were adapted on 2026-11-07 from NVIDIA SkillSpector (Apache-2.0, commit 54824463), and several are based on Neo23x0/signature-base (Detection Rule License 1.1). workrr isn't affiliated with either project, and we changed the rules: we narrowed them and kept only those that were quiet on real skills.
Each adapted rule's exact source is in rules.json and in the ruleset digest.