Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 17 November 2026. Part of the Detection and response library.
In one sentence: Event 4740 is the entry Windows writes when an account is locked because of too many wrong passwords, and the entry tells you which computer the bad attempts came from.
What it is
Microsoft Learn describes event 4740 as being generated every time a user account is locked out. For domain accounts it is written on domain controllers, and it can also be written on member servers and workstations. It sits in the Security log under the Audit User Account Management subcategory.
A lockout is usually harmless. Someone changed their password and an old copy is still saved on their phone, a mapped drive or a scheduled task. It can also be the visible tip of an attack, which is why it is worth reading.
How it works
- An account is set to lock after a number of failed attempts. That number and the lock time come from your lockout policy.
- Each wrong password creates a failed logon event, usually 4625. See windows-event-id-4625-failed-logon.
- When the limit is reached, Windows locks the account and writes 4740.
- The event records the locked account’s name and security ID, and the “Caller Computer Name”, which Microsoft describes as the computer the logon attempt came from, after which the account was locked out.
- The Logon ID lets you tie the event to related events such as 4624.
The caller computer name is the single most useful field. It turns “Sam is locked out again” into “Sam’s old laptop is still trying a saved password” or “a machine we do not recognise is guessing passwords”.
Who it affects and how badly
- Sole trader to 10 staff: someone cannot work until the account is unlocked. If an attacker is guessing, you may not see it at all because small firms rarely read logs.
- 10 to 50 and 50 to 250 staff (accountancy, legal, schools, councils, MSP-managed): a burst of lockouts across many accounts can mean a password-guessing attack on an exposed service, or a faulty script. Worst case is a morning of locked staff and a slower search for the cause.
- Regulated and 250 plus (healthcare, fintech, insurance): you need to show that attacks on accounts are noticed. Worst case is an unreported compromise that surfaces later in an audit.
An attacker who is careful may avoid lockouts altogether by trying one password across many accounts slowly, which is how password spraying works. So the absence of 4740 does not mean nobody is guessing. Read 4625 as well.
The UK angle
The NCSC’s Introduction to logging for security purposes asks whether there have been incorrect authentication attempts on internet-exposed services such as email, VPNs, web services and remote desktop, and points to authentication servers and Active Directory as the source of that data. It also says logs should be held for a minimum of 6 months and kept safe from tampering. Source: https://www.ncsc.gov.uk/guidance/introduction-logging-security-purposes
How to detect it
Microsoft’s guidance on monitoring 4740 gives a useful set of rules:
- Because the event is normally written by the SYSTEM account, report it whenever the Subject security ID is not SYSTEM.
- If you have high-value accounts such as domain administrators, alert on every lockout of those accounts.
- If an account should never authenticate from a given computer, alert when the Caller Computer Name matches that computer.
- Alert on 4740 events where the caller computer name is not from your domain. Microsoft notes you get a computer name, not an IP address.
In Event Viewer, filter the Security log on a domain controller for 4740. Look for the same caller name behind many different accounts, which suggests a single machine guessing, and for one account locked again and again.
What we check on a test
Method only, not findings.
- What the lockout policy is, and whether it slows guessing without making it easy to lock out everyone.
- Which internet-facing services accept passwords (webmail, VPN, remote desktop) and whether they are protected by multi-factor authentication.
- Whether failed logons and lockouts reach a place where someone reads them.
- Whether weak or reused passwords would survive a slow, low-volume guessing attempt that never triggers a lockout.
How to fix or prevent it
- Require multi-factor authentication on email, VPN and any remote access, so a guessed password alone is not enough.
- Do not expose Remote Desktop to the internet. See is-rdp-open-to-the-internet-dangerous.
- Set an account lockout threshold and duration that suit you, and test the effect on staff.
- Find the source of repeat lockouts using the caller computer name, then remove old saved passwords, mapped drives and scheduled tasks.
- Alert on lockouts of high-value accounts and on bursts across many accounts.
- Teach staff why a stolen password matters. A phishing simulation shows who is at risk: https://wolfcore.co.uk/phishing-simulation-software/ and the trial at https://wolfcore.co.uk/phishy-free-trial/
FAQ
Where is 4740 written? Microsoft says it is written on domain controllers, member servers and workstations, depending on the account.
What does Caller Computer Name mean? The computer the logon attempt came from, before the lockout.
Does no 4740 mean no attack? No. A slow attack may never reach the lockout limit, so also review failed logons.
Related terms
windows-event-id-4625-failed-logon, windows-event-id-4624-successful-logon, password-spraying, brute-force-attack, credential-stuffing, indicators-of-compromise
How Wolfcore helps
Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over. See SOC and SIEM monitoring.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call