IP Fragment Attacks

The TCP/IP protocol suite, or more specifically IP, allows the fragmentation of packets. As discussed in the previous sections, IP fragmentation offset is used to keep track of the different parts of a datagram. The information or content in this field is used at the destination to reassemble the datagrams. All such fragments have the same Identification field value, and the fragmentation offset indicates the position of the current fragment in the context of the original packet.

Many access routers and firewalls do not perform packet reassembly. In normal operation, IP fragments do not overlap, but attackers can create artificially fragmented packets to mislead the routers or firewalls. Usually, these packets are small and almost impractical for end systems because of data and computational overhead.

Let's go into a little more detail. The ingeniously constructed second fragment of a packet can have an offset value that is less than the length of the data in the first fragment. Upon packet reassembly at the end station, the second fragment overrides several bytes of the first fragment. These malformed IP packets cause the operating system at the end station to function improperly or even to crash.

A good example of an IP fragmentation attack is the Ping of Death attack. The Ping of Death attack sends fragments that, when reassembled at the end station, create a larger packet than the maximum permissible length.

One of the uses of this attack is to get past intrusion detection system (IDS) sensors. The individual fragments do not match any known signature, but after the overlap addresses overwrite some data, the result is an attack that can be recognized. A decent IP filtering code and configuration are required at the access router and firewalls to be assured that these attacks are blocked. These devices need to enforce a minimum fragment offset for fragments that have nonzero offsets so that overlaps can be prevented.

Continue reading here: TCP Flags

Was this article helpful?

+2 -2

Readers' Questions

  • Alesha
    What is block fragmented ip packets?
    8 months ago
  • Block fragmented IP packets is a security setting used to prevent IP fragmentation attacks. It blocks incoming packets that have been split into multiple pieces, as malicious actors will sometimes use IP fragmentation to bypass authentication. This can especially be a problem for network devices that are relying on authentication for security.
    • jonatan rosendahl
      How to prevent ip fragmentation attack cisco?
      10 months ago
      1. Enable Cisco IOS Firewall and configure it to block all ICMP Fragmentation Needed and IP Fragments packets.
      2. Enable anti-spoofing features on all perimeter routers.
      3. Disable IP source routing.
      4. Ensure that all routers within the network are running the latest security patches.
      5. Configure Access Control Lists (ACLs) to limit malicious traffic.
      6. Monitor network traffic for any suspicious activity.
      7. Use Intrusion Detection Systems (IDS) and Intrusion Prevention Systems (IPS) to detect and block malicious activity.