Skip to content

Windows Event ID 4664: An attempt was made to create a hard link

Written when an NTFS hard link is created. It is an operation that creates another named entry into a single file, and it can be used for audit evasion or file concealment.

Overview

The subcategory is Audit File System. It is generated when an NTFS hard link (multiple directory entries pointing to the same file content) is successfully created. With a hard link, the same content can be accessed from a different path and name than the original file.

How it is triggered

  • When a hard link is created, for example with mklink /H or the CreateHardLink API.
  • It is recorded in environments where File System auditing is enabled on the target.

Security review points

  • When auditing or access control is tied to the original file’s path, a hard link can be used to access the content from another name and thereby evade detection or restriction. Check who created the link (Subject). The event has no process information, so correlate with process creation 4688 around the same time.
  • Unexpected hard-link creation against important or protected files can be a sign of file concealment or preparation for exfiltration.

Notes for log review

  • It does not occur often in normal operation. When it appears, check the target file and the account that created the link.
  • Backup software and some legitimate tools use hard links, so baseline out and exclude the known accounts and target paths of legitimate tools.

MITRE ATT&CK mapping

No technique covers hard link creation directly. It can be used to bypass path-based auditing through an alias, or in privilege escalation that exploits arbitrary file write bugs (T1068 Exploitation for Privilege Escalation).

Mapping as of ATT&CK v19.2. To search by technique, see the ATT&CK reverse lookup.

Key fields

FieldMeaning
Subject\Account NameThe account that created the link
File Name / Link NameThe original file and the created link
Transaction IDThe transaction identifier, useful for correlating with other events that carry the same ID

Glossary

  • Hard link — multiple names pointing to the same file content; the same content is reachable from any of the names.

References