对于 EDR 威胁响应,您需要指定基本请求参数,例如以 JSON 格式:
task
是任务的类型(见下文)。targetHost
是必须运行脚本的计算机的 ID。必需参数。脚本从事件中获取此参数。responseEventIncidentArea
是运行脚本的应用程序的名称(例如,KUMA
)。该参数添加到所创建任务的名称中。要配置 EDR 威胁响应,您需要在“"KLINCDT_BODY": json.dumps(data)
”参数中以 JSON 格式指定任务设置。因此,应用程序在 Kaspersky Security Center 控制台中创建“[Response][KUMA] <task type> - <Date> <Time> - <ID>
”。
获取文件 – getFile
获取文件 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
您想要获取的文件的 MD5 哈希值。 |
|
|
您想要获取的文件的 SHA256 哈希值。 |
|
|
您想要获取的文件的路径。 |
示例
type getFile = {
task: 'getFile';
targetHost: string;
params: {
// an empty string or a valid md5 hash of the file
md5hash: string;
// an empty string or a valid sha256 hash of the file
sha256hash: string;
// the path to the file
path: string;
};
responseEventIncidentArea: string;
};
删除文件 – deleteFile
删除文件 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
您要删除的文件的 MD5 哈希值。 |
|
|
您要删除的文件的 SHA256 哈希值。 |
|
|
您要删除的文件的路径。 |
|
|
在子文件夹中搜索要删除的文件。 |
示例
type deleteFile = {
task: 'deleteFile';
targetHost: string;
params: {
// an empty string or a valid md5 hash of the file
md5hash: string;
// an empty string or a valid sha256 hash of the file
sha256hash: string;
// the path to the file
path: string;
// recursive search for a file (subfolder), optional
searchInSubfolders?: boolean;
};
responseEventIncidentArea: string;
};
移动文件到隔离区 – quarantineFile
移动文件到隔离区 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
您要隔离的文件的 MD5 哈希值。 |
|
|
您要隔离的文件的 SHA256 哈希值。 |
|
|
您想要隔离的文件的路径。 |
示例
type quarantineFile = {
task: 'quarantineFile';
targetHost: string;
params: {
// an empty string or a valid md5 hash of the file
md5hash: string;
// an empty string or a valid sha256 hash of the file
sha256hash: string;
// the path to the file
path: string;
};
responseEventIncidentArea: string;
};
IOC 扫描 – iocScan
IOC 扫描 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
包含您想要用于扫描的 base64 编码的 IOC 文件的 ZIP 存档的路径。必需参数。手动输入此参数。 |
|
|
当检测到入侵指标时将计算机与网络隔离,以防止威胁蔓延。 |
|
|
当检测到入侵指标时运行“关键区域扫描”任务。 |
|
|
当检测到入侵指标时删除恶意对象。删除对象之前,Kaspersky Endpoint Security 创建备份副本,以便日后对其进行恢复。Kaspersky Endpoint Security 移动备份副本到隔离区。 |
示例
type iocScan = {
task: 'iocScan';
targetHost: string;
params: {
// the path to the zip archive with ioc files in base64 encoding
ioc: string;
// isolation of the computer from the network
isolateHost: boolean;
// critical areas scan
scanCriticalAreas: boolean;
// quarantine the file
quarantineObject: boolean;
};
responseEventIncidentArea: string;
};
启动进程 – startProcess
启动进程 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
用于启动进程的可执行文件的路径。 |
|
|
用于启动进程的附加命令行参数。 |
|
|
进程工作文件夹的路径。 |
示例
type startProcess = {
task: 'startProcess';
targetHost: string;
params: {
// the path to the file
executablePath: string;
// command line arguments, optional
arguments?: string;
// a working folder, optional
workingFolder?: string;
};
responseEventIncidentArea: string;
};
终止进程 – terminateProcess
终止进程 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
您想要终止其进程的文件的 MD5 哈希值。 |
|
|
您想要终止其进程的文件的 SHA256 哈希值。 |
|
|
您要删除的文件的路径。 |
|
|
搜索文件时区分大小写。 |
示例
type terminateProcess = {
task: 'terminateProcess';
targetHost: string;
params: {
// an empty string or a valid md5 hash of the file
md5hash: string;
// an empty string or a valid sha256 hash of the file
sha256hash: string;
// the path to the file
path: string;
// case sensitive of the file name
caseSensitive: boolean;
};
responseEventIncidentArea: string;
};
计算机网络隔离 – isolateHost
计算机网络隔离设置
参数 |
类型 |
描述 |
---|---|---|
|
|
您想要获取的文件的 MD5 哈希值。 |
示例
type isolateHost = {
task: 'isolateHost';
targetHost: string;
params: {
// 0 - turning off network isolation, 1 - turning on network isolation
action: number;
};
responseEventIncidentArea: string;
};
执行防护 – preventExecution
执行防护设置
参数 |
类型 |
描述 |
---|---|---|
|
|
您想要阻止运行的文件的 MD5 哈希值。 |
|
|
您想要阻止运行的文件的路径。 |
|
|
搜索文件时区分大小写。 |
示例
type preventExecution = {
task: 'preventExecution';
targetHost: string;
params: {
// a valid md5 hash of the file
hash: string;
// the path to the file
path: string;
// case sensitive of the file name
caseSensitive: boolean;
};
responseEventIncidentArea: string;
};
恶意软件扫描 – onDemandScan
恶意软件扫描 任务设置
参数 |
类型 |
描述 |
---|---|---|
|
|
自定义扫描的文件和文件夹的空格分隔列表。 |
|
|
递归扫描模式。 |
|
|
扫描范围。 |
ScanObjectType = Enum("ScanObjectType", [ ("SystemMemory", 14), ("StartupObjectsAndRunningProcesses", 15), ("DiskBootSectors", 16), ("SystemBackupStorage", 17), ("Email", 18), ("Folder", 22), ("AllRemovableDrives", 23), ("AllNetworkDrives", 24), ("AllFixedDrives", 25)]) |
示例
type onDemandScan = {
task: 'onDemandScan';
targetHost: string;
// please note, this is an array
// array of scan object
params: [{
// enabling the scan object
enabled: boolean;
// an empty string or the path to the folder to scan
path: string;
// recursive scan mode
recursive: boolean;
// ID scan object
type: number;
}];
responseEventIncidentArea: string;
};
页面顶部