SecurityObject Access
Event ID 4664: An attempt was made to create a hard link
An attempt was made to create a hard link.
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- Moderate
- Audit subcategory
- File System
- Needs a SACL
- Yes
To have this event
- Enable File System:
auditpol /set /subcategory:"File System" /success:enable /failure:enable
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account that attempted to create hard link |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID for correlation |
| FileName | Original file name |
| LinkName | Hard link name to be created |
| ProcessName | Process that attempted the operation |
| ProcessId | Process ID |
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=4664)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Common questions
- What does Windows event ID 4664 mean?
- An attempt was made to create a hard link. It is written to the Windows Security log (Security).
- Is event 4664 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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderAn attempt was made to create a hard link. Needs the "File System" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.