How to check Windows logs to see if your PC was hacked?
Yes — your PC already keeps the record. Windows writes every logon, failed logon, and admin-level sign-in into a log called the Security log, and you can read it in about ten minutes with a built-in tool called Event Viewer. The five event numbers to look for are 4624, 4625, 4672, 4648, and 1102 — and this guide shows you exactly where to find them and what each one means.
That record is useful, but it has limits, and this guide states them plainly. The logs can show you that someone signed in at 3 a.m. from another computer, or that someone tried your password fifty times and failed, or that the log itself was wiped clean. What they cannot do is prove your PC is clean — no log entry does not mean no break-in. Read this as a ten-minute check that can catch a real intrusion, not as a verdict.

What Are Windows Logs, and Where Do They Live?
Windows keeps a diary of what happens on your PC, and it is called the event log. The part that matters here is the Security log: every time an account signs in, fails to sign in, or gets special privileges, Windows writes an entry there with a time, an account name, and an event number. You do not need to install anything to read it. The tool is already on your PC, it is called Event Viewer, and it has been part of Windows for years.
The reason this check works is that logon auditing is already switched on. Microsoft’s own documentation says that on a workstation — an ordinary home PC — logon success and failure auditing is enabled by default, and that the volume of these events on a home computer is low. In plain terms: your PC has been recording sign-ins all along, and there are not so many of them that you cannot read the list.
One thing to know before you start: the Security log is not a malware scanner. It does not record viruses, and it does not judge whether a file is safe. It records logons. That makes it the right tool for one specific fear — “did someone get into my PC?” — and the wrong tool for others. If your worry is that your PC is slow or showing pop-ups, our guide to what to do when you think your computer has a virus is the better starting point, because it covers symptoms and scans. This guide is for the login question only.
How Do I Open Event Viewer and Find the Security Log?
It takes five steps, and none of them changes anything on your PC — you are only reading the log, not editing it.
First, open Event Viewer. Press the Windows key and X together, then choose Event Viewer from the menu. If that menu does not appear, press the Windows key and R together, type eventvwr.msc, and press Enter. The same window opens either way.
Second, in the left-hand panel, open Windows Logs and click Security. The middle panel fills with entries — hundreds of them, most of them routine. Do not try to read them one by one. That is what the filter is for.
Third, on the right-hand side, click Filter Current Log. A small window opens with a box labelled Event IDs.
Fourth, type this into the Event IDs box, exactly as written: 4624,4625,4672,4648,1102. Then click OK. The list shrinks to only those five event types — the logons, the failed logons, the admin-level logons, the logons with explicit credentials, and any time the log was cleared.
Fifth, look at the newest entries first. The list is in date order, so the top of the list is the most recent. Click any entry once and read the panel underneath it: the time, the account name, and the logon type. That is the whole check. The next sections explain what each number means and what should worry you.
What Do the Five Event IDs Mean?
Each number is one kind of event. Learn the five and you can read the log like a short report instead of a wall of codes.
| Event ID | What it means | What to do |
|---|---|---|
| 4624 | An account successfully signed in. Microsoft’s description is “An account was successfully logged on.” | Check who signed in, when, and how. A sign-in at a time you were asleep, or a remote sign-in you never made, is the one to investigate. |
| 4625 | An account failed to sign in. Logged for any logon failure, with the account name that was tried and the address the attempt came from. | A few are normal. Dozens in a row, especially at night, mean someone — or something — was guessing passwords. |
| 4672 | Special privileges were given to a new sign-in. Fires when a logon gets powerful rights such as debugging programs or managing the security log. | Usually normal — every sign-in by the SYSTEM account triggers one. Worry only if the account is yours or unknown and you were not doing admin work. |
| 4648 | A sign-in was attempted using explicit credentials — one account used another account’s username and password, often by a scheduled task or the RunAs command. | Often routine. Investigate if the process that did it is unfamiliar, or the target account is your administrator account at a time you were not using it. |
| 1102 | The audit log was cleared. Generated every time the Security log is wiped. | Take this seriously. Microsoft says you should typically never see this event, and to investigate why it happened. |
Notice what is not on the list: there is no event number for “a virus was found” or “malware ran.” The log records who signed in and how. Everything else in this guide is about reading those sign-ins carefully and knowing where the log goes quiet.
What Does a Normal Day Look Like in the Log?
Before you can spot something wrong, you need to know what right looks like — because a healthy log is not empty. It is full of routine entries, and most of them mean nothing.
On a normal day you will see 4624 entries for your own sign-ins: one when you unlock the PC in the morning, and more as Windows services sign in behind the scenes. The logon type tells you which is which. Type 2 means someone sat at the keyboard. Type 7 means the workstation was unlocked. Types 4 and 5 — batch and service logons — are Windows doing its own housekeeping, and they appear all day.
You will also see a lot of 4672 entries, and that surprises most people. Microsoft says you will typically see many of them because every sign-in by the SYSTEM account triggers one. SYSTEM is Windows itself, not a person, so a long run of 4672 entries for SYSTEM is normal. What is not normal is a 4672 for your own account, or for an account name you do not recognize, at a time you were not installing software or changing settings.
A few 4625 failures are normal too. Everyone mistypes a password, and saved passwords in browsers and apps sometimes try an old one after you change it. A handful of failures spread across the day, for your own account, from your own PC, is everyday noise. What is not noise is the pattern in the next section.
You will also see some 4648 entries. Microsoft says this event most commonly comes from scheduled tasks or the RunAs command, and that it is also a routine event that occurs periodically during normal operating system activity. If the process listed is a Windows component such as svchost.exe and the target account is one you know, leave it alone.
What in the Log Is Actually Suspicious?
Five patterns are worth your attention. One of them on its own is a reason to look closer; two or more together is a reason to act.
First, a 4624 with logon type 10 — a remote sign-in — when you never use Remote Desktop. Type 10 means someone signed in from another computer using Remote Desktop. If you have never turned that on, a type 10 entry is the single most suspicious thing in the log. Check whether Remote Desktop is even enabled on your PC at Settings, then System, then Remote Desktop, and turn it off if you do not use it.
Second, a burst of 4625 failures. One failed sign-in is a typo. Twenty or fifty in a few minutes, especially in the middle of the night, is someone guessing — or an automated tool guessing for them. Look at the account name: if it is your account, change the password from another device. If it is an account you do not have, such as “Administrator” on a PC where you never enabled it, the attempts are coming from outside and your password held — but change it anyway.
Third, a 4672 for your own account when you were not doing anything administrative. Your everyday account should not be handed debugging or security-log privileges at 2 a.m. If the entry’s account name is yours and the time does not match anything you did, treat it as a sign that someone was operating with admin-level rights.
Fourth, a 4648 where the process is something you do not recognize, or the target account is your administrator account. A scheduled task using credentials is routine; an unknown program using your admin credentials is not. Double-click the entry and read the Process Name field — if it is not a Windows component in System32 or a program you installed yourself, that is the thread to pull.
Fifth, a 1102 entry at all. The log being cleared is the loudest signal in this whole guide, because it is the one an intruder performs to hide the others. Microsoft’s own advice is that you should typically never see this event and should investigate why it happened. If you find one, skip the rest of the reading and go straight to the clean-up steps below.
How Do I Read One Event Properly?
Double-click any entry and a window opens with two tabs. The General tab is the one you want. It shows the time, the account name, and the details in plain language. Four fields matter most.
Account Name is who signed in. On a home PC it should be your name, SYSTEM, or a local service account such as LOCAL SERVICE or NETWORK SERVICE. An unfamiliar name is a red flag on its own.
Logon Type is how they signed in. Type 2 is at the keyboard. Type 3 is over the network — normal for a home network, suspicious from an unknown machine. Type 10 is Remote Desktop. Type 7 is an unlock. If the type does not match what you were doing at that time, something is off.
Source Network Address is where the attempt came from. An address of 127.0.0.1 or ::1 means the attempt came from the PC itself. A home-network address starting with 192.168 is another device in your house. An address from the wider internet, on a home PC with no remote access set up, is the detail that turns a strange entry into evidence of an outside attempt.
Process Name, on 4648 entries, is the program that used the credentials. A Windows component is routine. A program sitting in a downloads folder, a temp folder, or a folder you do not recognize is not — and that is the program to investigate before anything else.
| Logon type | What it means | When to worry |
|---|---|---|
| 2 — Interactive | Someone signed in at the keyboard. | If the time is one when nobody was at the PC. |
| 3 — Network | Someone signed in over the network, for example to reach a shared folder. | If the source address is not a device in your home. |
| 7 — Unlock | The workstation was unlocked. | If you did not unlock it at that time. |
| 10 — RemoteInteractive | Someone signed in remotely with Remote Desktop. | Almost always, if you never use Remote Desktop. |
| 4 — Batch, 5 — Service | Scheduled tasks and Windows services signing in. | Rarely — these are Windows housekeeping. |
What Can the Logs NOT Prove?
This is the honest part, and it matters more than the rest. The logs can catch an intruder who signed in. They cannot prove nobody got in, and there are four reasons why.
First, the log has a size cap, and when it fills up Windows overwrites the oldest entries first. On a busy PC the trail may only go back days, not months — so if the break-in happened three weeks ago, the entries that would prove it may already be gone. When you open the Security log, scroll to the oldest entry and note its date. That date is how far back your evidence goes, and anything before it is simply unknown.
Second, the log can be wiped. Event 1102 exists precisely because clearing the log is itself recorded — but a careful intruder clears the log and the 1102 entry is the only thing left. If you find a 1102 and nothing else, you have not proved you are clean. You have proved someone did not want you to see what happened.
Third, not every break-in signs in. If malware arrived because you opened an attachment or clicked a link, it runs with your account’s rights and never creates a logon event at all. The logs would look perfectly normal while the PC is infected. That is why a clean log is never a clean bill of health — and why, if your PC is acting strangely, you should still run a full Defender scan and follow our guide to what to do when you think your computer has a virus, even if the logs show nothing.
Fourth, the logs record logons, not intent. A 4624 at 3 a.m. might be a Windows update task signing in as SYSTEM, not a person. A burst of 4625s might be an old phone trying a stale password, not an attacker. The log gives you facts — time, account, type, address — and you have to match them against what you actually did. When the facts and your memory disagree, trust the facts and investigate.
So the fair summary is this: a suspicious entry in the log is real evidence that something happened, and it is worth acting on. A clean log is only evidence that nothing was recorded — not that nothing happened. Anyone who tells you otherwise is selling you certainty the log cannot give.
What Should I Do If I Find Something Suspicious?
Work in this order, and do the password step from a different device if you can — a phone is fine — so you are not typing new passwords into a PC you no longer trust.
First, disconnect the PC from the internet. Unplug the network cable or turn off Wi-Fi. If someone is inside right now, this cuts them off. If nobody is, you have lost nothing.
Second, change your passwords, starting with your email and your Microsoft account, from the other device. Email first, because password resets for everything else go there. If the log showed a successful sign-in you did not make, assume the password for that account is known and change it.
Third, run a full scan with Windows Defender: Windows Security, then Virus and threat protection, then Scan options, then Full scan. A full scan takes a while — let it finish. If Defender finds something, follow its removal steps, then run the scan again.
Fourth, check the accounts that matter. Look at your email for password-reset messages you did not request, check your bank and card statements for transactions you do not recognize, and look for new devices signed into your Microsoft account. If passwords or personal details were exposed, our guide to what to do after a data breach exposes your Social Security number walks through credit freezes and the dispute process step by step.
Fifth, if you found a 1102 entry, or a remote sign-in you cannot explain, consider the stronger step: back up your personal files to an external drive, then reset the PC. A reset is a big step, but it is the only step that removes the doubt the logs cannot settle. If you were tricked into clicking something first, our guide to what to do after you click a phishing link covers the clean-up from there as well.
What If the Log Is Empty or Goes Back Only a Few Days?
An empty Security log on a PC you have used for months usually means one of two things: the filter is hiding everything, or the log has already overwritten itself. Clear the filter first — click Filter Current Log again and delete the event IDs — and look at the raw list. If entries appear, your filter was the problem.
If the raw list also starts only a few days back, that is the size cap doing its job. Windows overwrites the oldest entries when the log fills, and on a PC that generates a lot of events the window can be short. There is no way to recover entries that were overwritten. From here on, the useful habit is to check the log soon after something strange happens, while the entries are still there — and to keep a note of the date of the oldest entry, so you know how far back your evidence reaches.
One more possibility: logon auditing could be switched off, though Microsoft’s documentation says it is on by default for workstations, recording both successes and failures. If your Security log is genuinely empty on a PC you sign into every day, something has changed the auditing settings or the log itself — and that, on its own, is worth investigating with a full scan.
How I Checked This
Every event number and meaning in this post was checked on November 22, 2026 against Microsoft Learn: event 4624 (“An account was successfully logged on,” including the logon type table), event 4625 (“An account failed to log on”), event 4672 (“Special privileges assigned to new logon,” including the note that many of these events are normal because every SYSTEM logon triggers one), event 4648 (“A logon was attempted using explicit credentials,” including that it most commonly comes from scheduled tasks or RunAs), event 1102 (“The audit log was cleared,” including Microsoft’s advice that you should typically never see it), and the Audit Logon page, which confirms logon success and failure auditing is enabled by default on workstations. The search results for this topic were checked the same day and are still led by forum answers and Reddit threads, with no dedicated consumer Event Viewer guide visible. Where a source gives no figure, such as the exact size of the Security log, this post says so instead of guessing.
Frequently Asked Questions
Can Windows logs tell me for certain if my PC was hacked?
No. The logs show logon evidence — who signed in, when, and how. A suspicious entry is real evidence something happened, but a clean log only proves nothing was recorded, not that nothing happened. Malware that runs with your own account never creates a logon event at all.
How far back do Windows logs go?
It depends on how busy your PC is. Windows caps the size of the Security log and overwrites the oldest entries when it fills up, so on a busy PC the trail may only go back days. Open the log, scroll to the oldest entry, and note its date — that is how far back your evidence reaches.
What does event 4624 mean?
It means an account successfully signed in. Check the Logon Type: type 2 is at the keyboard, type 3 is over the network, type 7 is an unlock, and type 10 is a remote sign-in with Remote Desktop. The type, the time, and the account name together tell you whether it was you.
Is a failed logon (event 4625) always an attack?
No. A few failures are normal — mistyped passwords and old saved passwords cause them every day. Look for a pattern instead: dozens of failures in a few minutes, at night, or for an account you do not have. That pattern is someone guessing.
Why are there so many 4672 events in my log?
Because every sign-in by the SYSTEM account triggers one, and SYSTEM signs in constantly. Microsoft says you will typically see many of these events. They only matter when the account is yours or unknown and you were not doing admin work at that time.
What should I do if I see event 1102?
Treat it seriously. Event 1102 means the Security log was cleared, and Microsoft says you should typically never see it. Disconnect the PC from the internet, change your passwords from another device, run a full Defender scan, and consider resetting the PC, because the cleared log means someone did not want you to see what happened.
Do I need to turn on logon auditing before I check the logs?
No, not on a default Windows install. Microsoft’s documentation says logon success and failure auditing is enabled by default on workstations, so your PC has been recording sign-ins all along. If your Security log is empty on a PC you use daily, that itself is worth investigating.
Sources: Microsoft Learn, “Audit Logon,” https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-logon; Microsoft Learn, “4624(S) An account was successfully logged on,” “4625(F) An account failed to log on,” “4672(S) Special privileges assigned to new logon,” “4648(S) A logon was attempted using explicit credentials,” “1102(S) The audit log was cleared.” All sources checked November 22, 2026.












