summaryrefslogtreecommitdiff
path: root/soqconf/t1conf/maat_test.json
blob: 56c32b087037ecdafa6d917bd6722b9cf2da69e3 (plain)
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
{
    "compile_table": "CONFIG_COMPILE",
    "group_table": "CONFIG_GROUP",
    "rules": [
        {
            "compile_id": 1,
            "service": 1,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "anything",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "group_1",
                    "regions": [
                        {
                            "table_name": "DF_IP_PORT",
                            "table_type": "ip",
                            "table_content": {
                                "addr_type": "ipv4",
                                "src_ip": "172.30.8.1",
                                "mask_src_ip": "255.255.255.255",
                                "src_port": "0",
                                "mask_src_port": "65535",
                                "dst_ip": "0.0.0.0",
                                "mask_dst_ip": "255.255.255.255",
                                "dst_port": "0",
                                "mask_dst_port": "65535",
                                "protocol": 0,
                                "direction": "double"
                            }
                        },
                        {
                            "table_name": "DF_IP_PORT",
                            "table_type": "ip",
                            "table_content": {
                                "addr_type": "ipv6",
                                "src_ip": "2001:da8:205:1::101",
                                "mask_src_ip": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:0000",
                                "src_port": "0",
                                "mask_src_port": "65535",
                                "dst_ip": "0::0",
                                "mask_dst_ip": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
                                "dst_port": "0",
                                "mask_dst_port": "65535",
                                "protocol": 0,
                                "direction": "double"
                            }
                        }
                    ]
                }
            ]
        },
				{
            "compile_id": 2,
            "service": 48,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "anything",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "group_2",
                    "regions": [
                        {
                            "table_name": "DJ_IP_PORT",
                            "table_type": "ip",
                            "table_content": {
                                "addr_type": "ipv4",
                                "src_ip": "10.0.6.201",
                                "mask_src_ip": "255.255.255.255",
                                "src_port": "0",
                                "mask_src_port": "65535",
                                "dst_ip": "0.0.0.0",
                                "mask_dst_ip": "255.255.255.255",
                                "dst_port": "0",
                                "mask_dst_port": "65535",
                                "protocol": 0,
                                "direction": "double"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "compile_id": 105,
            "service": 50,
            "action": 1,
            "do_blacklist": 0,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "100;",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_FTP_URL",
                            "table_type": "expr",
                            "table_content": {
				"keywords":"!!!!!!.com",
				"expr_type":"none",
				"match_method":"sub",
				"format":"uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "compile_id": 101,
            "service": 50,
            "action": 1,
            "do_blacklist": 0,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "100;",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_HTTP_URL",
                            "table_type": "expr",
                            "table_content": {
				"keywords":"sdfghjkooooooool;mhhjkl;.com",
				"expr_type":"none",
				"match_method":"sub",
				"format":"uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "compile_id": 102,
            "service": 13,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "100;",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_MAIL_HDR",
                            "table_type": "expr_plus",
                            "table_content": {
                            	"district": "To",
                                "keywords": "[email protected]",
                                "expr_type": "and",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "compile_id": 104,
            "service": 13,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "10;",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_MAIL_HDR",
                            "table_type": "expr_plus",
                            "table_content": {
                            	"district": "Subject",
                                "keywords": "董嵬去北陵",
                                "expr_type": "and",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "compile_id": 103,
            "service": 13,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "10;",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_MAIL_HDR",
                            "table_type": "expr_plus",
                            "table_content": {
                            	"district": "To",
                                "keywords": "[email protected]",
                                "expr_type": "and",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
	{
            "compile_id":108,
            "service": 6,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "100;0",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_DNS_REGION",
                            "table_type": "expr_plus",
                            "table_content": {
                            	"district": "QNAME",
                                "keywords": ".net-test",
                                "expr_type": "and",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
	{
            "compile_id":107,
            "service": 6,
            "action": 2,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "100;1801",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_DNS_REGION",
                            "table_type": "expr_plus",
                            "table_content": {
                            	"district": "QNAME",
                                "keywords": ".com-test",
                                "expr_type": "and",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
    	{
            "compile_id":106,
            "service": 6,
            "action": 1,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "100;1801",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "Untitled",
                    "regions": [
                        {
                            "table_name": "DF_DNS_REGION",
                            "table_type": "expr_plus",
                            "table_content": {
                            	"district": "QNAME",
                                "keywords": ".com",
                                "expr_type": "and",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        }
    ],
    "plugin_table": [
    	{
            "table_name": "DNS_RESPONSE_STRATEGY",
            "table_content": [
                "18001\t1801\tstrategy_1\t18101\t1\t18108\t1\t18308\t1\t18405\t1\t0\t0\t60\t600\t1",
                "18002\t1802\tstrategy_2\t18201\t1\t18201\t1\t18301\t1\t18401\t1\t0\t0\t60\t600\t1"
            ]
        },
    	{
            "table_name": "DNS_GROUP_TYPE",
            "table_content": [
							"19001\t18101\t7\t1",
							"19002\t18201\t7\t1",
							"19003\t18301\t0\t1",
							"19004\t18401\t0\t1"
            ]
        },
	{
            "table_name": "DNS_FAKE_IP",
            "table_content": [
		"10001\t1\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t10.10.10.10\t255.255.255.255\t0\t65535\t0\t0\t1",
		"10011\t1\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t13.13.13.10\t255.255.255.255\t0\t65535\t0\t0\t1",
		"10002\t0\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t11.11.11.11\t255.255.255.255\t0\t65535\t0\t0\t1",
		"10003\t0\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t12.12.12.12\t255.255.255.255\t0\t65535\t0\t0\t1",
		"10004\t0\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t50:50:50::50\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t0",
		"10005\t0\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t60:60:40::40\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t0",
		"10006\t1\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t70:70:40::40\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t1",
		"10007\t1\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t40:40:40::40\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t1",
		"20001\t18101\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t1.1.1.1\t255.255.255.255\t0\t65535\t0\t0\t1",
		"20002\t18101\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t2.2.2.2\t255.255.255.255\t0\t65535\t0\t0\t1",
		"20003\t18101\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t3.3.3.3\t255.255.255.255\t0\t65535\t0\t0\t0",
		"20004\t18101\t4\t0.0.0.0\t255.255.255.255\t0\t65535\t4.4.4.4\t255.255.255.255\t0\t65535\t0\t0\t1",
		"20006\t18101\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t6:6:4::4\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t1",
		"20007\t18201\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t7:7:4::4\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t1",
		"20008\t18201\t6\t0::0\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t8:8:4::4\tFFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF\t0\t65535\t0\t0\t1"
            ]
        },
        {
            "table_name": "DNS_FAKE_INFO",
            "table_content": [
		"21001\t18301\twww.bdu.com\t1",
		"21002\t18301\twww.bidu.com\t1",
		"21003\t18301\twww.idu.com\t1",
		"21004\t18401\twww.sna.com\t1",
		"21005\t18401\twww.na.com\t1",
		"21006\t18401\twww.sina.com\t1"
            ]
        },
        {
            "table_name": "ENCRYPT_PROTO_RANDOM",
            "table_content": [
                "1\t20\t8\t1",
                "2\t34\t9\t1",
                "3\t19\t11\t1",
                "4\t0\t12\t1",
                "5\t-2\t13\t1",
                "-1\t-2\t999\t1"
            ]
        }
    ]
}