130 likes | 273 Views
Windows Services. Security Seminar March 1, 2006. Windows Services. Windows Services are programs that run in the background and provide some functionality or service. They can be running even if there is no one logged into the machine. Why do we care?.
E N D
Windows Services Security Seminar March 1, 2006
Windows Services • Windows Services are programs that run in the background and provide some functionality or service. They can be running even if there is no one logged into the machine.
Why do we care? • Unneeded services should be disabled, as they are just another vector that an attacker could potentially utilize to compromise security. • Administrators need to be aware of common services in order to spot out-of-place services.
Example • http://www.frsirt.com/english/advisories/2006/0417 • UPnP problems (SSDP)
Helpful tools • Services snap-in • Autoruns – (http://www.sysinternals.com) • Tasklist • sc • delserv
Enumerating Information • Services snap-in • Name • Status • Executable path and options • Privilege/User to execute under • Action to take if/when there is service failure • Dependencies for service
Automatic, Manual, Disable? • Automatic – Starts by itself • Manual – User can start the service • Program can start the service if needed • Disable – Service cannot be started
Enumerating Information Cont. • Autoruns • Allows one to easily associate a service with it’s entry in the registry • See the permissions on a service • Tasklist • net command(s) • sc command
Simple Attacks - simplified • Install a service to perform some task • Modify existing service to perform task • Use existing service to elevate privileges
Attacks a bit more in depth • && trick • Poor permissions - http://www.cs.princeton.edu/~sudhakar/papers/winval.pdf • Svchost obfuscation • Etc.
Services to Disable • Help and Support • Messenger • Portable Media Serial Number ? • Remote Registry • Secondary Logon ? • Server ? • System Restore Service? • Themes • Wireless Zero Configuration • SSDP Discovery Service • … ?
Resources • http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/management/svrxpser_7.mspx • http://www.theeldergeek.com/services_guide.htm#Services • http://www.sysinternals.com/ • http://cio.uiowa.edu/itsecurity/