summaryrefslogtreecommitdiff
path: root/resource/pangu/pangu_http.json
blob: 945e17cdca037d96089edc88ba0ff722c0e5a930 (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
{
    "compile_table": "PXY_CTRL_COMPILE",
    "group2compile_table": "GROUP_PXY_CTRL_COMPILE_RELATION",
    "group2group_table": "GROUP_GROUP_RELATION",
    "rules": [
       {
            "compile_id": 1021,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
			"do_log": 1,
            "effective_range": 0,
            "user_region": "{\"protocol\":\"http\",\"method\":\"redirect\",\"code\":302,\"to\":\"https://www.jd.com\"}",
			"is_valid": "yes",
            "groups": [
                {
					"group_name":"http_url",
					"not_flag":0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_URL",
                            "table_type": "string",
                            "table_content": {
                                "keywords": "baidu.com",
                                "expr_type": "regex",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
		{
            "compile_id": 1022,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
			"do_log": 1,
            "effective_range": 0,
            "tags":"{\"tag_sets\":[[{\"tag\":\"device_id\",\"value\":[\"device_3\",\"device_4\"]}]]}",
            "user_region": "{\"protocol\":\"http\",\"method\":\"redirect\",\"code\":302,\"to\":\"https://www.jd.com\"}",
            "is_valid": "yes",
            "groups": [
                {
					"group_name":"http_url",
					"virtual_table":"TSG_FIELD_HTTP_URL",
					"not_flag":0 
                }
            ]
        },
		{
            "compile_id": 1023,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
			"do_log": 1,
            "effective_range": 0,
            "user_region": "{\"protocol\":\"http\",\"method\":\"replace\",\"rules\":[{\"search_in\":\"http_resp_body\",\"find\":\"邮箱\",\"replace_with\":\"test\"}]}",
			"is_valid": "yes",
            "groups": [
                {
					"group_name":"http_fqdn",
					"not_flag":0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_FQDN",
                            "table_type": "string",
                            "table_content": {
                                "keywords": "www.126.com",
                                "expr_type": "regex",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
		{
            "compile_id": 1024,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
						"do_log": 1,
            "effective_range": 0,
            "user_region":"{\"protocol\":\"http\",\"method\":\"replace\",\"rules\":[{\"search_in\":\"http_resp_body\",\"find\":\"大师\",\"replace_with\":\"小小\"}]}",
            "is_valid": "yes",
            "groups": [
                {
					"group_name":"http_fqdn",
					"virtual_table":"TSG_FIELD_HTTP_HOST",
					"not_flag":0 
                }
            ]
        },
		{
            "compile_id": 1025,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
						"do_log": 1,
            "effective_range": 0,
            "user_region": "{\"protocol\":\"http\",\"method\":\"replace\",\"rules\":[{\"search_in\":\"http_resp_body\",\"find\":\"会员\",\"replace_with\":\"用户\"}]}",
            "is_valid": "yes",
            "groups": [
                {
					"group_name":"http_fqdn",
					"virtual_table":"TSG_FIELD_DOH_QNAME",
					"not_flag":0 
                }
            ]
        },
		{
            "compile_id": 1026,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
			"do_log": 1,
            "effective_range": 0,
            "user_region": "{\"protocol\":\"http\",\"method\":\"block\",\"code\":403,\"message\":\"error\"}",
			"is_valid": "yes",
            "groups": [
                {
					"group_name":"http_signature_ua",
					"not_flag":0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_HTTP_SIGNATURE",
                            "table_type": "expr_plus",
                            "table_content": {
								"district": "User-Agent",
                                "keywords": "Chrome",
                                "expr_type": "none",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                },
				{
		            		
					"group_name":"http_signature_cookie",
		            "not_flag":0,
		            "regions": [
						{
							"table_name": "TSG_OBJ_HTTP_SIGNATURE",
							"table_type": "expr_plus",
		                    "table_content": {
								"district": "Cookie",
                                "keywords": "uid=12345678",
                                "expr_type": "none",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
		                }	                    
		            ]
		        }      
            ]
        },
		{
            "compile_id": 1027,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
			"do_log": 1,
            "effective_range": 0,
            "user_region": "test",
			"is_valid": "yes",
            "groups": [
                {
					"group_name":"http_url_bing",
					"not_flag":0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_URL",
                            "table_type": "string",
                            "table_content": {
                                "keywords": "bing.com",
                                "expr_type": "regex",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        },
		{
            "compile_id": 1028,
            "service": 1,
            "action": 48,
            "do_blacklist": 1,
			"do_log": 1,
            "effective_range": 0,
            "user_region": "{\"protocol\":\"http\",\"method\":\"block\",\"code\":403,\"message\":\"error\"}",
            "is_valid": "yes",
            "groups": [
                {
					"group_name":"http_signature_ua",
					"virtual_table":"TSG_FIELD_HTTP_REQ_HDR",
					"not_flag":0 
                },
				{
					"group_name":"http_url_bing",
					"virtual_table":"TSG_FIELD_HTTP_URL",
					"not_flag":0 
                },
				{
					"group_name":"app_id",
					"not_flag":0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_APP_ID",
                            "table_type": "string",
                            "table_content": {
                                "keywords": "http.",
                                "expr_type": "regex",
                                "match_method": "sub",
                                "format": "uncase plain"
                            }
                        }
                    ]
                }
            ]
        }
   ],
    "plugin_table": [
        {
            "table_name": "TSG_PROFILE_TRAFFIC_MIRROR",
            "table_content": [
                "1234\ttest-traffic-mirror\t[1,2,3,4,5,6,7,8,9]\t1"
            ]
        },
        {
            "table_name": "TSG_PROFILE_RESPONSE_PAGES",
            "table_content": [
                "101\t404\thtml\t./resource/pangu/policy_file/404.html\t1"
            ]
        },
        {
            "table_name": "PXY_PROFILE_HIJACK_FILES",
            "table_content": [
                "201\tchakanqi\tchakanqi-947KB.exe\tapplication/x-msdos-program\t./resource/pangu/policy_file/chakanqi-947KB.exe\t1"
            ]
        },
				{
            "table_name": "PXY_PROFILE_INSERT_SCRIPTS",
            "table_content": [
                "301\ttime\tjs\t./resource/pangu/policy_file/time.js\tbefore_page_load\t1"
            ]
        },
		{		
            "table_name": "PXY_PROFILE_DECRYPTION",
            "table_content": [
                "0\ttest\t{\"dynamic_bypass\":{\"ev_cert\":0,\"cert_transparency\":0,\"mutual_authentication\":1,\"cert_pinning\":1,\"protocol_errors\":1,\"trusted_root_cert_is_not_installed_on_client\":1},\"protocol_version\":{\"min\":\"ssl3\",\"max\":\"ssl3\",\"mirror_client\":1,\"allow_http2\":1},\"certificate_checks\":{\"approach\":{\"cn\":1,\"issuer\":1,\"self-signed\":1,\"expiration\":0},\"fail_action\":\"pass-through\"}}\t1",
                "3\ttest\t{\"dynamic_bypass\":{\"ev_cert\":1,\"cert_transparency\":1,\"mutual_authentication\":1,\"cert_pinning\":1,\"protocol_errors\":1,\"trusted_root_cert_is_not_installed_on_client\":0},\"protocol_version\":{\"min\":\"ssl3\",\"max\":\"tls13\",\"mirror_client\":1,\"allow_http2\":1},\"certificate_checks\":{\"approach\":{\"cn\":1,\"issuer\":1,\"self-signed\":1,\"expiration\":1},\"fail_action\":\"fail-close\"}}\t1",
                "4\ttest\t{\"dynamic_bypass\":{\"ev_cert\":0,\"cert_transparency\":0,\"mutual_authentication\":0,\"cert_pinning\":0,\"protocol_errors\":0,\"trusted_root_cert_is_not_installed_on_client\":0},\"protocol_version\":{\"min\":\"ssl3\",\"max\":\"ssl3\",\"mirror_client\":0,\"allow_http2\":0},\"certificate_checks\":{\"approach\":{\"cn\":0,\"issuer\":0,\"self-signed\":0,\"expiration\":0},\"fail_action\":\"pass-through\"}}\t1"
            ]
        },
		{
            "table_name": "PXY_INTERCEPT_COMPILE",
            "table_content": [
                "0\t0\t2\t1\t1\t{}\t{\"vsys_id\":1,\"protocol\":\"SSL\",\"keyring_for_trusted\":765,\"keyring_for_untrusted\":10,\"decryption\":0,\"tcp_option_profile\":1,\"traffic_mirror\":{\"enable\":0}}\t1\t2",
                "4\t0\t2\t1\t1\t{}\t{\"vsys_id\":1,\"protocol\":\"SSL\",\"keyring_for_trusted\":1,\"keyring_for_untrusted\":10,\"decryption\":0,\"tcp_option_profile\":1,\"traffic_mirror\":{\"enable\":1,\"mirror_profile\":1234}}\t1\t2"
            ]
        },
        {
            "table_name": "SERVICE_CHAINING_COMPILE",
            "table_content": [
                "1\t0\t2\t1\t1\t{}\t{\"targeted_traffic\":\"raw\",\"sff_profiles\":[1]}\t1\t2",
                "2\t0\t2\t1\t1\t{}\t{\"targeted_traffic\":\"decrypted\",\"sff_profiles\":[1]}\t1\t2"
            ]
        },
        {
            "table_name": "PXY_PROFILE_TCP_OPTION",
            "table_content": [
                "1\t0\t0\t{\"tcp_maxseg\":{\"enable\":0,\"maxseg\":1500},\"nodelay\":1,\"keep_alive\":{\"enable\":1,\"tcp_keepcnt\":8,\"tcp_keepidle\":30,\"tcp_keepintvl\":15},\"ttl\":70,\"user_timeout\":600}\t{\"tcp_maxseg\":{\"enable\":0,\"maxseg\":1500},\"nodelay\":1,\"keep_alive\":{\"enable\":1,\"tcp_keepcnt\":8,\"tcp_keepidle\":30,\"tcp_keepintvl\":15},\"ttl\":75,\"user_timeout\":600}\t1"
            ]
        },
        {
            "table_name": "PXY_SSL_FINGERPRINT",
            "table_content": [
                "1\t599f223c2c9ee5702f5762913889dc21\t0\t1",
                "2\teb149984fc9c44d85ed7f12c90d818be\t1\t0",
                "3\te6573e91e6eb777c0933c5b8f97f10cd\t1\t1"
            ]
        }
    ]
}