Orphaned VBA Projects Embedded in AutoCAD DWG Files Detected by New YARA Rule
What Happened
On 18 October 2026, security researcher Didier Stevens published a YARA rule designed to spot “orphaned VBA projects” that are hidden inside AutoCAD DWG files. The rule looks for three specific indicators: the string “AC10” at the start of the file, the OLE compound‑file header { D0 CF 11 E0 A1 B1 1A E1 }, and the ASCII marker “[Host Extender Info]”. When these three conditions are met, the rule flags the DWG as containing a VBA project that is not properly linked to a host application—an artifact often left behind by malicious actors who embed macro code in CAD drawings to achieve execution on a victim’s machine.
Stevens ran a retro‑hunt on VirusTotal using the rule and found only two unique samples (SHA‑256 09d46079… and 3310c1a9…). Both samples were previously submitted to VirusTotal but had not been flagged by existing scanners as containing malicious VBA. The low detection count suggests that this technique is either rare, under‑reported, or that many security products lack the heuristics to spot it. The rule’s author notes that the presence of an orphaned VBA project does not guarantee malicious intent, but it is a strong indicator that the DWG file may have been weaponized for macro‑based execution, a technique observed in targeted attacks against engineering firms.
DWG files are the native format for AutoCAD, a widely used computer‑aided design (CAD) platform in architecture, engineering, and manufacturing. While DWG is primarily a binary container for geometric data, it also supports embedded OLE objects, including VBA (Visual Basic for Applications) scripts. Attackers can leverage this capability to deliver payloads that run when the drawing is opened in a vulnerable version of AutoCAD or when a user manually enables macros. Because VBA is traditionally associated with Microsoft Office, many endpoint detection and response (EDR) solutions and email gateways do not inspect DWG files for macro content, creating a blind spot.
The term “orphaned” refers to VBA projects that exist without a corresponding host reference in the DWG’s internal structure. This can happen when a malicious actor strips away legitimate host metadata to evade detection, leaving only the raw VBA code and its OLE container. The rule’s condition uint32 (0x24) == 0 checks for a zeroed‑out pointer that typically indicates the missing host reference, while the presence of the “[Host Extender Info]” string confirms that a VBA extender was once present.
Stevens’ disclosure includes the full YARA rule, enabling security teams to integrate it into their detection pipelines. The rule is lightweight, relying on static byte patterns rather than complex behavioral analysis, which makes it suitable for deployment on file‑gateway scanners, SIEM correlation rules, and endpoint AV engines that support YARA. By retro‑hunting historical data, the researcher demonstrated that the rule can surface previously unseen malicious DWG files, providing a proactive means to uncover legacy threats that may have evaded earlier controls.
No public statements from Autodesk, the vendor behind AutoCAD, were found at the time of writing. Likewise, there have been no reported incidents of successful compromise directly attributed to the two identified samples. However, the emergence of this detection rule highlights a growing trend: attackers are increasingly targeting non‑Office file formats to bypass traditional macro‑blocking defenses. Organizations that rely heavily on CAD files should treat orphaned VBA projects as a potential attack vector and adjust their security controls accordingly.
Why It Matters for Compliance & Audit Readiness
Detecting orphaned VBA in DWG files strengthens control assurance around file‑type sanitization and demonstrates due diligence in monitoring non‑standard attack surfaces, a key requirement for frameworks such as NIST CSF and ISO 27001.
Who Is Affected
Architecture & engineering firms, manufacturing companies, construction contractors, and any enterprise that ingests, stores, or shares AutoCAD DWG files.
Recommended Actions
- Deploy the published YARA rule across file‑gateway scanners, EDR platforms, and SIEM correlation engines to flag DWG files containing orphaned VBA projects.
- Update AutoCAD hardening guides: disable macro execution by default, enforce “trusted locations,” and apply the latest security patches from Autodesk.
- Conduct a focused audit of recent DWG files in repositories and email archives; quarantine or re‑scan any that match the rule.
Technical Notes
- Attack vector: Embedded VBA macro inside an OLE compound file within a DWG drawing.
- CVEs: None reported in the source; the technique exploits functionality rather than a specific vulnerability.
- Data types exposed: VBA source code, potentially malicious payloads (e.g., PowerShell scripts, executables) delivered via macro execution.
Source: SANS Internet Storm Center – Orphaned VBA Projects Inside DWG Files: YARA Rule