techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > General Software

Closed Thread
 
Thread Tools
Old Aug 22, 2006, 05:12 PM   #1
Alec§taar
Banned
 
Alec§taar's Avatar
 
Join Date: May 2006
Location: Someone who's going to find NewTekie1 and teach him a lesson
Posts: 3,380 (1.32/day)
Thanks: 0
Thanked 102 Times in 101 Posts

System Specs

Securing Windows 2000/XP/Server 2003 services HOW TO

This is all i could save. I dont know if people can see what I can in the Wiki, but I got this article the others he deleted b4 he posted them in the wiki and i dont have the powers even in my sections to bring them back...perhaps a back up but Im not sure we have one ill go see. He did a damn good job at making sure nothing of his existed after he left...Im at school but when i get home ill email him and see if i can get him back im not done fighting yet.-Solaris17




Securing Windows 2000/XP/Server 2003 services HOW TO
I went at ALL of the services in Windows Server 2003 (some will not be in XP for instance, & Windows 2000 has no NETWORK SERVICE or LOCAL SERVICE as far as I know, but not sure, you can always make a limited privelege user too for this on 2000 if needed)...

I did testing to see which services could be run/logged in as LOCAL SERVICE, or NETWORK SERVICE, rather than the default of LOCAL SYSTEM (which means Operating System entity level privileges - which CAN be "misused" by various spyware/malware/virus exploits).


LOCAL SERVICE startable list (vs. LocalSystem Logon Default):


--------------------------------------------------------------------------------

Acronis Scheduler 2 Service
Alerter (needs Workstation Service Running)
COM+ System Application
GHOST
Indexing Service
NVIDIA Display Driver Service
Office Source Engine
O&O Clever Cache
Remote Registry
Sandra Service
Sandra Data Service
SmartCard
Tcp/IP NetBIOS Helper
Telnet
UserProfile Hive Cleanup Service
Volume Shadowing Service
Windows UserMode Drivers
Windows Image Acquisition
WinHTTP Proxy AutoDiscovery Service
NETWORK SERVICE startable list (vs. LocalSystem Logon Default):


--------------------------------------------------------------------------------

ASP.NET State Service
Application Layer Gateway
Clipbook (needs Network DDE & Network DDE DSDM)
Microsoft Shadow Copy Provider
Executive Software Undelete
DNS Client
DHCP Client
Error Reporting
FileZilla Server
Machine Debug Manager
Merger
NetMeeting Remote Desktop Sharing Service
Network DDE
Network DDE DSDM
PDEngine (Raxco PerfectDisk)
Performance Logs & Alerts
RPC
Remote Desktop Help Session Manager Service
Remote Packet Capture Protocol v.0 (experimental MS service)
Resultant Set of Policies Provider
SAV Roam
Symantec LiveUpdate
Visual Studio 2005 Remote Debug
PLEASE NOTE: Each service uses a BLANK password when reassigning their logon entity (when you change it from the default of LOCAL SYSTEM Account), because they use SID's as far as I know, not standard passwords.


--------------------------------------------------------------------------------

WHEN YOU TEST THIS, AFTER RESETTING THE LOGON USER ENTITY EACH SERVICE USES: Just run your system awhile, & if say, Norton Antivirus refuses to update, or run right? You KNOW you set it wrong... say, if one you test that I do NOT list won't run as LOCAL SERVICE? Try NETWORK SERVICE instead... if that fails? YOU ARE STUCK USING LOCAL SYSTEM!

If you cannot operate properly while changing the security logon entity context of a service (should NOT happen w/ 3rd party services, & this article shows you which ones can be altered safely)?

Boot to "Safe Mode", & reset that service's logon entity back to LOCAL SYSTEM again & accept it cannot do this security technique is all... it DOES happen!

If that fails? There are commands in the "Recovery Console" (installed from your Windows installation CD as a bootup option while in Windows using this commandline -> D:\i386\winnt32.exe /cmdcons, where D is your CD-Rom driveletter (substitute in your dvd/cd driveletter for D of course)) of:

ListSvc (shows services & drivers states of stopped or started)

Enable (starts up a service &/or driver)

Disable (stops a server &/or driver)

Which can turn them back on if/when needed

Last edited by APK on 03/04/2007
I.E. -> I removed Telephony, Symantec AntiVirus, & Virtual Disk Service!

