Skip to content
SIEMBench
100% Client-Side Tool • Inputs Never Sent to Our Servers

Event ID 4663

Event ID 4663: Object Access Attempt

An attempt was made to access an object

Log source
Security
How to enable it
Object Access > Audit File System, Registry, Kernel Object or Removable Storage (Success), plus a SACL on the object
Category
Process Execution
Priority
Medium
Typical volume
Very high
MITRE ATT&CK

What Event ID 4663 means

4663 is written when a right is actually exercised on an audited object. That sets it apart from 4656, which records that a handle was requested. If a program opened a file with many rights and used only one, 4663 shows that one.

Nothing is recorded unless two conditions are met: the audit subcategory is on, and the object carries a SACL that covers the account and the right. The design lets you choose precisely what to watch, and it is the reason many environments have the subcategory enabled and see nothing.

Used with care, it is one of the best tripwires in Windows. A decoy document that nobody should open, the registry hives that hold credentials, browser password stores and the LSASS process all work well with a narrow SACL. Auditing entire shares does not, as the volume drowns everything.

Key fields to inspect

FieldMeaningSuspicious when
ObjectName File, key or object that was accessed. \Device\...\lsass.exe, SAM, SECURITY or NTDS.dit, decoy files, or many files in a short time.
ObjectType File, Key, Process or another type. Process, when it concerns LSASS.
AccessMask Right that was used, in hexadecimal. 0x10 on a process (read memory), 0x2 or 0x10000 on many files.
ProcessName Program that used it. Anything outside the vendor's folder, or rundll32.exe, powershell.exe and procdump.
SubjectUserName Account that used it. A user outside the group that works with the data.
SubjectLogonId Session that used it. A network session on a file server.
HandleId Handle, which links to 4656, 4660 and 4658. The same handle in 4660 means that the object was deleted.

Access mask bits for files

BitRightReading
0x1Read data or list folderCollection
0x2Write data or add fileModification, encryption or tool copy
0x4Append data or add subfolderModification
0x20Execute or traverseProgram start
0x40Delete childDeletion inside a folder
0x80Read attributesUsually noise
0x10000DELETEDeletion or rename
0x40000WRITE_DACPermission change
0x80000WRITE_OWNEROwnership change

Detection queries

Find programs that read LSASS memory, and accounts that write or delete hundreds of files in a minute. Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows source="XmlWinEventLog:Security" EventCode=4663
| eval lsass=if(match(ObjectName, "(?i)\\\\lsass\.exe$") AND AccessMask="0x10", 1, 0)
| bin _time span=1m
| stats sum(lsass) AS lsass_reads dc(eval(if(match(AccessMask, "^0x(2|6|10000)$"), ObjectName, null()))) AS changed_files BY _time Computer SubjectUserName ProcessName
| where lsass_reads>0 OR changed_files>=200

Microsoft Sentinel KQL

SecurityEvent
| where EventID == 4663
| extend Lsass = ObjectName endswith @"\lsass.exe" and AccessMask == "0x10"
| summarize LsassReads = countif(Lsass), ChangedFiles = dcountif(ObjectName, AccessMask in ("0x2", "0x6", "0x10000")) by Computer, SubjectUserName, ProcessName, bin(TimeGenerated, 1m)
| where LsassReads > 0 or ChangedFiles >= 200

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4663; StartTime = (Get-Date).AddDays(-1) } |
  ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
  Where-Object { $_.ObjectName -match 'lsass\.exe$|\\SAM$|NTDS\.dit' } |
  Select-Object Time, SubjectUserName, ObjectName, AccessMask, ProcessName | Format-List

Attack scenarios

Credential dumping from LSASS

Windows 10 and Server 2016 or later place a default SACL on LSASS for memory reads. With Kernel Object auditing on, a tool that reads it produces ObjectType Process, AccessMask 0x10 and the name of the tool.

Ransomware on a file server

One account, one session and one process write and delete thousands of files within minutes. New extensions and an identical note in each folder confirm it. On a server the process is empty or System, because access comes over SMB.

Decoy file

A document called passwords.xlsx in a share that nobody uses, with a SACL for Everyone, costs nothing. Any read of it is worth a phone call.

Investigation checklist

  1. Decode AccessMask to see what was done and not only what was opened.
  2. For network sessions, match SubjectLogonId to 5140 or 4624 for the source address.
  3. Use HandleId to find 4660 and confirm deletion.
  4. For LSASS, identify the program, hash it and reset credentials used on that host.

Common benign causes

Event ID 4663 FAQ

Why is event 4663 not being logged?

Both parts are required: the relevant Object Access subcategory, and an audit entry (SACL) on the object for the account and right in question. Check the Auditing tab of the file, folder or key.

What is the difference between 4656 and 4663?

4656 records a request for a handle and the rights asked for, including failures. 4663 records that a specific right was used. For evidence of real access, 4663 is stronger.

Can 4663 detect file deletion?

Partly. AccessMask 0x10000 shows that delete access was used, which also happens on rename. Event 4660 with the same HandleId confirms that the object was deleted.

Techniques follow MITRE ATT&CK® v20.1. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (license). Field names were checked against Microsoft documentation and provider schemas.