Docsity

Firewall Design Issues and Attacks: Understanding the Threats and Defenses - Prof. Dan S. , Papers of Computer Science

Toggle sidebar
bg1
Firewall Design Issues
2/10/99
Jim Livermore
Livermore Software laboratories, Intl.
A division of Freemont Avenue Software, Inc.
2825 Wilcrest Suite 160
Houston, Tx 77042
713-974-3274
jim@lsli.com
Agenda
!! I. Nature of Attacks
!! II. Firewall Architectures
!! III. Design Goals
!! IV. Other Issues
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.
PJust 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

Partial preview of the text

Download Firewall Design Issues and Attacks: Understanding the Threats and Defenses - Prof. Dan S. and more Papers Computer Science in PDF only on Docsity!

Firewall Design Issues

Jim Livermore Livermore Software laboratories, Intl. A division of Freemont Avenue Software, Inc. 2825 Wilcrest Suite 160 Houston, Tx 77042 713-974- [email protected]

Agenda

!! I. Nature of Attacks

!! II. Firewall Architectures

!! III. Design Goals

!! IV. Other Issues

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.

P 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.

Nature of Attacks - 3

úSome applications are extremely

vulnerable and difficult to defend.

úncluding software from large

corporations

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

P P Satan

P P BackOrifice

P P BlueButton

P P 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.ht

ml

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 to

PP TTL ramping PP scan TCP/UDP ports

Defenses

PP block ICMP TTL Exceeded messages from leaving private net PP use proxy firewall More info at: PP www.es2.net/research/firewalk

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?

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

PP

Application Attacks -

!! FTP exploits

Complex state machine

PP requires proper setting and checking of state vectors PP possible to execute commands prior to identification/authentication PP Defense: NN create dual loop state machine

FTP Bounce attack

PP FTP specification allow: NN control connections to come from anywhere and NN data connetions to go anywhere PP Defense NN Only allow data connections to same host that the control connections originate from. NN Don’t allow control connections to originate from port 20

Application Attacks -

!! FTP - continued

!! FTP client executing downloaded

file

If file name begins with pipe sign ftp client will try to execute it. Defense: PP 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 PP enforce strong user authentication for clients on un-trusted network

Application Attacks -

!Exploiting Dangerous functions

finger

showmount

RPC-info

rexec, rlogin, rsh, rwho

Netmeeting

tftp

NIS

PP password file access

Application Attacks -

!!NFS

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

Application Attacks -

!! 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

!! MS patch available (VB98-12)

!! Son of Curatango bypasses fix.

!! Can’t trust ActiveX, or JavaScripts

Firewall Architectures

!! Packet Filters

!! Stateful Packet Filters

!! Application Proxy

!! Advanced Application Proxy

!! Hybreds

SPF -

!Disadvantages

Direct IP connectivity PP hackers can exploit application weaknesses PP ex. BO via UDP/ No user authentication PP requires a proxy Proxies on top of SPF exhibit very poor performance Can support any service PP double edged sword PP 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 dir

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 P P proxies can detect and stop attacks that get past SPF firewalls Proxies keep comprehensive logs of all activity

Proxy - 3

!Disadvantages

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

Advanced Application

Proxy

!! Advanced Application proxy

firewalls extend proxy

capabilities and overcome

their disadvantages

generalized TCP, UDP, and RPC proxies PP 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

P P 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

Design Goals - 2

!! Provide Cost effective

Solution

Reduce Administrative costs Reduce numbers of systems to manage

!! Reduce risk of security

breech due to human error

Deny all services except those which are explicitly permitted Make interfaces simple to understand do not provide risky options or defaults

!! Support an organizations policy don’t

impose one.

!! Accommodate new services

allowing application specific content inspection

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

Secure Mail Wrapper

!! Provide a secure SMTP interface

!! Smwrap runs as an unprivileged program stores mail in hermes directory only directory accessible by smwrap

!! Smwrapd runs every minute

!! mail is checked for cracker signatures long lines, long names, imbedded commands, parameters

!! SPAM blocking

!! Block unauthorized mail relay

!! Complete scrubbing of out-bound headers

translate internal names to external

Smwrap - 2

!!Support multiple domains

!!Support multiple mail

servers

!!Simple administration

@[email protected]

@abc.com @sys2.abc.com

HTTP Proxy

!! High performance HTTP proxy eliminate 90% of systems overhead pre-forking dynamic workload adjustment automatic error recovery automatic error prevention

!! Web caching

40 - 80% of data found in cache Significant reducing reduction in response time conserve link bandwidth automatic garbage collection automated storage management

!! Access control

stealth listening

HTTP Proxy - 2

!! 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

HTTP Proxy - 3

!! High Scalability SMP support distributed parallel processing

!! Workload balancing

!! Dynamic non-disruptive system upgrades

!! Hierarchical cache distribution