docscanner/internal/analyzer/word.go
- Presence of
vbaProject.bininside the OOXML ZIP structure for Word documents.
Supportsreturns true for.docxand.docmfiles.- The file bytes are treated as a ZIP archive using
archive/zip. - All entries are scanned; if any name contains
vbaproject.bin(case-insensitive), the analyzer records an indicator:- "Embedded VBA Macro (vbaProject.bin)".
- A SHA256 hash of the entire document is computed.
- If at least one indicator is present,
RiskScoreis set to70; otherwise0.
This is a coarse but useful signal for macro-enabled Office documents.