Network Security and  Hacking Techniques DAY-4
Firewalls We are here Visible  IP Address Internal Network PC Servers Linux and windows Host Application Servers Like IDS,Sniffers
What this paper covers? Why you need a firewall? What is firewall? How does a network firewall interact with OSI and TCP/IP Network models? Different types of firewall. Different firewall architectures. What kind of firewall is best for what infrastructure.
Introduction Benefits of Internet Better Communication Remote Access Immense source of information Boosting the efficiency of buisnesses Network security a major concern.
Why you need a firewall? What happens when you connect to the Internet? Your network becomes part of Internet. Possibility of attack by thieves and vandals. How do you protect confidential information from those who do not explicitly need to access it? How do you protect your network and its resources from malicious users and accidents that originate outside of your network?
Types of Attacks Network Packet sniffers IP Spoofing Password Attacks Distribution of sensitive information to external resources. Man-in-the-middle attacks Denial of Service Attacks Application layer attacks
What is Firewall?
Computer with firewall software
Basic Purpose of a Firewall It blocks incoming data that might contain a hacker attack. It hides information about the network by making it seem that all outgoing traffic originates from the firewall rather than the network. This is called Network Address Translation (NAT). It screens outgoing traffic to limit Internet use and/or access to remote sites.
Other Features of Firewall Content Filtering Virtual Private Networks Antivirus Protection Demilitarized Zone Firewalls
What can't a firewall do? They cannot provide complete security   T hey can do nothing to guard against insider threats.   Employee misconduct or carelessness cannot be controlled by firewalls.   Policies involving the use and misuse of passwords and user accounts must be strictly enforced.
How does a network firewall interact with OSI and TCP/IP Network models? Network Firewalls operate at different layers to use different criteria to restrict traffic. The lowest layer at which a firewall can work is layer three. The higher up in the stack layer at which an architecture examines packets, the greater the level of protection the architecture provides, since more information is available upon which to base decisions.
Types of Firewall Static Packet Filter Dynamic (stateful) packet filter Circuit level Gateway Application level Gateway Stateful Multilayer Inspection Firewall
Static Packet Filter
Static Packet Filter(contd.) Advantages Low cost – now included with many operating systems.  Disadvantages Filters are difficult to configure Static packet filter is not state aware .   Static packet filter does not   examine the complete packet.
Dynamic (stateful) packet filter State awareness Aware of the difference between a new and an established connection.   Advantage:  State awareness provides measurable performance benefit. Disadvantage:  Susceptible to IP spoofing.  Only provides for a low level of protection.
Circuit Level Gateway
Circuit Level Gateway(contd.) Advantages: Information passed to a remote computer through a circuit level gateway appears to have originated from the gateway. This is useful for hiding information about protected networks. Higher level of security than a static or dynamic (stateful) packet filter.  Disadvantage: A circuit level gateway cannot examine the data content of the packets it relays between a trusted network and an untrusted network. The potential exists to slip harmful packets through a circuit level gateway to a server behind the firewall.
Application Level Gateway
Application Level Gateway(contd.) Advantages: Filter application specific commands such as http: post and get, etc.  Inspect the complete packet.   Highest level of security.  Disadvantages: Vendors must keep up with new protocols. A common complaint of application level gateway users is lack of timely vendor support for new protocols. Must be written securely.
Stateful Multilayer Inspection Firewall
Stateful Multilayer Inspection Firewall(contd.) Advantages: Does not break the client server model. Offer a high level of security. Disadvantages: The failure to break the client server model creates an unacceptable  security risk as the hacker has a direct connection to the protected server. They are expensive.  Due to their complexity are potentially less secure than simpler types of firewalls if not administered by highly competent personnel.
Dual-Homed Host Architecture
Screened Host Architecture
Screened Subnet Architecture
Conclusion Keeping your software patched and running updated antivirus software are very important pieces, but having a firewall block incoming connections in the first place is definitely a wise idea as well. No one security solution will solve everything. The more lines of defense you have in place, the harder it is for hackers to get in and the safer you will be.
Firewalls Questions
What is Intrusion Detection Intrusion detection systems (IDSs) are  designed for  detecting, blocking and reporting unauthorized   activity in   computer networks. “ The life expectancy of a default installation of Linux Red Hat 6.2 server is estimated to be less than 72 hours.” “ The fastest compromise happened in 15 minutes (including scanning, probing and attacking)” “ Netbios scans affecting Windows computers were executed with the average of 17 per day” (source:  Honeynet Project )
Motivation for Intrusion Detection Unauthorized Use of Computer Systems Within Last   12 Months  (source Indian ISP’s Study)
Definitions Intrusion A set of actions aimed to compromise the security goals, namely Integrity, confidentiality, or availability, of a computing and networking resource Intrusion detection The process of identifying and responding to intrusion activities
Why Is Intrusion Detection Necessary? Prevent Detect React/ Survive Security principles: layered mechanisms
Different Types of IDSs Application based Host based  Network based.
Different Types of IDSs Application IDS Watch application logs Watch user actions Stop attacks targeted against an application Advantages Encrypted data can be read Problems Positioned too high in the attack chain (the attacks reach the application)
Different Types of IDSs Host IDS Watch kernel operations Watch network interface Stop illegal system operations Drop attack packets at network driver Advantages Encrypted data can be read Each host contributes to the detection process Problems Positioned too high in the attack chain (the attacks reach the network driver)
Different Types of IDSs Network IDS Watch network traffic Watch active services and servers Report and possibly stop network level attacks Advantages Attacks can be stopped early enough (before they reach the hosts or applications) Attack information from different subnets can be correlated Problems Encrypted data cannot be read Annoyances to normal traffic if for some reason normal traffic is dropped
An Adaptive IDS Architecture FW Quick and dirty Real-time  IDS Best-effort in real-time Backend  IDS Thorough and slow (scenario/trend) Dynamic Cost-sensitive Decision Making Detection Models
Different Ways to put IDS on network HUB
Different Ways to put IDS on network TAP
Circuit Diagrams of Taping 100Mb Ethernet Switch
Circuit Diagrams of Taping 1Gb Ethernet Switch
Circuit Diagrams of Taping 1Gb Ethernet Switch
SNORT Open Source Just about any platform(Including windows) Many plugins and external modules. Frequent rules updates.
Snort Plugins Databases mySQL Oracle Postgresql unixODBC Spade (Statistical Packet Anomaly Detection engine) FlexResp (Session response/closing) XML output TCP streams (stream single-byte reassembly)
Snort Add-ons Acid(Analysis Console for Intrusion Detection) - PHP Guardian – IPCHAINS rules modifier.(Girr – remover) SnortSnarf - HTML Snortlog – syslog “ Ruleset retreive” – automatic rules updater. Snorticus – central multi-sensor manager – shell LogSnorter – Syslog > snort SQL database information adder. + a few win32 bits and pieces.
Acid + Snort Acid is a Cert project. Pretty simple PHP3 to mySQL Quite customizable. Simple GUI for casual browsing.
Snort Web Access - ACID Main Console
Snort Web Access - ACID
Snort Web Access - ACID Securityfocus Whitehats CVE
Snort Web Access - ACID Rule details
Snort Web Access - ACID Incident details
Snort Web Access - ACID Incident details
END

Day4

  • 1.
    Network Security and Hacking Techniques DAY-4
  • 2.
    Firewalls We arehere Visible IP Address Internal Network PC Servers Linux and windows Host Application Servers Like IDS,Sniffers
  • 3.
    What this papercovers? Why you need a firewall? What is firewall? How does a network firewall interact with OSI and TCP/IP Network models? Different types of firewall. Different firewall architectures. What kind of firewall is best for what infrastructure.
  • 4.
    Introduction Benefits ofInternet Better Communication Remote Access Immense source of information Boosting the efficiency of buisnesses Network security a major concern.
  • 5.
    Why you needa firewall? What happens when you connect to the Internet? Your network becomes part of Internet. Possibility of attack by thieves and vandals. How do you protect confidential information from those who do not explicitly need to access it? How do you protect your network and its resources from malicious users and accidents that originate outside of your network?
  • 6.
    Types of AttacksNetwork Packet sniffers IP Spoofing Password Attacks Distribution of sensitive information to external resources. Man-in-the-middle attacks Denial of Service Attacks Application layer attacks
  • 7.
  • 8.
  • 9.
    Basic Purpose ofa Firewall It blocks incoming data that might contain a hacker attack. It hides information about the network by making it seem that all outgoing traffic originates from the firewall rather than the network. This is called Network Address Translation (NAT). It screens outgoing traffic to limit Internet use and/or access to remote sites.
  • 10.
    Other Features ofFirewall Content Filtering Virtual Private Networks Antivirus Protection Demilitarized Zone Firewalls
  • 11.
    What can't afirewall do? They cannot provide complete security T hey can do nothing to guard against insider threats. Employee misconduct or carelessness cannot be controlled by firewalls. Policies involving the use and misuse of passwords and user accounts must be strictly enforced.
  • 12.
    How does anetwork firewall interact with OSI and TCP/IP Network models? Network Firewalls operate at different layers to use different criteria to restrict traffic. The lowest layer at which a firewall can work is layer three. The higher up in the stack layer at which an architecture examines packets, the greater the level of protection the architecture provides, since more information is available upon which to base decisions.
  • 13.
    Types of FirewallStatic Packet Filter Dynamic (stateful) packet filter Circuit level Gateway Application level Gateway Stateful Multilayer Inspection Firewall
  • 14.
  • 15.
    Static Packet Filter(contd.)Advantages Low cost – now included with many operating systems. Disadvantages Filters are difficult to configure Static packet filter is not state aware . Static packet filter does not examine the complete packet.
  • 16.
    Dynamic (stateful) packetfilter State awareness Aware of the difference between a new and an established connection. Advantage: State awareness provides measurable performance benefit. Disadvantage: Susceptible to IP spoofing. Only provides for a low level of protection.
  • 17.
  • 18.
    Circuit Level Gateway(contd.)Advantages: Information passed to a remote computer through a circuit level gateway appears to have originated from the gateway. This is useful for hiding information about protected networks. Higher level of security than a static or dynamic (stateful) packet filter. Disadvantage: A circuit level gateway cannot examine the data content of the packets it relays between a trusted network and an untrusted network. The potential exists to slip harmful packets through a circuit level gateway to a server behind the firewall.
  • 19.
  • 20.
    Application Level Gateway(contd.)Advantages: Filter application specific commands such as http: post and get, etc. Inspect the complete packet. Highest level of security. Disadvantages: Vendors must keep up with new protocols. A common complaint of application level gateway users is lack of timely vendor support for new protocols. Must be written securely.
  • 21.
  • 22.
    Stateful Multilayer InspectionFirewall(contd.) Advantages: Does not break the client server model. Offer a high level of security. Disadvantages: The failure to break the client server model creates an unacceptable security risk as the hacker has a direct connection to the protected server. They are expensive. Due to their complexity are potentially less secure than simpler types of firewalls if not administered by highly competent personnel.
  • 23.
  • 24.
  • 25.
  • 26.
    Conclusion Keeping yoursoftware patched and running updated antivirus software are very important pieces, but having a firewall block incoming connections in the first place is definitely a wise idea as well. No one security solution will solve everything. The more lines of defense you have in place, the harder it is for hackers to get in and the safer you will be.
  • 27.
  • 28.
    What is IntrusionDetection Intrusion detection systems (IDSs) are designed for detecting, blocking and reporting unauthorized activity in computer networks. “ The life expectancy of a default installation of Linux Red Hat 6.2 server is estimated to be less than 72 hours.” “ The fastest compromise happened in 15 minutes (including scanning, probing and attacking)” “ Netbios scans affecting Windows computers were executed with the average of 17 per day” (source: Honeynet Project )
  • 29.
    Motivation for IntrusionDetection Unauthorized Use of Computer Systems Within Last 12 Months (source Indian ISP’s Study)
  • 30.
    Definitions Intrusion Aset of actions aimed to compromise the security goals, namely Integrity, confidentiality, or availability, of a computing and networking resource Intrusion detection The process of identifying and responding to intrusion activities
  • 31.
    Why Is IntrusionDetection Necessary? Prevent Detect React/ Survive Security principles: layered mechanisms
  • 32.
    Different Types ofIDSs Application based Host based Network based.
  • 33.
    Different Types ofIDSs Application IDS Watch application logs Watch user actions Stop attacks targeted against an application Advantages Encrypted data can be read Problems Positioned too high in the attack chain (the attacks reach the application)
  • 34.
    Different Types ofIDSs Host IDS Watch kernel operations Watch network interface Stop illegal system operations Drop attack packets at network driver Advantages Encrypted data can be read Each host contributes to the detection process Problems Positioned too high in the attack chain (the attacks reach the network driver)
  • 35.
    Different Types ofIDSs Network IDS Watch network traffic Watch active services and servers Report and possibly stop network level attacks Advantages Attacks can be stopped early enough (before they reach the hosts or applications) Attack information from different subnets can be correlated Problems Encrypted data cannot be read Annoyances to normal traffic if for some reason normal traffic is dropped
  • 36.
    An Adaptive IDSArchitecture FW Quick and dirty Real-time IDS Best-effort in real-time Backend IDS Thorough and slow (scenario/trend) Dynamic Cost-sensitive Decision Making Detection Models
  • 37.
    Different Ways toput IDS on network HUB
  • 38.
    Different Ways toput IDS on network TAP
  • 39.
    Circuit Diagrams ofTaping 100Mb Ethernet Switch
  • 40.
    Circuit Diagrams ofTaping 1Gb Ethernet Switch
  • 41.
    Circuit Diagrams ofTaping 1Gb Ethernet Switch
  • 42.
    SNORT Open SourceJust about any platform(Including windows) Many plugins and external modules. Frequent rules updates.
  • 43.
    Snort Plugins DatabasesmySQL Oracle Postgresql unixODBC Spade (Statistical Packet Anomaly Detection engine) FlexResp (Session response/closing) XML output TCP streams (stream single-byte reassembly)
  • 44.
    Snort Add-ons Acid(AnalysisConsole for Intrusion Detection) - PHP Guardian – IPCHAINS rules modifier.(Girr – remover) SnortSnarf - HTML Snortlog – syslog “ Ruleset retreive” – automatic rules updater. Snorticus – central multi-sensor manager – shell LogSnorter – Syslog > snort SQL database information adder. + a few win32 bits and pieces.
  • 45.
    Acid + SnortAcid is a Cert project. Pretty simple PHP3 to mySQL Quite customizable. Simple GUI for casual browsing.
  • 46.
    Snort Web Access- ACID Main Console
  • 47.
  • 48.
    Snort Web Access- ACID Securityfocus Whitehats CVE
  • 49.
    Snort Web Access- ACID Rule details
  • 50.
    Snort Web Access- ACID Incident details
  • 51.
    Snort Web Access- ACID Incident details
  • 52.