You can set the following preferences in the Security category of the Preferences window.
Enabling these security preferences alters Maya's behavior when opening/importing scene files or loading plug-ins. You can set it to flag specific commands in the former case, and only load plug-ins from trusted locations in the latter. This ensures that you will be warned about / protected from possibly malicious code that may be hidden in these files (e.g. scene files shared on the web).
Controls whether Maya automatically performs a hash check (digital finger print) of all userSetup scripts to make sure they don't contain anything unintended by the original script creator. If a script fails the hash check, Maya will prompt you with a warning and provide the option to save the new hash value or not. This is disabled by default.
Turn this on to record all security events (MEL, Python, Plug-in) to a log file named "mayaSecurity".
Determines the type of file that "mayaSecurity" is written as.
Determines where the "mayaSecurity" file is saved by default.
When turned on, Maya will either ask for permission or deny commands (depending on the current Default action for flagged commands setting) in the Flagged commands list from executing.
Determines which commands are flagged when Secure file loading is turned on. Click Add to add commands to the list via text entry, or select commands already in the list and click Remove to unflag them.
Determines how Maya handles flagged commands during loading. Ask for permission prompts the user for each instance of a flagged command that Maya encounters when loading. Deny automatically blocks any flagged commands from running when loading. The default is Ask for permission.
Determines whether embedded MEL scripts are allowed to define global procedures. When disabled, all global procedure calls will be blocked on file load. This is disabled by default.
Determines how Maya is to proceed whenever it encounters a Python command / module embedded in a file it's attempting to load/import. Check before executing (secure) allows you to customize which particular commands / modules are allowed or denied via the options below. Meanwhile, Execute and Don't Execute will either enable or deny all Python modules it encounters respectively. This is set to Execute by default, but we strongly recommend switching it to Check before executing (secure) before loading files from an untrusted source.
When turned on, Maya will either ask for permission or deny commands (depending on the current Default action for flagged commands setting) in the Flagged built-in functions list from executing. This only has an effect when Python is set to Check before executing (secure).
Specifies what Python commands to deny when Secure built-in functions is turned on. Functions with a checkmark will be flagged for denial.
Determines how Maya handles a Python command in the Flagged built-in functions list. Ask for permission prompts the user for each flagged function that Maya encounters when loading. Deny automatically blocks any flagged functions from executing when loading. The default is Ask for permission.
When turned on, Maya will either ask for permission or deny all modules (depending on the current Default action for flagged commands setting) not in the Trusted modules list from loading. This only has an effect when Python is set to Check before executing (secure).
Specifies what Python modules are allowed when Secure module import is turned on. Click Add then navigate to a folder in the file browser to add locations to the list, or select locations already in the list and click Remove to remove them.
Determines how Maya handles a module outside of the Trusted modules list. Ask for permission prompts the user for each unlisted module that Maya encounters when loading. Deny automatically blocks any unlisted modules from importing when loading. The default is Ask for permission.
Allows you to control what plugins can be loaded based on their location.
When turned on, Maya will either ask for permission or deny plugins from loading (depending on the current Default action for flagged commands setting) anywhere outside of the Trusted plugin locations list. This is enabled by default.
Determines how Maya handles plugins attempting to load from outside the My trusted plugin locations when Secure plugin loading is turned on. Ask for permission prompts the user each time they attempt to load a plugin from a non-trusted location. Deny automatically blocks any plugin from a non-trusted location. The default is Ask for permission.