1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Securing Windows 2000/XP/Server 2003 services HOW TO

Discussion in 'General Software' started by Alec§taar, Aug 22, 2006.

Thread Status:
Not open for further replies.
  1. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.52/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    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/showthread.php?p=282551#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 a moderator: Mar 9, 2007
    lemonadesoda says thanks.
  2. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.52/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    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 a moderator: Mar 9, 2007
  3. PVTCaboose1337

    PVTCaboose1337 Graphical Hacker

    Joined:
    Feb 1, 2006
    Messages:
    9,512 (2.99/day)
    Thanks Received:
    1,143
    Location:
    San Antonio, Texas
    OMG sticky, good job Alec§taar!
     
  4. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.52/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    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 a moderator: Mar 9, 2007
  5. PVTCaboose1337

    PVTCaboose1337 Graphical Hacker

    Joined:
    Feb 1, 2006
    Messages:
    9,512 (2.99/day)
    Thanks Received:
    1,143
    Location:
    San Antonio, Texas
    You have the longest and most informative posts! Of course I expect this quality of article.
     
  6. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    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.
     
  7. Slater Guest

    Should I check "Allow service to interact with desktop"
     
  8. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    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!
     
  9. Slater Guest

    uhm I dont have any options other than LocalSystem I believe :(

    Running x64
     
  10. pt

    pt not a suicide-bomber

    Joined:
    Mar 11, 2006
    Messages:
    8,981 (2.85/day)
    Thanks Received:
    208
    Location:
    Portugal
    cool guide
    too bad my school starts tomorrow :( , my time on the pc will be far less
     
  11. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    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.
     
  12. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    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.
     
  13. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    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.
     
  14. Slater Guest

    They got the idea from you alec xD
     
  15. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    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: Sep 27, 2006
  16. Slater Guest

    Wait a couple days, you just gave them the idea :roll:
     
  17. AshenSugar

    AshenSugar New Member

    Joined:
    Sep 20, 2006
    Messages:
    1,998 (0.68/day)
    Thanks Received:
    0
    Location:
    ashentech.com
    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)
     
  18. Jimmy 2004

    Jimmy 2004 New Member

    Joined:
    Jan 15, 2005
    Messages:
    5,491 (1.54/day)
    Thanks Received:
    267
    Location:
    England
    I really should get round to testing those services soon. :D
     
  19. Completely Bonkers New Member

    Joined:
    Feb 6, 2007
    Messages:
    2,580 (0.92/day)
    Thanks Received:
    516
    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
     
    lemonadesoda says thanks.
  20. Completely Bonkers New Member

    Joined:
    Feb 6, 2007
    Messages:
    2,580 (0.92/day)
    Thanks Received:
    516
    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.
     
  21. Completely Bonkers New Member

    Joined:
    Feb 6, 2007
    Messages:
    2,580 (0.92/day)
    Thanks Received:
    516
    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.

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
  22. Completely Bonkers New Member

    Joined:
    Feb 6, 2007
    Messages:
    2,580 (0.92/day)
    Thanks Received:
    516
    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
     
  23. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.52/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    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)

    [​IMG]

    (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: Feb 14, 2007
  24. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.52/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    CompletelyBonkers, got my score on BELARC ADVISOR higher finally

    [​IMG]

    :)

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

    APK
     
    Last edited: Feb 17, 2007
  25. pt

    pt not a suicide-bomber

    Joined:
    Mar 11, 2006
    Messages:
    8,981 (2.85/day)
    Thanks Received:
    208
    Location:
    Portugal
    i have 4.338 on that thing :)
     

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

Thread Status:
Not open for further replies.

Share This Page