Docsity

Network Security: Understanding Different Types of Attacks on TCP/IP Networks - Prof. Dan , Papers of Computer Science

Toggle sidebar
bg1
1
3/02/2000
T.Rex
Jim Livermore
Livermore Software Laboratories International
a division of Freemont Avenue Software, Inc.
2825 Wilcrest Suite 160
Houston, TX 77042
(281)-759-3274
Firewall Design Issues
2
Agenda
• I. Nature of Attacks
• II. Firewall Architectures
• III. Design Goals
• IV. Implementation Specifics
3
Nature of Attacks
• There are hundreds of methods to attack a
TCP/IP network
– methods range from simple to complex
– password sniffing
– application weaknesses
– trust based on IP address
– low level attacks
– application level attacks
–…
4
Nature of Attacks - 2
• Rapid introduction of new applications
and new functions create a fertile patch
for hackers.
– Applications developers are concentrating
on solving business problems.
– Insufficient consideration given to security.
• Just because you can do something doesn’t
mean you should
– Programmers continue to make errors that
have known solutions for > 25 years.
• New methods are being invented on a
regular basis.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Network Security: Understanding Different Types of Attacks on TCP/IP Networks - Prof. Dan and more Papers Computer Science in PDF only on Docsity!

1

3/02/

T.Rex

Jim LivermoreLivermore Software Laboratories International a division of Freemont Avenue Software, Inc.2825 Wilcrest Suite 160 Houston, TX 77042 (281)[email protected]

Firewall Design Issues

2

Agenda

• I. Nature of Attacks

• II. Firewall Architectures

• III. Design Goals

• IV. Implementation Specifics

Nature of Attacks

  • There are hundreds of methods to attack a

TCP/IP network

  • methods range from simple to complex
  • password sniffing
  • application weaknesses
  • trust based on IP address
  • low level attacks
  • application level attacks
  • …

Nature of Attacks - 2

  • Rapid introduction of new applications

and new functions create a fertile patch

for hackers.

  • Applications developers are concentrating on solving business problems.
  • Insufficient consideration given to security.
    • Just because you can do something doesn’t mean you should
  • Programmers continue to make errors that have known solutions for > 25 years.
  • New methods are being invented on a

regular basis.

5

Nature of Attacks - 3

  • Some applications are extremely

vulnerable and difficult to defend.

  • Including software from large

corporations

6

Nature of Attacks - 4

  • Automated attack tools are readily

available

  • lower skill required to mount an attack
  • Source code and executables available

on the Internet

  • Satan
  • BackOrifice
  • BlueButton
  • SYN Flood

Nature of Attacks - 5

• Nmap network scanner

  • Vanilla TCP connect scan
  • TCP SYN (half open) scan
  • TCP FIN (stealth) scan
  • TCP ftp bounce attack
  • SYN/FIN scanning using packet

fragments (bypass packet filters)

  • UDP raw ICMP port unreachable scan
  • ICMP (ping sweep)
  • TCP ping scanning
  • Remote OS Identification
  • Reverse-ident scanning
  • and more
  • www.insecure.org/nmap/index.html (^8)

Nature of Attacks - 6

  • Firewalking
    • firewall protocol scan determines open

ports

  • sending packets to every host behind a

packet filter generates an accurate map

of networks topology.

  • TTL ramping
  • scan TCP/UDP ports
  • Defenses
  • block ICMP TTL Exceeded messages from leaving private net
  • use proxy firewall
  • More info at:
  • www.es2.net/research/firewalk

13

Application Attacks-

• E-mail

  • standards violations
    • lines longer than 1000 bytes can overrun E- mail servers buffer with unpredictable results.
  • long filenames in MIME Attachments
    • buffer overruns in Netscape Communicator & MS Outlook
  • Hackers exploit weaknesses in mail

servers that allow passing of parameters

and execution of commands imbedded

in header information

  • Subject: something ; rm -r *
  • /usr/bin/mail < /etc/passwd

14

Application Attacks-

• E-mail (continued)

• MS Word Macros

  • Macros imbedded in MS Word

attachments

• embedded links to Web pages

  • Clicking on URL downloads page.
  • If URL contains a JAVA program it can

do anything the originator wishes

  • Flaw has been used to install Back

Orifice

  • More than 18,000,000 copies of Eudora

have this problem

  • How many have installed the patch?

15

Application Attacks-

• E-mail (continued)

• Denial of service attacks

  • fill up disk space
  • large files
  • large number of recipients

• SPAM

• Sendmail

  • large complex program with root

authority

  • dangerous combination
  • major source of security alerts

16

Application Attacks - 4

• FTP exploits

  • Complex state machine
    • requires proper setting and checking of state vectors
    • possible to execute commands prior to identification/authentication
    • Defense:
      • create dual loop state machine
  • FTP Bounce attack
    • FTP specification allow:
      • control connections to come from anywhere and
      • data connetions to go anywhere
    • Defense
      • Only allow data connections to same host that the control connections originate from.
      • Don’t allow control connections to originate from port 20

17

Application Attacks - 5

• FTP - continued

  • FTP client executing downloaded file
    • If file name begins with pipe sign ftp client will try to execute it.
    • Defense:
      • block download of files when first character of filename is “|”.
  • User ID and password travel in the clear
    • Hacker can sniff login packets and gain access
    • Defense
      • enforce strong user authentication for clients on un- trusted network

18

Application Attacks - 6

• Exploiting Dangerous functions

  • finger
  • showmount
  • RPC-info
  • rexec, rlogin, rsh, rwho
  • Netmeeting
  • tftp
  • NIS
    • password file access

Application Attacks - 7

  • NFS
    • Remotely Exploitable Buffer Overflow Vulnerability in mountd - attacker can gain administrator authority ( CA 98-12)
    • export passwd file
    • Fundamentally insecure and should not be made accessible form internet

Application Attacks - 8

• MS IE 4

  • Untrusted Scripted Paste
    • aka Cuartango vulnerability
  • malicious hacker can create a web site that,

when visited, is able to use script to read a

file on the user's system.

  • MS patch available (VB98-12)
  • Son of Curatango bypasses fix.
  • Can’t trust ActiveX, or JavaScripts

25

SPF - 2

• Advantages

  • Unlike static filters, holes are opened on a temporary basis - It is significantly harder for a hacker to penetrate
  • It is easy to add filters for new services
  • Relatively low overhead for limited number of rules

26

SPF -

• Disadvantages

  • Direct IP connectivity
    • hackers can exploit application weaknesses
    • ex. BO via UDP/
  • No user authentication
    • requires a proxy
  • Proxies on top of SPF exhibit very poor performance
  • Can support any service
    • double edged sword
    • many un-secure applications have been granted access through SPF
  • Trust still based on IP address
  • Overhead increases with additional rules
  • Not scalable with SMP
  • Not application aware

Application Proxy

• Application proxies maintain

separate connections with the client

and the server preventing direct IP

connectivity

Proxy -

• Advantages

  • Proxies are fundamentally more secure than filters
  • There is no direct connectivity between client and server
  • Security is based on authenticated user ID
  • Proxies analyze application data streams and commands within the data portion of the payload.
  • Application specific proxies can check for attacks that exploit application weaknesses - proxies can detect and stop attacks that get past SPF firewalls
  • Proxies keep comprehensive logs of all activity

29

Proxy - 3

• Disadvantages

  • Slower than packets filters
    • do more work
    • often not optimized for system
  • they do not support every type of connection
    • RPC, UDP, …
  • client awareness

30

Advanced Application

Proxy

• Advanced Application proxy

firewalls extend proxy capabilities

and overcome their disadvantages

  • generalized TCP, UDP, and RPC proxies
    • broadens application support
  • generic application level content filtering
  • sophisticated design can eliminate up to 90% of the systems overhead
  • Support SMP architecture
  • Support workload balancing across clusters of SMP firewalls
  • non-disruptive administrative changes as well as non-disruptive system upgrades
  • fault tolerant hardware/software architecture

Firewall Design

Considerations

• There is no perfect solution for

all problems

– all designs involve tradeoffs

  • security, performance, reliability,

availability, ease of administration,

ease of use

• Pick design goals

– Let goals dictate solution based

on ability of architecture to meet

goals

Primary Design Goals

• Provide highest level of security

possible

• Provide the highest level of

performance

  • scalable
  • parallelism

