Skip to content

Vulnerabilities & Patches

SANS ISC researchers release YARA rule to detect orphaned VBA in DWG files

The rule, named autocad_orphaned_vba_project, detects orphaned VBA projects hidden inside DWG files.

https://breach-signal.com/vulnerabilities/sans-isc-yara-rule-detect-orphaned-vba-dwg/

Share

On 2026-10-18, researchers from the SANS Internet Storm Center published a YARA rule to detect orphaned VBA projects in DWG files.

A YARA rule is a pattern‑matching tool that scans files for specific byte sequences or strings. Orphaned VBA projects are Visual Basic for Applications macros embedded in a file without a proper reference, which can allow the macros to execute unnoticed. DWG files are the native drawing format used by AutoCAD and other CAD programs.

String $a in the rule is defined as the literal AC10. String $b is set by the rule to the bytes D0, CF, 11, E0, A1, B1, 1A, and E1. String $c is set by the rule to the ASCII text [Host Extender Info]. The rule looks for $a at offset 0, a uint32 at offset 0x24 equals zero, and it requires $b and $c to be present.

When the rule was applied in a VirusTotal retrohunt, it flagged just two files. Didier Stevens, a Senior Handler with the SANS Internet Storm Center, shared the YARA rule. His blog resides at blog.DidierStevens.com.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *