Several security measures and practices can protect you against malicious executable files.
Overview
Malicious executable code, also known as malware or viruses, has become more common and can impact users of AutoCAD. If allowed to spread, malware can result in loss of intellectual property and reduced productivity.
The most common vulnerability results from allowing executable code to co-exist with data, such as automatically loaded AutoLISP files in the Start In folder. The Start In folder is determined either by the Start In attribute stored in the properties of the desktop shortcut icon, or by the folder in which you double-click a file to start the product.
More sophisticated attacks that compromise or steal intellectual property include malicious ARX applications, object enablers, and DLLs (dynamic link libraries). Another threat can come from VBA (Microsoft® Visual Basic® for Applications) macros embedded in DWG files.
For example, project-based executable files bundled together with drawings in a ZIP file might include edited versions of
acad.lsp,
acaddoc.lsp, and FAS and VLX files that contain malicious code. When the contents of the ZIP file are extracted into a folder and AutoCAD is launched by double-clicking a DWG file, the LSP files are automatically launched as well.
Also, many viruses try to propagate themselves by editing
acad.mnl, adding a line in it to load itself.
Vulnerable Files
Malicious code can be included in the following types of files:
- ARX, DBX, CRX, HDI files
- LSP, FAS, VLX, MNL, SCR files
- .NET assemblies
- VBA macros (DVB files)
-
acad.rx
- JavaScript
- DLL files
Security Countermeasures
AutoCAD security countermeasures minimize the possibility of executing malicious code by providing controls that
- Specify one or more trusted folders for executable files. Support for trusted locations are provided by the TRUSTEDPATHS system variable, so that executable files can be stored in controlled, auditable folder locations. It is recommended that these folders be set to "read only." These locations can be locked by the CAD Manager.
- Limit the access to the
acad2013.lsp and
acad2013doc.lsp files and their successors by allowing them to be loaded only from their default installation folders:
<installation folder>\Support, and
<installation folder>\Support\<language> respectively.
- Limit the loading of AutoLISP and VBA applications in the current AutoCAD session, including all LSP, FAS, and VLX files, and
acad.dvb. Loading behavior is controlled by the SECURELOAD system variable.
- Prevent unintentionally finding and loading of executable files from the Start In and drawing folders by leaving the LEGACYCODESEARCH system variable set to 0.
- Secure the cleanup process after an attack by completely disabling executable code at AutoCAD startup. This capability is controlled by the /safemode startup switch, and is reflected by the read-only SAFEMODE system variable. The /safemode switch lets you start AutoCAD safely, so you can make changes to the SECURELOAD and TRUSTEDPATHS system variables.
- Lock the following system variables with the CAD Manager Control utility: LEGACYCODESEARCH, SECURELOAD, and TRUSTEDPATHS.
- Automatically sets a security level by controlling several of the system variables described here with the SECURITYOPTIONS command.
Important: Using the /safemode switch also prevents the AutoCAD Express Tools and most AutoCAD command tools from functioning, and should only be used temporarily in situations where you suspect that malware has been installed on your system.
Recommendations
The following best practices will reduce your vulnerability to malicious executable code:
- Install AutoCAD in the default program files location with UAC turned on. Do not run AutoCAD with Administrator privileges.
- Keep your virus definitions current. All leading anti-virus solutions can identify and remedy AutoCAD virus infections.
- When installing 3rd party applications involving ARX, DBX, CRX, HDI, and DLL files, make sure that the installed files are digitally signed with a certificate issued by a reputable source, such as VeriSign.
- Never run an unknown AutoLISP file or VBA macro without first inspecting the code.
- Never run an unknown script file without inspecting it.
- Keep executable code in folders that are separate from data.
- Store executable code in trusted, read-only locations.
- Locate shared AutoCAD CUIx files in trusted read-only locations.
- Set the SECURELOAD system variable to 1 or 2 to prevent unauthorized code from executing within AutoCAD. This setting can also be modified with the Options dialog box System tab Executable File Settings button or in the Deployment Wizard.
- Set the TRUSTEDPATHS system variable to unique, read-only folders that can be trusted. The C:\Program Files\ and C:\Program Files (x86) folders, including their subfolders are automatically trusted. These paths can also be set in the Deployment Wizard.
Note: AutoCAD LT® does not run AutoLISP, VBA, or other applications, and does not require these security measures. However, it's always recommended to follow best practices regarding security, including limiting account privileges.