{
  "ruleset": "workrr-scan-v0.3",
  "digest": "sha256:a8dc730ca0b2fc575ab5825a7b79c57f4a5ec67cfb9b7fb61d1a4080a9412e3a",
  "certify": "v0.1.13",
  "source": "https://github.com/workrr-trust/certify/blob/v0.1.13/src/checks/scan.ts",
  "rules": [
    {
      "id": "WT001",
      "severity": "high",
      "description": "Instruction override phrasing",
      "pattern": "\\b(ignore|disregard|forget)\\s+(all\\s+|any\\s+)?(previous|prior|above|earlier|preceding)\\s+(instructions|prompts|rules|directions)",
      "flags": "gi",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT002",
      "severity": "critical",
      "description": "Unicode tag characters (invisible ASCII smuggling)",
      "pattern": "[\\u{E0000}-\\u{E007F}]",
      "flags": "gu",
      "applies_to": "Every file",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT003",
      "severity": "high",
      "description": "Bidirectional control characters (Trojan Source)",
      "pattern": "[\\u{202A}-\\u{202E}\\u{2066}-\\u{2069}]",
      "flags": "gu",
      "applies_to": "Every file",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT004",
      "severity": "warn",
      "description": "Zero-width characters",
      "pattern": "[\\u{200B}\\u{200C}\\u{2060}]|(?<!^)\\u{FEFF}",
      "flags": "gu",
      "applies_to": "Every file",
      "outcome": "Lowers the band",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT005",
      "severity": "high",
      "description": "Remote script piped to a shell",
      "pattern": "\\b(curl|wget)\\b[^\\n|]*\\|\\s*(sudo\\s+)?(ba|z|da)?sh\\b",
      "flags": "gi",
      "applies_to": "Every file",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT006",
      "severity": "high",
      "description": "Reads credential stores",
      "pattern": "(~|\\$HOME)?/?\\.(ssh/(id_[a-z0-9]+|authorized_keys)|aws/credentials|netrc|git-credentials|docker/config\\.json|kube/config)\\b",
      "flags": "gi",
      "applies_to": "Every file",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT007",
      "severity": "high",
      "description": "Instructs concealment from the user",
      "pattern": "\\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",
      "flags": "gi",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT008",
      "severity": "high",
      "description": "Hidden HTML comment carrying instructions",
      "pattern": "<!--(?:(?!-->)[\\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]*?-->",
      "flags": "gi",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT009",
      "severity": "warn",
      "description": "Sends data to a URL",
      "pattern": "\\b(post|send|upload|exfiltrate|forward)\\b[^\\n]{0,60}https?://",
      "flags": "gi",
      "applies_to": "Every file",
      "outcome": "Lowers the band",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT010",
      "severity": "warn",
      "description": "Large encoded blob",
      "pattern": "[A-Za-z0-9+/]{240,}={0,2}",
      "flags": "g",
      "applies_to": "Every file",
      "outcome": "Lowers the band",
      "origin": "workrr trust",
      "origin_short": "workrr trust"
    },
    {
      "id": "WT011",
      "severity": "high",
      "description": "Collects all environment variables and sends data out",
      "pattern": "os\\.environ\\.items\\(\\)|json\\.dumps\\(dict\\(os\\.environ\\)|JSON\\.stringify\\(process\\.env\\)",
      "flags": "g",
      "also": [
        "\\b(requests|httpx)\\.(post|put)\\(|\\baxios\\.post\\("
      ],
      "origin": "SkillSpector E1 and E2 (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector"
    },
    {
      "id": "WT012",
      "severity": "high",
      "description": "Instructs adding a poison, or self-harm",
      "pattern": "\\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",
      "flags": "gi",
      "origin": "SkillSpector P5 (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector"
    },
    {
      "id": "WT013",
      "severity": "high",
      "description": "Sends or saves the system prompt through a tool",
      "pattern": "\\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)",
      "flags": "gi",
      "origin": "SkillSpector P8 (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector"
    },
    {
      "id": "WT014",
      "severity": "high",
      "description": "Mining protocol or known mining pool",
      "pattern": "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",
      "flags": "gi",
      "origin": "SkillSpector YARA crypto_stratum_protocol and crypto_mining_pools (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT015",
      "severity": "high",
      "description": "Mining software configured to run",
      "pattern": "\\b(xmrig|xmr-stak|cpuminer|cgminer|bfgminer|ethminer|nbminer|phoenixminer)\\b",
      "flags": "gi",
      "also": [
        "--donate-level|--pool\\b|\\bwallet\\b|\\bhashrate\\b"
      ],
      "origin": "SkillSpector YARA crypto_miner_software (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT016",
      "severity": "critical",
      "description": "Browser cryptojacking script",
      "pattern": "coinhive\\.min\\.js|CoinHive\\.Anonymous\\s*\\(|\\bcryptoloot\\b|webmine\\.pro|\\bjsecoin\\b|\\bcoin-imp\\b|minero\\.cc|\\bmonerominer\\b",
      "flags": "gi",
      "origin": "SkillSpector YARA crypto_coinjacking (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT017",
      "severity": "critical",
      "description": "PHP webshell: runs request input or decoded payloads",
      "pattern": "\\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*\\(",
      "flags": "gi",
      "origin": "SkillSpector YARA php_webshell_generic and php_webshell_obfuscated (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT018",
      "severity": "critical",
      "description": "Known webshell family",
      "pattern": "\\b(c99shell|c99_sess_put|r57shell|b374k|p0wny|GodzillaShell)\\b|Web Shell by oRb",
      "flags": "gi",
      "origin": "SkillSpector YARA php_webshell_known (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT019",
      "severity": "high",
      "description": "Python, JSP or ASPX code runs request input",
      "pattern": "[^.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\\.",
      "flags": "gi",
      "origin": "SkillSpector YARA python_webshell, jsp_webshell and aspx_webshell (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT020",
      "severity": "critical",
      "description": "Reverse shell",
      "pattern": "\\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*\\(",
      "flags": "gi",
      "origin": "SkillSpector YARA reverse_shell (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT021",
      "severity": "high",
      "description": "Backdoor persistence",
      "pattern": "\\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",
      "flags": "gi",
      "origin": "SkillSpector YARA backdoor_persistence (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    },
    {
      "id": "WT022",
      "severity": "critical",
      "description": "Ransomware behavior",
      "pattern": "os\\.walk\\s*\\([^\\n]*\\.(encrypt|cipher)\\b|os\\.rename\\s*\\([^\\n]*\\+\\s*['\"]\\.(locked|encrypted|crypt|enc)['\"]\\s*\\)",
      "flags": "gi",
      "origin": "SkillSpector YARA ransomware_behavior (NVIDIA, Apache-2.0), commit 54824463, adapted 2026-11-07; based on Neo23x0/signature-base (Detection Rule License 1.1)",
      "applies_to": "Skips tests, fixtures and snapshots",
      "outcome": "Fails the scan",
      "origin_short": "SkillSpector, signature-base"
    }
  ]
}
