Manual Chapter :
Preventing Global DoS Sweep and Flood
Attacks
Applies To:
Show VersionsBIG-IP AFM
- 15.1.9, 15.1.8
Preventing Global DoS Sweep and Flood
Attacks
Overview: Preventing DoS sweep and flood attacks
A sweep attack is a network scanning technique that sweeps your network by sending packets from a single host to multiple destination. The packet responses are then used to determine responsive hosts. Typical attacks use ICMP to accomplish this.
The sweep vector tracks packets by source address. Packets from a specific
source that meet the defined single endpoint sweep criteria, and exceed the rate limit, are
dropped. You can also configure the sweep vector to automatically blacklist an IP address from
which the sweep attack originates.
The
sweep mechanism protects against a flood attack from a single source, whether that attack is to a
single destination host, or multiple hosts.
A
flood attack
is a an attack technique
that floods your network with packets of a certain type, in an attempt to overwhelm and prevent legitimate access the system. A
typical attack might flood the system with SYN packets without then sending corresponding ACK
responses. UDP flood attacks flood your network with a large amount of UDP packets, requiring the
system to verify applications and send responses. The flood vector tracks packets per destination address. Packets to a
specific destination that meet the defined Single Endpoint Flood criteria, and exceed the rate
limit, are dropped.
The BIG-IP system can detect such
attacks with a configurable detection threshold, and can rate limit packets from a source when
the detection threshold is reached.
You can configure DoS sweep and flood prevention to detect and prevent
floods and sweeps of ICMP, UDP, TCP SYN without ACK, or any IP packets that originate from a
single source address, according to the threshold setting. Both IPv4 and IPv6 are supported. The
sweep vector acts first, so a packet flood from a single source address to a single destination
address is handled by the sweep vector.
You can configure DoS sweep and flood prevention through DoS Protection
>Device Configuration > Network Security.
Detect and protect against single endpoint DoS flood attacks
With the DoS Protection Device Configuration screen settings, you can set detection
thresholds and rate limits for DoS flood attacks.
- On the Main tab, click.The DoS Device Protection screen opens.
- At the bottom of the screen, chooseNetwork.The screen displays the network attack vectors.
- ClickSingle Endpoint Flood.TheSingle Endpoint FloodProperties pane opens on the right side of the screen.
- On the Properties pane, forState, selectMitigate.
- From theDetection Threshold EPSlist, selectSpecifyorInfinite.
- UseSpecifyto set a value (in events per second) for the attack detection threshold. If packets of the specified types cross the threshold, an attack is logged and reported. The system continues to check every second, and registers an attack as long as the threshold is exceeded.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not logged or reported based on this threshold.
- From theMitigation Threshold EPSlist, selectSpecifyorInfinite.
- UseSpecifyto set a value (in events per second), which cannot be exceeded. If the number of events of this type exceeds the threshold, excess events are dropped until the rate no longer exceeds the threshold.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not rate-limited.
- In thePacket Typearea, select the packet types you want to detect for this attack type in theAvailablelist, and move them to theSelectedlist.
Now you have configured the system to provide protection against DoS flood attacks, and to
allow such attacks to be identified in system logs and reports.
Configure SNMP traps and logging to better track threats to your
system.
Detect and protect against DoS sweep attacks
With the DoS Protection Device Configuration screen settings, you can set detection
thresholds and rate limits for DoS sweep attacks, and automatically blacklist IP
addresses that you detect perpetrating such attacks.
- On the Main tab, click.The DoS Device Protection screen opens.
- At the bottom of the screen, chooseNetwork.The screen displays the network attack vectors.
- ClickSingle Endpoint Sweep.The Single Endpoint Sweep Properties pane opens on the right side of the screen.
- On the Properties pane, forState, selectMitigate.
- From theDetection Threshold EPSlist, selectSpecifyorInfinite.
- UseSpecifyto set a value (in events per second) for the attack detection threshold. If packets of the specified types cross the threshold, an attack is logged and reported. The system continues to check every second, and registers an attack as long as the threshold is exceeded.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not logged or reported based on this threshold.
- From theMitigation Threshold EPSlist, selectSpecifyorInfinite.
- UseSpecifyto set a value (in events per second), which cannot be exceeded. If the number of events of this type exceeds the threshold, excess events are dropped until the rate no longer exceeds the threshold.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not rate-limited.
- To automatically blacklist bad actor IP addresses, selectAdd Source Address to Category.For this to work, you need to assign an IP Intelligence policy to the appropriate context (device, virtual server, or route domain). For the device, assign a global policy:. For the virtual server or route domain, assign the IP Intelligence policy on the Security tab.
- From theCategory Namelist, select a black list category to apply to automatically blacklisted addresses.
- In theSustained Attack Detection Timefield, specify the duration in seconds after which the attacking endpoint is blacklisted. By default, the configuration adds an IP address to the blacklist after one minute (60 seconds).
- In theCategory Duration Timefield, specify the length of time in seconds that the address will remain on the blacklist. The default is14400seconds (4 hours).
- To allow IP source blacklist entries to be advertised to edge routers so they will null route their traffic, selectAllow External Advertisement.To advertise to edge routers, you must configure a Blacklist Publisher and Publisher Profile at.
- In thePacket Typearea, select the packet types you want to detect for this attack type in theAvailablelist, and move them to theSelectedlist.
Now you have configured the system to provide protection against DoS sweep attacks,
to allow such attacks to be identified in system logs and reports, and to automatically
add such attackers to a blacklist of your choice.
Configure SNMP traps and logging to better track threats to your system.
Detect and protect against UDP flood attacks
With the DoS Protection Device Configuration screen settings, you can set detection
thresholds and rate limits for UDP flood attacks.
- On the Main tab, click.The DoS Device Protection screen opens.
- At the bottom of the screen, chooseNetwork.The screen displays the network attack vectors.
- ClickUDP Flood.The UDP Flood Properties pane opens on the right side of the screen.
- On the Properties pane, forState, selectMitigate.
- ForThreshold Mode, selectFully Manual.
- From theDetection Threshold EPSlist, selectSpecifyorInfinite.
- UseSpecifyto set a value (in events per second) for the attack detection threshold. If packets of the specified types cross the threshold, an attack is logged and reported. The system continues to check every second, and registers an attack as long as the threshold is exceeded.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not logged or reported based on this threshold.
- From theDetection Threshold %list, selectSpecifyorInfinite.
- UseSpecifyto set a value (in percentage of traffic) for the attack detection threshold. If packets of the specified types cross the percentage threshold of 1-hour average, an attack is logged and reported. The system continues to check every second and registers an attack as long as the threshold is exceeded.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not logged or reported based on this threshold.
- From theMitigation Threshold EPSlist, selectSpecifyorInfinite.
- UseSpecifyto set a value (in events per second), which cannot be exceeded. If the number of events of this type exceeds the threshold, excess events are dropped until the rate no longer exceeds the threshold.
- UseInfiniteto set no value for the threshold. This specifies that this type of attack is not rate-limited.
- ClickSimulate Auto Thresholdto log a simulated attacked event that the system identifies as a DoS attack according to the automatic thresholds, though enforcing manual thresholds.This setting allows you to see the results of auto thresholds on the selected DoS vector without actually affecting traffic. The system displays the current computed thresholds for automatic thresholds for this vector. Automatic thresholds are computed and enforced only when you selectFully Automaticfor a vector.
- To detect IP address sources from which possible attacks originate, enableBad Actor Detection.Bad Actor Detection is not available for every vector.
- In thePer Source IP Detection Threshold EPSfield, specify the number of events of this type per second from one IP address that identifies the IP source as a bad actor, for purposes of attack detection and logging.
- In thePer Source IP Mitigation Threshold EPSfield, specify the number of events of this type per second from one IP address, above which rate limiting or leak limiting occurs.
- To automatically blacklist bad actor IP addresses, selectAdd Source Address to Category.For this to work, you need to assign an IP Intelligence policy to the appropriate context (device, virtual server, or route domain). For the device, assign a global policy:. For the virtual server or route domain, assign the IP Intelligence policy on the Security tab.
- From theCategory Namelist, select a black list category to apply to automatically blacklisted addresses.
- In theSustained Attack Detection Timefield, specify the duration in seconds after which the attacking endpoint is blacklisted. By default, the configuration adds an IP address to the blacklist after one minute (60 seconds).
- In theCategory Duration Timefield, specify the length of time in seconds that the address will remain on the blacklist. The default is14400seconds (4 hours).
- To allow IP source blacklist entries to be advertised to edge routers so they will null route their traffic, selectAllow External Advertisement.To advertise to edge routers, you must configure a Blacklist Publisher and Publisher Profile at.
- For automatic blacklisting, clickAttacked Destination Detection, and configure the additional settings as for Bad Actor Detection.
- From thePort List Typelist, selectInclude All PortsorExclude All Ports.AnIncludelist checks all the ports you specify in the Port List, using the specified threshold criteria, and ignores all others.AnExcludelist excludes all the ports you specify in the Port List from checking, using the specified threshold criteria, and checks all others. To check all UDP ports, specify an empty exclude list.
- In theUDP Port Listarea, type a port number to add to an exclude or include UDP port list.
- In theUDP Port Listarea, select the mode for each port number you want to add to an exclude or include UDP port list.
- Nonedoes not include or exclude the port.
- Source onlyincludes or excludes the source port.
- Destination onlyincludes or excludes the destination port.
- Both Source and Destinationincludes or excludes both the source and destination ports.
You have now configured the system to
provide customized protection against UDP flood attacks, and to allow such attacks to be
identified in system logs and reports.
Configure SNMP traps and logging to
better track threats to your system.