O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

The Top 10/20 Internet Security Vulnerabilities – A Primer

Carregando em…3

Confira estes a seguir

1 de 82 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)


Semelhante a The Top 10/20 Internet Security Vulnerabilities – A Primer (20)

Mais de amiable_indian (20)


Mais recentes (20)

The Top 10/20 Internet Security Vulnerabilities – A Primer

  1. 1. The Top 10/20 Internet Security Vulnerabilities – A Primer Randy Marchany VA Tech Computing Center The SANS Institute COVITS 2000
  2. 2. Introduction <ul><li>This presentation is designed to give you a brief overview of the top 10 most critical Internet Security threats. </li></ul><ul><li>These aren’t the only threats…. just the most common at the moment. </li></ul><ul><li>Hopefully, we’ll eliminate these threats and create a new list next year. </li></ul><ul><li>The Top 10 and Top 20 documents are in Appendix A of this presentation. </li></ul>
  3. 3. Introduction <ul><li>We’ll review the original Top 10 list first </li></ul><ul><li>We’ll review the new items in the Top 20 </li></ul><ul><li>We’ll also provide a list of common ports to filter or monitor. </li></ul>
  4. 4. Pay Me Now or Pay Me Later <ul><li>E = D + R </li></ul><ul><ul><li>E = amount of time you’re exposed </li></ul></ul><ul><ul><li>D = amount of time it takes to detect an attack </li></ul></ul><ul><ul><li>R = amount of time it takes to react to an attack </li></ul></ul><ul><li>Easiest way to calculate the cost of an Incident </li></ul><ul><ul><li>Multiply average hourly wage * Time * People </li></ul></ul>
  5. 5. Why Are We Vulnerable? <ul><li>Computer systems and programs have become more complex in the past 25 years. </li></ul><ul><li>Quality control hasn’t been able to keep up due to market pressures, programming skill deficiencies, etc. </li></ul><ul><li>Most of these programs/systems are based on code that was never intended to be “production” quality.They were “proof of concept” programs that became the basis of production systems. </li></ul>
  6. 6. So Many Systems, Not Enough Time….. <ul><li>2.3 million hosts are connected to the Net each month. There aren’t 2.3 million sysadmins. Something has to give…. </li></ul><ul><li>Unfortunately, it’s the sysadmin. </li></ul><ul><li>Not enough training, too many conflicting demands on their time. </li></ul><ul><li>The Prime Directive: Keep the system up! </li></ul><ul><li>Patch the system? When I have time…. </li></ul>
  7. 7. Hacking = Rocket Science? Not! <ul><li>Any good hacker can write the attack tool. The real skill is making so easy to use that a CEO could launch the attack. </li></ul><ul><li>There are lots of hacker WWW sites where you can get these tools. These sites try to outdo each other by designing the best, baddest, user-friendly site. </li></ul>
  8. 8. Why Are the Attacks Successful? <ul><li>We didn’t close all the doors because we’re too busy doing “real” stuff. </li></ul><ul><ul><li>If the hackers got caught, we didn’t punish them. It would be too embarrassing to admit we got hit. Our Incident Response Plans were inadequate. </li></ul></ul>
  9. 9. Why Are the Attacks Successful? <ul><li>The attack designers studied (cased) the target code carefully. </li></ul><ul><ul><li>A lot of attacks are based on Buffer Overflows. </li></ul></ul><ul><ul><ul><li>Example: a program expects 80 input characters max. You give it 5000 characters. How does the code handle it? </li></ul></ul></ul>
  10. 10. Some Pointers About the Lists <ul><li>Each item in the list is divided into 4 parts </li></ul><ul><ul><li>A description of the vulnerability </li></ul></ul><ul><ul><li>The systems affected by the vulnerability </li></ul></ul><ul><ul><li>A CVE number identifying the vulnerability </li></ul></ul><ul><ul><li>Some suggested corrections </li></ul></ul>
  11. 11. Some Pointers about the Lists <ul><li>What’s a CVE number? </li></ul><ul><ul><li>CVE = Common Vulnerabilities & Exposures reference number that is used to uniquely identify a vulnerability. </li></ul></ul><ul><ul><li>It’s like the Dewey Decimal #’s that are used in the library. You can go to any library and find the same book using the same Dewey catalog number </li></ul></ul><ul><ul><li>CVE’s does the same for vulnerabilities. </li></ul></ul>
  12. 12. Some More Pointers about the Lists <ul><li>Ports to block/monitor at the firewall are provided at the end of the Top 20 list. </li></ul><ul><ul><li>Remember this only works for EXTERNAL attacks. Internal attacks need additional security measures. </li></ul></ul>
  13. 13. Some More Pointers about the Lists <ul><li>Automated Scanning for the Top 20 </li></ul><ul><ul><li>SARA – freeware scanning tool designed specifically for this. See http://www. cisecurity .org </li></ul></ul><ul><ul><li>Commercial scanners are becoming available. </li></ul></ul><ul><li>Links to ICAT Vulnerability Index </li></ul><ul><ul><li>Each entry is linked to the NIST ICAT indexing service. ICAT entries contain a short description of the vulnerability and other info. </li></ul></ul>
  14. 14. Item #1: BIND <ul><li>All Internet systems have a hostname and an IP address. </li></ul><ul><ul><li>Every home is known by its address and who lives in it. “hey, is that Randy’s house?” “Yeah, it’s at 24 Main St.” </li></ul></ul><ul><ul><li>“ Randy’s house” = hostname </li></ul></ul><ul><ul><li>“ 24 Main St.” = IP address </li></ul></ul><ul><li>BIND ( B erkeley In ternet D omain) maps hostnames to IP addresses. </li></ul><ul><ul><li>It’s the set of “phone books” of the Internet. </li></ul></ul>
  15. 15. Item #1: BIND <ul><li>Every network needs a couple of systems that run BIND. They’re called nameservers . </li></ul><ul><li>Old versions of BIND have security holes.The nameservers aren’t always up-to-date. They were when they were installed but that was years ago. It works so why fix it? Right? Wrong! </li></ul>
  16. 16. Item #1: BIND <ul><li>The Danger: </li></ul><ul><ul><li>Hackers get full control of the nameserver and can use it for anything they want. </li></ul></ul><ul><li>A Solution </li></ul><ul><ul><li>Make sure your version is higher than BIND 8.2.2 patch level 5 </li></ul></ul>
  17. 17. Item #2: CGI Scripts <ul><li>CGI = Common Gateway Interface </li></ul><ul><li>It’s the language that programmers use to display and read your input to a WWW based form. </li></ul><ul><li>Not everyone knows how to use it so WWW server vendors supply examples. </li></ul><ul><li>The examples have security holes in them. Some CGI programmers haven’t checked their code. </li></ul>
  18. 18. The Second Item – CGI Scripts <ul><li>All Web servers could be affected by this “feature”. </li></ul><ul><li>The Danger </li></ul><ul><ul><li>Your WWW pages could be changed a la DOJ, CIA, FBI, Valujet. </li></ul></ul><ul><ul><li>Your WWW server could be used to attack other sites </li></ul></ul><ul><li>A Solution </li></ul><ul><ul><li>Remove unsafe CGI scripts from the WWW server </li></ul></ul>
  19. 19. Item #3: Remote Procedure Calls (RPC) <ul><li>RPC allows a computer to run a program on another computer. </li></ul><ul><li>It’s used by computers that share files between them. </li></ul><ul><li>Many client – server systems depend on the use of RPC calls. </li></ul><ul><li>Unix systems (Solaris, AIX, HP-UX, Linux, Tru64, Irix) were primarily affected but any computer that uses the RPC subsystem is vulnerable </li></ul>
  20. 20. Item #3: Remote Procedure Calls (RPC) <ul><li>The Danger: </li></ul><ul><ul><li>Older versions of RPC have security weaknesses that allow hackers to gain full control of your computer(s). </li></ul></ul><ul><li>A Solution </li></ul><ul><ul><li>Disable the RPC services if you don’t use them </li></ul></ul><ul><ul><li>Install the latest vendor patches </li></ul></ul>
  21. 21. Item #4: Microsoft Internet Information Server (IIS) <ul><li>Windows NT and Windows 2000 Web servers use IIS to support web services. </li></ul><ul><li>IIS has a component called Remote Data Services (RDS) that could allow a hacker to run remote commands with administrator privileges. </li></ul><ul><li>Code Red, NIMDA </li></ul>
  22. 22. Item #4: Microsoft Internet Information Server (IIS) <ul><li>The Danger: </li></ul><ul><ul><li>A hacker can run commands on another system without having to access it directly. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Read the Microsoft technical bulletins that describe how to fix the problem </li></ul></ul>
  23. 23. Item #5: Sendmail Weakness <ul><li>Sendmail is one of the original Internet email programs. </li></ul><ul><li>It was a graduate programming project that was never designed to work in a “production” environment. </li></ul><ul><li>It became the defacto standard. </li></ul><ul><li>Pre-version 8.10 had security problems </li></ul><ul><ul><li>Some vendors still ship Sendmail v5.65! </li></ul></ul><ul><li>Most vendors shipped their systems with these older versions. </li></ul>
  24. 24. Item #5: Sendmail Weakness <ul><li>The 1988 Internet Worm exploited a problem in sendmail.There are a lot of systems that still run that version of sendmail. Why? It works! </li></ul><ul><li>The Danger: </li></ul><ul><ul><li>Hackers can run commands on your systems without ever logging into your system. Hackers can take over your machine. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Update to the latest version of sendmail </li></ul></ul>
  25. 25. Item #6: sadmind and mountd <ul><li>Sadmind is used by Solaris applications to run distributed sysadmin operations. It executes the request on the server from a client program. Sounds like RPC? It is. </li></ul><ul><li>Mountd controls file sharing across the network using NFS. This is the program that “attaches” a remote disk to your computer. </li></ul>
  26. 26. Item #6: sadmind and mountd <ul><li>The Danger: </li></ul><ul><ul><li>Hackers can cause these programs to give them access to root. They can take over your machine. </li></ul></ul><ul><ul><li>This was one of the primary ways hackers used to set up the systems used in the recent DDOS attacks against Yahoo, CNN and other sites. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Install the latest vendor patches for sadmind and mountd. </li></ul></ul>
  27. 27. Item #7: Global File Sharing <ul><li>You can share files between computers using tools like Network Neighborhood (Windows), AppleShare(Macintosh) or NFS(Unix). </li></ul><ul><li>By default, the access is read-write . </li></ul>
  28. 28. Item #7: Global File Sharing <ul><li>Anyone on the same network could access your files. In the old days, the network was small but now the network is the Internet so anyone anywhere in the world could access your files if you let them. </li></ul><ul><li>The problem is that you don’t always know that you’re letting them. </li></ul>
  29. 29. Item #7: Global File Sharing <ul><li>This is a real danger to homes that have direct connect modems. </li></ul><ul><li>The Danger: </li></ul><ul><ul><li>People can get access to your personal data, for example, your checking account data (if you use MSMoney), your email, etc. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Make sure you know what you’re sharing. </li></ul></ul><ul><ul><li>Make sure you know who’s sharing the data with you. </li></ul></ul>
  30. 30. Item #8: User Accounts with No Passwords <ul><li>Some systems come with demo or guest accounts with no passwords or well known passwords. </li></ul><ul><li>The initial/default password for VMS system manager account, SYSTEM was MANAGER. The initial password for the Field Service account, FIELD, was SERVICE. </li></ul>
  31. 31. Item #8: User Accounts with No Passwords <ul><li>People forgot to change these passwords. </li></ul><ul><li>The first thing hackers do is check to see if the defaults passwords were changed. Why waste a lot of effort if the door is unlocked? </li></ul>
  32. 32. Item #8: User Accounts with No Passwords <ul><li>The Danger: </li></ul><ul><ul><li>Someone can get complete control of your system. </li></ul></ul><ul><ul><li>Someone can get access to your system via a general accounts and then run exploit tools on your systems to get full control of your system. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Change your root, administrator passwords before the systems goes into production. </li></ul></ul><ul><ul><li>Run a password checking program to discover who has weak passwords on your system. Do it before the hackers do! </li></ul></ul>
  33. 33. Item #9: IMAP, POP Vulnerabilities <ul><li>IMAP and POP are two common email protocols that provide additional features to email users. </li></ul><ul><li>They allow users to access their email accounts from anywhere on the Internet. </li></ul>
  34. 34. Item #9: IMAP, POP Vulnerabilities <ul><li>Firewalls usually allow email using these services to pass through the firewall. </li></ul><ul><li>Quality control of the software is inconsistent most of the time. </li></ul>
  35. 35. Item#9: IMAP, POP Vulnerabilities <ul><li>The Danger: </li></ul><ul><ul><li>Hackers can gain access to your internal network if they can subvert IMAP or POP mail server systems. </li></ul></ul><ul><ul><li>If successful, they gain complete control of your system. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Make sure you’ve installed the latest patches. </li></ul></ul><ul><ul><li>Run the services on your mail servers only. </li></ul></ul>
  36. 36. Item #10: SNMP Vulnerabilities <ul><li>Simple Network Management Protocol (SNMP) is used by network managers to monitor the status, performance and availability of the network. </li></ul><ul><li>The Net Mgrs can remotely manage their routers, printers, systems using SNMP. </li></ul>
  37. 37. Item #10: SNMP Vulnerabilities <ul><li>SNMP has very weak authentication. Its default “password” is “private”. </li></ul><ul><li>Everyone knows this. </li></ul>
  38. 38. Item #10: SNMP Vulnerabilities <ul><li>The Danger: </li></ul><ul><ul><li>Hackers can gain control of network devices such as routers. They could shut them down. </li></ul></ul><ul><ul><li>They can map your network w/o your knowledge. </li></ul></ul><ul><li>A Solution: </li></ul><ul><ul><li>Pick strong community strings (passwords) for your SNMP devices. </li></ul></ul><ul><ul><li>Make the MIBs read only. </li></ul></ul>
  39. 39. Summary <ul><li>Most of the successful system and network attacks exploit a small set of vulnerabilities. </li></ul><ul><li>The Top 10 list briefly describes this set of vulnerabilities and gives you references to learning more about them. </li></ul><ul><li>More importantly, it gives you some suggested fixes for the problem. </li></ul><ul><li>Our individual security depends on our mutual security. </li></ul>
  40. 40. The SANS/FBI Top 20 List If we had fixed the top 10, there wouldn’t be a top 20. 
  41. 41. Top 20 List Organization <ul><li>Vulnerabilities that affect all systems </li></ul><ul><ul><li>Unix/Linux </li></ul></ul><ul><ul><li>Windows </li></ul></ul><ul><ul><li>Mac </li></ul></ul><ul><ul><li>Mainframes </li></ul></ul><ul><li>Windows Vulnerabilities </li></ul><ul><li>Unix Vulnerabilities </li></ul>
  42. 42. Top 20 Summary <ul><li>General – Affects all Systems </li></ul><ul><ul><li>G1: Default OS Installations </li></ul></ul><ul><ul><li>G2: Accounts with Weak or No Passwords </li></ul></ul><ul><ul><li>G3: Non-existent or Incomplete Backups </li></ul></ul><ul><ul><li>G4: Large Number of Open Ports </li></ul></ul><ul><ul><li>G5: Incorrect Ingress/Egress Packet Filtering </li></ul></ul><ul><ul><li>G6: Non-existent or Incomplete Logging </li></ul></ul><ul><ul><li>G7: Vulnerable CGI Programs </li></ul></ul>
  43. 43. Top 20 Summary <ul><li>Windows </li></ul><ul><ul><li>W1: Unicode Vulnerability </li></ul></ul><ul><ul><li>W2: ISAPI Extension Buffer Overflows </li></ul></ul><ul><ul><li>W3: IIS RDS Exploit </li></ul></ul><ul><ul><li>W4: Unprotected NETBIOS Shares </li></ul></ul><ul><ul><li>W5: Null Sessions </li></ul></ul><ul><ul><li>W6: Weak Hashing in SAM (LM Hash) </li></ul></ul>
  44. 44. Top 20 Summary <ul><li>Unix </li></ul><ul><ul><li>U1: RPC buffer Overflows </li></ul></ul><ul><ul><li>U2: Sendmail Vulnerabilities </li></ul></ul><ul><ul><li>U3: BIND </li></ul></ul><ul><ul><li>U4: R Commands </li></ul></ul><ul><ul><li>U5: LPD Buffer Overflow </li></ul></ul><ul><ul><li>U6: sadmind mountd Buffer Overflow </li></ul></ul><ul><ul><li>U7: Default SNMP </li></ul></ul>
  45. 45. G1: Default OS Installations <ul><li>OS and application installs are not configured for security </li></ul><ul><li>Vendor Philosophy </li></ul><ul><ul><li>Better to enable all functions than require the user to turn them on individually. </li></ul></ul><ul><ul><li>Convenience vs. Security: Who wins?  </li></ul></ul>
  46. 46. G1: Default OS Installations <ul><li>System Impacted </li></ul><ul><ul><li>All Unix, Linux, Windows, MacOS are vulnerable to some degree. Windows, SGI are more open than normal. </li></ul></ul>
  47. 47. G1: Default OS Installations <ul><li>Are you vulnerable? </li></ul><ul><ul><li>If you use default vendor installation programs then you are vulnerable. </li></ul></ul><ul><ul><li>Extra extra service/tool installed that is not needed is another window into your system. </li></ul></ul>
  48. 48. G1: Default OS Installations <ul><li>How to protect? </li></ul><ul><ul><li>Remove unnecessary software/services asap. </li></ul></ul><ul><ul><li>Install minimum then add. This can be automated using Minimum Installation guidelines. </li></ul></ul><ul><ul><li>Use the CIS Security Benchmark tools for your OS. </li></ul></ul>
  49. 49. G3: Non-existent, Incomplete Backups <ul><li>Recovery from an incidents requires up-to-date backup. </li></ul><ul><ul><li>Have you verified the backups actually work? </li></ul></ul><ul><ul><li>Offsite? 9/11 proved this. </li></ul></ul><ul><ul><li>How long does it take to RESTORE the data? What is the data xfer rate of your tape drives? </li></ul></ul><ul><li>Systems Impacted </li></ul><ul><ul><li>Any critical system </li></ul></ul>
  50. 50. G3: Non-existent, Incomplete Backups <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Check backup procedures. </li></ul></ul><ul><ul><li>Is the backup interval acceptable? </li></ul></ul><ul><ul><li>Are the systems being backup up according to procedure? </li></ul></ul><ul><ul><li>Off site storage? Procedures? </li></ul></ul><ul><ul><li>Restoration tested and verified? </li></ul></ul>
  51. 51. G3: Non-existent, Incomplete Backups <ul><li>How to Protect </li></ul><ul><ul><li>Daily backups </li></ul></ul><ul><ul><li>Monthly backups should be verified. </li></ul></ul>
  52. 52. G4: Large Number of Open Ports <ul><li>The more ports open, the more ways to get into the system. </li></ul><ul><li>Related to Default OS install vulnerability. </li></ul><ul><li>Systems Impacted </li></ul><ul><ul><li>Any system that used a vendor default installation program. </li></ul></ul>
  53. 53. G4: Large Number of Open Ports <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Use netstat command to list open ports. </li></ul></ul><ul><ul><li>Run a port scanner (nmap, Nessus) against your system. </li></ul></ul><ul><ul><li>Match open ports to legitimate services provided by the machine. If no match, then it’s an unnecessary service. </li></ul></ul>
  54. 54. G4: Large Number of Open Ports <ul><li>How to protect myself </li></ul><ul><ul><li>Unix: modify /etc/inetd.conf </li></ul></ul><ul><ul><li>Windows NT/2000 : use fport from www. foundstone .com to list the ports. </li></ul></ul><ul><ul><li>Windows XP: netstat –o command </li></ul></ul>
  55. 55. G5: Incorrect Ingress/Egress Router Filters <ul><li>Description </li></ul><ul><ul><li>IP spoofing hides the attacker. </li></ul></ul><ul><ul><li>Numerous attacks (Smurf, mail forgery) use this technique. </li></ul></ul><ul><li>Systems Impacted </li></ul><ul><ul><li>Unix, Windows, Mac, Routers </li></ul></ul>
  56. 56. G5: Incorrect Ingress/Egress Router Filters <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Send a spoofed packet and see if it’s blocked and logged. </li></ul></ul><ul><li>. </li></ul>
  57. 57. G5: Incorrect Ingress/Egress Router Filters <ul><li>How to Protect </li></ul><ul><ul><li>Incoming packets must not have SRC of your internal network. It must have a DST of your internal network. </li></ul></ul><ul><ul><li>Outbound packets must have a SRC of your internal network. Outbound packets must not have a DST of your internal net. </li></ul></ul><ul><ul><li>No packet should have SRC/DST of a private address or address listed in RFC1918.. </li></ul></ul><ul><ul><li>Block any source routed packet with IP options set </li></ul></ul>
  58. 58. G6: Non-existent, Incomplete Logging <ul><li>Description </li></ul><ul><ul><li>You can’t detect an attack if you don’t know what’s going on your network. </li></ul></ul><ul><ul><li>Logs are business records! </li></ul></ul><ul><li>Systems Impacted </li></ul><ul><ul><li>All system and network devices </li></ul></ul>
  59. 59. G6: Non-existent, Incomplete Logging <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Are there logs for the critical assets? </li></ul></ul><ul><li>How to Protect? </li></ul><ul><ul><li>Set up local and central logging. </li></ul></ul><ul><ul><li>Save on CD or other Read-Only device. </li></ul></ul>
  60. 60. W1: Unicode – Web Server Traversal <ul><li>Description </li></ul><ul><ul><li>Unicode provides a unique number for every character regardless of the the platform, program or language. </li></ul></ul><ul><ul><li>You can send IIS a carefully constructed URL with an invalid Unicode sequence that will let an attacker see any file anywhere on the system. </li></ul></ul><ul><ul><li>You can run programs as well. </li></ul></ul>
  61. 61. W1: Unicode – Web Server Traversal <ul><li>Systems Impacted </li></ul><ul><ul><li>Windows NT 4.0 with IIS 4.0 </li></ul></ul><ul><ul><li>Windows 2000 server with IIS 5.0 with no SP2 </li></ul></ul><ul><ul><li>CVE-2000-0884 </li></ul></ul>
  62. 62. W1: Unicode – Web Server Traversal <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Unpatched version of IIS? Yes! </li></ul></ul><ul><ul><li>Did you install MS00-057, MS00-078, MS00-086, MS00-026, MS00-044, SP2? Yes, then ok. </li></ul></ul>
  63. 63. W1: Unicode – Web Server Traversal <ul><li>Enter: http://victim/scripts/..%c0% af ../ winnt /system32/ cmd .exe?/c+dir+c:</li></ul><ul><ul><li>If you removed scripts dir, then it’ll fail. Replace scripts with whatever you named your script directory. </li></ul></ul>
  64. 64. W1: Unicode – Web Server Traversal <ul><li>How to Protect </li></ul><ul><ul><li>Install latest Microsoft patches. See http://www.microsoft.com/technet/security/bulletin/MS00-78.asp </li></ul></ul><ul><ul><li>Install IIS lockdown tool if you want. </li></ul></ul><ul><ul><li>Don’t use IIS for critical functions, IMHO. </li></ul></ul>
  65. 65. W2: ISAPI Extension Buffer Overflows <ul><li>Description </li></ul><ul><ul><li>Several ISAPI extensions are installed by default when you install IIS. This allows developers to extend IIS by using DLLs. </li></ul></ul><ul><ul><li>Several DLLs, idq.dll, have errors that allow buffer overflow attacks. </li></ul></ul><ul><ul><li>This lets an attacker take full control of your IIS server. </li></ul></ul>
  66. 66. W2: ISAPI Extension Buffer Overflows <ul><li>Systems Impacted </li></ul><ul><ul><li>Windows 2000 running Index Server 2.0, Indexing Service </li></ul></ul><ul><ul><li>Windows 2000 server, Adv. Server, Server Data Center Edition, Professional </li></ul></ul>
  67. 67. W2: ISAPI Extension Buffer Overflows <ul><li>Am I vulnerable? </li></ul><ul><ul><li>SP2 installed? No, then you are. </li></ul></ul><ul><ul><li>Installed MS01-023, MS01-033, MS01-044, MS01-033, MS01-044, NT4.0 Security Roll-up Package? Yes, then ok. </li></ul></ul><ul><li>How to Fix </li></ul><ul><ul><li>Install latest patches from Microsoft. </li></ul></ul><ul><ul><li>Unmap unnecessary ISAPI extensions </li></ul></ul>
  68. 68. W5: Null Session Connections <ul><li>Description </li></ul><ul><ul><li>Null Session (anonymous login) lets you get info over the net about shares, etc. When 1 machine needs something from another, it uses the local SYSTEM (LocalSystem, W2K) account to open a null session to the remote system. Hackers can use Null logins to gain access to SYSTEM. </li></ul></ul><ul><ul><li>This has no password. </li></ul></ul>
  69. 69. W5: Null Session Connections <ul><li>Systems Impacted </li></ul><ul><ul><li>Windows NT 4.0, Windows 2000 </li></ul></ul><ul><li>Am I vulnerable? </li></ul><ul><ul><li>Go to http:// grc .com and click on the ShieldsUP link to see your system’s SMB exposure. </li></ul></ul>
  70. 70. W5: Null Session Connections <ul><li>How to Protect </li></ul><ul><ul><li>Needed for Domain Controllers </li></ul></ul><ul><ul><li>Block TCP/UDP 139, 445 on the network </li></ul></ul><ul><ul><li>Never allow Internet users to access any internal DC. </li></ul></ul>
  71. 71. W6: Weak Hashing in SAM <ul><li>Description </li></ul><ul><ul><li>LAN Manager passwords have very weak encryption. </li></ul></ul><ul><ul><li>LM passwords are truncated to 14 characters, padded with spaces to 14 characters, converted to all Upper case, split into 2 seven character pieces. </li></ul></ul><ul><ul><li>Crackers only have to do 2 upper case seven characters passwords. </li></ul></ul>
  72. 72. W6: Weak Hashing in SAM <ul><li>Systems Impacted </li></ul><ul><ul><li>Windows NT, Windows 2000 </li></ul></ul><ul><li>Am I vulnerable? </li></ul><ul><ul><li>Running default installation of NT or W2K? Yes because LM is created by default. </li></ul></ul>
  73. 73. W6: Weak Hashing in SAM <ul><li>How to Protect? </li></ul><ul><ul><li>Disable LAN Manager </li></ul></ul><ul><ul><li>Use NTLMv2 (version 2 LM) </li></ul></ul><ul><ul><li>Read Technet article “ How to Disable LM Authentication on Windows NT [Q147706] </li></ul></ul>
  74. 74. U4: R Commands <ul><li>Description </li></ul><ul><ul><li>If a user logins from a trusted system, then no password is needed to gain access to your system. </li></ul></ul><ul><ul><li>rlogin, rsh, rcp </li></ul></ul><ul><ul><li>Used by Network Appliance vendors with no concept of security. </li></ul></ul><ul><li>Systems Impacted </li></ul><ul><ul><li>Any Unix/Linux system </li></ul></ul>
  75. 75. U4: R Commands <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Look for .rhosts, /etc/hosts.equiv files. If there, then yes. </li></ul></ul><ul><li>How to Protect </li></ul><ul><ul><li>Disable r-command in /etc/inetd.conf. </li></ul></ul><ul><ul><li>Fire any one who wants to use it for they have no concept of security. </li></ul></ul>
  76. 76. U5: LPD <ul><li>Description </li></ul><ul><ul><li>The in.lpd program provides local printer services for Unix users. </li></ul></ul><ul><ul><li>It listens on port 515 for incoming requests but has a buffer overflow vulnerability allowing root access. </li></ul></ul><ul><li>Systems Impacted </li></ul><ul><ul><li>Solaris 2.6-8 </li></ul></ul><ul><ul><li>Linux </li></ul></ul>
  77. 77. U5:LPD <ul><li>Am I vulnerable? </li></ul><ul><ul><li>Are you running unpatched version of lpd? Yes, then you are. </li></ul></ul><ul><li>How to Protect </li></ul><ul><ul><li>Install latest Solaris or Linux patches. </li></ul></ul><ul><ul><li>Disable print service in /etc/inetd.conf </li></ul></ul><ul><ul><li>Block access to port 515 </li></ul></ul><ul><ul><li>Install TCP Wrappers, Portsentry </li></ul></ul>
  78. 78. Common Vulnerable Ports <ul><li>Common ports probed/attacked </li></ul><ul><li>Block or log all access to these ports as necessary. </li></ul><ul><li>Login services </li></ul><ul><ul><li>telnet: 23/tcp FTP: 21/tcp NetBIOS: 139/tcp </li></ul></ul><ul><ul><li>Ssh: 22/tcp r-commands: 512-514/tcp </li></ul></ul><ul><li>RPC/NFS </li></ul><ul><ul><li>Portmap/rpcbind: 111/tcp/udp </li></ul></ul><ul><ul><li>NFS: 2049/tcp/udp lockd: 4045/tcp/udp </li></ul></ul>
  79. 79. Common Vulnerable Ports <ul><li>NetBIOS: 135/tcp/udp, 137/udp, 138/udp, 139/tcp, 445/tcp/udp </li></ul><ul><li>X-Windows: 6000-6255/tcp </li></ul><ul><li>DNS: 53/udp, LDAP: 389/tcp/udp </li></ul><ul><li>Mail </li></ul><ul><ul><li>SMTP: 25/tcp POP: 109/tcp, 110/tcp </li></ul></ul><ul><ul><li>IMAP: 143/tcp </li></ul></ul><ul><li>WWW </li></ul><ul><ul><li>HTTP: 80/’tcp SSL:443/tcp </li></ul></ul>
  80. 80. Common Vulnerable Ports <ul><li>Small Services </li></ul><ul><ul><li>Ports < 20/tcp/udp </li></ul></ul><ul><ul><li>Time: 37/tcp/udp </li></ul></ul><ul><li>Miscellaneous </li></ul><ul><ul><li>TFTP: 69/udp finger: 79/tcp NNTP: 119/tcp </li></ul></ul><ul><ul><li>NTP: 123/tcp LPD: 515/tcp syslog: 514/udp </li></ul></ul><ul><ul><li>SNMP: 161/tcp/udp, 162/tcp/udp </li></ul></ul><ul><ul><li>BGP: 179/tcp SOCKS: 1080/tcp </li></ul></ul><ul><li>ICMP: </li></ul><ul><ul><li>Block incoming echo requests, outgoing echo reply, time exceeded, destination unreachable. This breaks ping. </li></ul></ul>
  81. 81. Summary <ul><li>You won’t eliminate all of your exposure by closing these 20 holes. Constant vigilance and awareness is the best defense. </li></ul><ul><li>The consequences of failure could drive your company out of business. </li></ul><ul><li>There’ll be another top 20 items to inspect in the future but at least we got rid of these items. </li></ul>
  82. 82. References <ul><li>The complete Top 20 document can be found in the appendix. </li></ul><ul><li>Some WWW sites to visit: </li></ul><ul><ul><li>http://security.vt.edu </li></ul></ul><ul><ul><li>www.sans.org </li></ul></ul><ul><ul><li>www.cert.org </li></ul></ul><ul><ul><li>www. nipc . gov </li></ul></ul><ul><ul><li>www. securityfocus .com </li></ul></ul><ul><ul><li>Packetstormsecurity.org </li></ul></ul><ul><ul><li>www.cornell.edu/CPL </li></ul></ul>

Notas do Editor