IP Address Spoofing: Risks and Detection in 2026
Packet-level IP spoofing forges a source address in a packet header. Onboarding teams meet IP masking through a VPN, proxy or Tor. Our Device & IP Analysis reviews the observed connection and device for $0.03 per check.

Contents
In this guide
Jump to the part you need.
IP address spoofing forges the source address in a packet header. Network teams detect suspected forgery at the network edge. Onboarding teams use our Device & IP Analysis to review the observed connection and device for signs of IP masking. It costs $0.03 per completed check, is included in the $0.33 full ID check, and runs only in a verification session.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Question | Answer |
|---|---|
| Outcome | When collection succeeds, the decision contains one entry in ip_analyses[] per collection point, with observed country, ASN, VPN, proxy and Tor flags, a device fingerprint id, duplicate matches and a warnings array. Data-center and private-network detection is described separately, and DATACENTER_IP is a warning under LOCATION. |
| Method | We collect the observed IP and device fingerprint during the hosted session. Create the session with POST /v3/session/ and read ip_analyses[] on the decision. |
| Price | Device & IP Analysis costs $0.03 per completed check and is included in the $0.33 full ID check. |
| What you need | Didit account, a Didit API key for session creation, read:sessions as the documented privilege for decision retrieval, and a published workflow_id. vendor_data is optional and strongly recommended for duplicate detection. callback is optional; HTTP or HTTPS callbacks must match an allowed origin when the application has configured allowed domains. |
| Network edge vs hosted review | Network-edge ingress filtering can reject invalid packet sources where deployed. Inside hosted onboarding, we review masked connections and device evidence; we do not inspect forged packet headers. |
| Where results land | GET /v3/session/{sessionId}/decision/. A status.updated webhook includes a decision only on Approved, Declined, In Review or Abandoned; otherwise fetch the decision. |
| Main failure mode | An empty array can occur when fingerprinting is blocked. An absent or null field can mean the feature did not run. In all three cases, treat the IP and device evidence as unavailable. |
Start free in the sandbox at business.didit.me. No sales call needed. Developers can connect Didit to an AI assistant through the Didit MCP server. The Device & IP Analysis price line and plan details are on the Didit pricing page, and the product it belongs to is Didit User Verification. The technical reference is Device Fingerprinting and IP Risk API.
What IP address spoofing means
IP address spoofing forges the source address in a packet header. With IP masking, traffic passes through an intermediary, and the receiving service sees the intermediary’s IP address. An IP address is the numeric label a network uses to route packets: in packet-level spoofing, the sender rewrites the source address field so traffic looks like it left another machine, network or country.
The sender does not need access to the address it claims. The original IPv4 header has no field that proves the source address, so routers forward a modified packet toward its destination without asking who sent it. An off-path sender that forges a source IP address normally cannot complete the TCP three-way handshake because the server sends its reply to the forged address, as RFC 9293 describes for TCP. Network operators can also drop invalid sources at the edge with ingress filtering, the control described in RFC 2827.
Two different things are called spoofing in onboarding conversations. Packet-level spoofing forges the header. IP masking hides the real address by routing traffic through a VPN, a proxy, a Tor exit node or a cloud data center. In hosted onboarding we meet masking. We report the observed connection and device evidence, not the contents of a forged packet header.
What an IP spoofing attack looks like
An address spoofing attack can hide who is sending, make traffic look trusted, and point an investigation at somebody else. The patterns that matter in practice:
- Direct floods and reflection DDoS. In a direct flood, forged source addresses can obscure the sender. In a reflection attack, third-party services send replies to the victim because the requests carried the victim's address.
- Packet-level source checks and web access controls are different. Network-edge source validation can reject invalid sources where deployed. A VPN or proxy can present an allowed egress IP on a working web connection, so an IP allowlist is insufficient authentication. Add user authentication and session controls.
- Session and reset injection. Forged packets that look like a trusted peer can disturb an existing connection, though the reply path limits what an off-path sender can complete.
- Log pollution and blame shifting. Attack traffic in your logs carries an innocent third party's address, which is how innocent ranges end up on blocklists.
- Onboarding fraud. A stolen identity is submitted from a country the business accepts, while the person, device and document are somewhere else.
An intermediary can make an applicant appear to connect from an accepted country and weaken limits keyed only to the visible IP. Compare the connection location with document and device evidence, then review material mismatches. Masking does not defeat geolocation, rate limits and velocity rules categorically. It weakens controls keyed only to the visible IP, so the remaining signals have to carry the decision.
Advantages and disadvantages of IP spoofing
Packet-level spoofing and IP masking carry different attacker benefits and different defensive checks. The table separates them so a network team and a risk team can find their own control.
| Pattern | Attacker benefit | What detection can use |
|---|---|---|
| Packet-level source spoofing | Hides the origin in floods and can make traffic look like it came from a trusted range. | Reply paths fail for off-path senders. Ingress filtering at the network edge can reject invalid sources where deployed. Do not treat ASN, hop count, DNS or locale as proof of forgery. |
| IP masking with VPN, proxy, Tor or data center | Makes a working connection appear to come from an accepted country or network. | We flag VPN, proxy, Tor and data center use. Observed country and ASN are context for reviewing masked connections, with expected-IP and blocklist policy inputs. |
| IP allowlisting | A masked connection can use an allowed egress IP. | An IP allowlist is insufficient authentication. Pair it with user authentication, session controls and device evidence. |
| Onboarding location mismatch | The applicant appears in an accepted country while document and device point elsewhere. | Compare connection location with document and device evidence, then review material mismatches. |
| Device reuse | An applicant changes address to open another account. | Duplicate-device and recovered-device matching can flag device reuse after an IP address change. Device evidence is context for review, not proof that a packet source was forged. |
Detect IP masking and review spoofing signals: outcome and method
Outcome. Basic Device & IP Analysis runs automatically. When collection succeeds, the decision contains one entry in ip_analyses[] per collection point. We report the observed connection and device evidence: resolved country, region, city and ASN, VPN, proxy and Tor flags, a device fingerprint id, duplicate-device matches and a warnings array. Each returned report has a warnings array. IP and device warnings carry LOCATION in each warning object’s feature field. DATACENTER_IP is a risk value. We do not inspect a forged packet header. Network-edge ingress filtering is the control for packet-level source validation where deployed.
Recommended method. Avoid making a decision from the raw IP alone. The address a client reports is easy to change, and geolocation by itself produces false positives for corporate VPNs and mobile carriers. Expected-IP and blocklist checks are documented policy inputs. Combine the observed connection with the device fingerprint and declared identity, which we do inside one hosted session. Verification sessions include 200+ real-time fraud signals. 4,000+ companies use Didit.
How to detect suspected packet-level IP spoofing
Network operators should review source-validation drops and ingress flow records, compare source prefixes with those expected on the receiving interface, and investigate unexpected sources before attributing the traffic. RFC 2827 describes ingress filtering. The logs show which packets were dropped and which source prefixes appeared; they do not establish who sent the traffic or that a header was forged.
Prerequisites
- A Didit organization, a Didit API key for session creation, and
read:sessionsas the documented privilege for decision retrieval. Sandbox works and is free on every plan. - A published workflow (
workflow_id). Basic Device & IP Analysis runs automatically and needs no feature toggle for the basic signal set. vendor_datais optional and strongly recommended. Use a stable value per user for duplicate device detection.callbackis optional. If the application has configured allowed domains, an HTTP or HTTPS callback must match one of those origins, or session creation returns 400. Custom URL schemes are always accepted.- An endpoint that can receive
status.updatedwebhooks if you want the decision pushed instead of polled.

