-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathtmp.yara
More file actions
34 lines (29 loc) · 977 Bytes
/
tmp.yara
File metadata and controls
34 lines (29 loc) · 977 Bytes
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
rule tmp_path: medium {
meta:
description = "path reference within /tmp"
strings:
$resolv = /\/tmp\/[%\w\.\-\/]{0,64}/
condition:
any of them
}
rule weird_tmp_path_not_hidden: medium {
meta:
description = "references an unusual path within /tmp"
strings:
$tmp_digits = /\/tmp\/[\w]*\d{1,128}/
$tmp_short = /\/tmp\/[\w\.\-]{1,3}[^\w\.\-]/
$not_x11 = "/tmp/.X11"
$not_private = "/System/Library/PrivateFrameworks/"
$not_movie = "/tmp/myTestMovie.m4"
$not_usage = "usage: "
$not_invalid = "invalid command option"
$not_brother = "/tmp/BroH9"
$not_compdef = "#compdef"
$not_c1 = "/tmp/CaptureOne"
$not_openra = "/tmp/R8"
$not_private_literal = "private-literal"
$not_apple = "Apple Inc"
$not_sandbox = "andbox profile"
condition:
any of ($t*) and none of ($not*)
}