Preventing and Responding to Incidents
Incident Management Steps
Section titled “Incident Management Steps”DetectionResponseMitigationReportingRecoveryRemediationLessons Learned
Denial-of-Service Attacks
Section titled “Denial-of-Service Attacks”- A
distributed reflective denial-of-service(DRDoS) attack is a variant of aDoS. It uses areflected approachto an attack.DRDoSdon’t attack the victim directly but instead manipulates traffic or a network service so that the attacks are reflected back to the victim from other sources.
SYN Flood Attack
Section titled “SYN Flood Attack”- The
SYN floodattack is a commonDoSattack. It disrupts the standardthree-way handshakeused byTransmission Control Protocol(TCP) to initiate communication sessions. - Normally, a client sends a
SYN(synchronize) packet to a server, the server responds with aSYN/ACK(synchronize/acknowledge) packet to the client, and the client then responds with anACK(acknowledge) packet back to the server. Thisthree-way handshakeestablishes a communication session that the two systems use fordata transferuntil thesessionis terminated with theFIN(finish) or theRST(reset) packet. - However, in a
SYN floodattack, the attackers send multipleSYNpackets but never complete the connection with anACK. - An attacker sends multiple
SYNpackets and the server will respond to each. For each of these requests, the server reservessystem resourcesto wait for theACKpacket. Servers often wait for theACKpacket for as long as3 minutesbefore aborting the attempted session, though this value can be adjusted. - Using
SYN cookiesis one method of blocking this attack. These small records consume very few system resources versus the typical resources set aside by a server upon the receipt of aSYNpacket from a client. When the server receives anACK, it checks theSYN cookiesand establishes a session. Firewallsoften include mechanisms to check forSYNattacks, as dointrusion detection and preventionsystems.- Another method of blocking this attack is to reduce the amount of time a server will wait for an
ACK. It is typically3 minutesby default, but in normal operations it rarely takes a legitimate system three minutes to send theACKpacket. By reducing the time,half-opensessions areflushedfrom the system’s memory more quickly.
TCP Reset Attack
Section titled “TCP Reset Attack”- Another type of attack that manipulates the
TCP sessionis theTCPreset attack. Sessionsare normally terminated with either theFIN(finish) or theRST(reset) packet. Attackers can spoof thesource IP addressin aRSTpacket anddisconnect active session. The two systems then need to reestablish thesession.- This is primarily a threat for systems that need
persistent sessionsto maintain data with other systems. When the session is reestablished, they need to re-create the data.
Smurf and Fraggle Attacks
Section titled “Smurf and Fraggle Attacks”SmurfandFraggleattacks are bothDoSattacks.- A
Smurfattack is another type offloodattack, but it floods the victim withInternet Control Message Protocol(ICMP)echo replypackets instead of withTCPSYNpackets. More specifically, it is aspoofed broadcast pingrequest using theIPaddress of the victim as thesource IP address. Smurfattacks take advantage of anamplifying network(also called aSmurf amplifier) by sending a directed broadcast through a router. All systems on theamplifying networkthen attack the victim (i.e., by replying with anecho replypackets). However, RFC 2644, released in 1999, changed the standard default for routers so that they do not forwarddirected broadcast traffic. When administrators correctly configure routers in compliance withRFC 2644, a network cannot be aamplifying network(i.e.,Smurf amplifier).Fraggleattacks are similar toSmurfattacks. However, instead of usingICMP, aFraggleattack usesUDPpackets overUDPport7(echoprotocol) and port19(character generatorprotocol).- The
Fraggleattack will broadcast aUDPpacket using the spoofed IP address of the victim. All systems on the network will then send traffic to the victim, just as withSmurfattacks. - A variant of
Fraggleattack is aUDP floodingattack usingrandom UDP ports.
Ping Flood
Section titled “Ping Flood”- A
ping floodattack floods a victim withping requests. This can be very effective when launched by bots within a botnet as aDDoSattack. - A common way that systems handle this today is by blocking
ICMPecho requestpackets. This blocks thepingtraffic but not allICMPtraffic. - Active
intrusion detection systemscan detect aping floodand modify the environment to blockICMPecho requestsduring the attack.
Legacy Attacks
Section titled “Legacy Attacks”Ping of Death: APing-of-Deathattack usesoversized pingpackets. Some OSs couldn’t handle them. In some cases, the systems crashed, and in other cases, the attack causedbuffer overflowerror.Teardrop: ATeardropattack fragments IP data packets, making them difficult or impossible to be put back together by the receiving system. This often caused systems to crash.LAND: In aLAND(local area network denial) attack, the attack sends spoofedSYNpackets to a victim using the victim’s IP address as both the source and destination IP address. A variant is aBananaattack, which redirects outgoing messages from a system back to the system, shutting down all external communication.
IDS Response
Section titled “IDS Response”-
Passive Response -
Active Response -
An IDS that uses an
active responseis sometimes referred to as anIPS. This is accurate in some situations. However, anIPSis placedinlinewith the traffic. If anactive IDSis placedinlinewith the traffic, it is anIPS. If it not placedinlinewith the traffic, it isn’t a trueIPSbecause it can only respond to the attack after it has detected an attack in progress.NIST SP 800-94recommends placing all activeIDSsin linewith the traffic so that they function asIPSs. -
Switches are often used as a preventive measure against rogue sniffers. If the IDS is connected to a normal port on the switch, it will capture only a small portion of the network traffic, which isn’t very useful. Instead, the switch can be configured to
mirrorall traffic to a specificport(commonly calledport mirroring) used by theIDS. OnCiscoswitches, the port used forport mirroringis referred to as aSwitched Port Analyzer(SPAN) port.
Intrusion Prevention Systems
Section titled “Intrusion Prevention Systems”Firewalls
Section titled “Firewalls”- Basic network firewalls filter traffic based on IP addresses, ports, and some protocols using protocol numbers.
Second-generation firewallsadd additional filtering capabilities. For example, anapplication-level gateway firewallfilters traffic based on specificapplication requirementsandcircuit-level gateway firewallsfilter traffic based on thecommunications circuit.Third-generation firewalls(also known asstateful inspection firewallsanddynamic packet filtering firewalls) filter traffic based on its state within a stream of traffic.- A
Next-generation firewall(NGFW) functions as aunified threat management(UTM) device and combines severalfiltering capabilities. It includes traditional functions of afirewallsuch aspacket filteringandstateful inspection. However, aNGFWis able to performpacket inspectiontechniques, allowing it to identify and blockmalicious traffic. It can filtermalwareusing definition files and/or whitelists and blacklists. It also includesintrusion detectionand/orintrusion preventioncapabilities.
Logging and Monitoring
Section titled “Logging and Monitoring”- Logs are often referred to as
audit logs, andloggingis often calledaudit logging. However, it is important to realize thatauditingis more than justlogging.Loggingwill recordevents, andauditingexamines or inspects an environment for compliance.
The Role of Monitoring
Section titled “The Role of Monitoring”Audit Trails
Section titled “Audit Trails”Audit trailsare records created when information abouteventsandoccurrencesis stored in one or moredatabasesorlog files. They provide a record of system activity and can reconstruct activity leading up to and duringsecurity events.Audit trailsallow security professionals to examine and trace events in forward or reverse order.
Automating Incident Response
Section titled “Automating Incident Response”Understanding SOAR
Section titled “Understanding SOAR”Security Orchestration, automation, and response(SOAR) allows security administrators to define incidents and the response, typically usingplaybooksandrunbooks.- A
playbookis a document or checklist that defines how to verify anincident. Additionally, it gives details on the response. - A
Runbookimplements theplaybookdata into anautomated tool.
Threat Intelligence
Section titled “Threat Intelligence”Kill Chain
Section titled “Kill Chain”ReconnaissanceWeaponizationDeliveryExploitationInstallationCommand and ControlActions on objectives