• Provide High Availability for

Mission Critical Applications

  • up to 99.999% availability
  • < 6 minutes of unscheduled outage/year!
  • Non-disruptive administrative changes
  • Non-disruptive upgrades
  • fault tolerant hardware/software

37

Architecture determines

Security & Intregity (2)

  • T.Rex is an advanced application proxy firewall
  • Proxies run without root privileges in chrooted directories - hardware and software errors can not be used to access or alter the TCB. - Errors are isolated to a single process - Use of multiple processes rather than threads isolates instances of the same function from each other.
  • Three levels error detection, reporting and recovery
    • extensive error checking and reporting in worker process
    • parent process simply monitors children and recovers from errors
    • Specialized system wide monitors that can detect errors in parent processes
  • Cross system monitoring with redundant systems

38

High Availability

  • Fault tolerant application proxies limit scope of a failure to a single transaction.
  • Dynamic function recovery
    • prevent process depletion
    • automatic process retirement to prevent memory leaks
  • Application proxies can be built in load balancing redundant configuration - complete hardware and software redundancy - cross system monitoring - dynamic take-over in event of failure
  • Allows deployment of systems with 99.999% availability - less than 6 minutes of unscheduled outage per year!

Immunity to low level

attacks

  • The only way to transmit data through the firewall is via a secured proxy - disable IP packet forwarding - data is read into a buffer then sent to the target system
  • Low level attacks depend on direct IP connectivity
  • Low level attacks are never seen by hosts protected

by an application proxy

Implementation Specifics

• SMTP

• FTP

• HTTP

• Reverse HTTP

• High Availability

• Reporting

41

Secure Mail Wrapper

  • Provide a secure SMTP interface
  • Separate receiving and sending programs
    • smwrap and smwrapd
    • store and forward
    • don’t forward mail until completely checked
  • Smwrap receives mail
    • runs as an unprivileged program
    • change root directory to hermes
      • rest of file system inaccessible
    • unable to access or modify the TCB

42

Smwrap - 2

  • Mail is checked for cracker signatures
    • long lines,
    • long names,
    • imbedded commands,
    • parameter passing
    • Bogus Helo
    • SMTP commands longer than 512 bytes
    • Excessive Mail Header Size > 32KB
    • Excessive number of recipients
    • Excessive number of “To:” lines in body
    • Use of VRFY & EXPN
    • Blocked Sender|Reciever
    • Unauthorized internal user

Smwrap - 3

  • Block unauthorized mail relay
  • SPAM blocking
  • Complete scrubbing of out-bound headers
    • translate internal names to external
    • From:, To:, Cc:

Smwrap - 4

• Support multiple domains

• Support multiple mail servers

• Simple administration

– @xyz.com @sys1.xyz.com

– @abc.com @sys2.abc.com

49

HTTP Proxy - 2

  • Access control
    • stealth listening
  • URL Content Filtering
    • integrated into proxy
    • improve user productivity
    • enforce organization policies
    • reduce legal exposures
    • improves performance
    • < 10 microseconds per decision
    • periodic list updates
    • multiple categories
    • exemption list
  • FTP controls

50

HTTP Proxy - 3

  • High Scalability
    • SMP support
    • distributed parallel processing
      • clustered SMP
  • Workload balancing
  • Dynamic non-disruptive system upgrades
  • Hierarchical cache distribution

Reverse HTTP

  • Webgate
    • protect one or more Web Servers from direct attack
    • high performance
    • workload balancing
      • round robin scheduling
      • hide server outages
    • centralized log management

High Availability

  • Fault tolerant design
    • everything made by man will fail
  • Redundant firewalls
    • hot load sharing firewalls
    • A monitors B and B monitors A
  • fwpulse
    • periodically examine siblings interfaces
    • if not responding enter PD mode
      • isolate error
      • avoid un-necessary takeovers

Reporting

  • Report programs produce 57 possible

reports

  • HTTP access log
    • large sites can get 1,000,000 hits per day
    • 200 MB of log data per day
    • logs contain IP address but meaningful reports require hostnames and domain names
    • 1 million DNS lookups could take > 24 hours!
  • Parallel DNS lookups
    • 1000 at once
    • cache lookups to avoid redundant lookups