(ON Virtual Disk Service being removed, specifically: This was done solely because, although it will run as LOCAL SERVICE, diskmgmt.msc will not be able to work! Even though the Logical Disk Manager service does not list VirtualDisk as a dependency, this occurs, so VirtualDisk service was pulled from BOTH the LOCAL SERVICE and NETWORK SERVICE lists here... apk)

SECURING SERVICES @ THE ACL LEVEL VIA A SECURITY POLICY HOW-TO:

STEP #1: CONFIGURE A CUSTOM Microsoft Management Console for this!

Configuring yourself a "CUSTOM MMC.EXE (Microsoft Mgt. Console)" setup for security policy templates, here is how (these are NOT default Computer Mgt. tools, so you have to do this yourself, or run them by themselves, but this makes working w/ them convenient):

================================================== =============
The next part's per BelArcGuy of BELARC ADVISOR's advice (pun intended):
==============================================
http://forums.techpowerup.com/showth...551#post282551

==============================================
"Security Configuration and Analysis" is an MMC snap-in. To access the MMC, type in mmc to the Windows Run.. command to pop up the console. Then use it's File|Add/Remove Snap-in... command and click the Add button on the resulting dialog. Choose both "Security Configuration and Analysis" and "Security Templates", close that dialog, and OK. You'll end up with a management console that has both of those snap-ins enabled. The whole MMC mechanism is a bit weird, but does work"

(It's easy, & it works, & is necessary for the actual steps to do this, below)


--------------------------------------------------------------------------------

(Next, is the actual "meat" of what we need to do, per Microsoft, to set ACLs)


--------------------------------------------------------------------------------

STEP #2: HOW TO: Define Security Templates By Using the Security Templates Snap-In in Windows Server 2003

http://support.microsoft.com/kb/816297

Create and Define a New Security Template

(To define a new security template, follow these steps)

1. In the console tree, expand Security Templates. 2. Right-click %SystemRoot%\Security\Templates, and then click New Template. 3. In the Template name box, type a name for the new template.

(If you want, you can type a description in the Description box, and then click OK)

The new security template appears in the list of security templates. Note that the security settings for this template are not yet defined. When you expand the new security template in the console tree, expand each component of the template, and then double-click each security setting that is contained in that component, a status of Not Defined appears in the Computer Setting column.

1. To define a System Services policy, follow these steps: a. Expand System Services. b. In the right pane, double-click the service that you want to configure. c. Specify the options that you want, and then click OK.

==============================================
)
APK (added 03/08/2007)

Last edited by Solaris17; Mar 9, 2007 at 11:56 AM.
Alec§taar is offline  
The Following User Says Thank You to Alec§taar For This Useful Post:
Old Aug 23, 2006, 06:47 PM   #2
Alec§taar
Banned
 
Alec§taar's Avatar
 
Join Date: May 2006
Location: Someone who's going to find NewTekie1 and teach him a lesson
Posts: 3,380 (1.32/day)
Thanks: 0
Thanked 102 Times in 101 Posts

System Specs

The method above is good vs. the faults noted in Windows vs. MacOS X noted in URL

Suggestions + critique are welcome, & add on ideas too... especially THIS part, to improve it!



* DONE!

(When I first got here, somebody asked me to "write the damn book of knowledge" lol, well... there tis', consolidated from ALL of my posts on the subject of internet security & speeding it up as well @ the SAME TIME!)

APK

P.S.=> Moderators: AGAIN - if you feel this 'makes the grade' as to consolidating a secure your system & speedup online STICKY THREAD? Go for it...

LOL, personally speaking? I do think so, but... it's NOT up to me to judge! apk

Last edited by Solaris17; Mar 9, 2007 at 12:00 PM.
Alec§taar is offline  
Old Aug 24, 2006, 03:03 AM   #3
PVTCaboose1337
Graphical Hacker
 
PVTCaboose1337's Avatar
 
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.80/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts

System Specs

OMG sticky, good job Alec§taar!
__________________
CPU-Z validation sig pics temporarily blocked
PVTCaboose1337 is offline  
Old Aug 24, 2006, 03:04 AM   #4
Alec§taar
Banned
 
Alec§taar's Avatar
 
Join Date: May 2006
Location: Someone who's going to find NewTekie1 and teach him a lesson
Posts: 3,380 (1.32/day)
Thanks: 0
Thanked 102 Times in 101 Posts

System Specs

Suggestions + critique are welcome, & add on ideas too... especially THIS part, to improve it!



* DONE!

(LOL - Hey: I remember when I first got here a year ago? Well, somebody asked me to "write the damn book of knowledge" lol, well... there tis', consolidated from ALL of my posts on the subject of internet security & speeding it up as well @ the SAME TIME!)

APK

P.S.=> Moderators: AGAIN - if you feel this 'makes the grade' as to consolidating a secure your system & speedup online STICKY THREAD? Go for it...

LOL, personally speaking? I do think so, but... it's NOT up to me to judge! apk

Last edited by Solaris17; Mar 9, 2007 at 12:01 PM.
Alec§taar is offline  
Old Aug 24, 2006, 03:40 AM   #5
PVTCaboose1337
Graphical Hacker
 
PVTCaboose1337's Avatar
 
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.80/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts

System Specs

You have the longest and most informative posts! Of course I expect this quality of article.
__________________
CPU-Z validation sig pics temporarily blocked
PVTCaboose1337 is offline  
Old Sep 24, 2006, 03:41 PM   #6
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

Well I only just got round to sorting this out for my services. thanks for the guide Alec. So far no problems, but I have found that the diskeeper service will not start if it has Local or Network Service so I left it as local system. Going to move to perfect disk soon anyway because I read much better reviews about it.
Jimmy 2004 is offline  
Old Sep 24, 2006, 06:30 PM   #7
Slater
Guest
 
Posts: n/a (0/day)

Should I check "Allow service to interact with desktop"
 
Old Sep 24, 2006, 06:52 PM   #8
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

Quote:
Originally Posted by Alec§taar View Post
QUESTION:

Did you have ANY others than I did not list above, besides Diskeeper (I use this too, it will NOT work that way, you are right)?

(If so, please provide them, if you have services diff. from the list above & also IF they work doing this technique).
I will try changing their settings sometime, the one thing I've noticed about this guide is that it doesn't list the Windows services that NEED to be left as local system, so some people might not be too sure what they're doing and worry about any that aren't listed. Just a suggestion that you might want to include in any future revisions.

The non-default ones I have that you have not listed are:

.Net Runtime Optimization Service v2.0.50727_X86
Ati HotKey Poller
ATI Smart
AVG E-mail Scanner
AVG7 Alert Manager Server
AVG7 Update Service
BlueSoleil Hid Service
Bluetooth Support Service
ewido anti-spyware 4.0 guard
iPod Service
Messenger Sharing USN Journal Reader Service
Service Layer
Windows Defender Service

The problem is that the only ones of these I actually use are The AVG and Windows Defender services and occasionally the "Service Layer" service (related to Nokia PC Suite) and the "Messenger Sharing USN Journal Reader Service" (related to WindowsLive Messenger). Anyway, I'll see how much I can secure those and post back how I get on. I'll try to test it sometime this week just I'm a bit waring of changing the AVG settings because the only way to test if it was still working would be for a virus to be detected... and I' rather I didn't get viruses!
Jimmy 2004 is offline  
Old Sep 24, 2006, 08:31 PM   #9
Slater
Guest
 
Posts: n/a (0/day)

uhm I dont have any options other than LocalSystem I believe

Running x64
 
Old Sep 24, 2006, 08:58 PM   #10
pt
not a suicide-bomber
 
pt's Avatar
 
Join Date: Mar 2006
Location: Portugal
Posts: 5,877 (2.23/day)
Thanks: 106
Thanked 219 Times in 193 Posts
Send a message via MSN to pt

System Specs

cool guide
too bad my school starts tomorrow , my time on the pc will be far less
pt is offline  
Old Sep 24, 2006, 09:47 PM   #11
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

I don't normally have time during the day to play with settings, but if I find time in the evenings I will have a go. Concentrating on Vista atm though.
Jimmy 2004 is offline  
Old Sep 25, 2006, 06:43 PM   #12
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

I'm considering setting up my PC to work as a limited account except for installing stuff, but I just wondered if you know whether all programs work then Alec (or anyone else). Thanks.
Jimmy 2004 is offline  
Old Sep 26, 2006, 04:41 PM   #13
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

Quote:
Originally Posted by Alec§taar View Post
this is what RUNAS is for! apk
Well the whole vista setup is what inspired me to want to use a limited account. Although those messages get annoying they are good for security and like you say "RunAs" could be used. I've decided to stick as an administrator account for now, but I might give it a go in the future.

One service that I have found out needs Local System rights is the AVG7 Update Service, if it is set to Network Serivce it brings up a message about not being able to change files next startup or something along those lines. I'll try to get round to testing the rest later in the week/ at the weekend.
Jimmy 2004 is offline  
Old Sep 27, 2006, 02:45 AM   #14
Slater
Guest
 
Posts: n/a (0/day)

They got the idea from you alec xD
 
Old Sep 27, 2006, 04:26 PM   #15
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

Alec, I've found two settings in oyur guide that don't work well with my computer:

UserProfile Hive Cleanup Service
DHCP Client

Both of the above need to be set to local system in order for them to work correctly (seems unusual considering that M$ puts DHCP client in that list...)

For DHCP I get the message "Error 1079.The account specified is different from the account specified for other services running in the same process." Not too sure how I can conquer that, guessing that it's linked to the whole svchost.exe generic process.

Last edited by Jimmy 2004; Sep 27, 2006 at 06:08 PM.
Jimmy 2004 is offline  
Old Sep 27, 2006, 05:19 PM   #16
Slater
Guest
 
Posts: n/a (0/day)

Quote:
P.S.=> I am personally surprised they have not issued a security update altering this in the registry really, on ALL of their Win32 OS of NT-based nature/ancestry.

That is, if they have NOT done so already in hotfixes (they have with ACL's & I mention it in other threads here in fact)... because of this year's past exploits of services! apk
Wait a couple days, you just gave them the idea
 
Old Oct 23, 2006, 05:33 AM   #17
AshenSugar
Banned
 
AshenSugar's Avatar
 
Join Date: Sep 2006
Location: ashentech.com
Posts: 1,699 (0.70/day)
Thanks: 11
Thanked 28 Times in 25 Posts
Send a message via AIM to AshenSugar Send a message via MSN to AshenSugar Send a message via Yahoo to AshenSugar

System Specs

ok question, i forgot to dissable printer port b4 i installed windows 2003 this last time, how do i remove the service so it dosnt bitch about the service failing to load each time windows starts now that i dissabled it(my board dosnt acctualy have a printer port just a header for one)
AshenSugar is offline  
Old Oct 23, 2006, 06:24 PM   #18
Jimmy 2004
Eligible for custom title
 
Jimmy 2004's Avatar
 
Join Date: Jan 2005
Location: England
Posts: 5,047 (1.65/day)
Thanks: 134
Thanked 276 Times in 185 Posts
Send a message via MSN to Jimmy 2004

System Specs

I really should get round to testing those services soon.
Jimmy 2004 is offline  
Old Feb 9, 2007, 02:56 AM   #19
Completely Bonkers
2000 Posts
 
Completely Bonkers's Avatar
 
Join Date: Feb 2007
Posts: 2,415 (1.05/day)
Thanks: 582
Thanked 533 Times in 374 Posts

System Specs

Alec... Great post.

Could you please load www.belarc.com and run an audit. It will give you a security rating. See what you get. If you don't get a score of 10... figure out what's wrong. My score is about 4 and to be honest, I'm stuck! LOL
__________________
... some things in life just drive you bonkers. Especially the rubbish you see in forum posts
Completely Bonkers is offline  
The Following User Says Thank You to Completely Bonkers For This Useful Post:
Old Feb 9, 2007, 03:15 AM   #20
Completely Bonkers
2000 Posts
 
Completely Bonkers's Avatar
 
Join Date: Feb 2007
Posts: 2,415 (1.05/day)
Thanks: 582
Thanked 533 Times in 374 Posts

System Specs

Belarc Advisor is free. And it is pretty good. Shows you the status of security upgrades and other "hardening" issues. I can recommend it. Just don't know how to implement all of its recommendations.
__________________
... some things in life just drive you bonkers. Especially the rubbish you see in forum posts
Completely Bonkers is offline  
Old Feb 9, 2007, 03:45 AM   #21
Completely Bonkers
2000 Posts
 
Completely Bonkers's Avatar
 
Join Date: Feb 2007
Posts: 2,415 (1.05/day)
Thanks: 582
Thanked 533 Times in 374 Posts

System Specs

Here is some of the output from Belarc. As you can see I'm up to date on hotfixes, but my CIS score has gone down to 3.13 with new verion of Belarc. Ooohps. It seems that I need to manage permissions better. But not sure how to do this.





__________________
... some things in life just drive you bonkers. Especially the rubbish you see in forum posts
Completely Bonkers is offline  
Old Feb 9, 2007, 03:51 AM   #22
Completely Bonkers
2000 Posts
 
Completely Bonkers's Avatar
 
Join Date: Feb 2007
Posts: 2,415 (1.05/day)
Thanks: 582
Thanked 533 Times in 374 Posts

System Specs

Thanks Alec. I think the greatest help would be to understand the technique for handling each section, rather than each specific item itself. Thanks in advance.

P.S. Use the left-right scroll bar in your browser windows to see the screen. The gifs might appear wide if you are not using a 1600+ pixel screen
__________________
... some things in life just drive you bonkers. Especially the rubbish you see in forum posts
Completely Bonkers is offline  
Old Feb 13, 2007, 08:08 PM   #23
Alec§taar
Banned
 
Alec§taar's Avatar
 
Join Date: May 2006
Location: Someone who's going to find NewTekie1 and teach him a lesson
Posts: 3,380 (1.32/day)
Thanks: 0
Thanked 102 Times in 101 Posts

System Specs

Ok, some of it, I agreed with... other parts, not.

Examples: (coming, will edit it in & explain why I did not agree w/ some of its assessments).

Scored just a WEE BIT better than what you did, initially (you should do better once you use secpol.msc, regedit.exe, & explorer.exe for NTFS, etc. & follow some of its recommendations there) ->

APK SCORE -> 4.17 of 10 (I don't agree w/ all of its recommendations, see next post)



(Some of it though, I definitely DO NOT AGREE WITH - 1 example being that IF I cutoff using a service completely? It's downgrading me for it... that's not right, lol!)

Check it -> A service IS NOT vulnerable, if I do not allow it to run, period, SET TO DISABLED: And, I lower their logon entity to less than SYSTEM (NETWORK SERVICE or LOCAL SERVICE) for the DISABLED ONES ontop of doing that cutting them off!

(You ALL KNOW that saves I/O, CPU, RAM, you-name-it, another reason I do it (why run something I don't need or use))

I also do that for the few I run.

Lessening their logon priority makes them a LOT less powerful IF overtaken, what little services I run (they are secure afaik)))!

Plus, I am on a non-HOME-LAN type networked rig presently, & some of its complaints are bugging me, saying I am limiting functionality - FUNNY, BUT THAT IS WHAT I AM OUT TO DO, especially to 'remote users'/potential interlopers: Run less background apps that MIGHT have exploitable holes in them, & save CPU cycles &/or RAM, & secure the ones that you DO run.

APK

P.S.=> I'll point out next, where I personally feel it is 'cutting users down too much', especially for things like turning off services you do NOT use, hey - how can they be 'vulnerable' if not active, or disabled, period, for instance (answer - they're NOT)... apk

Last edited by Alec§taar; Feb 14, 2007 at 06:20 AM.
Alec§taar is offline  
Old Feb 17, 2007, 08:43 PM   #24
Alec§taar
Banned
 
Alec§taar's Avatar
 
Join Date: May 2006
Location: Someone who's going to find NewTekie1 and teach him a lesson
Posts: 3,380 (1.32/day)
Thanks: 0
Thanked 102 Times in 101 Posts

System Specs

CompletelyBonkers, got my score on BELARC ADVISOR higher finally





* Up, from 4.17 before, to a 5.0... "she's getting there!"

APK

Last edited by Alec§taar; Feb 17, 2007 at 09:21 PM.
Alec§taar is offline  
Old Feb 18, 2007, 07:28 PM   #25
pt
not a suicide-bomber
 
pt's Avatar
 
Join Date: Mar 2006
Location: Portugal
Posts: 5,877 (2.23/day)
Thanks: 106
Thanked 219 Times in 193 Posts
Send a message via MSN to pt

System Specs

i have 4.338 on that thing
pt is offline  
Closed Thread


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

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

Forum Jump


All times are GMT. The time now is 11:11 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts