Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


May 17, 2004

Access Denied: Using the Windows .NET Framework to Control Mobile Code

RSS
Subscribe to Windows IT Pro | See More Internet Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

My manager is enthused about the idea of using Microsoft .NET to limit the risk associated with mobile code that users download from the Internet in the form of Web page applets, executables, scripts, and macros. I understand that risk, as demonstrated by Nimda and other blended threats, but will installing the Windows .NET Framework on our client systems help us control such mobile code?

The Framework gives you control over only managed code—that is, code developed specifically for the Framework. Most mobile code today is classic, unmanaged code, but don't let that stop you from rolling out the Framework. In time, more and more code on the Internet will be managed code, and the Framework will give you granular, powerful control over what the code can and can't do within your network.

The Common Language Runtime (CLR—a component of the Framework) consults your enterprise's CLR security policy before executing managed code. While the code is being executed, the CLR remains in control and enforces constraints on the code based on where the code originated and the security policies that correspond to the code. For example, you can define policies that let applications from the Internet at large only execute and display windows but that let applications from a trusted business partner's Web site also print and access the workstation's local file system.

For the time being, unmanaged code such as the types you mention run independently of the Framework. When the number of legitimate developers who are using the Framework reaches a critical mass, businesses will be able to disable unmanaged code from the Internet, or at least severely restrict it. Until then, however, you aren't totally high and dry. Windows XP provides software restriction policies that apply only to unmanaged code.

Software restriction policies let you specify only whether applications can execute—they don't provide the granularity of .NET, which lets you control which resources managed code can work with (e.g., displaying windows, printing files, accessing the file system). Still, software restriction policies are a valuable way to prevent code with a dubious lineage from executing within your network.

To use Software Restriction Policies, open the local Group Policy Object (GPO) on an XP computer. To do so, run mmc.exe, click File, select Add/Remove Snap-in, and click Add. In the Add Standalone Snap-in window, select Group Policy Object Editor, then click Add. In the Select Group Policy Object window, click Finish, then close the other dialog boxes. The Microsoft Management Console (MMC) window displays your local computer's GPO. Navigate to Computer Configuration, Windows Settings, Security Settings, Software Restriction Policies, as Figure 1 shows.

To implement software restriction policies, click Security Levels and choose one of the two defaults. When you choose Disallowed, software won't run, regardless of the user's access rights. Then, double-click Additional Rules in the right pane and specify which applications are allowed to run. If you choose the Unrestricted security level, Windows will let all software execute, subject only to the user's access control. You can create additional rules that allow or prohibit software execution based on the software's Authenticode certificate, a hash of the executable file, Internet zones you've defined in Microsoft Internet Explorer (IE), or simply the path of the executable file.

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Windows 7 Sets Sales Record

Microsoft CEO Steve Ballmer described Windows 7's first ten days of sales as "fantastic" while in Japan yesterday. ...


Security Whitepapers Reducing the Costs and Risks of Branch Office Data Protection

Solving Desktop Management Challenges in Healthcare

Solving Desktop Management Challenges in Education

Related Events WinConnections and Microsoft® Exchange Connections

DevConnections, Microsoft® ASP.NET Connections, SharePoint Connections and SQL Server Connections

Troubleshooting Group Policy, eLearning series

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement