Spoofing, Explained
If you are reading this, you have probably seen "spoofing" in phishing alerts, firewall logs and network courses, and you want to know what it really means, why it is possible at all, and how the different kinds are stopped.
By the end you will be able to define spoofing, explain the one design weakness behind almost every kind, describe IP, email, caller ID, ARP, DHCP and GPS spoofing, tell spoofing from the attacks that use it (MITM, DoS and DDoS, DNS poisoning), and name the control that fixes each kind. It builds on Computer and Networking Basics, so read that first if "IP address", "MAC address" or "ARP" is new.
1. What spoofing is
NIST's glossary gives two short definitions (source):
- "An attempt to gain access to a system by posing as an authorized user." (CNSSI 4009-2022)
- "The deliberate inducement of a user or resource to take incorrect action." (NIST IR 8323r1)
and adds that impersonating, masquerading, piggybacking and mimicking are all forms of spoofing.
In plain words: spoofing is pretending to be someone or something you are not, by faking the identifier that the other side relies on. The identifier might be an IP address, a sender address, a phone number, a network name or a satellite signal.
The weakness behind almost all of it
Most of the protocols that run networks were designed to work, not to prove who is talking. They carry an identifier in the message and the receiver simply believes it. Two examples from the standards themselves:
- CISA notes, about UDP, that because it is connectionless, "an attacker can easily forge the IP packet datagram ... to include an arbitrary source IP address" (CISA alert TA14-017A).
- MITRE says of ARP: "The ARP protocol is stateless and does not require authentication" (MITRE ATT&CK T1557.002).
So the fix is never "detect the lie by looking at the identifier". It is to add proof: a cryptographic signature, a check against a trusted record, or a filter at the network edge that refuses claims that cannot be true.
Spoofing is a technique, not an end goal
Spoofing is usually a step in a larger attack:
| Spoofing is used to... | Attack | Post |
|---|---|---|
| Hide where flood traffic comes from, or bounce it off third parties | DoS and DDoS (reflection and amplification) | DoS vs DDoS |
| Sit between two parties | Man-in-the-middle | MITM |
| Redirect names to the wrong address | DNS poisoning | DNS Poisoning |
| Make a message look trusted | Phishing, business email compromise, vishing | Phishing, Vishing, Impersonation |
| Lure people onto a fake Wi-Fi network | Evil twin | Evil Twin |
2. The main kinds
IP address spoofing
Every IP packet has a source address. The network forwards the packet toward the destination; nothing in plain IP checks that the source is honest. A sender can therefore write any source address.
Why would an attacker do that?
- To hide. The CISA, FBI and MS-ISAC joint DDoS guide says attackers use IP spoofing to disguise the origin of an attack and make it harder to trace.
- To reflect and amplify. In a reflection attack the attacker sends small requests to a public server with the victim's address as the source. The server's much larger reply goes to the victim. RFC 4732 describes this: an attacker "can send traffic from the spoofed source address of the victim and cause larger responses to be returned to the victim."
- To impersonate in TCP. For a TCP connection the attacker also needs the right sequence numbers. RFC 6528 specifies how to generate initial sequence numbers "such that the chances of an off-path attacker guessing the sequence numbers in use by a target connection are reduced." That is why modern systems do not use predictable ones (see Handshakes).
The defence is at the edge of the network. BCP 38 (RFC 2827) describes ingress filtering: an ISP refuses packets from a customer whose source address does not belong to that customer. The RFC adds a second benefit: because the attacker must then use a valid, reachable address, the source can be traced. RFC 3704 extends this to networks with several ISP connections and describes several reverse-path-forwarding modes (strict, feasible-path and loose). CISA's amplification alert asks service providers to follow BCP 38 and BCP 84.
Email spoofing
Email's original design lets a sender type any address into the "From" line. Three standards add proof:
| Standard | What it checks | Limit |
|---|---|---|
| SPF (RFC 7208) | The domain owner publishes in DNS which servers may send mail for the domain. The receiver checks the SMTP MAIL FROM (and optionally the HELO name) against it |
Does not check the visible From address that people read. A message can pass SPF while showing a different sender |
| DKIM (RFC 6376) | The sending domain adds a cryptographic signature that receivers verify with a public key in DNS | Shows the signing domain took responsibility for the message. It does not by itself say that the visible From address is genuine |
| DMARC (RFC 9989, which replaced RFC 7489) | Requires that the visible From domain aligns with the domain authenticated by SPF or DKIM. The domain owner publishes a policy for failures: none (monitor), quarantine or reject |
Only protects the domain that publishes it. A look-alike domain (see Typosquatting) has its own, valid records |
The CISA, NSA, FBI and MS-ISAC phishing guidance recommends DMARC with the reject policy for mail a domain sends, so spoofed messages are refused before delivery (covered in Phishing). Two practical points:
- The display name ("Your Bank") is just text. SPF, DKIM and DMARC do not stop someone from choosing it.
- A spoofed email and a look-alike-domain email are different things. Authentication stops the first. The second needs a person (or a filter) to notice the domain.
Caller ID spoofing
A phone call's displayed number can be set by the caller's equipment or service. The FCC explains that the US Truth in Caller ID Act of 2009 did not ban all of it. Congress recognised legitimate uses, for example domestic violence shelters that alter caller ID for residents' safety, and made it unlawful "to cause any caller identification service to knowingly transmit misleading or inaccurate caller identification information with the intent to defraud, cause harm, or wrongfully obtain anything of value" (FCC 19-12).
In 2018 Congress extended these rules through the RAY BAUM'S Act, and an FCC fact sheet from July 2019 says the FCC's rules would then reach text messages and calls originating outside the US, not only ordinary domestic voice calls. Industry's technical answer is the SHAKEN/STIR framework, which, in the FCC's words, allows providers "to verify caller ID information by 'authenticating' the identity of the calling party" (FCC fact sheet). The user-level rule remains the one in Vishing: never trust a number on its own; hang up and call back on a number you already have.
ARP spoofing (ARP cache poisoning)
On a local network, devices use ARP to find the MAC address that goes with an IP address. RFC 826 describes no authentication, and a device updates a table entry when it sees new information. MITRE describes the abuse: the attacker either waits for ARP requests and answers with their own MAC address, or sends unrequested ("gratuitous") ARP replies announcing that they own an IP address. Traffic meant for that address, often the router's, then flows to the attacker, who can read it, change it or forward it, which is a man-in-the-middle attack.
Cisco's documentation for Dynamic ARP Inspection (DAI) describes the fix: the switch intercepts ARP packets on untrusted ports, checks each against a trusted database of valid IP-to-MAC bindings (the DHCP snooping binding database), and drops invalid ones. MITRE's other mitigations are static ARP entries for critical devices (impractical at scale), encrypting traffic with TLS, and detection tools.
DHCP spoofing
A malicious device answers a new device's DHCP request before the real server does, handing out its own gateway or DNS server settings. MITRE describes it as "spoofing Dynamic Host Configuration Protocol (DHCP) traffic and acting as a malicious DHCP server on the victim network". The mitigation it names is DHCP snooping on layer 2 switches, which stops DHCP spoofing and starvation attacks.
Wi-Fi network spoofing
An attacker copies the name of a trusted wireless network. See Evil Twin.
GPS and satellite-signal spoofing
NIST IR 8323 describes two classes of GNSS spoofing: measurement spoofing, which delays signals so receivers compute wrong arrival times, and data spoofing, which introduces false digital data. The aim is to corrupt position, navigation or timing data.
Website and domain spoofing
A fake site that looks like the real one, often on a look-alike address. See Typosquatting and Phishing.
3. Spoofing, impersonation and related words
| Term | Meaning |
|---|---|
| Spoofing | Faking a technical identifier (address, number, name, signal) |
| Impersonation | Pretending to be a trusted person or organization, by any means. Often uses spoofing to look convincing (see Impersonation) |
| Phishing | A deceptive message that asks you to act. Often sent from a spoofed or look-alike address |
| Masquerading | NIST uses it as a form of spoofing: acting as an authorized user |
| Piggybacking | NIST lists it as a form of spoofing. In the physical world it is tailgating |
| Man-in-the-middle | Sitting between two parties. Spoofing is one way to get there |
| Poisoning | Feeding false data into a cache or table (ARP cache, DNS cache) so that it keeps serving the lie |
4. How spoofing is noticed
| Signal | Where |
|---|---|
Authentication results that fail or are missing (spf=fail, dkim=fail, dmarc=fail) |
Email headers and DMARC reports |
| Packets arriving from the outside with inside source addresses, or from address ranges that should never appear on the internet | Edge firewall and router logs |
| Two MAC addresses claiming the same IP address, or an IP's MAC address changing unexpectedly | ARP tables, switch logs, DAI drops |
| A second DHCP server answering | DHCP snooping logs |
| A caller ID that does not match what the caller says, or an unexpected call-back request | Phone calls |
| Position or time jumps on a receiver that depend on GNSS | Navigation and timing equipment |
5. Defences at a glance
| Kind | The control that proves identity |
|---|---|
| IP | Ingress filtering (BCP 38, RFC 3704) at ISPs and network edges; unpredictable TCP initial sequence numbers (RFC 6528) |
SPF, DKIM and DMARC, with reject once reports show legitimate mail is covered |
|
| Caller ID | Call authentication (SHAKEN/STIR) at providers; call back on a known number |
| ARP | Dynamic ARP Inspection on switches; encrypt traffic so a stolen path is not enough |
| DHCP | DHCP snooping, with only trusted ports allowed to host servers |
| Wi-Fi | Authenticated networks that clients can verify (see Evil Twin) |
| General | Never let an identifier alone decide trust: use TLS, signatures, multi-factor authentication (Authentication vs. Authorization) and out-of-band verification |
6. Common mistakes
| Myth | The facts |
|---|---|
| "If the sender address looks right, it is genuine" | The visible From address is just text unless DMARC alignment confirms it. Even then, a look-alike domain can pass |
| "SPF alone stops email spoofing" | SPF checks the SMTP envelope identity, not the From address people read |
| "A spoofed IP address means the attacker is somewhere else on the internet" | It means the packet claims to come from there. ISPs that filter spoofed traffic make it traceable |
| "Caller ID spoofing is always illegal" | In the US, the law targets use with intent to defraud, cause harm or wrongfully obtain something of value |
| "ARP spoofing needs the internet" | It works only on the local network, which is why it is a risk on shared Wi-Fi and office LANs |
| "HTTPS makes spoofing harmless" | TLS protects what is sent over the connection. It does not stop someone spoofing the path or the sender |
| "Spoofing and phishing are the same thing" | Spoofing is the technique of faking an identifier. Phishing is the message that asks you to act |
Closing
Spoofing is faking the identifier that another system relies on. It is possible because many protocols carry an address, name or number and the receiver simply believes it. The fix in every case is to add proof or remove the opportunity: filter impossible source addresses at the network edge, authenticate email with SPF, DKIM and DMARC, validate ARP and DHCP on the switches, authenticate calls, and never let a claimed identity alone decide trust.
Keep these points:
- Spoofing = faking an identifier (IP, email, number, MAC, network name, signal).
- It works because the protocol does not prove identity.
- It is a means, not an end: it feeds DoS and DDoS, MITM, DNS poisoning and phishing.
- IP: ingress filtering. Email: SPF, DKIM and DMARC. ARP and DHCP: DAI and DHCP snooping. Phone: call authentication and call-backs.
- The visible name or number is not evidence.