VBA projects embedded in drawing files create potential macro virus riskIssueYou want to know what potential macro virus risk is created by VBA projects embedded in drawing files and how you can guard against the risk. SolutionThis solution assesses the potential macro virus risk created by VBA projects embedded in drawing files. The solution also discusses what you can do to guard against this risk. The information is presented in FAQ format. Can a macro virus be embedded in a drawing file? Yes. A macro virus is a computer virus stored in a macro. Therefore, it is possible that this type of virus can be stored in the macros of a VBA project. This creates the potential for an individual to include a macro virus in a drawing, because VBA projects can be embedded in AutoCAD® DWG files. Can you transmit a macro virus to a computer just by opening a drawing on that computer? Yes. Whenever you open a drawing or project file that contains macros, you could activate a macro virus and transmit it to the computer. Does AutoCAD have any mechanisms to guard against macro viruses, such as a virus checker? Yes. AutoCAD includes a virus protection mechanism for VBA macros, which reduces the risk of infecting a computer with a virus embedded in a drawing file. Note: AutoCAD does not have a virus checker that you can use to check for macro viruses in VBA projects embedded in DWG files. Although the virus protection mechanism for VBA macros is enabled by default, you can use the following procedure to ensure that protection is enabled: - On the Tools menu, click Macro > Macros.
- In the Macros dialog box, click Options.
- In the Options dialog box, select the Enable Macro Virus Protection option, and click OK.
- Click Close to close the Macros dialog box.
When you open a drawing in AutoCAD with protection enabled, the program detects if a VBA project is embedded in the file. If there is a VBA project in the file, a warning dialog box is displayed that gives you the option to disable or enable macros, or not to load embedded macros at all. The following options are available in the warning dialog box : - Disable Macros. Loads the drawing or project file with the macros disabled. Click the Disable Macros option if you do not know for certain that the drawing came from a legitimate and reliable source. Note: You cannot run any macros after you choose the Disable Macros option. However, you can still view, edit, and save the macros. If you then want to run the macros, you need to close the file, and reopen it with macros enabled.
- Enable Macros. Loads the drawing or project file with the macros enabled. Click the Enable Macros option, only if you know that the drawing or project file came from a legitimate and reliable source.
- Do Not Load. If you are loading a project file, the process is canceled and the project file is not loaded. If you are opening an AutoCAD drawing with an embedded project, the drawing is opened with the macros disabled.
What can you do to reduce the risk of infecting a computer with a macro virus in a drawing file? Use the following guidelines to minimize the risk of infecting a computer with a macro virus in a drawing file: - Always work with the virus protection mechanism for VBA macros in AutoCAD enabled.
- Verify that drawings supplied to you are from a legitimate and reliable source.
- If you are in any doubt about the macros in a drawing file, disable macros when you open the file. You can then view the macros and verify if they are safe to use.
Support – Terms of UseAUTODESK DOES NOT GUARANTEE THAT YOU WILL BE ABLE TO SUCCESSFULLY DOWNLOAD OR IMPLEMENT ANY SERVICE PACK OR WORKAROUND, OR ANY OF THE TIPS, TRICKS, EXAMPLES OR SUGGESTIONS OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENTS. TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS ARE SUBJECT TO CHANGE WITHOUT NOTICE TO YOU. AUTODESK PROVIDES TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL AUTODESK OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF DATA, OR LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, THAT MAY OCCUR AS A RESULT OF IMPLEMENTING ANY SERVICE PACK OR WORKAROUND, OR ANY SUGGESTION OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENT, EVEN IF AUTODESK OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |