Orphaned VBA Projects Inside DWG Files

Executive Summary

The article revisits earlier diary entries that detail how Visual Basic for Applications (VBA) code can be embedded within AutoCAD drawing files (.dwg). It explains that such VBA projects can become orphaned—detached from their original context—yet still execute when the drawing is opened. The piece highlights the persistence risk posed by these hidden scripts, noting that attackers can leverage them to run malicious payloads or exfiltrate data without triggering traditional antivirus detection.

Original Description

Years ago I wrote diary entries about VBA code stored inside AutoCAD drawing files (.dwg).