Home > Information Security Tips > Tech tips > Securing Windows services to prevent hacker attacks
Security UK Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

Securing Windows services to prevent hacker attacks


Davey Winder, Contributor
Rating: -5.00- (out of 5)

This tip will is part of a series of articles on Windows security strategies. Make sure to check back each week for new Windows "how-to" advice.

When it comes to the Windows operating system, any Windows OS, what do hackers want? The answer is access to valid account names and resource shares, particularly ones that have not been hardened.

Luckily for them, not so for most enterprises, poorly protected or unprotected accounts and resource shares are in plentiful supply. Let's discuss what can be done to protect those key elements of Windows.

Windows services security: Disabled access
To start, address the problem of Windows services, a host of which (no pun intended) make the discovery of such information pretty easy for both the seasoned hacker and the kiddie scripter with the right tools.

To counteract the threat, an organization should, unless it is absolutely sure it needs them, disable the following services:

  • TCP 53 -- DNS Zone Transfer
    RELATED CONTENT
    Tech tips
    Code complexity analysis: How to keep it simple
    How to use Windows XP Mode in Windows 7
    Understand role-based access control in Microsoft Exchange 2010
    Avoid common Web application firewall configuration errors
    SQL injection detection tools and prevention strategies
    Cross-site scripting explained: How to prevent attacks
    How to automate and apply Microsoft Windows 7 AppLocker rules
    How to use Microsoft Windows 7 AppLocker for whitelisting applications
    Should you disable IE ESC, or manage it in Windows servers?
    Scanning with N-Stalker offers basic Web application security assessment

    User Identities and Provisioning
    Will physical security integrators work with IT departments?
    Tokenless two-factor authentication helps council with CoCo compliance
    Risk-based multifactor authentication implementation best practices
    Group to shed light on secure identity management threats
    Poor privileged account management practices leave security gap
    Content-aware IAM: Uniting user access and data rights
    Microsoft Windows 7 DirectAccess pros and cons
    Schneier-Ranum Face-off: Is perfect access control possible?
    Supplier's problems with passwords solved by single sign-on technology
    Dynamic business world needs intelligent LAN switches, says report

    Endpoint and NAC Protection
    Thin-client technologies surge thanks to easier security, says Deloitte
    A closer look at Internet Explorer 8 security features
    USB drive security best practices and processes
    First step in forensics: Create a bootable Windows environment CD
    Protecting enterprise networks from new mobile application downloads
    Four things to remember about server virtualization security concerns
    College learns lessons in choosing the right NAC appliance
    Conficker-infected machines now number 7 million, Shadowserver finds
    Security researchers continue hunt for Conficker authors
    The integration challenges of unified threat management (UTM)

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Centre for the Protection of National Infrastructure  (SearchSecurityUK.com)
    Computer Misuse Act 1990  (SearchSecurityUK.com)
    Regulation of Investigatory Powers Act  (SearchSecurityUK.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary


    >TCP 135 -- RPC Endpoint Mapper

  • TCP 139 -- NetBIOS Session Service
  • TCP 445 -- SMB Over TCP
  • TCP 3389 -- Terminal Services
  • UDP 137 -- NetBIOS Name Service
  • UDP 161 -- Simple Network Management Protocol
  • TCP/UDP 389 -- Lightweight Directory Access Protocol

    Yes, there are problems involved with disabling services, but they can usually be worked around with better security in mind. So, for example, although Microsoft Exchange requires TCP 135 open for MAPI clients, there are methods to make this more secure, the easiest being to not use MAPI clients and go for Outlook Web Access instead. Failing that, use RPC over HTTP on TCP 593, which is safer.

    Windows advanced options: Using the Windows Vista Firewall
    The Windows Vista Firewall, via the advanced security interface, actually does a good job of filtering these services under the public profile and allows for Windows Group Policy control of inbound connectivity, so make use of it. This means not going through the usual control panel route to fire up the Windows Firewall, but instead executing wf.msc to access the Windows Firewall with Advanced Security MMC control panel.

    Disabling NetBIOS over TCP/IP does not block SMB access; all this does is block TCP 139 while leaving an SMB listener open on TCP 445. In Vista, disable File and Printer Sharing for Microsoft Networks via the local area connection properties dialogue to prevent null sessions over both TCP 139 and 445 (although the former will still be visible, connectivity is disabled).

    Windows services security: Ask SID about service accounts
    Service accounts are, generally speaking, used by Windows to launch automated routines that are implemented by the operating system itself. Though they are something of a necessary evil, that doesn't mean they cannot be hardened. Indeed, Vista and Server 2008 do this already with service-specific SIDs (security identifiers) that assign unique SIDs to processes as they start. Run sc.exe with the showsid modifier to discover the allocated SIDs for any service. These service-specific SIDs, restricted SID lists in Vista and Server 2008 help reduce the domino effect whereby one service running as LocalService is compromised and can then compromise the integrity of others executing as the same user. To discover which services are restricted, or otherwise, run sc.exe with the qsidtype modifier.

    About the author:
    Davey Winder has worked as a freelance technology journalist for nearly 20 years. He is based in South Yorkshire.

    Rate this Tip
    To rate tips, you must be a member of SearchSecurity.co.UK.
    Register now to start rating these tips. Log in if you are already a member.




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • UK Data Security Solutions: Data Privacy, Identity Theft, Data Loss
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2008 - 2010, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts