Use these flags with the ACCESS_MATCH Match_type value.
Note
Exploit Prevention is not supported in the ARM architecture.
Flag | Applies to object types | Applies when |
|---|---|---|
CONNECT_NAMED_PIPE | FILE (representing a named pipe) | Attempt to connect to a named pipe. |
CREATE |
|
|
DELETE |
|
|
ENUM |
|
|
EXECUTE | FILE |
|
LOAD_IMAGE | SECTION | Notification only (cannot block the image load). |
LOAD_KEY | KEY | Registry hive is loaded into a key with ZwLoadKey or RegLoadKey. |
LOCK_RANGE | Attempt to lock or unlock a byte-range lock on a file. Use this access mask to protect a log file. You don't need to use this access mask for files that you aren't going to WRITE to at runtime, but byte-range locks don't stop reading and executing files. | |
OPEN_FOR_DELETE | FILE | Create/open event that requested delete access. |
POST | FILE | Post-operation event. Events that carry this bit only match against rules that have this bit set. Also, if the access mask contains other bits set (not including POST), the rule evaluates to true only if at least one other bit matches the event. |
QUERY |
| Attempt to query a registry key/value occurs. |
READ |
| Existing file/key is being opened for read access.
|
READ_DATA | FILE | An actual read file I/O occurs (ReadFile executed from user-space). |
RENAME |
| Registry key or file rename operation occurs. |
REPLACE_KEY | KEY | Registry key is replaced (RegReplaceKey). |
RESTORE_KEY | KEY | Registry key is restored (RegRestoreKey). |
SET_FILE_LENGTH | FILE | Any operation that changes the file length (ZwSetInformationFile), where class is one of:
This access bit helps with file-copy detection, when the destination file is extended and then written to. |
SET_REPARSE | FILE | Attempt to set the reparse data on a file or directory object. Do not use this access mask with IS_DIRECTORY. Attempts to set a reparse point on an alternate data stream don't match correctly. This is because the file system always considers alternate data streams as "file" objects, even if the base file object is a directory. But, reparse data is configurable from an alternate data stream file handle on a directory, which causes STATUS_REPARSE to be returned for all streams of a directory or file object. |
TERMINATING |
| Notification only (cannot block a terminate action). |
WRITE |
|
|
WRITE_ATTRIBUTE | FILE | File or directory's attributes are written to. |
WRITE_DATA | FILE | Actual write file I/O (WriteFile executing from user-space). |