网络
虚拟私有云 VPC
弹性公网IP EIP
弹性负载均衡 ELB
NAT网关 NAT
云专线 DC
虚拟专用网络 VPN
云连接 CC
VPC终端节点 VPCEP
企业路由器 ER
企业交换机 ESW
全球加速 GA
云原生应用网络 ANC
安全与合规
安全技术与应用
Web应用防火墙 WAF
企业主机安全 HSS
云防火墙 CFW
安全云脑 SecMaster
DDoS防护 AAD
数据加密服务 DEW
数据库安全服务 DBSS
云堡垒机 CBH
数据安全中心 DSC
云证书管理服务 CCM
认证测试中心 CTC
边缘安全 EdgeSec
应用中间件
微服务引擎 CSE
分布式消息服务Kafka版
分布式消息服务RabbitMQ版
分布式消息服务RocketMQ版
API网关 APIG
分布式缓存服务 DCS
多活高可用服务 MAS
事件网格 EG
管理与监管
统一身份认证服务 IAM
消息通知服务 SMN
云监控服务 CES
应用运维管理 AOM
应用性能管理 APM
云日志服务 LTS
云审计服务 CTS
标签管理服务 TMS
配置审计 Config
应用身份管理服务 OneAccess
资源访问管理 RAM
组织 Organizations
资源编排服务 RFS
优化顾问 OA
IAM 身份中心
云运维中心 COC
资源治理中心 RGC
解决方案
高性能计算 HPC
SAP
混合云灾备
开天工业工作台 MIW
解决方案工作台
数字化诊断治理专家服务
云生态
云商店
合作伙伴中心
华为云开发者学堂
华为云慧通差旅
开发与运维
软件开发生产线 CodeArts
需求管理 CodeArts Req
流水线 CodeArts Pipeline
代码检查 CodeArts Check
编译构建 CodeArts Build
部署 CodeArts Deploy
测试计划 CodeArts TestPlan
制品仓库 CodeArts Artifact
移动应用测试 MobileAPPTest
CodeArts IDE Online
开源镜像站 Mirrors
性能测试 CodeArts PerfTest
应用管理与运维平台 ServiceStage
云应用引擎 CAE
开源治理服务 CodeArts Governance
华为云Astro轻应用
CodeArts IDE
Astro工作流 AstroFlow
代码托管 CodeArts Repo
漏洞管理服务 CodeArts Inspector
联接 CodeArtsLink
软件建模 CodeArts Modeling
Astro企业应用 AstroPro
CodeArts 盘古助手
华为云Astro大屏应用
计算
弹性云服务器 ECS
Flexus云服务
裸金属服务器 BMS
云手机服务器 CPH
专属主机 DeH
弹性伸缩 AS
镜像服务 IMS
函数工作流 FunctionGraph
云耀云服务器(旧版)
VR云渲游平台 CVR
Huawei Cloud EulerOS
云化数据中心 CloudDC
网络
虚拟私有云 VPC
弹性公网IP EIP
弹性负载均衡 ELB
NAT网关 NAT
云专线 DC
虚拟专用网络 VPN
云连接 CC
VPC终端节点 VPCEP
企业路由器 ER
企业交换机 ESW
全球加速 GA
云原生应用网络 ANC
CDN与智能边缘
内容分发网络 CDN
智能边缘云 IEC
智能边缘平台 IEF
CloudPond云服务
安全与合规
安全技术与应用
Web应用防火墙 WAF
企业主机安全 HSS
云防火墙 CFW
安全云脑 SecMaster
DDoS防护 AAD
数据加密服务 DEW
数据库安全服务 DBSS
云堡垒机 CBH
数据安全中心 DSC
云证书管理服务 CCM
认证测试中心 CTC
边缘安全 EdgeSec
大数据
MapReduce服务 MRS
数据湖探索 DLI
表格存储服务 CloudTable
可信智能计算服务 TICS
推荐系统 RES
云搜索服务 CSS
数据可视化 DLV
数据接入服务 DIS
数据仓库服务 GaussDB(DWS)
数据治理中心 DataArts Studio
湖仓构建 LakeFormation
智能数据洞察 DataArts Insight
数智融合计算服务 DataArtsFabric
应用中间件
微服务引擎 CSE
分布式消息服务Kafka版
分布式消息服务RabbitMQ版
分布式消息服务RocketMQ版
API网关 APIG
分布式缓存服务 DCS
多活高可用服务 MAS
事件网格 EG
开天aPaaS
应用平台 AppStage
开天企业工作台 MSSE
开天集成工作台 MSSI
API中心 API Hub
云消息服务 KooMessage
交换数据空间 EDS
云地图服务 KooMap
云手机服务 KooPhone
组织成员账号 OrgID
云空间服务 KooDrive
管理与监管
统一身份认证服务 IAM
消息通知服务 SMN
云监控服务 CES
应用运维管理 AOM
应用性能管理 APM
云日志服务 LTS
云审计服务 CTS
标签管理服务 TMS
配置审计 Config
应用身份管理服务 OneAccess
资源访问管理 RAM
组织 Organizations
资源编排服务 RFS
优化顾问 OA
IAM 身份中心
云运维中心 COC
资源治理中心 RGC
区块链
区块链服务 BCS
数字资产链 DAC
华为云区块链引擎服务 HBS
解决方案
高性能计算 HPC
SAP
混合云灾备
开天工业工作台 MIW
解决方案工作台
数字化诊断治理专家服务
价格
成本优化最佳实践
专属云商业逻辑
云生态
云商店
合作伙伴中心
华为云开发者学堂
华为云慧通差旅
其他
管理控制台
消息中心
产品价格详情
系统权限
客户关联华为云合作伙伴须知
公共问题
宽限期保留期
奖励推广计划
活动
云服务信任体系能力说明
开发与运维
软件开发生产线 CodeArts
需求管理 CodeArts Req
流水线 CodeArts Pipeline
代码检查 CodeArts Check
编译构建 CodeArts Build
部署 CodeArts Deploy
测试计划 CodeArts TestPlan
制品仓库 CodeArts Artifact
移动应用测试 MobileAPPTest
CodeArts IDE Online
开源镜像站 Mirrors
性能测试 CodeArts PerfTest
应用管理与运维平台 ServiceStage
云应用引擎 CAE
开源治理服务 CodeArts Governance
华为云Astro轻应用
CodeArts IDE
Astro工作流 AstroFlow
代码托管 CodeArts Repo
漏洞管理服务 CodeArts Inspector
联接 CodeArtsLink
软件建模 CodeArts Modeling
Astro企业应用 AstroPro
CodeArts 盘古助手
华为云Astro大屏应用
存储
对象存储服务 OBS
云硬盘 EVS
云备份 CBR
高性能弹性文件服务 SFS Turbo
弹性文件服务 SFS
存储容灾服务 SDRS
云硬盘备份 VBS
云服务器备份 CSBS
数据快递服务 DES
云存储网关 CSG
专属分布式存储服务 DSS
数据工坊 DWR
地图数据 MapDS
键值存储服务 KVS
容器
云容器引擎 CCE
云容器实例 CCI
容器镜像服务 SWR
云原生服务中心 OSC
应用服务网格 ASM
华为云UCS
数据库
云数据库 RDS
数据复制服务 DRS
文档数据库服务 DDS
分布式数据库中间件 DDM
云数据库 GaussDB
云数据库 GeminiDB
数据管理服务 DAS
数据库和应用迁移 UGO
云数据库 TaurusDB
人工智能
AI开发平台ModelArts
华为HiLens
图引擎服务 GES
图像识别 Image
文字识别 OCR
自然语言处理 NLP
内容审核 Moderation
图像搜索 ImageSearch
医疗智能体
企业级AI应用开发专业套件 ModelArts Pro
人脸识别服务 FRS
对话机器人服务 CBS
语音交互服务 SIS
人证核身服务 IVS
视频智能分析服务 VIAS
城市智能体
自动驾驶云服务 Octopus
盘古大模型 PanguLargeModels
IoT物联网
设备接入 IoTDA
全球SIM联接 GSL
IoT数据分析 IoTA
路网数字化服务 DRIS
IoT边缘 IoTEdge
设备发放 IoTDP
企业应用
域名注册服务 Domains
云解析服务 DNS
企业门户 EWP
ICP备案
商标注册
华为云WeLink
华为云会议 Meeting
隐私保护通话 PrivateNumber
语音通话 VoiceCall
消息&短信 MSGSMS
云管理网络
SD-WAN 云服务
边缘数据中心管理 EDCM
云桌面 Workspace
应用与数据集成平台 ROMA Connect
ROMA资产中心 ROMA Exchange
政企自服务管理 ESM
视频
实时音视频 SparkRTC
视频直播 Live
视频点播 VOD
媒体处理 MPC
视频接入服务 VIS
数字内容生产线 MetaStudio
迁移
主机迁移服务 SMS
对象存储迁移服务 OMS
云数据迁移 CDM
迁移中心 MGC
专属云
专属计算集群 DCC
开发者工具
SDK开发指南
API签名指南
DevStar
华为云命令行工具服务 KooCLI
Huawei Cloud Toolkit
CodeArts API
云化转型
云架构中心
云采用框架
用户服务
账号中心
费用中心
成本中心
资源中心
企业管理
工单管理
客户运营能力
国际站常见问题
支持计划
专业服务
合作伙伴支持计划
我的凭证
华为云公共事业服务云平台
工业软件
工业数字模型驱动引擎
硬件开发工具链平台云服务
工业数据转换引擎云服务

查询已隔离文件列表

更新时间:2025-04-21 GMT+08:00
分享

功能介绍

查询已隔离文件列表

调用方法

请参见如何调用API

URI

GET /v5/{project_id}/event/isolated-file

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID

表2 Query参数

参数

是否必选

参数类型

描述

enterprise_project_id

String

主机所属的企业项目ID。

开通企业项目功能后才需要配置企业项目。

企业项目ID默认取值为“0”,表示默认企业项目。如果需要查询所有企业项目下的主机,请传参“all_granted_eps”。如果您只有某个企业项目的权限,则需要传递该企业项目ID,查询该企业项目下的主机,否则会因权限不足而报错。

file_path

String

文件路径

host_name

String

服务器名称

private_ip

String

服务器私有IP

public_ip

String

服务器公网IP

file_hash

String

文件hash,当前为sha256

asset_value

String

资产重要性,包含如下3种

  • important :重要资产

  • common :一般资产

  • test :测试资产

offset

Integer

偏移量:指定返回记录的开始位置

limit

Integer

每页显示个数

isolation_status

String

隔离状态,包含如下:

  • isolated : 已隔离

  • restored : 已恢复

  • isolating : 已下发隔离任务

  • restoring : 已下发恢复任务

last_days

Integer

查询时间范围天数,与自定义查询时间begin_time,end_time互斥

begin_time

Long

自定义查询时间,与查询时间范围天数互斥,查询时间段的起始时间,毫秒级时间戳,end_time减去begin_time小于等于2天,与查询时间范围天数互斥

end_time

Long

自定义时间,查询时间段的终止时间,毫秒级时间戳,end_time减去begin_time小于等于2天,与查询时间范围天数互斥

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token。

通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)

region

String

Region ID

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

total_num

Integer

总数

data_list

Array of IsolatedFileResponseInfo objects

已隔离文件详情

表5 IsolatedFileResponseInfo

参数

参数类型

描述

os_type

String

操作系统类型,包含如下2种。

  • Linux :Linux。

  • Windows :Windows。

host_id

String

主机ID

host_name

String

服务器名称

file_hash

String

文件哈希

file_path

String

文件路径

file_attr

String

文件属性

isolation_status

String

隔离状态,包含如下:

  • isolated : 已隔离

  • restored : 已恢复

  • isolating : 已下发隔离任务

  • restoring : 已下发恢复任务

private_ip

String

服务器私有IP

public_ip

String

弹性公网IP地址

asset_value

String

资产重要性,包含如下3种

  • important :重要资产

  • common :一般资产

  • test :测试资产

update_time

Integer

更新时间,毫秒

agent_version

String

agent版本

isolate_source

String

隔离来源,包含如下:

  • event : 安全告警事件

  • antivirus : 病毒查杀

event_name

String

事件名称

agent_event_info

IsolateEventResponseInfo object

隔离事件详情

antivirus_result_info

AntivirusResultDetailInfo object

病毒查杀结果详情

表6 IsolateEventResponseInfo

参数

参数类型

描述

event_id

String

事件ID

event_class_id

String