Steps
Optional: configure strict-mode rules after you have tested the basic signals. In the Business Console you can decline on VPN connections, send duplicate-device matches to review, and decline on a country mismatch with the document. The API reports signals; rules decide what happens to the session.
Create a session with
POST /v3/session/.workflow_idis required.vendor_dataandcallbackare optional; we recommend a stablevendor_datafor duplicate detection.curl -X POST 'https://verification.didit.me/v3/session/' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "user-123", "callback": "https://yourapp.com/post-kyc" }'Replace the workflow ID, API key and callback with your own values. If your application has configured allowed domains, an HTTP or HTTPS callback must match one of those origins, or creation returns 400.
Send the user to
session.url. We collect the observed IP and device fingerprint during the hosted session. There is no separate IP call to make.Fetch the decision when the session finishes.
curl 'https://verification.didit.me/v3/session/<SESSION_ID>/decision/' \ -H 'x-api-key: <API_KEY>'Replace the session ID and API key placeholders before running the command. A key without
read:sessionsreturns 403, an unknown session or one from another application returns 404, and an invalid key returns 401. Branch onsession_kindfirst:userfor KYC,businessfor KYB.Read
ip_analyses[]. When collection succeeds, there is one entry per IP and device collection point. Each entry carries resolved geo, ASN, VPN, proxy and Tor flags, device fingerprint id, duplicate matches and warnings. An empty array can occur when fingerprinting is blocked; an absent or null field can mean the feature did not run. Treat all three as unavailable evidence.Avoid making a decision from the raw IP alone. We emit IP and device warnings under
LOCATION, with risk codes includingVPN_DETECTED,PROXY_DETECTED,TOR_DETECTED,DATACENTER_IP,HIGH_RISK_COUNTRY,LOCATION_MISMATCH_WITH_DOCUMENT,DUPLICATED_DEVICE,POSSIBLE_DUPLICATED_DEVICE,IMPOSSIBLE_TRAVEL,DEVICE_FINGERPRINT_BLOCKLISTED,DEVICE_LINKED_TO_LIVENESS_ATTACKandDEVICE_MODEL_INCONSISTENT. Expected-IP and blocklist checks are documented policy inputs. The full catalogue is in the IP analysis warning catalogue.Handle the webhook if you prefer push. Subscribe to
status.updated. VerifyX-Signature-V2using sorted, Unicode-preserved canonical JSON and a constant-time comparison. Reject timestamps more than 300 seconds in either direction. Readdecision.ip_analyseswhen the envelope includes a decision, or fetch the decision with the documented GET endpoint. The contract is in the webhooks guide.
Expected output
Inspect ip_analyses[].status, ip_analyses[].warnings[].feature and ip_analyses[].warnings[].risk. The node_id identifies the workflow node that produced the report; it is not a session id. Each ip_analyses[].status is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. If a populated IP analysis report has no LOCATION warnings, it has no recorded warnings in that category. Use the session decision and your review policy to determine the outcome. If ip_analyses[] is empty, absent or null, treat it as unavailable evidence, not a clean result. The canonical schema is in the data models reference.

