SMTP Credential Attacks
SMTP credential attacks target AUTH PLAIN and AUTH LOGIN on port 587 when a valid user list is available from user enumeration. Password spraying — one password across many accounts — is the primary approach to avoid account lockout. Brute force against a single account is only appropriate when lockout is confirmed absent. On Exchange environments, OWA is often a better target than SMTP directly because it has richer error output and session management.
Confirm AUTH Mechanisms
Check which AUTH mechanisms are supported before attacking. AUTH PLAIN and LOGIN carry credentials in base64 and are only safe over TLS:
250-AUTH PLAIN LOGIN
250-AUTH PLAIN LOGIN NTLM
Test Default and Common Credentials Manually
Before running bulk attacks, manually test a few common credentials with swaks. This confirms the auth mechanism works and avoids unnecessary lockouts:
<- 235 2.7.0 Authentication successful
<- 535 5.7.8 Error: authentication failed
Note the exact success and failure responses. These are the strings hydra and other tools need to distinguish valid credentials from failed attempts.
Password Spraying with hydra
Spray one password across all enumerated accounts. Use a delay between attempts to avoid lockout triggers. Start with the most likely passwords — company name + year, season + year, Welcome1, Password1:
[587][smtp] host: 10.10.10.50 login: [email protected] password: Password123
Brute Force Single Account
Only brute force a single account when lockout is confirmed absent through testing. Use a targeted wordlist before trying rockyou:
Check Lockout Behavior First
Send several deliberate failures and watch for rate limiting or lockout responses before running bulk attacks:
Attempt 1: 535 Attempt 2: 535 Attempt 3: 535 Attempt 4: 535 Attempt 5: 535 Attempt 6: 421
A 421 after repeated failures means rate limiting or temporary lockout is active. Reduce hydra thread count (-t 1) and increase wait time (-W 30), or switch to low-and-slow spraying with one attempt per account per hour to stay under detection thresholds.
Validate Credentials on Other Services
Successfully cracked SMTP credentials should be tested for reuse across all other services on the target:
References
-
SMTP testing tool for manual AUTH testing and credential validation
-
Network login brute force supporting SMTP with TLS
Was this helpful?
Your feedback helps improve this page.