事件分类,包含如下:

  • container_1001 : 容器命名空间

  • container_1002 : 容器开放端口

  • container_1003 : 容器安全选项

  • container_1004 : 容器挂载目录

  • containerescape_0001 : 容器高危系统调用

  • containerescape_0002 : Shocker攻击

  • containerescape_0003 : DirtCow攻击

  • containerescape_0004 : 容器文件逃逸攻击

  • dockerfile_001 : 用户自定义容器保护文件被修改

  • dockerfile_002 : 容器文件系统可执行文件被修改

  • dockerproc_001 : 容器进程异常事件上报

  • fileprotect_0001 : 文件提权

  • fileprotect_0002 : 关键文件变更

  • fileprotect_0003 : 关键文件路径变更

  • fileprotect_0004 : 文件/目录变更

  • av_1002 : 病毒

  • av_1003 : 蠕虫

  • av_1004 : 木马

  • av_1005 : 僵尸网络

  • av_1006 : 后门

  • av_1007 : 间谍软件

  • av_1008 : 恶意广告软件

  • av_1009 : 钓鱼

  • av_1010 : Rootkit

  • av_1011 : 勒索软件

  • av_1012 : 黑客工具

  • av_1013 : 灰色软件

  • av_1015 : Webshell

  • av_1016 : 挖矿软件

  • login_0001 : 尝试暴力破解

  • login_0002 : 爆破成功

  • login_1001 : 登录成功

  • login_1002 : 异地登录

  • login_1003 : 弱口令

  • malware_0001 : shell变更事件上报

  • malware_0002 : 反弹shell事件上报

  • malware_1001 : 恶意程序

  • procdet_0001 : 进程异常行为检测

  • procdet_0002 : 进程提权

  • procreport_0001 : 危险命令

  • user_1001 : 账号变更

  • user_1002 : 风险账号

  • vmescape_0001 : 虚拟机敏感命令执行

  • vmescape_0002 : 虚拟化进程访问敏感文件

  • vmescape_0003 : 虚拟机异常端口访问

  • webshell_0001 : 网站后门

  • network_1001 : 恶意挖矿

  • network_1002 : 对外DDoS攻击

  • network_1003 : 恶意扫描

  • network_1004 : 敏感区域攻击

  • ransomware_0001 : 勒索攻击

  • ransomware_0002 : 勒索攻击

  • ransomware_0003 : 勒索攻击

  • fileless_0001 : 进程注入

  • fileless_0002 : 动态库注入进程

  • fileless_0003 : 关键配置变更

  • fileless_0004 : 环境变量变更

  • fileless_0005 : 内存文件进程

  • fileless_0006 : vdso劫持

  • crontab_1001 : Crontab可疑任务

  • vul_exploit_0001 : Redis漏洞利用攻击

  • vul_exploit_0002 : Hadoop漏洞利用攻击

  • vul_exploit_0003 : MySQL漏洞利用攻击

  • rootkit_0001 : 可疑rootkit文件

  • rootkit_0002 : 可疑内核模块

  • RASP_0004 : 上传Webshell

  • RASP_0018 : 无文件Webshell

  • blockexec_001 : 已知勒索攻击

  • hips_0001 : Windows Defender防护被禁用

  • hips_0002 : 可疑的黑客工具

  • hips_0003 : 可疑的勒索加密行为

  • hips_0004 : 隐藏账号创建

  • hips_0005 : 读取用户密码凭据

  • hips_0006 : 可疑的SAM文件导出

  • hips_0007 : 可疑shadow copy删除操作

  • hips_0008 : 备份文件删除

  • hips_0009 : 可疑勒索病毒操作注册表

  • hips_0010 : 可疑的异常进程行为

  • hips_0011 : 可疑的扫描探测

  • hips_0012 : 可疑的勒索病毒脚本运行

  • hips_0013 : 可疑的挖矿命令执行

  • hips_0014 : 可疑的禁用windows安全中心

  • hips_0015 : 可疑的停止防火墙服务行为

  • hips_0016 : 可疑的系统自动恢复禁用

  • hips_0017 : Offies 创建可执行文件

  • hips_0018 : 带宏Offies文件异常创建

  • hips_0019 : 可疑的注册表操作

  • hips_0020 : Confluence远程代码执行

  • hips_0021 : MSDT远程代码执行

  • portscan_0001 : 通用端口扫描

  • portscan_0002 : 秘密端口扫描

  • k8s_1001 : Kubernetes事件删除

  • k8s_1002 : 创建特权Pod

  • k8s_1003 : Pod中使用交互式shell

  • k8s_1004 : 创建敏感目录Pod

  • k8s_1005 : 创建主机网络的Pod

  • k8s_1006 : 创建主机Pid空间的Pod

  • k8s_1007 : 普通pod访问APIserver认证失败

  • k8s_1008 : 普通Pod通过Curl访问APIServer

  • k8s_1009 : 系统管理空间执行exec

  • k8s_1010 : 系统管理空间创建Pod

  • k8s_1011 : 创建静态Pod

  • k8s_1012 : 创建DaemonSet

  • k8s_1013 : 创建集群计划任务

  • k8s_1014 : Secrets操作

  • k8s_1015 : 枚举用户可执行的操作

  • k8s_1016 : 高权限RoleBinding或ClusterRoleBinding

  • k8s_1017 : ServiceAccount创建

  • k8s_1018 : 创建Cronjob

  • k8s_1019 : Pod中exec使用交互式shell

  • k8s_1020 : 无权限访问Apiserver

  • k8s_1021 : 使用curl访问APIServer

  • k8s_1022 : Ingress漏洞

  • k8s_1023 : 中间人攻击

  • k8s_1024 : 蠕虫挖矿木马

  • k8s_1025 : K8s事件删除

  • k8s_1026 : SelfSubjectRulesReview场景

  • imgblock_0001 : 镜像白名单阻断

  • imgblock_0002 : 镜像黑名单阻断

  • imgblock_0003 : 镜像标签白名单阻断

  • imgblock_0004 : 镜像标签黑名单阻断

  • imgblock_0005 : 创建容器白名单阻断

  • imgblock_0006 : 创建容器黑名单阻断

  • imgblock_0007 : 容器mount proc阻断

  • imgblock_0008 : 容器seccomp unconfined阻断

  • imgblock_0009 : 容器特权阻断

  • imgblock_0010 : 容器capabilities阻断

