-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetect_exploiter.yar
135 lines (126 loc) · 3.4 KB
/
detect_exploiter.yar
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
rule Exploiter_jposeirt_downloader_cleartext {
meta:
description = "Redirector - jposeirt downloader (cleartext)"
author = "Farhan Faisal"
date = "2018/07/17"
score = 70
hash = "94f8cf252a854c864e78b95480c87846"
strings:
$s0 = "$_REQUEST[\"test_url"
$s1 = "base64_decode"
$s2 = "file_put_contents"
$s3 = ".zip"
$s4 = "PCLZIP_ERR_USER_ABORTED"
$s5 = "PCLZIP_ERR_INVALID_PARAMETER"
$s6 = "PclZip::errorCode"
$s7 = "PCLZIP_OPT_BY_INDEX"
condition:
$s0 and $s1 and $s2 and $s3 and $s4 and $s5 and $s6 and ( #s7 > 8 )
}
rule Exploiter_wordpress_WP_load_update_core {
meta:
description = "Wordpress exploiter - replace wp-load.php and update-core.php"
author = "Farhan Faisal"
date = "2018/07/17"
score = 70
hash = "f15ab6224eb386bf6efbdf323536b306"
strings:
$s1 = "ini_set"
$s2 = "set_time_limit"
$s3 = "error_reporting"
$s4 = "file_put_contents"
$s5 = "wp-load.php"
$s6 = "gzuncompress"
$s7 = "base64_decode"
$s8 = "str_replace"
$s9 = "unlink"
$s10 = "strlen"
$s11 = "htaccess"
condition:
all of them
}
rule Exploiter_wordpress_injected_createUser {
meta:
description = "Wordpress exploiter - replace wp-load.php and update-core.php"
author = "Farhan Faisal"
date = "2018/07/17"
score = 70
hash = "0c1ef85adf6cad873ee5413ab2e1baa5"
strings:
$s1 = "set_time_limit"
$s2 = "SHELL_PASSWORD"
$s3 = "MAX_UP_LEVELS"
$s4 = "create_user"
$s5 = "wp_insert_user"
$s6 = "wp_login_url"
$s7 = "wp_insert_post"
$aa = "hashed_password"
condition:
(#aa > 7) and (all of ($s*))
}
rule Exploiter_wordpress_joomla {
meta:
description = "Wordpress & joomla exploiter - uploader.php"
author = "Farhan Faisal"
date = "2019/07/11"
score = 70
hash = "1337cd85defe6b1c00a8a598acd99bef"
strings:
$s1 = "function filter_dirs"
$s2 = "function get_all_dirs"
$s3 = "jm_file_names"
$s4 = "wp_file_names"
$s5 = "MAX_EXEC_TIME"
$s6 = "MAX_LEVELS_UP"
$s7 = "base64_decode"
$s8 = "eval("
$s9 = "WORDPRESS"
$s10 = "JOOMLA"
$s11 = "PLATFORM"
condition:
(all of ($s*))
}
rule Exploiter_wordpress_2 {
meta:
description = "Wordpress exploiter - wp_code.php"
author = "Farhan Faisal"
date = "2019/07/11"
score = 70
hash = "0a28c9bee45b7f7dad1b2c57d69652ed"
strings:
$s1 = "set_time_limit"
$s2 = "PASSWORD_FILE"
$s3 = "rawurlencode"
$s4 = "SHELL_PASSWORD"
$s5 = "MAX_UP_LEVELS"
$s6 = "wp-load.php"
$s7 = "file_found"
$s8 = "get_blogs_list"
$s9 = "get_users"
$s10 = "file2clean"
$s11 = "post_url2search"
condition:
(all of ($s*))
}
rule Exploiter_joomla_1 {
meta:
description = "Wordpress exploiter - jm_code.php"
author = "Farhan Faisal"
date = "2019/07/11"
score = 70
hash = "863e2a44ba896d456731998cd084288c"
strings:
$s1 = "set_time_limit"
$s2 = "PASSWORD_FILE"
$s3 = "SHELL_PASSWORD"
$s4 = "MAX_UP_LEVELS"
$s5 = "administrator"
$s6 = "file_found"
$s7 = "JPATH_BASE"
$s8 = "JPATH_COMPONENT_ADMINISTRATOR"
$s9 = "id2delete"
$s10 = "JTable"
$s11 = "raiseWarning"
condition:
(all of ($s*))
}