Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


April 2006

Circumventing Group Policy as a Limited User


RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Specifying a WSUS Server to Use as the Basis for an MBSA Scan

Active Directory (AD) Group Policy settings are widely used to secure Windows systems because you can deploy them to specific computers and users in an AD-based network. In an earlier blog post, I warned that one of the risks of having end users with local administrative privileges is that they can override Group Policy settings, and I promoted Limited User accounts as the secure alternative. However, Windows administrators need to be aware that if users, even users running under a limited account, can execute just one program of their choice, they can circumvent many Group Policy settings, including security-tightening settings such as Software Restriction Policies and Microsoft Internet Explorer (IE) security zones.

The problem with many Group Policy settings is that the applications at which they re directed enforce the settings. For example, Windows Explorer limits the execution of certain applications if Group Policy dictates, and IE implements zone security. The Windows architecture sets security permissions that give the owner of a process full control over that process. That means that users can alter the code or data of their own processes, including Windows Explorer and IE. If users manipulate the code or data related to Group Policy enforcement, they can bypass Group Policy settings.

Software Restriction Policies are another example of Group Policy settings that can be subverted by users with limited accounts. If you use Software Restriction Policies to single out executables that you don t want users to run (blacklisting) instead of defining the executables users can run (whitelisting), users might be able to run an arbitrary executable. When a user launches a process, the parent process checks Software Restriction Policies to see whether to allow the execution of the child process. The owner of the parent process could manipulate the process into bypassing Software Restriction Policies processing.

I've written a simple application, Gpdisable, that demonstrates the ease with which even a limited user can disable Software Restriction Policies. (You can view the code and sample execution on my blog at http://www.sysinternals.com/blog/2005/12/circumventing-group-policyas-limited.html.) The program uses DLL injection techniques to load a DLL into all the processes on the system to which the user running it has access. The DLL places a hook on the NtQueryValueKey API so that the DLL intercepts any calls of the API made by those processes or the DLLs they've loaded. The Software Restriction Policies code uses NtQueryValueKey to query the registry value HKEY_LOCAL_MACHINE\Software\ Policies\Microsoft\Windows\Safer\CodeIdentifiers\TransparentEnabled, which, if present and non-zero, indicates that Software Restriction Policies is turned on. Gpdisable fools the Software Restriction Policies code by returning an error value, STATUS_OBJECT_NAME_NOT_FOUND, whenever it sees a value named TransparentEnabled passed to NtQuery-ValueKey.

What other Group Policy settings are susceptible to this type of attack? Systemwide security settings are enforced by core OS components that aren't accessible to limited users, but most of the settings in the Windows Components area of the Group Policy Editor's (GPE's) Administrative Templates node can be circumvented in environments in which end users can run arbitrary applications such as Gpdisable. Notably, IE configuration, including security zones, falls into this area, as do Windows Explorer, Windows Media Player (WMP), and Windows Messenger settings. The bottom line is that full control of an end-user environment is possible only with strict lockdown of the programs that users run, for example by using Software Restriction Policies in whitelist mode. It s also important to note that the ability of users with limited accounts to override these settings isn't due to a bug in Windows, but rather enabled by design decisions made by the Microsoft Group Policy team.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...


Active Directory (AD) Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

Managing Unix/Linux with Microsoft System Center Operations Manager 2007 Cross Platform Extensions Beta

Addressing the Insider Threat with NetIQ Security and Administration Solutions

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing