Wilders Security Forums  

Go Back   Wilders Security Forums > Other Security Topics > other security issues & news
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old September 30th, 2010, 10:10 PM
Sully Sully is offline
Massive Poster
 
Join Date: Dec 2005
Posts: 3,696
Default What is needed to run your browser in Protected Mode?

I hope this thread gathers ONLY a list of paths or files that need to be "modified" for a browser to run at Low Integrity Level aka Protected Mode. Please state all that you did to get it working properly, including Integrity Levels, Ownerships, Permissions and Inheritance. I would like to have a thread which compares the differences and is a good resource for the topic.

Firefox

icacls "%programfiles%\Mozilla Firefox\Firefox.exe" /setintegritylevel L
Firefox does not run yet.

icacls %UserProfile%\appdata\local\mozilla /setintegritylevel (OI)(CI)L
Firefox does not run yet.

icacls %AppData%\mozilla /setintegritylevel (OI)(CI)L
Firefox does run. Most preferences are saved.
Files may not be downloaded - error says no rights to the temp file.

icacls %UserProfile%\temp /setintegritylevel (OI)(CI)L
Firefox can save files, but only to directories with a Low IL.
This means the default Downloads directory is off limits. It must have Low IL to use.

It appears that whenever you download with Firefox, the object is actually saved in the temp directory, then moved to wherever your chosen destination was.

Sul.

EDIT: performed tests in vmWare, updated this post accordingly
__________________
I do things TO my computer, not WITH my computer.. I am a nerd.

Last edited by Sully : October 3rd, 2010 at 05:21 PM. Reason: added notations and included icacls commands
  #2  
Old October 2nd, 2010, 06:30 PM
katio
 
Posts: n/a
Default Re: What is needed to run your browser in Protected Mode?

I've used this:
http://superuser.com/questions/30668...ntegrity-level
But now I'm on Apparmor
  #3  
Old October 2nd, 2010, 07:56 PM
Sully Sully is offline
Massive Poster
 
Join Date: Dec 2005
Posts: 3,696
Default Re: What is needed to run your browser in Protected Mode?

On a fresh install of Win7 Ultimate 32bit into vmWare. Default settings for everything. From an elevated command prompt using icacls, the following occurs.

icacls %programfiles%\opera\opera.exe /setintegritylevel L
This sets the opera executable only to Low Integrity Level.
Opera will not yet run properly.

icacls %UserProfile%\appdata\local\opera\opera /setintegritylevel (OI)(CI)L
This sets the directory and all objects in it to Low Integrity Level.
Opera now runs, but cannot retain most preferences you set.

icacls %AppData%\opera\opera /setintegritylevel (OI)(CI)L
This sets the directory and all objects in it to Low Integrity Level.
Opera now retains most of your preferences.

Sul.

Edit: Thanks for catching that. I edited it to the correct path. Check out the Irrelevance thread. I did a lot of testing and results are there.
Modified %appdata% to %userprofile% for correct path.
__________________
I do things TO my computer, not WITH my computer.. I am a nerd.

Last edited by Sully : October 3rd, 2010 at 03:17 AM.
  #4  
Old October 2nd, 2010, 08:00 PM
m00nbl00d m00nbl00d is offline
Incredibly Massive Poster
 
Join Date: Jan 2009
Posts: 6,454
Default Re: What is needed to run your browser in Protected Mode?

Quote:
Originally Posted by Sully
On a fresh install of Win7 Ultimate 32bit into vmWare. Default settings for everything. From an elevated command prompt using icacls, the following occurs.

icacls %programfiles%\opera\opera.exe /setintegritylevel L
This sets the opera executable only to Low Integrity Level.
Opera will not yet run properly.

icacls %appdata%\local\opera\opera /setintegritylevel (OI)(CI)L
This sets the directory and all objects in it to Low Integrity Level.
Opera now runs, but cannot retain most preferences you set.

icacls %appdata%\roaming\opera\opera /setintegritylevel (OI)(CI)L
This sets the directory and all objects in it to Low Integrity Level.
Opera now retains most of your preferences.

Sul.

I just added the underlined part.

By the way, I'll be trying, again, to make what I had made before: Make Opera start fine.
Then, I'll try the same, but with a "portable" version.

Cheers

Edit: I edited the post because it was confusing. lol

Last edited by m00nbl00d : October 2nd, 2010 at 08:05 PM.
  #5  
Old October 3rd, 2010, 06:35 AM
Sully Sully is offline
Massive Poster
 
Join Date: Dec 2005
Posts: 3,696
Default Re: What is needed to run your browser in Protected Mode?

Chromium results, again from vmWare fresh install of win7 ultimate with everything default. I got the latest version of Chromium and extracted it to %programfiles%. (I could have sworn I posted this already)

icacls %programfiles%\Chromium\Chrome.exe /setintegritylevel L
This allows Chrome to start just fine.
No preferences are saved and no files can be downloaded

icacls %userprofile%\appdata\local\Chromium /setintegritylevel (OI)(CI)L
Most preferences are saved, but not all.
Files still may not be downloaded.

icacls %userprofile%\appdata\local\temp /setintegritylevel (OI)(CI)L
This does spawn the Save prompt.
Files can only be saved to Low IL directories.

icacls %userprofile%\downloads /setintegritylevel (OI)(CI)L
This allows Chrome to save files to the Downloads directory.
It offers no deny-execute values.

It appears that if you have Chrome setup the way you like, you only have to set Chrome.exe to a Low IL. This will both prevent downloads and prevent preference changes.

You must set appdata\local\Chrome to a Low IL to save most preferences, but not all.

You don't need to set appdata\local\temp to a Low IL to save files. All you need is the Downloads directory to be at Low IL. Temp directory plays a role, but it is less important than the Downloads directory.

I really need some sleep zzzzzzz.....

Sul.
__________________
I do things TO my computer, not WITH my computer.. I am a nerd.
  #6  
Old October 19th, 2010, 12:37 AM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: What is needed to run your browser in Protected Mode?

I've changed folder %APPDATA%\Macromedia\Flash Player to low integrity. This is where Flash cookies are stored. Some websites don't work properly if Flash cookies can't be written.
  #7  
Old November 12th, 2010, 04:41 PM
trinsic trinsic is offline
Infrequent Poster
 
Join Date: Jul 2007
Posts: 10
Default Re: What is needed to run your browser in Protected Mode?

Quote:
Originally Posted by katio
I've used this:
http://superuser.com/questions/30668...ntegrity-level
But now I'm on Apparmor
No windows implementation for apparmor?
  #8  
Old November 12th, 2010, 05:17 PM
katio
 
Posts: n/a
Default Re: What is needed to run your browser in Protected Mode?

Quote:
Originally Posted by trinsic
No windows implementation for apparmor?
Windows doesn't have proper MAC and MLS, all it got is "MIC"
See http://en.wikipedia.org/wiki/Mandato...mplementations
But HIPS, sandboxing and MIC together are a pretty tight MAC alternative.
  #9  
Old December 7th, 2010, 09:04 AM
hexaae hexaae is offline
Infrequent Poster
 
Join Date: Dec 2010
Posts: 3
Default Re: What is needed to run your browser in Protected Mode?

Someone has found a good way to put Adobe Flash Active X and Plugin in Protected Mode too?
Would be very useful since it's been used as a vector for many kind of infections...
  #10  
Old December 7th, 2010, 10:19 AM
katio
 
Posts: n/a
Default Re: What is needed to run your browser in Protected Mode?

Google Chrome does that now by default.
With Firefox, I think all you need is to run this command:
icacls "%programfiles%\Mozilla Firefox\plugin-container.exe" /setintegritylevel L
and one for the Adobe and Macromedia folders in %AppData%.
  #11  
Old December 7th, 2010, 10:29 AM
hexaae hexaae is offline
Infrequent Poster
 
Join Date: Dec 2010
Posts: 3
Default Re: What is needed to run your browser in Protected Mode?

I wanted to set it for IE8/Win7.
I've already tried with:

icacls "C:\Windows\System32\Macromed\Flash\FlashUtil10m_ActiveX.exe" /setintegritylevel Low
icacls "%APPDATA%\Macromedia\Flash Player" /setintegritylevel Low

but fails. Once you run a web page with Flash IE will stuck...

EDIT: just found other Flash dirs in %localappdata% and %appdata%\locallow\.... I'll try to include them too.

EDIT: nothing. Still stuck...

Last edited by hexaae : December 7th, 2010 at 10:57 AM.
  #12  
Old December 7th, 2010, 11:51 AM
katio
 
Posts: n/a
Default Re: What is needed to run your browser in Protected Mode?

Quote:
Originally Posted by hexaae
icacls "C:\Windows\System32\Macromed\Flash\FlashUtil10m_ActiveX.exe"
I'm not using activex but I'm pretty sure that's actually the uninstaller...
As posted here IE + flash should "just work":
"Flash Player already supports Protected Mode in Internet Explorer on Windows 7 and Windows Vista"
http://blogs.adobe.com/asset/2010/12...-over-yet.html

The locallow folder is already set to low IL, another indicator that it already works.
  #13  
Old December 7th, 2010, 12:53 PM
hexaae hexaae is offline
Infrequent Poster
 
Join Date: Dec 2010
Posts: 3
Default Re: What is needed to run your browser in Protected Mode?

Quote:
Originally Posted by katio
I'm not using activex but I'm pretty sure that's actually the uninstaller...
As posted here IE + flash should "just work":
"Flash Player already supports Protected Mode in Internet Explorer on Windows 7 and Windows Vista"
http://blogs.adobe.com/asset/2010/12...-over-yet.html

The locallow folder is already set to low IL, another indicator that it already works.
Yes... Honestly I've always thought it did but looking at Process Explorer it reports the task to be in Medium IL, so I'm confused... maybe it's just the broker, needed to assist the Active-X.
Thank you for the Adobe link.

Last edited by hexaae : December 11th, 2010 at 01:26 PM.
 

Wilders Security Forums > Other Security Topics > other security issues & news « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:10 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums