-
Notifications
You must be signed in to change notification settings - Fork 159
/
get-file-attributes.yml
35 lines (35 loc) · 1.11 KB
/
get-file-attributes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
rule:
meta:
name: get file attributes
namespace: host-interaction/file-system/meta
authors:
- michael.hunhoff@mandiant.com
- anushka.virgaonkar@mandiant.com
scopes:
static: basic block
dynamic: call
mbc:
- File System::Get File Attributes [C0049]
examples:
- 03B236B23B1EC37C663527C1F53AF3FE:0x180019824
- B5F85C26D7AA5A1FB4AF5821B6B5AB9B:0x4028B6
- B5F85C26D7AA5A1FB4AF5821B6B5AB9B:0x4029E0
features:
- or:
- api: kernel32.GetFileAttributes
- api: ZwQueryDirectoryFile
- api: ZwQueryInformationFile
- api: NtQueryDirectoryFile
- api: NtQueryInformationFile
- api: System.IO.File::GetAttributes
- api: System.IO.File::GetCreationTime
- api: System.IO.File::GetCreationTimeUtc
- api: System.IO.File::GetLastAccessTime
- api: System.IO.File::GetLastAccessTimeUtc
- api: System.IO.File::GetLastWriteTime
- api: System.IO.File::GetLastWriteTimeUtc
- property/read: System.IO.FileSystemInfo::Attributes
- api: stat
- api: fstat
- api: lstat
- api: fstatat