/marq:malware-scriptsfrom marq
Guides static triage and deobfuscation of script-based lures (LNK, HTA, JS, VBS, PowerShell, batch, HTML smuggling) to recover next-stage commands and IOCs without execution.
Ships in marq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Never execute. Don't run the sample, and don't run its decoder either, not even with
eval swapped for a print: that is still running attacker code. marq ships no
pwsh/node/wscript, which is correct. Recover each layer by re-implementing the
decode step yourself. Stage under /work/<case>/; keep your own decode scripts in a
different dir and run them with python3 -I. Malicious .doc(m)/.xls(m)/OneNote →
load_skill malware-maldoc; a PE/ELF that falls out → load_skill malware-triage.
sha256sum) and check reputation (load_skill indicator-enrichment).exif_metadata reports File Type / MIME Type. read_file
with a small max_bytes shows the head of a text script.unzip -l, then unzip -d /work/<case>/x (unpacking runs nothing).
ISO/IMG/VHD(X)/7z/RAR: unpack with 7-Zip and stage the contents.exif_metadata gives the target path, command-line arguments, working dir, icon
file (a PDF icon on a .lnk = lure) and Machine ID (the builder's hostname, a pivot).
Arguments padded with whitespace to hide past the Properties box (CVE-2025-9491); Windows
changed that dialog in 2025, but it's a UI-only fix. Read the raw args, not the GUI.
verify: https://0patch.com/blog/microsoft-silently-patched-cve-2025-9491-we-think-our-patch-provides-more-securit
Payloads appended after the LNK structure: rabin2 -zz (raw + UTF-16 strings).mshta.exe at full trust, outside the browser sandbox. read_file; look
for <script language="VBScript">, CreateObject("WScript.Shell"), .Run, window.close..js runs in wscript.exe, not a browser. Sinks and
primitives: ActiveXObject, WScript.Shell, MSXML2.XMLHTTP, ADODB.Stream (SaveToFile),
eval/Function(). Obfuscation: a string array + rotate/index function (obfuscator.io style),
fromCharCode, reversed strings, megabytes of junk padding. Lift the array and decoder logic
into python3. Emulation (box-js) belongs off-box, in a sandbox.olevba (oletools) reads plain VBScript text too (auto-exec, suspicious keywords, --deobf).
.vbe (#@~^ header) is Script-Encoder output: decode off-box (Didier Stevens' decode-vbe.py)
or re-implement it. VBScript is still on by default in Windows 11; it's planned to stop being
on by default around 2027. verify: https://techcommunity.microsoft.com/blog/windows-itpro-blog/vbscript-deprecation-timelines-and-next-steps/4148301-e/-enc/-EncodedCommand is base64 of UTF-16LE: base64 -d | iconv -f UTF-16LE -t UTF-8. Next layers: FromBase64String + GzipStream/DeflateStream (python3
gzip, or zlib.decompress(d, -15) for raw deflate), -bxor keys, [char] arrays + -join,
-f format reordering, backticks. Sinks: IEX, Invoke-Expression, &(...), .Invoke().
Strip the sink and decode its argument. AmsiUtils/amsiInitFailed = AMSI bypass.set fragments joined via %v:~x,y% substrings, ^ carets, undefined
%junk% vars that expand to nothing, a UTF-16 BOM to break editors, certutil -decode, and
payloads after exit /b/goto :eof read back by findstr/PowerShell. Resolve the sets in python3.Blob,
URL.createObjectURL, a.download, msSaveOrOpenBlob) from an embedded base64/array blob,
often XOR'd or reversed. Regex the blob out, decode it in python3, write it to /work as an
inert file and triage that (often ZIP/ISO → LNK). Credential-phish pages: note the POST target.navigator.clipboard.writeText, execCommand('copy')) and tells the
user to paste it into Win+R, Terminal (Win+X → I), the Explorer address bar ("FileFix") or
macOS Terminal. Typical: mshta https://…, powershell -w h … | iex, curl … | bash, with a
trailing # I'm not a robot comment. verify: https://attack.mitre.org/techniques/T1204/004/
Get the page HTML from email/proxy logs or an existing urlscan scan. Don't browse it from an
engagement box. If the command is only fetched at runtime (remote API, blockchain contract),
you need load_skill malware-dynamic. IR artefact: pasted Run-dialog commands land in
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU. macOS 26.4+ warns on suspicious
Terminal pastes. verify: https://support.apple.com/en-us/127377layerN.txt and hash the final payload.load_skill indicator-enrichment) or send
it to a sandbox. Stuck (environment-keyed decryption, runtime fetch, a decoder too complex to
port)? → load_skill malware-dynamic.nocase, wide for UTF-16 (LNK args); anchor on the
obfuscator's unique function/variable names plus a sink. Test with yara; method in
load_skill malware-yara.report_finding: evidence = delivery chain (container → LNK → mshta URL → stage-2), the
defanged deobfuscated command, IOCs, ATT&CK (T1204.002/.004, T1027.006, T1059.001/.003/.005/.007,
T1218.005 Mshta). Pivot IOCs via load_skill ioc-pivoting.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
86 skills in this plugin
/actor-ttp-attributionGuides going from observed behavior or IOCs to a candidate threat actor and concrete MITRE ATT&CK technique IDs with calibrated confidence, starting from ORKL report search. Use when the user asks who is behind an attack, which APT or group matches observed TTPs, to map behavior to ATT&CK, or how confident an attribution is./ai-governanceGuides running an AI management system, covering ISO/IEC 42001 (with 42005/42006), NIST AI RMF and its profiles, the AI inventory and risk register, acceptable-use policy, model-vendor assessment, and how it evidences EU AI Act and AI-security duties. Use when the user asks about ISO 42001, NIST AI RMF, an AI policy or inventory, assessing an AI vendor, or AI governance for EU AI Act compliance./ai-securityCovers securing AI/LLM systems: the AI-specific attack surface (prompt injection, RAG poisoning, agent tool abuse), model supply chain, controls that hold, and the governance anchors ISO 42001, NIST AI RMF and the OWASP LLM and Agentic Top 10. Use when the user asks how to secure an LLM app, chatbot, RAG pipeline or AI agent, about prompt injection or jailbreak risk, model/weights provenance, or AI security governance./apac-cyber-regsCovers APAC cyber law (not privacy) for security and GRC teams responsible for an entity, at group HQ or locally, in China, Japan, South Korea, Taiwan, Hong Kong, Australia, Singapore, India, Malaysia, Indonesia, Vietnam, Thailand and the Philippines: whether an entity or site is in scope, which incident clock runs, what telemetry can leave the country, and OT/ICS rules. Use when the user asks about MLPS, China CSL or CAC incident reporting, CERT-In, SOCI or the Cyber Security Act 2024, Singapore CII code, Japan Cyber Response Capability Act, Taiwan/Hong Kong/Malaysia/Vietnam cyber law, or whether an APAC entity or site must comply./appsec-sdlcCovers secure SDLC architecture: pipeline gates, SAST vs DAST vs IAST vs SCA (what each finds and misses, where), OWASP SAMM and ASVS, and software supply chain (SBOM, SLSA, signing). Use when the user asks which application-security testing to adopt, how to build a secure development lifecycle, how to measure AppSec maturity with SAMM, verify against ASVS, or secure third-party code and dependencies. (Rolling it out in CI/CD: devsecops.)/backup-recoveryCovers designing ransomware-resilient backups, including the 3-2-1-1-0 rule, immutable and air-gapped copies, protecting the backup system itself, restore-test discipline, and recovery prioritization. Use when the user asks how to design or assess a backup strategy, survive ransomware, make backups immutable, or test and sequence restores.npx claudepluginhub rhaist/marq --plugin marq