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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'AISC', 'version' => '2026-01-01'],
'directories' => ['CreateSkillFileCheck', 'ListSubTasks'],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateSkillFileCheck' => [
'summary' => '批量发起用户自定义Skill检测',
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATUREsasRREUQK'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Files',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '文件信息。',
'type' => 'array',
'items' => [
'description' => '文件列表。',
'type' => 'object',
'properties' => [
'DownloadUrl' => [
'description' => '文件下载的公网URL,下载文件必须为 tar.gz 或 zip 格式的压缩包。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'https://test.oss-cn-hangzhou.aliyuncs.com/xxxx',
],
'FileName' => ['description' => '文件名,如不填写将从DownloadUrl中解析。', 'type' => 'string', 'required' => false, 'example' => 'test-file'],
],
'required' => false,
],
'required' => false,
'maxItems' => 100,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '9FDE3D6F-26BD-5937-B0E5-8F47962B****'],
'Data' => [
'description' => '任务创建结果。',
'type' => 'object',
'properties' => [
'RootTaskId' => ['description' => '提交任务返回的主任务ID。', 'type' => 'string', 'example' => 'c6e7fa8a77df6e182ac3fcf1478ab83a'],
'SuccessCount' => ['description' => '上传成功文件的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'FailCount' => ['description' => '上传失败文件的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'UploadResults' => [
'description' => '上传结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FileHash' => ['description' => '上传文件的SHA256值。', 'type' => 'string', 'example' => '514f44ebed1d0c1df5e16a116080b64b'],
'IdentifyId' => ['description' => '上传文件的唯一ID,可用于查询任务结果。', 'type' => 'string', 'example' => '1824jcadg01bsl10b'],
'ErrorMsg' => ['description' => '文件上传失败时的报错信息。', 'type' => 'string', 'example' => 'Network error.'],
'Success' => ['description' => '操作是否成功。取值:true:成功。false:失败', 'type' => 'boolean', 'example' => 'true'],
'FileName' => ['description' => '文件的名称。', 'type' => 'string', 'example' => 'test-file'],
],
'description' => '',
],
],
],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建Skill检测任务',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9FDE3D6F-26BD-5937-B0E5-8F47962B****\\",\\n \\"Data\\": {\\n \\"RootTaskId\\": \\"c6e7fa8a77df6e182ac3fcf1478ab83a\\",\\n \\"SuccessCount\\": 10,\\n \\"FailCount\\": 0,\\n \\"UploadResults\\": [\\n {\\n \\"FileHash\\": \\"514f44ebed1d0c1df5e16a116080b64b\\",\\n \\"IdentifyId\\": \\"1824jcadg01bsl10b\\",\\n \\"ErrorMsg\\": \\"Network error.\\",\\n \\"Success\\": true,\\n \\"FileName\\": \\"test-file\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListSubTasks' => [
'summary' => '获取子任务信息。',
'path' => '',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREsasRREUQK'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RootTaskId',
'in' => 'query',
'schema' => ['description' => '提交任务返回的主任务ID。', 'type' => 'string', 'required' => false, 'example' => '110146ac282314fe4f7cd11afc7540eb'],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => ['description' => '任务类型。', 'type' => 'string', 'required' => false, 'example' => 'SKILL_CHECK'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '9FDE3D6F-26BD-5937-B0E5-8F47962B****'],
'Data' => [
'description' => '任务结果列表。',
'type' => 'array',
'items' => [
'description' => '任务结果。',
'type' => 'object',
'properties' => [
'Id' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '4190063324899520'],
'TaskStatus' => ['description' => '任务状态。', 'type' => 'string', 'example' => 'success'],
'TaskResultMessage' => [
'description' => '任务结果信息。',
'type' => 'object',
'properties' => [
'SkillCheckResult' => [
'description' => 'Skill检测任务结果。',
'type' => 'object',
'properties' => [
'RiskInfo' => [
'description' => '文件检测风险信息。',
'type' => 'array',
'items' => [
'description' => '风险详情列表。',
'type' => 'object',
'properties' => [
'Path' => ['description' => '文件路径。', 'type' => 'string', 'example' => '/home/97e55e6af371836f/'],
'ResultType' => ['description' => '结果类型。', 'type' => 'string', 'example' => 'file'],
'Ext' => [
'description' => '文件检测风险列表。',
'type' => 'object',
'properties' => [
'Virus' => [
'description' => '病毒检测风险。',
'type' => 'array',
'items' => [
'description' => '风险详情列表。',
'type' => 'object',
'properties' => [
'Ext' => ['description' => '扩展信息字段,备用参数。', 'type' => 'string', 'example' => '{}'],
'Score' => ['description' => '风险分数,满分100。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'Type' => ['description' => '病毒类型。', 'type' => 'string', 'example' => 'Backdoor'],
],
],
],
'Guardrail' => [
'description' => '安全护栏检测风险。',
'type' => 'object',
'properties' => [
'Suggestion' => ['description' => '处理建议。', 'type' => 'string', 'example' => 'block'],
'Detail' => [
'description' => '风险详情列表。',
'type' => 'array',
'items' => [
'description' => '风险详情。',
'type' => 'object',
'properties' => [
'Level' => ['description' => '风险等级,枚举值:'."\n"
."\n"
.'- **high**:高风险。'."\n"
.'- **medium**:中风险'."\n"
.'- **low**:低风险'."\n"
.'- **none**:无风险', 'type' => 'string', 'example' => 'high'],
'Suggestion' => ['description' => '处理建议。', 'type' => 'string', 'example' => 'block'],
'Type' => ['description' => '风险类型。', 'type' => 'string', 'example' => 'promptAttack'],
'Result' => [
'description' => '结果详情列表。',
'type' => 'array',
'items' => [
'description' => '结果详情。',
'type' => 'object',
'properties' => [
'Confidence' => ['description' => '置信度,取值范围为0到100。', 'type' => 'number', 'format' => 'float', 'example' => '25'],
'Description' => ['description' => '结果描述信息。', 'type' => 'string', 'example' => 'Suspicious attacks.'],
'Label' => ['description' => '标签信息。', 'type' => 'string', 'example' => 'attack'],
'Level' => ['description' => '风险等级,枚举值:'."\n"
."\n"
.'- **high**:高风险。'."\n"
.'- **medium**:中风险'."\n"
.'- **low**:低风险'."\n"
.'- **none**:无风险', 'type' => 'string', 'example' => 'high'],
],
],
],
],
],
],
],
],
'Sensitive' => [
'description' => '敏感信息风险。',
'type' => 'object',
'properties' => [
'Detail' => [
'description' => '风险详情列表。',
'type' => 'array',
'items' => [
'description' => '风险详情。',
'type' => 'object',
'properties' => [
'Desc' => ['description' => '描述信息。', 'type' => 'string', 'example' => 'aliyun_ak_24'],
'Result' => [
'description' => '敏感信息列表。',
'type' => 'array',
'items' => ['description' => '敏感信息。', 'type' => 'string', 'example' => 'LTAIvdi11f0b****'],
],
],
],
],
],
],
'Config' => [
'description' => '配置检测风险。',
'type' => 'object',
'properties' => [
'Detail' => [
'description' => '风险详情列表。',
'type' => 'array',
'items' => [
'description' => '风险详情。',
'type' => 'object',
'properties' => [
'Line' => ['description' => '检测命中内容的行数。', 'type' => 'string', 'example' => '2555'],
'Description' => ['description' => '描述信息。', 'type' => 'string', 'example' => 'The skill configuration allows Bash execution via agent-browser:* pattern without requiring user confirmation. This enables potentially dangerous command execution through the browser automation CLI.'],
'Content' => ['description' => '检测命中内容。', 'type' => 'string', 'example' => 'allowed-tools: Bash(agent-browser:*)'],
'ItemName' => ['description' => '检查项名称。', 'type' => 'string', 'example' => 'Dangerous Tools Without Confirmation'],
],
],
],
],
],
],
],
],
],
],
],
],
],
],
'Target' => ['description' => '检测对象。', 'type' => 'string', 'example' => 'c7acb2f1264e4467887ef8f4c36c44ca1'],
'FileHash' => ['description' => '上传文件的Hash值。', 'type' => 'string', 'example' => '03d1f08455e965cac0351eaa59256fd9'],
],
],
],
'PageInfo' => [
'description' => '分页信息。',
'type' => 'object',
'properties' => [
'CurrentPage' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalCount' => ['description' => '查询结果的总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Count' => ['description' => '当前页显示的数据条数。', 'type' => 'string', 'example' => '1'],
],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取子任务信息',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9FDE3D6F-26BD-5937-B0E5-8F47962B****\\",\\n \\"Data\\": [\\n {\\n \\"Id\\": 4190063324899520,\\n \\"TaskStatus\\": \\"success\\",\\n \\"TaskResultMessage\\": {\\n \\"SkillCheckResult\\": {\\n \\"RiskInfo\\": [\\n {\\n \\"Path\\": \\"/home/97e55e6af371836f/\\",\\n \\"ResultType\\": \\"file\\",\\n \\"Ext\\": {\\n \\"Virus\\": [\\n {\\n \\"Ext\\": \\"{}\\",\\n \\"Score\\": 100,\\n \\"Type\\": \\"Backdoor\\"\\n }\\n ],\\n \\"Guardrail\\": {\\n \\"Suggestion\\": \\"block\\",\\n \\"Detail\\": [\\n {\\n \\"Level\\": \\"high\\",\\n \\"Suggestion\\": \\"block\\",\\n \\"Type\\": \\"promptAttack\\",\\n \\"Result\\": [\\n {\\n \\"Confidence\\": 25,\\n \\"Description\\": \\"Suspicious attacks.\\",\\n \\"Label\\": \\"attack\\",\\n \\"Level\\": \\"high\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"Sensitive\\": {\\n \\"Detail\\": [\\n {\\n \\"Desc\\": \\"aliyun_ak_24\\",\\n \\"Result\\": [\\n \\"LTAIvdi11f0b****\\"\\n ]\\n }\\n ]\\n },\\n \\"Config\\": {\\n \\"Detail\\": [\\n {\\n \\"Line\\": \\"2555\\",\\n \\"Description\\": \\"The skill configuration allows Bash execution via agent-browser:* pattern without requiring user confirmation. This enables potentially dangerous command execution through the browser automation CLI.\\",\\n \\"Content\\": \\"allowed-tools: Bash(agent-browser:*)\\",\\n \\"ItemName\\": \\"Dangerous Tools Without Confirmation\\"\\n }\\n ]\\n }\\n }\\n }\\n ]\\n }\\n },\\n \\"Target\\": \\"c7acb2f1264e4467887ef8f4c36c44ca1\\",\\n \\"FileHash\\": \\"03d1f08455e965cac0351eaa59256fd9\\"\\n }\\n ],\\n \\"PageInfo\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"Count\\": \\"1\\"\\n }\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-nanjing', 'regionName' => '华东5(南京-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-7', 'regionName' => '泰国(曼谷)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-6', 'regionName' => '菲律宾(马尼拉)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'aisc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'aisc.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-heyuan-acdr-1', 'regionName' => '河源专属云汽车合规', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'aisc.cn-shanghai.aliyuncs.com', 'endpoint' => 'aisc.cn-shanghai.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'DataNotExists', 'message' => 'Specified data does not exist.', 'http_code' => 400, 'description' => '操作的数据不存在。'],
['code' => 'Forbidden', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 403, 'description' => '当前用户无权执行该操作。'],
],
'changeSet' => [],
];
|