Sentinel · security scanner
malware-report-sentinel
Turn a suspicious file into a structured malware triage report (Markdown, HTML or JSON) using static analysis only.
npm i -D @mrlouiswright/malware-report-sentinelPublished to GitHub Packages: add @mrlouiswright:registry=https://npm.pkg.github.com to .npmrc first (installing needs a token with read:packages).
What it checks
- PE / ELFFull header, section, entropy, import, imphash, Rich header, overlay and TLS parsing; packer hints (UPX, ASPack, VMProtect, Themida…), RWX sections, entry-point anomalies, injection APIs, capability mapping…
- Office OOXML (docx/docm/xlsm/pptm)
vbaProject.binextraction and MS-OVBA decompression of macro source, auto-exec entry points (AutoOpen, Document_Open, Workbook_Open, ActiveX_Painted/_GotFocus…), suspicious macro keywords (Shell, CreateObject, XMLHTTP, ADODB.Stream… - Office OLE (doc/xls/ppt)VBA project detection and macro source recovery, Ole10Native objects, DDE
- RTF
\objdata/\objupdateOLE objects, Equation Editor CLSID (CVE-2017-11882 family), hex-encoded payloads decoded and scanned - PDF
/JavaScript,/JS,/OpenAction,/AA,/Launch,/EmbeddedFile,/URI,/AcroForm,/XFA,/SubmitForm,/ObjStm,/Encryptand hex-escaped name obfuscation (/J#61vaScript) - LNKStringData parsing (arguments, working dir, icon); shells, script hosts and LOLBins; padded arguments
- ZIP/JAR/APKEntry listing, encrypted entries, executables/scripts inside, double extensions; nested executables and documents analysed recursively (decompression capped at 64 MB)
- Scripts (ps1, vbs, js, bat, sh, hta…)
-EncodedCommand(decoded), FromBase64String/Gzip, download cradles (IEX + DownloadString,curl | sh), LOLBins (certutil, mshta, regsvr32, rundll32, bitsadmin, wmic, schtasks, msbuild…), obfuscation (char codes, reversal, concatenation…
Quick usage
CLI
npx malware-report-sentinel invoice.docm --report invoice-report.md --html invoice-report.html \
--tlp AMBER --analyst "Louis Wright" --case IR-2026-042
npx malware-report-sentinel ./quarantine -f report > triage.md # one report covering many samples
npx malware-report-sentinel sample.exe --yara sample.yar --json sample.json
API
import { analyze, renderReport, renderHtml } from 'malware-report-sentinel';
const report = analyze(['suspicious.zip'], { tlp: 'AMBER', analyst: 'Louis Wright' });
report.targets[0].data.verdict; // 'malicious' | 'suspicious' | 'no strong static indicators'
report.targets[0].data.attack; // [{ id: 'T1204.002', name: 'User Execution: Malicious File', evidence: [...] }]
report.targets[0].data.yara; // starter YARA rule
const md = renderReport(report);
const html = renderHtml(md);
Every option is documented in the malware-report-sentinel docs.
CI / GitHub Action
permissions:
contents: read
security-events: write # only for the SARIF upload
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with: { persist-credentials: false }
- uses: MrLouisWright/malware-report-sentinel@v1
with:
targets: 'quarantine/'
fail-on: high
sarif: malware-report-sentinel.sarif
- uses: github/codeql-action/upload-sarif@v3
if: always()
with: { sarif_file: malware-report-sentinel.sarif }