Failure cases and recovery
| What you see | Why | Recovery |
|---|---|---|
ip_analyses[] empty, absent or null | An empty array can occur when fingerprinting is blocked by a privacy extension or content blocker. An absent or null field can mean the feature did not run. | Treat the IP and device evidence as unavailable. Decide once in policy whether to fail closed or fall back to other signals, then apply that consistently. |
VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED | The observed connection is routed through an intermediary. | Review per your fraud policy; a corporate VPN can trigger an accurate VPN flag on a legitimate session. Add a liveness step or send to review. |
LOCATION_MISMATCH_WITH_DOCUMENT | The observed IP country does not match the document issuing country. | Compare device and document evidence, send to review, and ask for proof of address when the mismatch is material. |
DUPLICATED_DEVICE | The same device was enrolled before under a different vendor_data. | Send the duplicate-device match to review; merge or block after checking whether the earlier account is legitimate. |
| 403 on the decision call | The API key lacks read:sessions. | Issue a key with the privilege. |
| 400 on create | When the application has allowed domains, the HTTP or HTTPS callback is not on an allowed origin. | Add the origin, use a custom URL scheme, or omit the callback. |
status.updated without a decision | The envelope includes a decision only on Approved, Declined, In Review or Abandoned. | Fetch the decision with GET /v3/session/{sessionId}/decision/. |
Review examples
| Case | What you see | Review action |
|---|---|---|
| VPN alone | VPN_DETECTED with matching device and document evidence. | Check the corporate VPN context, then request another step or ask the user to reconnect without the VPN per policy. Do not decline on the flag alone. |
| Document-country mismatch with duplicate device | LOCATION_MISMATCH_WITH_DOCUMENT and DUPLICATED_DEVICE. | Send the duplicate-device match to review. Compare the document issuing country, device and earlier account, and request proof of address if the mismatch is material. |
| Unavailable device data | ip_analyses[] empty, absent or null. | An empty array can occur when fingerprinting is blocked by a content blocker. An absent or null field can mean the feature did not run. Treat the evidence as unavailable and follow your fail-closed or fallback policy. If you identify a content blocker, ask the user to retry without it. For an absent or null field, first check whether the feature ran in that session. |
Sandbox validation sequence
- Run a normal session and confirm a populated
ip_analyses[]on the decision. - Run a session with the fingerprint script blocked to test how you handle unavailable evidence.
- Subscribe to
status.updated, inspect a status webhook without a decision payload, then fetch the decision with the GET endpoint.
Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
workflow_id | In, required | Selects the published workflow, which fixes the steps and the data collected. |
vendor_data | In, optional and strongly recommended | Your stable user id, used to bind the session and to match duplicate devices across sessions. |
callback | In, optional and conditional | Where the hosted flow returns the user. HTTP or HTTPS callbacks must match an allowed origin when the application has configured allowed domains. |
session.url | Out | The hosted link the user opens; we collect fingerprint and IP there. |
status | Out | Session status, for example Approved, Declined or In Review. |
ip_analyses | Out | One entry per IP and device collection point when collection succeeds. An empty array can occur when fingerprinting is blocked; an absent or null field can mean the feature did not run. Treat all three as unavailable evidence. |
ip_analyses[].status | Out | The lifecycle status of each returned report: Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. |
ip_analyses[].warnings[] | Out | The LOCATION risk codes you review, with feature, risk and node_id. |
Paid steps and review boundaries
Billing is per completed check from prepaid credit, and you pay when a check finishes with a result. Device & IP Analysis is $0.03 per check and belongs to the $0.33 full ID check, so a normal KYC does not buy it as a separate line.
- Automatic, inside the check: geo, ASN, VPN, proxy and Tor flags, device fingerprint, duplicate device and recovered device matching. Data-center and private-network detection is described separately, and
DATACENTER_IPis a warning underLOCATION. - Strict-mode rules: Optional Business Console strict-mode rules include declining VPN connections, reviewing duplicate-device matches, and declining a country mismatch with the document.
- Team review policy: decides which cases get manual attention, and review capacity is your process.
We keep those boundaries separate because a signal is not a decision. A VPN flag, a location mismatch and unavailable device data all need a documented policy before code acts on them.

Worked cost example
A full ID check is $0.33 and breaks down as ID document verification $0.15 plus passive liveness $0.10 plus face match 1:1 $0.05 plus device and IP analysis $0.03: 0.15 + 0.10 + 0.05 + 0.03 = 0.33.
- 5,000 completed checks at list price: 5,000 x $0.33 = $1,650.00, of which the device and IP portion is 5,000 x $0.03 = $150.00.
- Growth usage charge before credits: 5,000 x $0.3168 = $1,584.00. Add the $99 monthly plan fee and subtract the $115 included credit: $1,584.00 + $99.00 - $115.00 = $1,568.00.
- Scale usage charge before credits: 5,000 x $0.297 = $1,485.00. Add the $299 monthly plan fee and subtract the $350 included credit: $1,485.00 + $299.00 - $350.00 = $1,434.00.
- The first Free organization created with an eligible work email for a company domain receives $10 in monthly credit. At $0.33 per check, that covers 30 whole checks: 30 x $0.33 = $9.90, leaving $0.10.
- Add AML screening at $0.20 and the bundle is 0.33 + 0.20 = 0.53 per check, so 5,000 x $0.53 = $2,650.00.
The example uses published USD unit prices, monthly plan fees and included credits. The totals assume 5,000 completed checks. This is before tax and other checks. Credits are dollars, not counts, so you can mix checks in the same balance.
Sources
- Didit User Verification product page
- Didit docs: Device Fingerprinting and IP Risk API
- Didit docs: IP analysis warning catalogue
- Didit docs: Data Models, the canonical schemas
- Didit docs: Create Session API
- Didit docs: Retrieve Session API
- Didit docs: Webhooks, signing and events
- Didit docs: Pricing and billing rules
- Didit pricing page and cost estimator, with pricing as JSON
- Didit site index for AI agents and full product facts
- RFC 2827: Network Ingress Filtering
- RFC 9293: Transmission Control Protocol
Next step: create a sandbox application at business.didit.me, run one session against your own workflow, and read ip_analyses[] before you write a rule. The sandbox is free on every plan and there is no sales call in the way.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What does address spoofing mean in one sentence?
IP address spoofing forges the source address in a packet header. With IP masking, traffic passes through an intermediary, and the receiving service sees the intermediary’s IP address.
What is an IP spoofing attack used for?
Packet-level IP spoofing can disguise the source of a flood or make packets appear to come from a trusted network. In onboarding fraud, applicants may instead use IP masking to make a working connection appear to come from an accepted country or network.
How do people spoof an IP address?
There are two routes, and only one is header spoofing. Packet-level IP spoofing forges the source address in a packet header. An off-path sender normally cannot complete the TCP three-way handshake because the server sends its reply to the forged address. IP masking uses an intermediary whose address the server sees. We report observed connection and device evidence during verification, and packet-level source validation belongs at the network edge.
What are the main advantages and disadvantages of IP spoofing?
For an attacker, packet-level spoofing can hide origin in floods, while masking can make a working connection appear to come from an accepted country. For defenders, packet-level forgery is constrained by reply paths and by ingress filtering where deployed, and masking is reviewed through intermediary flags, observed country and ASN context plus device and document evidence. Neither signal alone proves who the person is.
Am I at risk of anything if my IP address is spoofed?
Forged packets do not give an attacker access to your device. If a service attributes attack traffic to your address, you may see unsolicited replies or temporary blocks, and your address can appear in logs or blocklists. For a business, the exposure is the other side: a masked applicant can weaken location controls keyed only to the visible IP.
How does Didit handle a spoofed or masked IP address?
We report the observed connection and device evidence. Device & IP Analysis resolves country, region, city and ASN, flags VPN, proxy and Tor use, applies expected-IP and blocklist checks when configured, and matches device fingerprints across sessions. Data-center and private-network detection is described separately, and DATACENTER_IP is a warning under LOCATION. We do not claim to inspect a forged packet header; for packet-level spoofing, network-edge ingress filtering is the relevant control.
Is there a standalone Didit IP analysis API?
No. IP Analysis is session only: the Web or Mobile SDK collects the device fingerprint and the IP during the hosted flow, and there is no standalone IP analysis endpoint. Read the result from ip_analyses[] on GET /v3/session/{sessionId}/decision/. A status.updated webhook carries a decision only on Approved, Declined, In Review or Abandoned; otherwise fetch the decision.
Which risk codes does IP analysis emit?
IP and device warnings carry LOCATION in each warning object’s feature field, and documented risk codes include VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED, DATACENTER_IP, HIGH_RISK_COUNTRY, LOCATION_MISMATCH_WITH_DOCUMENT, DUPLICATED_DEVICE, POSSIBLE_DUPLICATED_DEVICE, IMPOSSIBLE_TRAVEL, DEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACK and DEVICE_MODEL_INCONSISTENT. LOCATION_MISMATCH_WITH_DOCUMENT means the observed IP country differs from the document’s issuing country.
What happens if a user blocks the fingerprint script?
An empty ip_analyses array can occur when fingerprinting is blocked by a privacy extension or content blocker. An absent or null ip_analyses field can mean the feature did not run. In all three cases, treat the IP and device evidence as unavailable, not as a clean result. If you identify a content blocker, ask the user to retry without it. For an absent or null field, first check whether the feature ran in that session.
How much does Didit Device & IP Analysis cost?
Device & IP Analysis is $0.03 per completed check and is included in the $0.33 full ID check, which also covers ID document verification $0.15, passive liveness $0.10 and face match 1:1 $0.05. You pay per completed check from prepaid credit. The first Free organization created with an eligible work email for a company domain receives $10 in monthly credit.
Can I automatically decline VPN or Tor users?
We document a Business Console strict-mode rule that can decline VPN connections. For Tor, use the documented TOR_DETECTED warning to apply your own fraud policy. A corporate VPN can trigger a legitimate warning, so review it alongside device and identity evidence.
Does IP analysis also run on KYB sessions?
ip_analyses is a shared feature array on KYC and KYB decisions. Basic Device & IP Analysis runs automatically on sessions, and when collection succeeds a KYB decision can carry the same entries. An empty array can occur when fingerprinting is blocked; an absent or null field can mean the feature did not run. Branch on session_kind before reading the rest of the decision.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


