Event ID 4663: An attempt was made to access an object
Event 4663 logs attempts to access files, folders, and registry keys when object auditing is enabled. This event is essential for detecting data exfiltration, unauthorized access to sensitive files, and lateral movement via file shares. High volume requires focused auditing on critical assets only.
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- High
- Audit subcategory
- File System
- Needs a SACL
- Yes
To have this event
- Enable File System:
auditpol /set /subcategory:"File System" /success:enable /failure:enable - A SACL on the file, folder or key.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account attempting access |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID for correlation |
| ObjectType | Type of object (File, Key, etc.) |
| ObjectName | Name or path of the object |
| HandleId | Handle ID (correlates with 4656) |
| ProcessName | Process attempting access |
| ProcessId | Process ID |
| AccessMask | Access rights used (hex value) |
| AccessList | Textual representation of access performed |
In an investigation
Event 4663 is generated when a user or process attempts to access an audited object such as a file, folder, registry key, or other securable object on a Windows system. This event provides detailed information about what object was accessed, which account performed the access, what type of access was requested (read, write, delete, etc.), and whether the access was granted or denied. While this event can generate significant log volume in busy environments, when properly scoped to critical assets it becomes one of the most valuable events for detecting data theft, unauthorized access to sensitive information, and lateral movement through file shares. Security analysts configure Object Access Auditing (SACL - System Access Control List) on specific high-value targets such as directories containing financial data, personally identifiable information, intellectual property, or administrative tools. The event's access mask field reveals exactly what operations were attempted, allowing analysts to differentiate between benign file listing operations versus actual file content reads or modifications. Common attack scenarios visible through 4663 include attackers enumerating network shares looking for valuable data, exfiltrating files to staging locations, modifying system configuration files, and accessing credential storage locations like SAM or NTDS.dit database files. When combined with network connection events (Sysmon 3), analysts can correlate file access with subsequent network transmission to identify data exfiltration in progress.
What it can reveal
- Bulk access to files in sensitive directories indicates potential data exfiltration or ransomware encryption preparation
- Access to credential stores (SAM, NTDS.dit, LSASS memory) reveals credential harvesting attempts
- Unauthorized access to backup directories may indicate attackers trying to prevent recovery after ransomware
- Registry key access for Run keys, Services, or AppInit_DLLs shows persistence mechanism installation
- After-hours access to financial or HR directories from IT accounts should trigger investigation
How to detect with it
Scope object access auditing to high-value targets rather than auditing everything, which creates unmanageable log volume. Focus on directories containing sensitive data, system configuration locations, and credential storage areas. Alert on bulk file access patterns where a single account accesses hundreds or thousands of files in a short time period. Monitor for access to file extensions commonly targeted for exfiltration (.xlsx, .docx, .pdf, .pst) from accounts that don't normally access those files. Flag access to system directories like System32, Windows, or Program Files from non-administrative accounts. Correlate file access with network connections to detect staging and exfiltration. Track access to backup directories, especially deletion or modification attempts. Establish baseline access patterns for sensitive directories and alert on deviations. Comprehensive SIEM queries and volume management strategies will be provided in subsequent updates.
Attack patterns
- Maze ransomware operators extensively accessed network file shares to identify valuable data for exfiltration before encryption
- FIN7 group uses 4663 events to map networks, accessing administrative shares and identifying high-value targets
- APT1 campaigns generated distinctive 4663 patterns when accessing and stealing intellectual property from compromised organizations
Compared withEvent 4663 logs the access itself. Event 4656 logs when a handle to the object is requested, and 4658 logs when the handle is closed. Event 5145 logs network share access attempts.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4663)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
- Attack signalLSASS Memory DumpingAn access actually performed against the LSASS process object, confirming the handle in 4656 was used.
- InvestigationWas a USB storage device connected, and which one?Attribute it to a user and any file activity
- InvestigationWhich files were accessed or staged over SMB shares?Use local object-access auditing where present
- InvestigationDid data leave, how much, and to where?Check object access for what was read before it left
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Also relevant, depending on field values
Related events
Common questions
- What does Windows event ID 4663 mean?
- Event 4663 logs attempts to access files, folders, and registry keys when object auditing is enabled. This event is essential for detecting data exfiltration, unauthorized access to sensitive files, and lateral movement via file shares. High volume requires focused auditing on critical assets only.
- Is event 4663 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "File System" Advanced Audit Policy subcategory (Object Access). It also requires a SACL on the audited object.
- Where is event 4663 recorded?
- In the Security channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderEvent 4663 logs attempts to access files, folders, and registry keys when object auditing is enabled. This event is essential for detecting data exfiltration, unauthorized access to sensitive files, and lateral movement via file shares. High volume requires focused auditing on critical assets only.