This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 579
/
rules.json
480 lines (480 loc) · 13.4 KB
/
rules.json
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
[
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "web进程执行了系统命令,可能为命令执行漏洞或者webshell行为",
"level": 0,
"name": "WebServer可疑进程启动(windows)"
},
"rules": {
"name": {
"data": "^(cmd\\.exe|powershell\\.exe)$",
"type": "regex"
},
"parentname": {
"data": "^(w3wp\\.exe|httpd\\.exe|nginx\\.exe|php-cgi\\.exe)$",
"type": "regex"
}
},
"source": "process",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "所有服务器从未出现过的进程",
"level": 1,
"name": "首次出现进程"
},
"rules": {
"name": {
"data": "1",
"type": "count"
}
},
"source": "process",
"system": "all"
},
{
"and": false,
"enabled": true,
"meta": {
"author": "wolf",
"description": "黑客工具和可疑程序列表",
"level": 0,
"name": "黑客工具(windows)"
},
"rules": {
"command": {
"data": "f\\-scrack\\.py|rtcp\\.py|s5\\.py|wmiexec\\.vbs",
"type": "regex"
},
"name": {
"data": "^(nc\\.exe|sl\\.exe|hd\\.exe|s\\.exe|portmap\\.exe|putty\\.exe|s5\\.exe|sock5\\.exe|iisputscan\\.exe|htran\\.exe|hfs\\.exe|rsh\\.exe|netty\\.exe|rexec\\.exe|icenw\\.exe|netsh\\.exe|chopper\\.exe|srvinfo\\.exe|naruto-domain\\.exe|rcsocket\\.exe|mt\\.exe|hatchet\\.exe|session\\.exe|cain\\.exe|socksproxy\\.exe|psexec\\.exe|rssocks\\.exe|hydra\\.exe|netcat\\.exe|lcx\\.exe|tunnel\\.exe|nmap\\.exe|attrib\\.exe|mshta\\.exe|regasm\\.exe|ieexec\\.exe)$",
"type": "regex"
}
},
"source": "process",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "linux黑客工具列表",
"level": 0,
"name": "黑客工具(linux)"
},
"rules": {
"command": {
"data": "f-scrack\\.py|rtcp\\.py|s5\\.py|tunnel|lcx|crack|netcat|hydra|xosver|ssock|rssocks|psexec|socks|regeorg|^nmap|rootkit",
"type": "regex"
}
},
"source": "process",
"system": "linux"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "Guest用户正常情况为禁止状态",
"level": 0,
"name": "Guest用户异常"
},
"rules": {
"name": {
"data": "Guest",
"type": "string"
},
"status": {
"data": "OK",
"type": "string"
}
},
"source": "userlist",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "所有服务器从未连接过的IP",
"level": 1,
"name": "首次出口连接"
},
"rules": {
"remote": {
"data": "1",
"type": "count"
}
},
"source": "connection",
"system": "all"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "企业网络中首次出现的用户",
"level": 1,
"name": "可疑用户"
},
"rules": {
"name": {
"data": "1",
"type": "count"
}
},
"source": "userlist",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "带有$符号的隐藏用户,很大可能为黑客设置的隐藏后门账户",
"level": 0,
"name": "隐藏用户"
},
"rules": {
"name": {
"data": "\\$",
"type": "regex"
}
},
"source": "userlist",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "企业网络中首次出现的linux可登陆用户",
"level": 1,
"name": "可疑用户"
},
"rules": {
"description": {
"data": "\\/bin\\/bash|\\/bin\\/sh",
"type": "regex"
},
"name": {
"data": "1",
"type": "count"
}
},
"source": "userlist",
"system": "linux"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "非运维常用登陆IP",
"level": 1,
"name": "可疑登陆"
},
"rules": {
"remote": {
"data": "1",
"type": "count"
},
"status": {
"data": "true",
"type": "string"
}
},
"source": "loginlog",
"system": "all"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "整个内网首次出现的自启动服务",
"level": 1,
"name": "可疑服务"
},
"rules": {
"name": {
"data": "1",
"type": "count"
},
"startmode": {
"data": "Auto",
"type": "string"
}
},
"source": "service",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "企业网络中首次出现的计划任务",
"level": 1,
"name": "可疑计划任务"
},
"rules": {
"command": {
"data": "1",
"type": "count"
}
},
"source": "crontab",
"system": "all"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "系统文件被篡改,可能为攻击者留下的后门。",
"level": 0,
"name": "系统文件异常变化"
},
"rules": {
"action": {
"data": "WRITE",
"type": "string"
},
"path": {
"data": "cmd\\.exe|magnify\\.exe|sethc\\.exe|osk\\.exe|narrator\\.exe|displayswitch\\.exe|powershell\\.exe|explorer\\.exe|\\/bin\\/ps|\\/bin\\/netstat|\\/bin\\/last|\\/sbin\\/ss|\\/etc\\/pam.d\\/",
"type": "regex"
}
},
"source": "file",
"system": "all"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "可能为攻击者上传的webshell",
"level": 0,
"name": "可疑动态脚本写入"
},
"rules": {
"action": {
"data": "WRITE",
"type": "string"
},
"path": {
"data": "\\.(asp|asa|cer|cdx|htr|hdx|aspq|rem|rules|soap|svc|vbhtm[l]?|xamlx|xoml|asmx|ashx|asax|aspx|ascx|cshtm[l]?|cs|jsp|jspx|jspf|php[1-5]?)([\\.]+)?$",
"type": "regex"
},
"user": {
"data": "administrators",
"type": "non-regex"
}
},
"source": "file",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "利用web server的解析漏洞或者系统特性的异常文件",
"level": 0,
"name": "异常文件写入"
},
"rules": {
"action": {
"data": "WRITE",
"type": "string"
},
"path": {
"data": "\\.php[1-5]?\\.[a-z1-9]|\\/(con|aux|prn|nul|com[1-9]|lpt[1-9])\\.",
"type": "regex"
}
},
"source": "file",
"system": "all"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "linux可疑命令",
"level": 1,
"name": "可疑命令"
},
"rules": {
"command": {
"data": "insmod|hacker|\\/dev\\/tcp\\/|\\/dev\\/udp|history \\-c|vi.*?history|touch \\-d",
"type": "regex"
}
},
"source": "process",
"system": "linux"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "尝试关闭agent,可能为攻击者所为。",
"level": 1,
"name": "关闭安全agent"
},
"rules": {
"command": {
"data": "systemctl stop yulong-hids|net stop yulong-hids",
"type": "regex"
}
},
"source": "process",
"system": "all"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "模仿系统文件名,伪装为系统进程,可能为恶意程序。",
"level": 0,
"name": "伪装系统进程(svchost.exe)"
},
"rules": {
"command": {
"data": "^\\\"?c:\\\\{1,2}windows\\\\{1,2}system32\\\\{1,2}svchost\\.exe\\\"?",
"type": "non-regex"
},
"name": {
"data": "svchost.exe",
"type": "string"
}
},
"source": "process",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "不平常的调用方式,很大几率为攻击者所为",
"level": 1,
"name": "可疑命令调用行为"
},
"rules": {
"command": {
"data": "^(bitsadmin \\/transfer|powershell \\-exec bypass|powershell.*?webclient|rundll32|regsvr32.*?\\/i\\:|certutil.*?\\-f|cscript.*?pubprn\\.vbs)",
"type": "regex"
},
"parentname": {
"data": "^(cmd\\.exe|powershell\\.exe)$",
"type": "regexp"
}
},
"source": "process",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "数据库进程执行命令,很大几率为攻击者所为。",
"level": 0,
"name": "数据库执行命令"
},
"rules": {
"name": {
"data": "cmd.exe",
"type": "string"
},
"parentname": {
"data": "^(sqlservr\\.exe|mysqld.exe)$",
"type": "regex"
}
},
"source": "process",
"system": "windows"
},
{
"and": false,
"enabled": true,
"meta": {
"author": "wolf",
"description": "用于导出系统密码的黑客工具,需立刻处理。",
"level": 0,
"name": "HashDump黑客工具"
},
"rules": {
"command": {
"data": "vssown\\.vbs",
"type": "regex"
},
"name": {
"data": "^(mimikatz\\.exe|quarkspwdump\\.exe|prodump\\.exe|creddump\\.exe|pwdump7\\.exe|wce\\.exe|gethashes\\.exe|gsecdump\\.exe|ntdsutil\\.exe)$",
"type": "regex"
}
},
"source": "process",
"system": "windows"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "web进程执行了系统命令,可能为命令执行漏洞或者webshell行为",
"level": 0,
"name": "WebServer可疑进程启动(linux)"
},
"rules": {
"name": {
"data": "\\/bin\\/",
"type": "regex"
},
"parentname": {
"data": "^(apache[2]?|nginx|php)$",
"type": "regex"
}
},
"source": "process",
"system": "linux"
},
{
"and": true,
"enabled": true,
"meta": {
"author": "wolf",
"description": "web中间件执行了系统命令,可能为命令执行漏洞或者webshell行为",
"level": 0,
"name": "Web中间件可疑进程启动(linux)"
},
"rules": {
"info": {
"data": "tomcat|weblogic",
"type": "regex"
},
"parentname": {
"data": "java",
"type": "string"
}
},
"source": "process",
"system": "linux"
}
]