Shared IP, Singular Threat: Finding the Needle in the Cloud Haystack
A clean IP reputation from a major ESP means nothing. The real threat is hidden in the DMARC-aligned domain and its history.

An alert fires for a convincing credential phish. You pull the headers, check the source IP, and your heart sinks a little. It’s a pristine address from a massive, well-known block belonging to Amazon’s Simple Email Service. The IP has perfect reputation. Blocking it is not an option; you'd take down a firehose of legitimate mail for the thimbleful of malice.
This is the new reality for defenders. Threat actors have gleefully embraced the anonymity offered by enormous cloud providers and Email Service Providers (ESPs). They understand that IP-based reputation, the bedrock of email security for two decades, is crumbling under the weight of shared infrastructure. One IP address no longer represents one sender. It represents thousands.
But attackers can't hide everything. While they can borrow the IP reputation of a cloud giant, they can't easily fake the persistent, identity-baring signals baked into modern email authentication protocols. The trick is knowing where to look.
Why Your IP Blocklist Is Becoming Obsolete
ESPs like AWS SES, SendGrid, Mailgun, and even Microsoft's own Exchange Online build their business on economies of scale. They manage colossal pools of IPv4 addresses, dynamically assigning them to countless customers for sending mail. It's efficient and cost-effective. For a security analyst, it’s a nightmare.
When a threat actor signs up for a low-cost account on one of these platforms, their malicious emails are sent from the same IPs as newsletters from Fortune 500 companies, password resets from your bank, and shipping notifications from e-commerce sites. The IP address becomes a useless indicator. It's not just 'not bad'; it's actively good. Attempting to classify it as malicious is a fool's errand that leads to widespread false positives.
The operational stake here is huge. If your security stack's primary filter is IP reputation, you are effectively blind to a massive and growing vector for sophisticated phishing and Business Email Compromise (BEC). The signal has moved up the stack. You must follow.
DMARC Alignment: From Anonymous Actor to Named Entity
This is where we make our first forensic pivot. We stop looking at the transport layer (IP addresses) and start looking at the application layer identity signals codified in the email headers. Your best tool for this isn't some expensive threat feed; it’s DMARC, as defined in RFC 7489.
Most analysts think of DMARC as a policy mechanism—a way for domain owners to tell receivers to `reject` or `quarantine` mail that fails authentication. While true, its greatest forensic value lies in its concept of 'alignment'. DMARC demands that the domain used for authentication actually matches the domain the user sees in the `From:` header. This is the key that unlocks the sender's true identity.
SPF, DKIM, and the All-Important 'From:' Header
To grasp alignment, you need to understand what DMARC is checking. It looks at the results of two other standards: SPF (RFC 7208) and DKIM (RFC 6376). An SPF `pass` means the sending IP is authorized for the domain found in the SMTP `MAIL FROM` command (the 'envelope' sender), which is often a technical address an ESP uses for bounces (e.g., `bounces.sendgrid.net`). A DKIM `pass` means the message's cryptographic signature is valid for the domain listed in the DKIM signature's `d=` tag.
Crucially, a simple `pass` for either is not enough for DMARC. For DMARC to pass, the domain used in the passing SPF or DKIM check must *align* (match) the domain in the visible `From:` header. When an attacker sends from a shared ESP, the SPF check often passes and aligns with the ESP's domain, not the attacker's. The DKIM check might pass against the attacker's own domain. This mismatch is what DMARC is designed to catch.
Reading the Authentication-Results Header
All this theory becomes beautifully concrete inside the `Authentication-Results` header. This header, standardized by RFC 8601, is a log written by your mail gateway that summarizes the authentication checks. It's your Rosetta Stone.
Authentication-Results: mta.example.org; dkim=pass header.d=malicious-lookalike.com; spf=pass smtp.mailfrom=amazonses.com; dmarc=fail (p=REJECT sp=REJECT dis=REJECT) header.from=malicious-lookalike.com reason="SPF not aligned, DKIM not aligned"
Look closely at that example. SPF passed, because the sending IP is a valid AWS SES server for the `amazonses.com` envelope sender. DKIM also passed, because the attacker correctly signed the message with a key for their own domain, `malicious-lookalike.com`. But DMARC failed spectacularly. Why? Because neither `amazonses.com` (from SPF) nor `malicious-lookalike.com` (from DKIM, in this hypothetical strict alignment scenario) matched the `header.from` domain. DMARC tells you, plain as day, that there is a disconnect. We now have our first real lead: the domain `malicious-lookalike.com` is the entity trying to claim this identity.
Judge the Domain, Not the IP
With the DMARC-aligned domain identified, we make our second pivot. We completely ignore the pristine reputation of the AWS IP and focus all our investigative energy on the domain the attacker brought with them: `malicious-lookalike.com`. This is an indicator they own and control, making it far more durable and meaningful than a transient IP address.
The investigative workflow is now one of domain intelligence, not network intelligence. Your first stop is WHOIS. How old is the domain? A domain registered yesterday that is suddenly sending email is an immediate, high-confidence red flag. Attackers frequently use newly registered domains (NRDs) for their campaigns, burning them once they get blocked.
Next, query your threat intelligence sources for the domain's category and history. Has it been seen before? Does it show up on any industry blocklists? What is its categorization? Domains used for phishing often fall into 'uncategorized' or have attributes like 'low reputation' or 'parked'. A sender using a well-aged domain with a history of sending legitimate marketing mail (e.g., `promo.bigbrand.com`) presents a very different risk profile from `bigbrand-login.xyz`.
This shift in focus moves the investigation from a shared, ephemeral resource to a unique, persistent asset. The attacker can hop between dozens of shared IPs in minutes. They cannot so easily hop between domains, which represent a more significant investment of time and money.
Connecting Payloads by Following the Links
The `From:` domain is a powerful lead, but the investigation isn't over. The final pivot connects the sender identity to the malicious payload, which is almost always delivered via a URL in the email body. This is where we cross-reference our findings with URI blocklists (URIBLs).
Correlating Sender and Payload Domains
Extract all URLs from the message body and analyze their domains. Sometimes, the attackers are lazy and host the phishing page on the same domain used in the `From:` header (`login.malicious-lookalike.com`). This is an easy win.
More often, they use different but related domains. Perhaps the sending domain is `notifications-support.com` and the link domain is `secure-portal.info`. While they don't match, you can still find connections. Are they registered on the same day? Do they use the same, obscure registrar or nameserver? This type of analysis helps you cluster activity and identify the broader campaign infrastructure, moving beyond just triaging a single email.
The Red Herring of Body Hash Failures
During analysis, you might see a DKIM `fail` with a reason like `body hash did not verify`. This means something—often an intermediary mail transfer agent (MTA)—modified the email's body after it was signed, breaking the cryptographic checksum. This can happen legitimately when, for example, a mailing list adds a footer to every message. For phishing analysis, it's often a distraction. A broken body hash doesn't tell you *who* the sender is, only that the message integrity is compromised. While a failure in an ARC chain (Authenticated Received Chain, RFC 8617) can point to an illegitimate forwarder, your primary focus should remain on the DMARC-aligned domain, which is a far more reliable indicator of responsibility.
Case Study: Unmasking a Phish from a Microsoft 365 IP
Let's put this process into action. An analyst is investigating a phish impersonating the company's CFO, asking for an urgent wire transfer. Triage begins.
The `Received:` headers show the message originated from an IP in Microsoft's `protection.outlook.com` network. Traditional IP reputation tools show it as clean, globally trusted. This is a dead end.
The analyst pivots to the `Authentication-Results` header. It reads: `dkim=pass header.d=cfo-authdesk.com; spf=pass smtp.mailfrom=some-compromised-tenant.onmicrosoft.com; dmarc=fail (p=REJECT) header.from=cfo-authdesk.com`.
This is the 'aha!' moment. The SPF `pass` is for a random Microsoft 365 tenant the attacker likely compromised or created for relaying mail. It's noise. The DKIM `pass` is for `cfo-authdesk.com`, and DMARC screams `fail` because these domains don't align with the Header From. The true actor is the owner of `cfo-authdesk.com`.
A quick WHOIS lookup on `cfo-authdesk.com` reveals it was registered 12 hours ago via a privacy-protecting registrar. Threat intelligence confirms it has zero history and is categorized as a newly registered domain.
The attacker used a trusted cloud provider's IP as a delivery vehicle but couldn't resist signing the mail with their own malicious domain to improve inbox placement with less sophisticated filters. By doing so, they gave away the game. The DMARC failure was not just a policy violation; it was a signed confession.
The takeaway
Stop treating shared IP addresses from major ESPs as a primary indicator of trust. They are, at best, neutral background noise. The reputation battle has moved from the network layer to the domain layer. Your forensic process must evolve with it.
The pivot is everything: from the anonymous IP, to the DMARC-aligned `From:` domain, to the payload URLs in the body. By following these identity-based signals that attackers cannot easily fake, you de-anonymize threats that would otherwise be lost in the noise of the cloud. Platforms like MailSleuth.AI can automate this correlation, but every analyst must understand the principles. The most dangerous threats are those hiding in plain sight, and DMARC is the flashlight you need to expose them.
We dissect phishing campaigns and email infrastructure so you don't have to.


