A method for sending stolen usernames and passwords out of a phishing kit using email transfer rather than direct web submission. When attackers route the data through a real mailbox, especially one tied to a legitimate business account, the traffic can appear routine and evade controls that rely on sender reputation.
How Credential Exfiltration via SMTP Works
Credential exfiltration via SMTP is a phishing-kit technique for shipping stolen usernames and passwords out through email rather than a direct web post. The kit sends the captured data to a mailbox, often one that looks legitimate, so the traffic blends into ordinary mail flow and is less likely to trigger controls that watch for obvious form submissions or suspicious outbound requests.
Why SMTP Is Attractive for Exfiltration
SMTP is widely permitted, familiar, and often trusted by default. That makes it a useful delivery path for attackers who want to move small, high-value payloads such as credentials without standing up a separate exfiltration endpoint. When the mailbox belongs to a real provider or business account, the activity can inherit normal-looking reputation and slip past simple domain-blocking or URL-based detection.
Attackers also benefit from the fact that email handling is routine in most environments. A phish kit can encode or package stolen data as message content or attachments, then rely on the mail ecosystem to carry it onward. That reduces the need for custom infrastructure and can complicate tracing because the last visible hop may look like ordinary outbound mail rather than a bespoke command channel. For the broader SMTP and protocol context, see the Network Ports and Protocols Security Guide.
How Organisations Detect and Contain It
Exposure usually shows up in the mail path, not only at the phishing page. Organisations should look for anomalous outbound messages from web servers, email APIs, or compromised mailboxes, especially when the content pattern is repetitive, machine-generated, or inconsistent with normal business use. Mail logs, gateway telemetry, and outbound network controls are the most useful starting points because they reveal the sender, destination, and timing of the exfiltration attempt.
Containment depends on closing the channel that made the exfiltration easy, which may mean tightening SMTP AUTH, restricting relay rights, and reviewing whether web applications or phishing tooling should be allowed to send mail at all. If the attacker used a real mailbox or email-delivery service, the defender should treat the account as compromised infrastructure, not just a message source. The Exim and Postfix Mail Server Hardening Guide is useful when relay control and authenticated submission need review.
What Good Defence Looks Like After a Leak
Once credentials have been exfiltrated, the issue is no longer limited to the original phishing event. The stolen usernames and passwords may be reused immediately against email, VPN, SSO, admin portals, or cloud services, so the defender has to assume follow-on access attempts may already be underway. That is why response should include password resets, session invalidation where possible, and a search for reuse across other accounts or services.
Defenders should also review whether the exfiltration path itself is still active. A phishing kit may continue sending outbound mail until the mailbox is disabled, the relay is blocked, or the hosting infrastructure is removed. Where SMTP is used as an abuse channel, the most practical response is to combine account revocation, mail-flow restriction, and monitoring for repeated credential harvesting from the same kit or domain. The T1048 Exfiltration Over Alternative Protocol guide maps this pattern to the broader adversary technique and helps place SMTP exfiltration in context.
Why This Technique Often Evades Simple Controls
SMTP exfiltration works best when defenders only watch for the obvious signs of theft, such as large uploads, unusual downloads, or direct form submissions to suspicious domains. Email traffic is often allowed, normalised, and intermixed with real business messages, so the malicious signal can hide inside an otherwise legitimate protocol. The result is a control gap between web-phishing detection and mail security monitoring.
This technique is also resilient because it does not depend on a single external sink. Attackers can rotate mailboxes, domains, or providers, and the exfiltrated data can be tiny, which makes volume-based detection less effective. That is why organisations need visibility across both the phishing surface and the email path, rather than treating them as separate problems. For credential-focused defence and response patterns, the API Key Management Guide, the Secrets Management Guide, and the OWASP Non-Human Identity Top 10 provide useful adjacent context on leaked credentials and their downstream abuse.
Risk and Threat Considerations
SMTP exfiltration turns routine mail infrastructure into an outbound smuggling path, which makes the technique valuable to attackers who want to avoid obvious web or file-transfer indicators. The main risk is not just theft of the initial credentials, but the speed with which those credentials can be reused for account takeover, mailbox abuse, or lateral access through trusted business systems.
Failure mechanism: The phishing kit captures credentials, then relays them through a mailbox or SMTP service that appears ordinary enough to bypass simplistic reputation, URL, or form-submission controls.
Impact: Stolen credentials can be reused quickly, mail logs may be the only durable trace, and the same channel can continue leaking additional secrets until the relay path and compromised accounts are contained.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK, OWASP API Security Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1048 — Exfiltration Over Alternative Protocol | SMTP exfiltration is a protocol-based data exfiltration path. |
| Recommendation — Map SMTP leak telemetry to T1048 and alert on unusual outbound mail carrying credentials. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Mail-flow and relay abuse are best found through logging and monitoring. |
| Recommendation — Centralise SMTP and mailbox logs so exfiltration attempts can be investigated quickly. | ||
| NIST SP 800-53 Rev 5 | AU-6 — Audit Record Review, Analysis, and Reporting | Investigating suspicious mail exfiltration depends on review of relevant audit records. |
| Recommendation — Review mail and submission logs for anomalous credential transport and document the findings. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Stolen usernames and passwords commonly enable direct account abuse after exfiltration. |
| Recommendation — Harden authentication flows so captured credentials are less useful for follow-on access. | ||
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | SMTP exfiltration is a mechanism for leaking credentials and related secret material. |
| Recommendation — Scan for leaked credentials and revoke or rotate exposed secrets immediately. | ||
Practitioner Guidance
Why practitioners should care: Treat SMTP-based exfiltration as both a phishing and mail-security problem, because the defender may need to investigate web telemetry, mailbox abuse, and outbound email behaviour together. When a phishing incident includes successful credential capture, assume the exfiltration channel can persist even after the original page is removed.
What to watch for: Look for unusual SMTP submission patterns, new or rarely used mail senders, repeated short messages containing account data, and compromised business mailboxes being used as relay points. A useful operational lens is to baseline expected sender behaviour and alert on first-seen or atypical mail activity rather than relying only on sender reputation.
Related resources from NHI Mgmt Group
- Why does compromised credential access create such a high-risk path to data exfiltration?
- What happens when attackers combine credential harvesting with lateral movement and data exfiltration?
- What breaks when credential exfiltration controls are missing in GitHub Actions workflows?
- What should teams do when a cloud SDK dependency is suspected of credential exfiltration?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 4, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org