When the security budget covers only one new measure this year, two options usually end up on the table. One is regular phishing simulations for staff. The other is monitoring stealer logs for your company's leaked credentials. Both vendors make a good case, and the decision often goes to whichever demo was more convincing. A better way to decide is to open the postmortem from your last incident and find out how the attacker actually got in.
This article treats that question as a diagnosis. You start from what was detected, trace back to the first access, set aside the clues that look important but aren't, and see which measure would have broken the chain.
Start from what was detected, then walk backwards
A useful postmortem for a ransomware or data breach incident records more than the moment things went wrong. It records when the attack was first detected, for example the first anomalous log entry or the first EDR alert. It records when data was copied out of the network, often over SFTP or to cloud storage such as Mega. It also records when the encryption payload ran.
None of those moments is the entry point. They are the visible symptom. The question you need answered sits earlier in the timeline: which account or service did the attacker use first, and how did they get it?
To find it, take the earliest malicious action you can confirm and ask what authenticated it. A login to the control panel, an SSH session, a webmail session, a VPN connection. Then ask how the attacker had what they needed for that login. The answer usually falls into one of three patterns, and each points to a different budget decision.
The three entry patterns and what each one points to
Pattern one: someone typed their password into a fake page. The evidence looks like this. A user received an email, clicked a link, landed on a lookalike login page, and entered credentials. Shortly after, a login for that account appears from an unfamiliar IP address. If MFA was enabled, the attacker either relayed the code in real time or the account had no second factor. This is the case phishing drills were built for. As Sophos describes in its phishing drill service notes, the traditional drill metric is simple: did the user click the link or type a password into a fake login page. If that is what happened to you, drills (together with MFA that resists relaying) go first.
Pattern two: the attacker showed up already logged in. This pattern is quieter. A session for a valid user appears from a new location, and nobody was asked for MFA. Sometimes there is no matching login event at all. The user doesn't remember entering a password anywhere. Often their machine, or a personal device with a synced browser, was infected by an infostealer some time earlier. Doppel's explainer on stealer logs describes how infostealers such as Lumma, RedLine, or Vidar are delivered through phishing links, malvertising, or fake updates. They collect a whole bundle: saved browser autofill data, cached credentials, and live session cookies. That bundle is the stealer log, and it gets sold or shared. A session cookie lets the attacker skip the login and, with it, the MFA prompt. Stealer log monitoring is the measure aimed at this. It alerts you when your domain's credentials or sessions appear in those dumps, ideally before someone uses them.
Pattern three: neither. The attacker came in through an RDP port open to the internet, an unpatched panel or plugin, or a password reused from an unrelated breach and tried in bulk. Neither phishing drills nor stealer monitoring would have stopped this. Spending the budget on either one leaves the actual hole open. Close the exposure first, and revisit the choice afterwards.
Clues that look like the entry point but usually aren't
Three findings mislead teams often enough to deserve a mention.
The first is a phishing email in someone's inbox. Finding one proves the organization was targeted. It does not prove that email was the way in. Check whether the link was clicked, whether anything was downloaded, and whether the first malicious login lines up with that user and that time. If the first bad login belongs to a different account, the email is background noise.
The second is a clean drill record. A team can pass every click-and-type simulation and still get infected, because many infostealer deliveries don't involve a login page at all. A fake browser update or a cracked tool from a search ad asks the user to run a file, not type a password. The Simulations Labs write-up on infostealers makes the same point: credential attacks increasingly start from a stealer infection, so a drill program that only measures clicks on fake login pages misses that path.
The third is "we reset the password and it kept happening." Support engineers hear this a lot on hosting accounts. If the attacker holds a valid session cookie, a password reset alone may not end the session, depending on how the application handles existing sessions. That persistence is itself a strong sign of pattern two. The sequence of resetting credentials and revoking sessions is covered in Infostealer Stole Staff Credentials? Reset Passwords or Revoke Sessions First.
Reading the evidence on a typical hosting stack
On the server side, the goal is to tell a fresh password login apart from key-based access or a reused session. For SSH on Linux, the auth log records the method and the source IP of each successful login. These commands are read-only:
# Debian/Ubuntu: recent successful SSH logins with method and source IP
grep 'Accepted' /var/log/auth.log | tail -n 20
# RHEL/CentOS family keeps this in /var/log/secure instead
grep 'Accepted' /var/log/secure | tail -n 20
# Login history with IP addresses
last -i | head -n 20
Illustrative output format:
Accepted password for deploy from 203.0.113.10 port 51514 ssh2
Accepted publickey for admin from 198.51.100.7 port 40022 ssh2: ED25519 SHA256:...
A password login from a new IP soon after a reported phishing click points to pattern one. A login with a key or credential the user swears they never typed anywhere recently makes a stealer infection more likely, especially if the key or a saved password lived on a workstation.
Control panels and webmail need a different check. cPanel, for example, keeps login records under /usr/local/cpanel/logs/, but the files and fields vary by version, so confirm them against the documentation for your install. The question is the same everywhere. Is there an authentication event right before the malicious activity? If activity appears for a session that has no matching recent login, or the same session ID is used from two very different locations, suspect cookie theft. DarkStrata's stolen data monitoring page describes this indicator as sudden session reuse, where a user appears to be logged in instantly with no normal login step.
If your incident involved a stealer, it also helps to check whether the victim's credentials show up in known dumps and when they first appeared. Setelah Breach, Dari Mana Mulai Forensik? Cek Infostealer Logs dan Credential Dump Dulu walks through where to start that search.
Confirming the choice before you spend the money
Once you have named the pattern, test the decision against the timeline instead of trusting the label.
For drills, ask whether the actual lure in your incident matches what the drill program simulates. If the entry was a fake login page, a standard drill fits. If the entry was a fake update download, you need a drill that mimics infostealer delivery, and you should ask the vendor whether their program covers that.
For stealer monitoring, compare two dates: when the credential or cookie first appeared in a stealer log, and when the attacker first used it. If there was a gap of days or weeks, monitoring would have given you time to revoke the session and rotate credentials before anything happened. If the gap was close to zero, monitoring would have told you about the breach but not prevented it. In that case, faster session revocation and endpoint protection may matter more. Also check what the monitoring service actually detects. Some cover only usernames and passwords, others include session cookies, and that difference decides whether it catches pattern two at all.
If you have no past incident to work from, near-misses work almost as well. Reported phishing emails, blocked downloads, and unexplained session alerts all show which path attackers are already trying against you.
The practical rule is to let your own evidence break the tie. Read the earliest confirmed malicious login in your last postmortem and decide which of the three patterns it fits. Typed credentials on a fake page means phishing drills first. A reused session or a credential leaked before it was abused means stealer log monitoring first, paired with a tested session revocation process. An exposed service or a recycled password means neither yet. Fix that exposure, then come back to the question with the budget you have left.