1. 接口描述
接口请求域名: tcss.tencentcloudapi.com 。
镜像仓库查询木马病毒列表
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:DescribeAssetImageRegistryVirusList。 |
Version | 是 | String | 公共参数,本接口取值:2020-11-01。 |
Region | 否 | String | 公共参数,此参数为可选参数。 |
Limit | 否 | Integer | 需要返回的数量,默认为10,最大值为100 示例值:10 |
Offset | 否 | Integer | 偏移量,默认为0。 示例值:0 |
Filters.N | 否 | Array of AssetFilters | 过滤条件。 示例值:[{"ExactMatch": false, "Name": "RiskLevel", "Values": ["2"]}] |
ImageInfo | 否 | ImageInfo | 镜像信息 示例值:{"Namespace":"name","InstanceName":"ins-hdjh***","ImageName":"imageName-01","ImageTag":"tag","Force":true} |
Id | 否 | Integer | 镜像标识Id 示例值:137884016 |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
List | Array of ImageVirus | 镜像漏洞列表 示例值:[{"Category": "", "Desc": "\u53d1\u73b0\u5bb9\u5668\u4e0a\u5b58\u5728\u6076\u610f\u6728\u9a6c\uff0c\u60a8\u7684\u5bb9\u5668\u53ef\u80fd\u5df2\u7ecf\u5931\u9677\u3002\n\u6076\u610f\u6728\u9a6c\u901a\u5e38\u4f1a\u6267\u884c\u6316\u77ff\u3001\u6587\u4ef6\u5220\u9664\u3001\u4fe1\u606f\u7a83\u53d6\u548c\u7f51\u7edc\u653b\u51fb\u7b49\u6076", "FileMd5": "d292d5fbd3837a6af51234daa7a4", "FileName": "webshell", "FileSize": 40, "FileType": "UNKNOWN", "FirstScanTime": "2024-06-05T03:39:22+0", "LatestScanTime": "2024-08-22T02:18:17+0", "Path": "/bin/webshell", "RiskLevel": "4", "Solution": "1.\u68c0\u67e5\u6076\u610f\u8fdb\u7a0b\u53ca\u975e\u6cd5\u7aef\u53e3\uff0c\u5220\u9664\u53ef\u7591\u7684\u542f\u52a8\u9879\u548c\u5b9a\u65f6\u4efb\u52a1\uff1b\n2.\u9694\u79bb\u6216\u8005\u5220\u9664\u76f8\u5173\u7684\u6728\u9a6c\u6587\u4ef6\uff1b\n3.\u5bf9\u7cfb\u7edf\u8fdb\u884c\u98ce\u9669\u6392\u67e5\uff0c\u5e76\u8fdb\u884c\u5b89\u5168\u52a0\u56fa\uff0c\u8be6\u60c5\u53ef\u53c2\u8003\u5982\u4e0b\u94fe\u63a5\uff1a \n\u3010Linux\u3011https://cloud.tencent.com/document/product/296/9604 \n\u3010Windows\u3011https://cloud.tencent.com/document/product/296/****", "Tags": [null], "VirusName": "Php.Trojan.Php.****"}] |
TotalCount | Integer | 总数量 示例值:0 |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 镜像仓库查询木马病毒列表
输入示例
POST / HTTP/1.1
Host: tcss.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAssetImageRegistryVirusList
<公共请求参数>
{
"Filters": [
{
"ExactMatch": false,
"Name": "RiskLevel",
"Values": [
"all"
]
}
],
"Id": 6947411,
"Limit": 10,
"Offset": 0
}
输出示例
{
"Response": {
"RequestId": "ae035bd6-6e5a-4f3e-b3ce-1f9cf6917066",
"List": [
{
"Path": "var/cache/debconf/passwords.dat",
"RiskLevel": "4",
"Category": "2",
"VirusName": "stargate.lock",
"Tags": [
"tag1"
],
"Desc": "发现容器上存在恶意木马,您的容器可能已经失陷。\n恶意木马通常会执行挖矿、文件删除、信息窃取和网络攻击等恶****",
"Solution": "1.检查恶意进程及非法端口,删除可疑的启动项和定时任务;\n2.隔离或者删除相关的木马文件;\n3.对系统进行风险排查,并进行安全加固,详情可参考如下链接: \n【Linux】https://cloud.tencent.com/document/product/296/9604 \n【Windows】https://cloud.tencent.com/document/product/296/****",
"FileType": "UNKOWN",
"FileName": "passwords.dat",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "etc/.pwd.lock",
"RiskLevel": "4",
"Category": "2",
"VirusName": "stargate.lock",
"Tags": [
"tag2"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": ".pwd.lock",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/lib/dpkg/triggers/Unincorp",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"2"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "Unincorp",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/apt-daily.timer",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"3"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "apt-daily.timer",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/lib/dpkg/triggers/Lock",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"3"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "Lock",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/log/btmp",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"5"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "btmp",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/lib/dpkg/statoverride",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"6"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "statoverride",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/lib/dpkg/lock",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"56"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "lock",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "var/log/wtmp",
"RiskLevel": "4",
"Category": "6",
"VirusName": "stargate.lock",
"Tags": [
"tag1"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "wtmp",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
},
{
"Path": "run/utmp",
"RiskLevel": "4",
"Category": "Category",
"VirusName": "stargate.lock",
"Tags": [
"tag2"
],
"Desc": "Desc",
"Solution": "Solution",
"FileType": "UNKOWN",
"FileName": "utmp",
"FileMd5": "d41d8cd98f00b204e9800998ecf8427e",
"FileSize": 0,
"FirstScanTime": "2021-01-30 03:31:56 +0000 UTC",
"LatestScanTime": "2021-01-30 05:14:07 +0000 UTC"
}
],
"TotalCount": 17
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
InternalError | 内部错误。 |
ResourceNotFound | 资源不存在。 |