Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Windows

Windows forum sponsored by

For all of your Windows problems

Go Back   EduGeek.net Forums > Technical > Windows
Reply
 
LinkBack Thread Tools Search Thread
Sponsored Links
Old 05-08-2008, 09:09 AM   #1
 
azrael78's Avatar
 
Join Date: Sep 2007
Location: UK
Posts: 346
uk uk england
Thanks: 37
Thanked 29 Times in 26 Posts
Rep Power: 11 azrael78 has a spectacular aura about azrael78 has a spectacular aura about
Default Software Restriction Policies... AGAIN

Morning all,

I've been tasked with getting SRP working properly.
I've taken the 'blacklist/deny' approach (where everything is permitted EXCEPT what we deny).

I'm sure that doing it the other way (where everything is denied...) is just as good but I can count on my fingers what we don't want the kids to get at.

So...

I have several path rules setup - some set to deny and some set to permit.
Now here's an example...

B:\ - Deny (USB Drive Letter)

Now I can open all office docs here EXCEPT MSAccess MDB Files by double-clicking.

On the MDB files it says it's blocked, however MDB does not appear in the 'designated file types' list and even if I put it there, it makes no difference.

So... B:\*.mdb - Permit

This works provided the MDB is in the root folder, it doesn't work if that MDB is anywhere else on B:.

So am I doing something stupidly wrong with this or am I missing something obvious?

I will post the full configuration in a bit, gotta do a bit of early-morning fire-fighting first but any suggestions in the mean time would be great

Az
  Reply With Quote
Old 05-08-2008, 10:47 AM   #2
 
Michael's Avatar
 
Join Date: Dec 2005
Location: Birmingham
Posts: 5,017
uk uk england
Thanks: 95
Thanked 724 Times in 554 Posts
Rep Power: 145 Michael ooh
Michael ooh Michael ooh Michael ooh Michael ooh Michael ooh Michael ooh Michael ooh
Default

I'm a little confused, do you want to allow drive letter B:\ or deny it? As you said:

Quote:
B:\ - Deny (USB Drive Letter)
Which I presume means you want to deny access to B:\ but you can still open all Office related documents.

SRPs are only recommended for allowing or restricting file paths and not drives as such. If you want to deny drives, using this method is recommended.

I've done it plenty of times, so if you need any help let me know. The value of the drive letters is as follows:

Quote:
A - 1
B - 2
C - 4
D - 8
E - 16
F - 32
G - 64
H - 128
I - 256
J - 512
K - 1024
L - 2048
M - 4096
N - 8192
O - 16384
P - 32768
Q - 65536
R - 131072
S - 262144
T - 524288
U - 1048576
V - 2097152
W - 4194304
X - 8388608
Y - 16777216
Z - 33554432
You can manually create a file association with registry files. Take a look here. Hope this helps!
  Reply With Quote
Old 05-08-2008, 10:57 AM   #3
 
azrael78's Avatar
 
Join Date: Sep 2007
Location: UK
Posts: 346
uk uk england
Thanks: 37
Thanked 29 Times in 26 Posts
Rep Power: 11 azrael78 has a spectacular aura about azrael78 has a spectacular aura about
Default

Michael,

I want to stop the kids running undesirable file types from USB sticks.

Hence why I've got B:\ as a denied path (that's the drive letter for USB sticks).

But I still want to allow them to open office documents from B:\.
What I don't understand is why it's denying MDB files - when it shouldn't be.

They need to be able to 'see' B: drive and read/write to it but I don't want them running things from it.

Az
  Reply With Quote
Old 05-08-2008, 12:40 PM   #4
 
ZeroHour's Avatar
 
Join Date: Dec 2005
Location: Scotland
Posts: 3,197
uk uk scotland
Thanks: 324
Thanked 516 Times in 264 Posts
Blog Entries: 1
Rep Power: 113 ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute ZeroHour has a reputation beyond repute
Default

Cant you just use *.mdb to whitelist the type?
mdb's I think are part of the defaults you dont see that are blocked.
  Reply With Quote
Old 05-08-2008, 01:34 PM   #5
 
azrael78's Avatar
 
Join Date: Sep 2007
Location: UK
Posts: 346
uk uk england
Thanks: 37
Thanked 29 Times in 26 Posts
Rep Power: 11 azrael78 has a spectacular aura about azrael78 has a spectacular aura about
Default

I've just tried that one ZH - unfortunately the PC on which I'm trying this REALLY HATES SRP for some reason, if I update the policy, I have to disable the link, reboot the PC, enable the link and then reboot it to make it work.

It's driving me crazy (well, crazier)

Az
  Reply With Quote
Old 05-08-2008, 02:14 PM   #6
 
SYNACK's Avatar
 
Join Date: Oct 2007
Location: Auckland, New Zealand
Posts: 3,579
new zealand
Thanks: 173
Thanked 871 Times in 723 Posts
Blog Entries: 4
Rep Power: 179 SYNACK ooh
SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh SYNACK ooh
Send a message via MSN to SYNACK
Default

Quote:
Originally Posted by azrael78 View Post
I'm sure that doing it the other way (where everything is denied...) is just as good but I can count on my fingers what we don't want the kids to get at.
Default permit is not a very good security model overall, its easier at first but does not hold up very well to new threats, in comparison the other method is much more secure. Have a read of this site: The Six Dumbest Ideas in Computer Security which has a very good write up on the differences.
  Reply With Quote
Old 05-08-2008, 02:32 PM   #7
 
Michael's Avatar
 
Join Date: Dec 2005
Location: Birmingham
Posts: 5,017
uk uk england
Thanks: 95
Thanked 724 Times in 554 Posts
Rep Power: 145 Michael ooh
Michael ooh Michael ooh Michael ooh Michael ooh Michael ooh Michael ooh Michael ooh
Default

It's a little strange that *.mdb files, which should be associated with MS Access are being blocked as you say.

And as for Software Restriction Policies requiring multiple reboots, I've found this too. Not quite sure why, but at least it works (which is the most important thing).

I think the problem 'might' be to do with designated file types. On the server, chances are you may have Word and Excel Viewer installed, but as far as I am aware, there's no such thing as Access Viewer.

Try administering your SRPs from a workstation (using MMC) which does have MS Office installed (so the *.mdb association is created). You may want to install the Server 2003 SP2 Admin Tools and GPMC on your admin workstation.
  Reply With Quote
Old 05-08-2008, 02:41 PM   #8
 
azrael78's Avatar
 
Join Date: Sep 2007
Location: UK
Posts: 346
uk uk england
Thanks: 37
Thanked 29 Times in 26 Posts
Rep Power: 11 azrael78 has a spectacular aura about azrael78 has a spectacular aura about
Default

Quote:
Originally Posted by SYNACK View Post
Default permit is not a very good security model overall, its easier at first but does not hold up very well to new threats, in comparison the other method is much more secure. Have a read of this site: The Six Dumbest Ideas in Computer Security which has a very good write up on the differences.
I understand what you mean perfectly and you are absolutely right, however I don't feel confident enough to hit 'deny all' and then permit little bits, I'd rather do it this way until I'm comfortable with how SRP works exactly.

I'm the only one in a team of 4 who has any idea about AD and how it works, so I like to take things slowly when I'm unfamiliar with something like this.

I'd rather allow too much and have to lock down, than lock down too much at this stage - but I will take your suggestion onboard and will be looking at SRP (assuming it works well this time around) and will be working on the premise of 'deny all but' rather than 'allow all but'

Quote:
Originally Posted by Michael View Post
It's a little strange that *.mdb files, which should be associated with MS Access are being blocked as you say.

And as for Software Restriction Policies requiring multiple reboots, I've found this too. Not quite sure why, but at least it works (which is the most important thing).

I think the problem 'might' be to do with designated file types. On the server, chances are you may have Word and Excel Viewer installed, but as far as I am aware, there's no such thing as Access Viewer.

Try administering your SRPs from a workstation (using MMC) which does have MS Office installed (so the *.mdb association is created). You may want to install the Server 2003 SP2 Admin Tools and GPMC on your admin workstation.
Got all that on my admin workstation - what I found is that an XP SP2 PC that has never seen SRP before updates just fine from the AD and is okay - but one that has seen it needs ALOT of reboots and to my way of thinking that's stupid.

But I just tested my SRP setup on a new VM and it works fine - as no other PCs on site (except my original testing PC) have seen SRP, I'm hoping this will all work out.

I'm using *.MDB and then blocking B:\.
It gives me the desired result I wanted

Az
  Reply With Quote
Old 05-08-2008, 03:36 PM   #9
 
ssiruuk2's Avatar
 
Join Date: Feb 2008
Posts: 243
uk
Thanks: 11
Thanked 38 Times in 30 Posts
Rep Power: 12 ssiruuk2 has a spectacular aura about ssiruuk2 has a spectacular aura about ssiruuk2 has a spectacular aura about
Default

I would seriously consider restarting from scratch and set it up again with denying everything as default. All you have to do then is allow your individual apps and where scripts etc run from. Job done. Every time you add an application you just create a new hash value or path rule. Default permit is pretty useless to be honest.
  Reply With Quote
Old 06-08-2008, 09:51 AM   #10
 
azrael78's Avatar
 
Join Date: Sep 2007
Location: UK
Posts: 346
uk uk england
Thanks: 37
Thanked 29 Times in 26 Posts
Rep Power: 11 azrael78 has a spectacular aura about azrael78 has a spectacular aura about
Default

Okay, it's sorted.

It turns out the stupid machine was just taking an age to re-read the policy from the DC, despite the fact it's been left alone and nothing has been stressed out.

No errors in the eventlog - no nothing.

But explain something - for those of you who use 'deny all but' rules - the designated filetypes - these are blocked or permitted?

In my 'allow all but' rule, the filetypes are blocked unless I've made a huge mistake somewhere.

Az
  Reply With Quote
Reply

EduGeek.net Forums > Technical > Windows

Similar Threads
Thread Thread Starter Forum Replies Last Post
Software Restriction Policies..arghhhhhh! steele_uk Windows 7 19-03-2008 04:02 PM
Confused about software restriction policies MacBriar How do you do....it? 1 27-02-2008 10:23 PM
Software restriction policies on USB sticks Kyle Windows 11 20-04-2007 06:38 PM
Software Restriction Policies wesleyw Windows 14 12-12-2006 12:35 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:55 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright EduGeek.net




website uptime

© 2005 - 2010 EduGeek.net
SERVER: 4
no new posts