-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto_schema.json
107 lines (106 loc) · 4.27 KB
/
auto_schema.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
{
"$schema": "http://json-schema.org/schema",
"title": "Huorong HIPS Verdict Cache Schema",
"description": "This is the schema for Huorong Internet Security HIPS Verdict Cache",
"type": "object",
"properties": {
"ver": {
"type": "string",
"description": "must be '5.0'",
"const": "5.0",
"default": "5.0"
},
"tag": {
"type": "string",
"description": "must be 'hipsuser_auto'",
"const": "hipsuser_auto",
"default": "hipsuser_auto"
},
"data": {
"type": "object",
"description": "rule",
"patternProperties": {
"^.*$": {
"type": "array",
"description": "target path",
"items": {
"type": "object",
"description": "target",
"properties": {
"res_path": {
"type": "string",
"description": "target path, wildcard support '*'(any), '>'(any except dir)",
"default": "*"
},
"montype": {
"type": "integer",
"description": "0:app_defense, 1:file_defense, 2:reg_defense",
"enum": [
0,
1,
2
],
"default": 0
},
"action_type": {
"type": "integer",
"description": "monitered events: 1:Create, 2:Read, 4:Modify, 8:Delete, 16:Execute(app_def)",
"minimum": 1,
"maximum": 16,
"default": 16
},
"treatment": {
"type": "integer",
"description": "action when triggered, 0:allow, 3:block",
"enum": [
0,
3
],
"default": 1
}
},
"required": [
"montype",
"action_type",
"res_path",
"treatment"
],
"defaultSnippets": [
{
"label": "app_defense",
"description": "app_defense template",
"body": {
"res_path": "$1",
"montype": 0,
"action_type": 16,
"treatment": 0
}
},
{
"label": "file_defense",
"description": "file_defense template",
"body": {
"res_path": "$1",
"montype": 1,
"action_type": 1,
"treatment": 0
}
},
{
"label": "reg_defense",
"description": "reg_defense template",
"body": {
"res_path": "$1",
"montype": 2,
"action_type": 1,
"treatment": 0
}
}
]
}
}
},
"additionalProperties": false
}
}
}