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
  #26  
Old March 28th, 2010, 05:40 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by Windchild
Well, darn. I'm officially out of ideas. I'll have to give it some more thought. Meanwhile, if you've got other systems around there and have the time, try that test on them and see if this isn't something limited to just one system. Strange problem in any case, though.

I'll try it on Win XP Pro after I am done eating .

By the way, what OS did you do your tests on?
  #27  
Old March 28th, 2010, 05:52 PM
Windchild's Avatar
Windchild Windchild is offline
Frequent Poster
 
Join Date: Jun 2009
Posts: 563
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by MrBrian
By the way, what OS did you do your tests on?

My test machine was XP Pro SP3. Maybe I should've used a Win7 Ultimate x64 instead.
__________________
Save your tears, for your tears will not save you :: Shameless LUA troll
  #28  
Old March 28th, 2010, 08:38 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Since some users of AccessChk may have skipped this thread, I've started a new thread about AccessChk. Please continue the discussion about AccessChk there.
  #29  
Old March 28th, 2010, 09:36 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

For those who cannot run Windows Permission Identifier as true admin, you may notice folders or files in results with a blue colored Status and Access of 'View Permission Denied'. In order to get complete results, there can be no files or folders with 'View Permission Denied'. A workaround is to manually create for these files or folders an access control entry for group Users giving the permission 'Read Permissions'. In some cases you may need to change ownership in order to do so. I was able to eliminate all instances 'View Permission Denied' when doing an audit of \Windows.
  #30  
Old March 30th, 2010, 10:56 AM
Dregg Heda Dregg Heda is offline
Frequent Poster
 
Join Date: Dec 2008
Posts: 830
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

MrBrian or Windchild,

Using AccessEnum I found Users had write access to the following:

C:\Windows\Registration\CRMLog

C:\Windows\System32\com\dmp

C:\Windows\System32\Fxs Tmp

C:\Windows\System32\Spool\drivers\color

C:\Windows\System32\Spool\Printers

C:\Windows\System32\Tasks\Microsoft\Windows\memorydiagnostic\Corruption Detector

C:\Windows\System32\Tasks\Microsoft\Windows\memorydiagnostic\DecompressionFailure Detector

C:\Windows\System32\Tasks\Microsoft\Windows\SyncCentre

C:\Windows\System32\Tasks\Microsoft\Windows\WindowsColourSystem\CalibrationLoader

C:\Windows\Temp

C:\Windows\tracing

Based on what MrBrian has posted I know that it is possible to execute from some of these directories. What can I do to protect myself? Thanks.
  #31  
Old March 30th, 2010, 07:02 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by Dregg Heda
Based on what MrBrian has posted I know that it is possible to execute from some of these directories. What can I do to protect myself? Thanks.

I haven't closely looked into each of these folders yet to form an opinion on mitigation strategies. I will though within a week, when I do a clean install of Win 7.

Here are some ideas:
a) Block or prompt on execution by standard users to each of these folders individually using SRP, AppLocker, HIPS, or changing access control entries in Security tab in Windows Explorer
b) change access control entries in Security tab in Windows Explorer to no longer allow write permissions to standard users for these folders

I believe a) is safer, but I haven't done any testing yet. I'll post further when I get around to the clean install. Backup before making changes!
  #32  
Old April 2nd, 2010, 02:07 AM
Dregg Heda Dregg Heda is offline
Frequent Poster
 
Join Date: Dec 2008
Posts: 830
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Thanks for responding MrBrian. I will wait for your further testing before proceeding.
  #33  
Old April 12th, 2010, 10:20 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by Dregg Heda
Using AccessEnum I found Users had write access to the following:

...

Based on what MrBrian has posted I know that it is possible to execute from some of these directories. What can I do to protect myself? Thanks.

I'll post my mitigation techniques within a few days.

I've posted a list of vulnerable Windows 7 files/folders here.

Last edited by MrBrian : April 13th, 2010 at 09:38 PM.
  #34  
Old April 13th, 2010, 09:48 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Windows Permission Identifier gives no warning when a folder's contents cannot be listed due to NTFS permissions. This is an issue that can cause some relevant items to not be listed when Windows Permission Identifier isn't run as admin.
  #35  
Old April 13th, 2010, 10:08 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by Dregg Heda
Thanks for responding MrBrian. I will wait for your further testing before proceeding.

You're welcome .

What I did is outlined here.
  #36  
Old May 11th, 2010, 07:58 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

I'd like to note that auditing of Windows permissions IMHO ought to be done every time a program is installed, or at the end of an installation batch if you're installing more than one program.

What can happen if you don't do regular permission audits? Recently, I installed printer software from a well-known printer manufacturer. An audit of permissions after the installation revealed that some of the installed executable files were writable by a standard user. If malware were to modify some of these files, and these modified files were later executed in an admin account, the malware could achieve system takeover.
  #37  
Old May 19th, 2010, 09:03 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

I did some time tests on Windows Permission Identifier vs AccessChk (with -ws switches) on the \windows folder. Windows Permission Identifier was nearly 4 times faster.
  #38  
Old June 26th, 2010, 01:14 AM
wat0114
 
Posts: n/a
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Hi MrBrian if you see this can you please comment on it? I did a bit of malware testing on a different drive, no Internet connection, recent image of Win7x64 under the limited account with AppLocker disabled (because it of course disallows the malware from launching). One of the malware, a rogue av scanner, wrote not only to some expected directorys residing under C:\Users\myname\AppData..., but also to C:\ProgramData as seen in my attached ss. This seems odd because users don't have write permission to this directory, as the security tab even verified. how do you think this could have happened? Thanks!
Attached Images
 
  #39  
Old June 26th, 2010, 01:01 PM
MrBrian MrBrian is offline
Very Frequent Poster
 
Join Date: Feb 2008
Posts: 2,925
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by wat0114
how do you think this could have happened? Thanks!

Users do have permission to do this. Look at the Advanced permissions in the Security tab for ProgramData - double-click the 'Special' entry for Users.
  #40  
Old June 26th, 2010, 02:12 PM
wat0114
 
Posts: n/a
Default Re: Audit Windows permissions with freeware Windows Permission Identifier

Quote:
Originally Posted by MrBrian
Users do have permission to do this. Look at the Advanced permissions in the Security tab for ProgramData - double-click the 'Special' entry for Users.

Okay I missed that, thank you!
 

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 06:33 AM.


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