Home > Information Security Tips > Tech tips > Microsoft WIL: How to take control of data integrity levels
Security UK Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

TECH TIPS

Microsoft WIL: How to take control of data integrity levels


Tony Bradley
05.06.2008
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


NTFS file and folder permissions found in Microsoft Windows determine who has access to a given file or directory, and whether someone can modify or delete data. From a security perspective, however, there is one big problem with NTFS permissions: they depend on a human to set the restrictions appropriately and decide who should have access.

When Microsoft released the Windows Vista operating system, the software giant introduced a new security concept to address the NTFS shortcoming. Windows Integrity Levels (WIL) control how processes interact with the operating system kernel. The WIL controls are not arbitrary permissions set by the user, and, in fact, they supersede any set NTFS authorizations.

The levels of Windows Integrity Levels
Windows Integrity Levels assigns one of six different integrity levels to every object, whether it is a file, folder, registry key or other basic unit of code. The integrity level, or trustworthiness of a given object, determines how each interacts and whether it can access or act on another object. The six WIL integrity levels are:

  • Untrusted
    -- This is the lowest of the WIL integrity levels. Processes and users that are logged anonymously are automatically designated as untrusted.
  • Low -- This level is assigned by default for any interaction with the Internet. With the Low integrity level, Internet Explorer runs in a state called Protected Mode. All files and processes associated with the Web browser are therefore assigned the Low integrity level. Some folders, such as the Temporary Internet Folder, are also assigned this value by default.
  • Medium -- Medium is the default integrity level. Any object not explicitly designated with a lower or higher integrity level is Medium automatically. Authenticated users also receive a default integrity level of Medium.
  • High -- These objects are able to interact with and act upon any other object of High (or lower) integrity levels. Administrators, Backup Operators, and Cryptographic Operators are three groups that are assigned the High integrity level by default.
  • System -- The system integrity level is reserved for the Windows kernel and core services such as LocalService, LocalSystem, and NetworkService. This designation protects these core functions from being affected or compromised, even by administrators.
  • Installer -- The installer integrity level is the highest of all integrity levels. It was established as a special case specifically so that it would be higher than all other integrity values and be able to write and remove objects with the System integrity level. For that reason, objects assigned the installer integrity are able to uninstall all other objects.

Working with Windows Integrity Levels
When troubleshooting access issues, it may be necessary to view or modify the integrity level of an object. Microsoft did not provide a Microsoft Management Console (MMC) plugin or any slick GUI interface to work with Windows Integrity Levels, but there is a command-line utility called ICACLS that displays both the discretionary and mandatory access controls for a given object, with the exception of objects that are classified as Medium by default. These did not actually have an integrity control assigned, and the WIL level will not be displayed for them.

To begin using ICACLS, open a command prompt window (click the Start button, followed by Run; type "cmd.exe" and click OK). Then list out all of the available switches, options and syntax by simply typing ICACLS and hitting enter.


See larger image

Here are specific examples of how to use ICACLS with Windows Integrity Levels. To view the access list properties associated with a given object, type "icacls" followed by the path of the object to be displayed. For example, to view the WIL integrity level of the calculator (calc.exe file), type: icacls c:\windows\system32\calc.exe. The results will look like this:


See larger image

The Windows calculator does not have an explicitly assigned WIL integrity level, so it defaults to Medium. As mentioned above, the default mandatory integrity level is not displayed by ICACLS because it is implied rather than assigned. If calc.exe were actually assigned a WIL integrity level of Medium, it would also appear with this additional entry:

Mandatory Label\Mandatory Level

Summary
Windows Integrity Levels were developed to provide mandatory access controls to protect the operating system. There are ways for developers or administrators to modify the integrity level of an object, but in general this should not need to be done, and those methods go beyond the scope of this article. Security and network administrators need to be aware that WIL exists, and remember that WIL trumps discretionary access. If an application or process is not functioning properly, it may be due to the Windows Integrity Level of the objects being acted on, and using ICACLS can help determine if WIL is impacting the object.

While WIL has not gotten the same level of attention that UAC, or other Vista features have, it is arguably one of the biggest advances in security for the Windows operating system. Vulnerability exploits and malware often execute with the privileges of the logged in user account. WIL ensures that critical system processes cannot be altered, even by an administrator, and protects the system against most Web-based or Internet Explorer attacks. By enforcing mandatory integrity controls that supersede assigned, discretionary controls, WIL is a significant step in the right direction for locking down Windows.

About the author:
Tony Bradley is a CISSP, and a Microsoft MVP (Most Valuable Professional). He is a Director with Evangelyze, a Microsoft Partner focused primarily on unified communications. Tony is also a respected expert and author in the field of information security whose work is translated and read around the world. He contributes regularly to a variety of web and print publications, and has written or co-written 8 books. In addition, Tony is the face of the About.com site for Internet / Network Security, where he writes articles and tips on information security and has almost 40,000 subscribers to his weekly newsletter. Mr. Bradley has consulted with Fortune 500 companies regarding information security architecture, policies and procedures, and his knowledge and skills have helped organizations protect their information and their communications.


Rate this Tip
To rate tips, you must be a member of SearchSecurity.co.uk.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Tech tips
Windows password security: System tools and policy
Securing Windows services to prevent hacker attacks
How to secure Windows: Pre- and post-installation
Integrating biometric authentication with Active Directory
Microsoft Baseline Security Analyzer: Do updates offer improved Windows security?
Windows registry forensics guide: Investigating hacker activities
Understanding multifactor authentication features in IAM suites
More built-in Windows commands for system analysis
Built-in Windows commands to determine if a system has been hacked
Security tip for managing social networking sites

Platform Security Solutions
Debian: A niche OS with a not-so-niche security flaw
Sophos adds browser and virtualisation blocking features
Virtualisation success requires security preparation
Database patch denial: How 'critical' are Oracle's CPUs?
More built-in Windows commands for system analysis
What are the dangers of using social networking sites?
Microsoft PatchGuard: Locking down the kernel, or locking out security?
OpenBSD: an untapped resource for tight security
Malware infections down 60% at UK firms
The re-birth of the metamorphic virus

Threat Management
New Police Central e-crime Unit created to fight e-crime
New-generation building management systems blow a hole in security
Weaponising Kaminsky's DNS discovery
Secerno puts database security under ArcSight umbrella
How to patch Kaminsky's DNS vulnerability
Microsoft Baseline Security Analyzer: Do updates offer improved Windows security?
Malicious spam soars to new level
Web advertising exploits: Protecting Web browsers and servers
Planning for 'DRAM remanence'
Hacker toolkit targets Microsoft Access zero-day

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Serious Organized Crime Agency  (SearchSecurityUK.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts