Article ID: 815143 - Last Review: July 8, 2005 - Revision: 3.4 HOW TO: Audit the Security of the .NET Framework ConfigurationOn This PageSUMMARYThis step-by-step article describes how to audit the
security of the Microsoft .NET Framework configuration. The security of a system decreases as new elements are added to the ideal system configuration. New application installations, software updates, temporary configuration changes, and troubleshooting change aspects of the configuration of a security system. Whether intentional or unintentional, these changes may cause the system to no longer meet security requirements. The .NET Framework is no exception to this issue. The .NET Framework is designed to permit applications to run on the system in a security-enhanced environment. This environment grants to applications only those rights that the administrator specifically permits. Changes to the configuration of the .NET Framework may cause applications to be granted too many rights. To keep your applications from receiving too many rights, perform regular audits of the system security configuration. Document and then evaluate any changes to the .NET Framework configuration that you introduce to the system. When you must, reverse the changes. This article describes the key configuration settings that affect the .NET Framework. Document these settings when you first configure your system in the clean state. Perform regular audits to compare the current settings against the original settings. These audits help you to prevent the degradation of system security over time. This article does not describe how to configure these settings. For additional information about auditing security configuration items that are related to ASP.NET applications, click the following article number to view the article in the Microsoft Knowledge Base: 815144
(http://support.microsoft.com/kb/815144/EN-US/
)
HOW
TO: Audit the Security of an ASP.NET Web Application or Web Service
Policy Configuration FilesThe .NET Framework uses a hierarchy of files to determine what policy to apply to an application. Each of these policy types can affect the security of the .NET Framework:
Policy LevelsIn addition to the policy configuration files, several files define the level of authorization that is granted to assemblies that are assigned different trust levels. You can change these files to allow more specific control over the rights that you grant to assemblies. However, be careful to verify that all changes are legitimate. Improper changes to these files can allow an assembly to be granted more rights than you intend. For example, if you copy the Web_hightrust.config file over the Web_notrust.config file, assemblies that must operate with minimal access to the system are granted sufficient permissions to compromise private data.The details of the configuration of the various trust levels are defined in the following three files. The files are located in the \System Root\Microsoft.NET\Framework\Version\CONFIG\ folder:
Note The Full trust level does not allow customization. The Full trust level also does not have a file that you can change. REFERENCES For additional information, click the following article
numbers to view the articles in the Microsoft Knowledge Base: 315736
(http://support.microsoft.com/kb/315736/EN-US/
)
HOW TO: Secure an ASP.NET Application by Using Windows Security
315588
(http://support.microsoft.com/kb/315588/EN-US/
)
HOW TO: Secure
an ASP.NET Application Using Client-Side Certificates
818014
(http://support.microsoft.com/kb/818014/
)
HOWTO: Secure Applications That Are Built on the .NET Framework
| Article Translations
|
Back to the top
