CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Monday, September 04, 2006

Protect files from macro viruses

A macro virus is a type of computer virus (virus: A computer program or macro that "infects" computer files by inserting copies of itself into those files. When the infected file is loaded into memory, the virus can infect other files. Viruses often have harmful side effects.) that is stored in a macro (macro: An action or a set of actions you can use to automate tasks. Macros are recorded in the Visual Basic for Applications programming language.) within a Microsoft Office Visio file, ActiveX control, COM add-in (add-in: A supplemental program that adds custom commands or custom features to Microsoft Office.), or Visio add-on (add-on: A program that extends the Visio application through Automation references to Visio objects, methods, and properties.).

To further help reduce the risk of macro infection in Visio files, set the macro security level to Very High, High, or Medium and use digital signatures (digital signature: An electronic, encryption-based, secure stamp of authentication on a macro or document. This signature confirms that the macro or document originated from the signer and has not been altered.).

Note  Because macros can contain viruses, be careful about running them. Among the precautions you take, be sure to run up-to-date antivirus software on your computer, use digital signatures, and maintain a list of trusted publishers of macros. Visio cannot scan a disk, disk drive, or network drive to find and delete macro viruses. If you want this kind of protection, you must purchase and install specialized antivirus software. Visio does, however, display a warning message whenever you open a document that contains macros that might contain a virus.

HideSecurity levels for macros

HideDigital signatures

HideList of trusted publishers

HideAccess to Visual Basic projects

Links:

http://office.microsoft.com/en-ca/assistance/HP010496881033.aspx

Post a Comment