event_type

Integer

事件类型,包含如下:

  • 1001 : 通用恶意软件

  • 1002 : 病毒

  • 1003 : 蠕虫

  • 1004 : 木马

  • 1005 : 僵尸网络

  • 1006 : 后门

  • 1010 : Rootkit

  • 1011 : 勒索软件

  • 1012 :黑客工具

  • 1015 : Webshell

  • 1016 : 挖矿

  • 1017 : 反弹Shell

  • 2001 : 一般漏洞利用

  • 2012 : 远程代码执行

  • 2047 : Redis漏洞利用

  • 2048 : Hadoop漏洞利用

  • 2049 : MySQL漏洞利用

  • 3002 : 文件提权

  • 3003 : 进程提权

  • 3004 : 关键文件变更

  • 3005 : 文件/目录变更

  • 3007 : 进程异常行为

  • 3015 : 高危命令执行

  • 3018 : 异常Shell

  • 3027 : Crontab可疑任务

  • 3029 :系统安全防护被禁用

  • 3030 :备份删除

  • 3031 :异常注册表操作

  • 3036 : 容器镜像阻断

  • 4002 : 暴力破解

  • 4004 : 异常登录

  • 4006 : 非法系统账号

  • 4014 : 用户账号添加

  • 4020 : 用户密码窃取

  • 6002 : 端口扫描

  • 6003 : 主机扫描

  • 13001 : Kubernetes事件删除

  • 13002 : Pod异常行为

  • 13003 : 枚举用户信息

  • 13004 : 绑定集群用户角色

event_name

String

事件名称

severity

String

威胁等级,包含如下:

  • Security : 安全

  • Low : 低危

  • Medium : 中危

  • High : 高危

  • Critical : 危急

container_name

String

容器实例名称,只有容器类型的告警有

image_name

String

镜像名称,只有容器类型的告警有

host_name

String

服务器名称

host_id

String

主机ID

private_ip

String

服务器私有IP

public_ip

String

弹性公网IP地址

os_type

String

操作系统类型,包含如下2种。

  • Linux :Linux。

  • Windows :Windows。

host_status

String

服务器状态,包含如下4种。

  • ACTIVE :运行中。

  • SHUTOFF :关机。

  • BUILDING :创建中。

  • ERROR :故障。

agent_status

String

Agent状态,包含如下5种。

  • installed :已安装。

  • not_installed :未安装。

  • online :在线。

  • offline :离线。

  • install_failed :安装失败。

  • installing :安装中。

protect_status

String

防护状态,包含如下2种。

  • closed :未防护。

  • opened :防护中。

asset_value

String

资产重要性,包含如下4种

  • important :重要资产

  • common :一般资产

  • test :测试资产

attack_phase

String

攻击阶段,包含如下:

  • reconnaissance : 侦查跟踪

  • weaponization : 武器构建

  • delivery : 载荷投递

  • exploit : 漏洞利用

  • installation : 安装植入

  • command_and_control : 命令与控制

  • actions : 目标达成

attack_tag

String

攻击标识,包含如下:

  • attack_success : 攻击成功

  • attack_attempt : 攻击尝试

  • attack_blocked : 攻击被阻断

  • abnormal_behavior : 异常行为

  • collapsible_host : 主机失陷

  • system_vulnerability : 系统脆弱性

occur_time

Integer

发生时间,毫秒

recent_time

Integer

发生时间,毫秒

handle_time

Integer

处置时间,毫秒,已处理的告警才有

handle_status

String

处理状态,包含如下:

  • unhandled :未处理

  • handled : 已处理

handle_method

String

处理方式,已处理的告警才有,包含如下:

  • mark_as_handled : 手动处理

  • ignore : 忽略

  • add_to_alarm_whitelist : 加入告警白名单

  • add_to_login_whitelist : 加入登录白名单

  • isolate_and_kill : 隔离查杀

handler

String

备注信息,已处理的告警才有

memo

String

手动处理的备注

operate_accept_list

Array of strings

支持的处理操作

operate_detail_list

Array of EventDetailResponseInfo objects

操作详情信息列表(页面不展示)

forensic_info

Object

取证信息

resource_info

Object

资源信息

geo_info

Object

地理信息

network_info

Object

网络信息

app_info

Object

应用信息

system_info

Object

系统信息

malware_info

Object

恶意软件信息

extend_info

Object

扩展信息

recommendation

String

处置建议

att_ck

String

att_ck 标识

event_details

String

事件简述信息

confidence

Integer

置信度。当前只有情报和av类告警展示该字段。

process_info_list

Object

进程信息列表

user_info_list

Object

用户信息列表

file_info_list

Object

文件信息列表

registry_info_list

Object

注册表信息列表

cluster_info

Object

注册表信息列表

tag_list

Array of strings

标签列表

description

String

告警说明

event_abstract

String

告警摘要

event_count

Integer

事件发生次数

cluster_id

String

集群id

表7 EventDetailResponseInfo

参数

参数类型

描述

agent_id

String

Agent ID

process_pid

Integer

进程id

is_parent

Boolean

是否是父进程

file_hash

String

文件哈希

file_path

String

文件路径

file_attr

String

文件属性

private_ip

String

服务器私有IP

login_ip

String

登录源IP

login_user_name

String

登录用户名

keyword

String

告警事件关键字,仅用于告警白名单

hash

String

告警事件hash,仅用于告警白名单

表8 AntivirusResultDetailInfo

参数

参数类型

描述

result_id

String

病毒查杀结果ID

malware_name

String

病毒名称

file_path

String

文件路径

file_hash

String

文件哈希

file_size

Integer

文件大小

file_owner

String

文件属主

file_attr

String

文件属性

file_ctime

Integer

文件创建时间

file_mtime

Integer

文件更新时间

update_time

Integer

更新时间,毫秒

agent_id

String

Agent ID

请求示例

查询前10条已隔离的文件列表

GET https://{endpoint}/v5/{project_id}/event/isolated-file?limit=10&offset=0&enterprise_project_id=xxx

响应示例

状态码:200

请求已成功

{
  "total_num" : 1409,
  "data_list" : [ {
    "host_id" : "b44***1be-4c28-4bf3-8070-fde5****6689",
    "host_name" : "h00657476-linux-不要动不要删",
    "private_ip" : "192.168.0.93",
    "public_ip" : "100.93.10.247",
    "asset_value" : "common",
    "os_type" : "Linux",
    "file_hash" : "32d62a995215243********a611134e9891b1264e222e55d78",
    "file_path" : "/root/***e_Samples/****-CVE/39d46a0*****20c915db30d",
    "isolation_status" : "isolated",
    "file_attr" : "33261",
    "update_time" : 1737512051632,
    "agent_version" : "3.2.15.10",
    "isolate_source" : "event",
    "event_name" : "未分类恶意软件",
    "agent_event_info" : {
      "severity" : "High",
      "recommendation" : "对于恶意程序告警事件,给您提出如下建议:\r\n1、收到告警,请您先判断相关文件/进程是否是业务正常文件/进程,如果确认为业务正常进程,请选择相应告警事件,点击“处理”,选择\"忽略\"或“加入告警白名单”;\r\n2、收到告警,请您先判断相关文件/进程是否是业务正常文件/进程,如果确认为恶意文件/程序,请选择相应告警事件,点击“处理”,选择\"隔离查杀\"或手动进行病毒清理;\r\n3、如果恶意程序导致了您的数据丢失,且您开通了CBR服务,可以尝试从CBR服务备份中恢复数据;\r\n4、为了防止再次被入侵,您可以通过HSS服务风险预防-漏洞管理中修复漏洞;",
      "description" : "恶意程序告警是指计算机安全软件或系统检测到您的计算机或网络中存在恶意软件威胁时发出的警告。恶意软件是指“malicious software”(恶意软件)的简写形式,是一种计算机程序,它能够以多种途径感染合法用户的计算机并对其造成损害。恶意程序告警旨在提醒用户采取措施防范恶意软件威胁,保护计算机和网络安全。",
      "event_id" : "ac04***86-d7a9-11ef-9fd1-fa1****8dea",
      "event_class_id" : "av_1001",
      "event_type" : 1001,
      "event_name" : "未分类恶意软件",
      "host_name" : "h00657476-linux-不要动不要删",
      "host_id" : "b44d***be-4c28-4bf3-8070-fde59***c6689",
      "attack_phase" : "installation",
      "attack_tag" : "abnormal_behavior",
      "occur_time" : 1737430920000,
      "recent_time" : 1737465583543,
      "handle_time" : 1737512072882,
      "handle_status" : "handled",
      "handle_method" : "isolate_and_kill",
      "handler" : "scc_hss_g00840938_01",
      "memo" : "本次处理了2个告警,作为记录便于查看。",
      "resource_info" : {
        "project_id" : "84b5266c14ae489fa6549827f032dc62",
        "enterprise_project_id" : "0",
        "region_name" : "cn-north-7",
        "host_name" : "h00657476-linux-不要动不要删",
        "host_ip" : "192.168.0.***",
        "public_ip" : "1**.93.10.***",
        "host_id" : "b4***1be-4c28-4bf3-8070-fde***6689",
        "asset_value" : "common",
        "cloud_id" : "",
        "vm_name" : "h00657476-linux-不要动不要删",
        "vm_uuid" : "b4***1be-4c28-4bf3-8070-fde5***6689",
        "os_type" : "Linux",
        "os_name" : "HCE OS",
        "os_version" : "2.0",
        "agent_version" : "3.2.15.10"
      },
      "malware_info" : {
        "malware_family" : "Generic",
        "severity" : 0
      },
      "att_ck" : "影响破坏",
      "confidence" : 90,
      "file_info_list" : [ {
        "file_path" : "/root/******les/*****-CVE/39d46a0cd603*****db30d",
        "file_hash" : "32d62a995215243f******34e9891b1264e222e55d78"
      } ],
      "event_abstract" : "主机 h00657476-linux-不要动不要删 在 2025-01-21 11:42:00 存在可疑恶意软件,置信度值: 中 , 访问文件目录为 /root/Malware_Samples/Common-CVE/39d46a0cd60393e5571b720c915db30d 。",
      "event_count" : 4
    }
  } ]
}

