适用于 Microsoft Sentinel 的 Contrast Protect 连接器

Contrast Protect 通过运行时保护和可观测性缓解生产应用程序中的安全威胁。 攻击事件结果(阻止、探测、可疑...)和其他信息可以发送到 Sentinel,以与其他系统的安全信息混合。

连接器属性

连接器属性 说明
Log Analytics 表 CommonSecurityLog (ContrastProtect)
数据收集规则支持 工作区转换 DCR
支持的服务 Contrast Protect

查询示例

所有攻击

let extract_data=(a:string, k:string) {   parse_urlquery(replace(@';', @'&', a))["Query Parameters"][k] }; CommonSecurityLog  
| where DeviceVendor == 'Contrast Security' 
| extend Outcome = replace(@'INEFFECTIVE', @'PROBED', tostring(coalesce(column_ifexists("EventOutcome", ""), extract_data(AdditionalExtensions, 'outcome'), ""))) 
| where Outcome != 'success' 
| extend Rule = extract_data(AdditionalExtensions, 'pri') 
| project TimeGenerated, ApplicationProtocol, Rule, Activity, Outcome, RequestURL, SourceIP 
| order by TimeGenerated desc 

有效攻击

let extract_data=(a:string, k:string) {
parse_urlquery(replace(@';', @'&', a))["Query Parameters"][k]
};
CommonSecurityLog 

| where DeviceVendor == 'Contrast Security'

| extend Outcome = tostring(coalesce(column_ifexists("EventOutcome", ""), extract_data(AdditionalExtensions, 'outcome'), ""))

| where Outcome in ('EXPLOITED','BLOCKED','SUSPICIOUS')

| extend Rule = extract_data(AdditionalExtensions, 'pri')

| project TimeGenerated, ApplicationProtocol, Rule, Activity, Outcome, RequestURL, SourceIP

| order by TimeGenerated desc

供应商安装说明

  1. Linux Syslog 代理配置

安装并配置 Linux 代理,以收集通用事件格式 (CEF) Syslog 消息,并将其转发到 Microsoft Sentinel。

请注意,来自所有区域的数据将存储在所选工作区中

1.1 选择或创建 Linux 计算机

选择或创建一个 Linux 计算机,Microsoft Sentinel 将使用该计算机作为安全解决方案和 Microsoft Sentinel 之间的代理。该计算机可以位于本地环境、Azure 或其他云中。

1.2 在 Linux 计算机上安装 CEF 收集器

在 Linux 计算机上安装 Microsoft Monitoring Agent,然后将计算机配置为侦听所需的端口并将消息转发到 Microsoft Sentinel 工作区。 该 CEF 收集器在端口 514 TCP 上收集 CEF 消息。

  1. 使用以下命令确保已在计算机上安装 Python:python -version。
  1. 你必须在计算机上拥有提升的权限 (sudo)。

运行以下命令安装并应用 CEF 收集器:

sudo wget -O cef_installer.py https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/DataConnectors/CEF/cef_installer.py&&sudo python cef_installer.py {0} {1}

  1. 将通用事件格式 (CEF) 日志转发到 Syslog 代理

配置 Contrast Protect 代理以将事件转发到 syslog,如此处所述:https://docs.contrastsecurity.com/en/output-to-syslog.html。 为应用程序生成一些攻击事件。

  1. 验证连接

按照说明验证连接性:

打开 Log Analytics,检查是否使用 CommonSecurityLog 架构收到了日志。

连接将数据流式传输到工作区可能大约需要 20 分钟。

如果未收到日志,请运行以下连接验证脚本:

  1. 使用以下命令确保已在计算机上安装 Python:python -version
  1. 必须在计算机上拥有提升的权限 (sudo)

运行以下命令以验证连接:

sudo wget -O cef_troubleshoot.py https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/DataConnectors/CEF/cef_troubleshoot.py&&sudo python cef_troubleshoot.py {0}

  1. 保护计算机

确保根据组织的安全策略配置计算机的安全性

了解详细信息>