Windows Artifacts and Timelines

Video + 12 min read · includes a lab

Remote user198.51.100.23
Work laptop
Traces recorded
Timeline
RDP login
Artifacts
Windows Artifacts and Timelines
0:00 / 6:13 · Windows Artifacts and Timelines
Chapters and transcript

Windows Artifacts and Timelines Late at night, someone logs in to a work laptop over Remote Desktop. They download a file and run it. Windows quietly records traces of all this. These traces are called artifacts. In this lesson, you will learn the most useful Windows artifacts, and how investigators join them into one story, called a timeline.

What is an artifact? An artifact is any data left behind by Windows or a program that shows something happened. Users usually do not know these traces exist, which makes them valuable. Artifacts answer questions such as: which user logged in, and when? Which programs were run? Which files were opened, and which USB drives were connected? And which websites were visited?

What is an artifact? No single artifact tells the whole story. Each one is a small piece of a puzzle. The event log says one thing. Prefetch says another. The browser history adds a third. When several independent artifacts point to the same conclusion, we call it corroboration.

Event logs Windows stores its event logs as E V T X files, in the winevt Logs folder under System32. The main logs are Security, System and Application, plus many more for specific features. Remember that logs have a maximum size. When they are full, older events are usually overwritten. So collect them early.

Event logs You may already know forty-six twenty-four, a successful logon. Here are four more. Forty-six seventy-two: special privileges, often an administrator. Forty-six eighty-eight: a new process was created, if that auditing is turned on. Eleven oh two: the audit log was cleared. And in the System log, seventy forty-five: a new service was installed.

Event logs Logon events also include a logon type, which shows how the user logged in. Type two is interactive: at the keyboard. Type three is network, for example accessing a shared folder. And type ten is remote interactive: Remote Desktop, or R D P.

Event logs Now put these together. A logon type ten arrives from an outside address. Soon after, the System log records event seventy forty-five: a new service installed. Then the Security log records eleven oh two: the audit log was cleared. Each event alone may be normal. Together, they tell a worrying story.

Program execution Investigators often need to prove a program actually ran. Prefetch helps. To make programs start faster, Windows keeps Prefetch files in the Prefetch folder. Each is named after the program, like this one. It can show the program name, how many times it ran, and when it last ran. Prefetch files can remain after the program is deleted. But Prefetch is often turned off on Windows Server.

Program execution The registry is a large database of Windows settings, stored in files called hives. System-wide hives such as SYSTEM and SOFTWARE are in the config folder. Each user has their own hive, called N T USER dot DAT. The registry records programs a user started, recently opened documents, and USB storage devices, with names and serial numbers. Also, the Amcache file records programs present, with paths and hashes. Alone, it does not always prove a program ran.

Files and browsers When a user opens a document, Windows often creates a shortcut file, ending in L N K, in the user Recent folder. It can show the original path of the file, including whether it was on a USB drive or network share. It may remain after the original is deleted. Jump Lists, the recent items you see when you right-click a taskbar program, store similar information.

Files and browsers Browsers store history in small SQLite database files in the user profile folder. They record websites visited with times, files downloaded with the source address and save location, and search terms. Here is the download list in a browser. A file called update dot zip came from an unknown site. Private modes are designed not to save history, but traces may appear in DNS logs, proxy logs or memory.

Try it yourself You can look at your own System log. In Event Viewer, Filter Current Log does this. In PowerShell, Get-WinEvent can show the same thing. Here we ask the System log for event seventy forty-five, new services. Do you recognise each service that was installed? Only do this on your own device.

Building a timeline A timeline puts events from many sources into one list, ordered by time. Here are the steps. Collect timestamps from each source. Normalise them to one time zone, usually U T C. Sort by time and remove noise. Look for the story: clusters, unusual hours and gaps. And corroborate each important event with another source. Large investigations use tools such as Plaso to build a super timeline automatically.

Building a timeline Here is a small timeline from a laptop at chaicorp, in U T C. At 21:02, a Remote Desktop logon for user ali. At 21:05, a download of update dot zip. At 21:07, Prefetch shows update dot exe ran for the first time. At 21:08, a new service. At 21:30, the audit log was cleared. Ali works days, so a remote login at two in the morning Pakistan time is the first clue.

Quick check Quick check. The Security log shows a successful logon for user sana, with logon type three. How did she log in? Think about the logon types, then choose.

Key takeaways Let us put it together. Artifacts are traces Windows leaves behind. Event logs show logons, services and cleared logs. Prefetch, the registry and LNK files show programs and files used. Browser history shows visits and downloads. And a timeline in one time zone turns these facts into a story. Now read the lesson below, try the lab, and answer the quiz.

Windows records a great deal about what happens on a computer. Much of this is meant to make the system faster or easier to use, but it also leaves a trail. These traces are called artifacts. In this lesson you will learn the most useful Windows artifacts and how investigators join them into one story.

What is an artifact?

An artifact is any piece of data left behind by the operating system or a program that shows that something happened. Users usually do not know these traces exist, which makes them valuable.

Artifacts help answer questions such as:

  • Which user logged in, and when?
  • Which programs were run?
  • Which files and folders were opened?
  • Which USB drives were connected?
  • Which websites were visited, and what was downloaded?

No single artifact tells the whole story. Each one is a small piece of a puzzle. Investigators look for corroboration, which means several independent artifacts that point to the same conclusion.

Windows event logs

Windows stores its event logs as .evtx files in C:\Windows\System32\winevt\Logs\. The main logs are Security, System and Application, plus many more for specific features.

You may already know Event IDs 4624 (successful logon), 4625 (failed logon) and 4720 (user account created). Some other useful ones:

Log Event ID Meaning
Security 4672 Special privileges assigned to a new logon, often an administrator
Security 4688 A new process was created (only if this auditing is turned on)
Security 1102 The audit log was cleared
System 7045 A new service was installed

Logon events also include a logon type, which shows how the user logged in:

Logon type Meaning
2 Interactive: at the keyboard
3 Network: for example, accessing a shared folder
10 Remote interactive: Remote Desktop (RDP)

A logon type 10 from 198.51.100.23, followed by a new service (7045) and then a cleared log (1102), tells a worrying story.

Remember that logs have a maximum size. When they are full, older events are usually overwritten. Collect them early.

Evidence of program execution

Investigators often need to prove that a program actually ran, not only that it existed on the disk.

Prefetch. To make programs start faster, Windows keeps Prefetch files in C:\Windows\Prefetch\. Each file is named after the program, for example TOOL.EXE-1A2B3C4D.pf. Prefetch files can show the program name, how many times it ran, and when it last ran. They can remain even after the program is deleted. Note that Prefetch is often turned off on Windows Server.

The registry. The registry is a large database of Windows settings, stored in files called hives. System-wide hives such as SYSTEM and SOFTWARE are in C:\Windows\System32\config\. Each user has their own hive called NTUSER.DAT in their profile folder. The registry records many traces of activity, including:

  • Programs that a user started from the Windows interface
  • Recently opened documents
  • USB storage devices that were connected, with their names and serial numbers

Amcache. The Amcache.hve file records details about programs present on the system, including file paths and hashes. It helps show which programs were on the computer, though its presence alone does not always prove a program ran.

Files, folders and browser activity

Recent files and shortcuts. When a user opens a document, Windows often creates a shortcut file (.lnk) in the user's Recent folder. LNK files can show the original path of the file, including whether it was on a USB drive or network share, and they may remain after the original file is deleted. Jump Lists, the recent items shown when you right-click a program on the taskbar, store similar information.

Browser history. Browsers such as Chrome, Edge and Firefox store history in small SQLite database files inside the user's profile folder. These record:

  • Websites visited, with times
  • Files downloaded, with the source address and save location
  • Search terms typed into the address bar

Private or incognito modes are designed not to save history on the device. But traces may still appear elsewhere, such as in DNS logs, proxy logs or memory.

User profile folders. Downloads, Desktop and Documents folders often show what a user was working on. Remember from the last lesson that the Recycle Bin can also hold recently deleted files.

Building a timeline

A timeline puts events from many sources into a single list, ordered by time. It is one of the most powerful forensic techniques, because it turns hundreds of separate facts into a story.

Steps to build a simple timeline:

  1. Collect timestamps from each source: event logs, Prefetch, LNK files, browser history, file system timestamps.
  2. Normalise them to one time zone, usually UTC. Note the original zone of each source.
  3. Sort by time and remove noise that is not relevant.
  4. Look for the story: clusters of activity, unusual hours, and gaps.
  5. Corroborate: check each important event against at least one other source.

Here is a small example from a laptop at chaicorp.example, in UTC:

Time (UTC) Source Event
21:02 Security log Logon type 10 (RDP) for user ali from 198.51.100.23
21:05 Browser history Download of update.zip from an unknown site
21:07 Prefetch UPDATE.EXE run for the first time
21:08 System log Event 7045: new service installed
21:30 Security log Event 1102: audit log cleared

Ali works days, so a remote login at 02:02 Pakistan time is the first clue. The other events show what probably happened next. Large investigations use tools that build a super timeline automatically from many artifacts, such as the open-source tool Plaso.

Try it yourself

You can look at artifacts on your own Windows computer without changing anything important:

  1. Open Event Viewer (search for it in the Start menu). Go to Windows Logs and then System. Look at the most recent events and their Event IDs.
  2. Use Filter Current Log to show only Event ID 7045. Do you recognise the services that were installed?
  3. In File Explorer, type shell:recent in the address bar and press Enter. You will see shortcuts to files you opened recently.
  4. In your browser, open the history page. Notice the times and the download list.
  5. Write a small timeline of your own morning on the computer using these sources.

Only do this on your own device. Looking at another person's computer without permission is not allowed.

HANDS-ON LAB

Night Login Timeline

A laptop installed a strange service at night. Build a timeline and find the account the attacker used.

Start the lab →

Check your understanding

Answer every question correctly to complete this lesson. If you miss one, try the quiz again.

1. An investigator wants evidence that a program called tool.exe was run on a Windows laptop, even though the file has since been deleted. Which artifact is a good place to look?

2. Event ID 1102 appears in the Security log at 03:15. Why is this important?

3. Why should all times in a timeline be converted to one time zone, such as UTC?

Locked: answer every quiz question above correctly to complete this lesson.

Spotted a mistake or something unclear? Report a mistake