SDK代码示例

SDK代码示例如下。

 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
package com.huaweicloud.sdk.test;

import com.huaweicloud.sdk.core.auth.ICredential;
import com.huaweicloud.sdk.core.auth.BasicCredentials;
import com.huaweicloud.sdk.core.exception.ConnectionException;
import com.huaweicloud.sdk.core.exception.RequestTimeoutException;
import com.huaweicloud.sdk.core.exception.ServiceResponseException;
import com.huaweicloud.sdk.hss.v5.region.HssRegion;
import com.huaweicloud.sdk.hss.v5.*;
import com.huaweicloud.sdk.hss.v5.model.*;


public class ListIsolatedFileSolution {

    public static void main(String[] args) {
        // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
        // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
        String ak = System.getenv("CLOUD_SDK_AK");
        String sk = System.getenv("CLOUD_SDK_SK");
        String projectId = "{project_id}";

        ICredential auth = new BasicCredentials()
                .withProjectId(projectId)
                .withAk(ak)
                .withSk(sk);

        HssClient client = HssClient.newBuilder()
                .withCredential(auth)
                .withRegion(HssRegion.valueOf("<YOUR REGION>"))
                .build();
        ListIsolatedFileRequest request = new ListIsolatedFileRequest();
        try {
            ListIsolatedFileResponse response = client.listIsolatedFile(request);
            System.out.println(response.toString());
        } catch (ConnectionException e) {
            e.printStackTrace();
        } catch (RequestTimeoutException e) {
            e.printStackTrace();
        } catch (ServiceResponseException e) {
            e.printStackTrace();
            System.out.println(e.getHttpStatusCode());
            System.out.println(e.getRequestId());
            System.out.println(e.getErrorCode());
            System.out.println(e.getErrorMsg());
        }
    }
}
 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
# coding: utf-8

import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkhss.v5.region.hss_region import HssRegion
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkhss.v5 import *

if __name__ == "__main__":
    # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    # In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak = os.environ["CLOUD_SDK_AK"]
    sk = os.environ["CLOUD_SDK_SK"]
    projectId = "{project_id}"

    credentials = BasicCredentials(ak, sk, projectId)

    client = HssClient.new_builder() \
        .with_credentials(credentials) \
        .with_region(HssRegion.value_of("<YOUR REGION>")) \
        .build()

    try:
        request = ListIsolatedFileRequest()
        response = client.list_isolated_file(request)
        print(response)
    except exceptions.ClientRequestException as e:
        print(e.status_code)
        print(e.request_id)
        print(e.error_code)
        print(e.error_msg)
 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
