Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Running IE with decreased privileges |
|---|---|
| Date: | Thu, 13 Jan 2005 23:26:02 +0000 |
One of the lesser-used features of Win2K/WinXP/Win2k3's RunAs capability is to decrease rather than elevate the access of the interactive user when running a process.
I use this technique as follows with Internet Explorer:
- Create a secondary account to your normal account, and make it a member of the "Guests" group only (do NOT make it a member of "Users", "Administrators" or any other group that would elevate its access). - Using Group Policy, deny network logon to this account (which it inherits from the Guests group by default.) Grant the account "Log on Locally" access explicitly. - Create a new shortcut for IE with the following commandline: %SystemRoot%\SYSTEM32\runas.exe /u:SecondaryAccountName /SaveCred "C:\Program Files\Internet Explorer\iexplore.exe" (Don't use Explorer's native RunAs capability as it won't remember the password like the commandline version). - Change the shortcut icon to point at "C:\Program Files\Internet Explorer\iexplore.exe" - If you are paranoid, add ACCESS DENIED ACL's to any file, Registry key or other resource that you do not want the account running IE to access in the event that you are compromised. In particular, protect any sensitive locations such as the Startup folders and Run keys.
The first time you run the shortcut, you'll be prompted for the secondary account's password; thereafter you'll be able to launch IE as easily as you would under your own account. However since IE is running under a severely restricted account, you are now significantly less vulnerable in the event of zone elevation to the Local Computer.
This approach is not without it's shortcomings of course, e.g. - When IE is embedded in another app or launched via COM it still runs under your interactive account - Ditto if IE is started via association (e.g. clicking on a URL) - Website credentials are cached under a different profile to your own, and so on...
Microsoft has obviously had some thoughts in this direction (http://msdn.microsoft.com/security/securecode/columns/default.aspx?pull=/library/en-us/dncode/html/secure11152004.asp), but their current approach does not strip enough access off the process security token in my opinion.
IJ
-- NTBugtraq Editor's Note:
Most viruses these days use spoofed email addresses. As such, using an Anti-Virus product which automatically notifies the perceived sender of a message it believes is infected may well cause more harm than good. Someone who did not actually send you a virus may receive the notification and scramble their support staff to find an infection which never existed in the first place. Suggest such notifications be disabled by whomever is responsible for your AV, or at least that the idea is considered. --
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Full-Disclosure] (no subject), The Insider |
|---|---|
| Next by Date: | NAI ftp server is case sensitive - GroupShield 5.2 stops updating, Richard Carde |
| Previous by Thread: | Windows ANI File Parsing Proof Of Concept (MS05-002), Assaf |
| Next by Thread: | FW: Running IE with decreased privileges, Russ |
| Indexes: | [Date] [Thread] [Top] [All Lists] |