package main

import (
	"fmt"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic"
    hss "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/model"
    region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/region"
)

func main() {
    // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak := os.Getenv("CLOUD_SDK_AK")
    sk := os.Getenv("CLOUD_SDK_SK")
    projectId := "{project_id}"

    auth := basic.NewCredentialsBuilder().
        WithAk(ak).
        WithSk(sk).
        WithProjectId(projectId).
        Build()

    client := hss.NewHssClient(
        hss.HssClientBuilder().
            WithRegion(region.ValueOf("<YOUR REGION>")).
            WithCredential(auth).
            Build())

    request := &model.ListIsolatedFileRequest{}
	response, err := client.ListIsolatedFile(request)
	if err == nil {
        fmt.Printf("%+v\n", response)
    } else {
        fmt.Println(err)
    }
}

更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,可生成自动对应的SDK代码示例。

 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
package com.huaweicloud.sdk.test;

import com.huaweicloud.sdk.core.auth.ICredential;
import com.huaweicloud.sdk.core.auth.BasicCredentials;
import com.huaweicloud.sdk.core.exception.ConnectionException;
import com.huaweicloud.sdk.core.exception.RequestTimeoutException;
import com.huaweicloud.sdk.core.exception.ServiceResponseException;
import com.huaweicloud.sdk.hss.v5.region.HssRegion;
import com.huaweicloud.sdk.hss.v5.*;
import com.huaweicloud.sdk.hss.v5.model.*;


public class ListIsolatedFileSolution {

    public static void main(String[] args) {
        // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
        // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
        String ak = System.getenv("CLOUD_SDK_AK");
        String sk = System.getenv("CLOUD_SDK_SK");
        String projectId = "{project_id}";

        ICredential auth = new BasicCredentials()
                .withProjectId(projectId)
                .withAk(ak)
                .withSk(sk);

        HssClient client = HssClient.newBuilder()
                .withCredential(auth)
                .withRegion(HssRegion.valueOf("<YOUR REGION>"))
                .build();
        ListIsolatedFileRequest request = new ListIsolatedFileRequest();
        try {
            ListIsolatedFileResponse response = client.listIsolatedFile(request);
            System.out.println(response.toString());
        } catch (ConnectionException e) {
            e.printStackTrace();
        } catch (RequestTimeoutException e) {
            e.printStackTrace();
        } catch (ServiceResponseException e) {
            e.printStackTrace();
            System.out.println(e.getHttpStatusCode());
            System.out.println(e.getRequestId());
            System.out.println(e.getErrorCode());
            System.out.println(e.getErrorMsg());
        }
    }
}
 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
# coding: utf-8

import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkhss.v5.region.hss_region import HssRegion
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkhss.v5 import *

if __name__ == "__main__":
    # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    # In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak = os.environ["CLOUD_SDK_AK"]
    sk = os.environ["CLOUD_SDK_SK"]
    projectId = "{project_id}"

    credentials = BasicCredentials(ak, sk, projectId)

    client = HssClient.new_builder() \
        .with_credentials(credentials) \
        .with_region(HssRegion.value_of("<YOUR REGION>")) \
        .build()

    try:
        request = ListIsolatedFileRequest()
        response = client.list_isolated_file(request)
        print(response)
    except exceptions.ClientRequestException as e:
        print(e.status_code)
        print(e.request_id)
        print(e.error_code)
        print(e.error_msg)
 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
package main

import (
	"fmt"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic"
    hss "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/model"
    region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/hss/v5/region"
)

func main() {
    // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak := os.Getenv("CLOUD_SDK_AK")
    sk := os.Getenv("CLOUD_SDK_SK")
    projectId := "{project_id}"

    auth := basic.NewCredentialsBuilder().
        WithAk(ak).
        WithSk(sk).
        WithProjectId(projectId).
        Build()

    client := hss.NewHssClient(
        hss.HssClientBuilder().
            WithRegion(region.ValueOf("<YOUR REGION>")).
            WithCredential(auth).
            Build())

    request := &model.ListIsolatedFileRequest{}
	response, err := client.ListIsolatedFile(request)
	if err == nil {
        fmt.Printf("%+v\n", response)
    } else {
        fmt.Println(err)
    }
}

更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,可生成自动对应的SDK代码示例。

状态码

状态码

描述

200

请求已成功

错误码

请参见错误码

提示

您即将访问非华为云网站,请注意账号财产安全

文档反馈

文档反馈

意见反馈

0/500

标记内容

同时提交标记内容