check_point.mgmt.cp_mgmt_threat_indicator 模块 – 通过 Web Services API 管理 Check Point 上的威胁指标对象

注意

此模块是 check_point.mgmt 集合(版本 6.2.1)的一部分。

如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install check_point.mgmt

要在 playbook 中使用它,请指定:check_point.mgmt.cp_mgmt_threat_indicator

check_point.mgmt 1.0.0 中的新增功能

概要

  • 管理 Check Point 设备上的威胁指标对象,包括创建、更新和删除对象。

  • 所有操作都通过 Web Services API 执行。

参数

参数

注释

action

字符串

指标的操作。

选择

  • "Inactive"

  • "Ask"

  • "Prevent"

  • "Detect"

auto_publish_session

布尔值

如果在任务完成后执行了更改,则发布当前会话。

选择

  • false ← (默认)

  • true

color

字符串

对象的颜色。应为现有颜色之一。

选择

  • "aquamarine"

  • "black"

  • "blue"

  • "crete blue"

  • "burlywood"

  • "cyan"

  • "dark green"

  • "khaki"

  • "orchid"

  • "dark orange"

  • "dark sea green"

  • "pink"

  • "turquoise"

  • "dark blue"

  • "firebrick"

  • "brown"

  • "forest green"

  • "gold"

  • "dark gold"

  • "gray"

  • "dark gray"

  • "light green"

  • "lemon chiffon"

  • "coral"

  • "sea green"

  • "sky blue"

  • "magenta"

  • "purple"

  • "slate blue"

  • "violet red"

  • "navy blue"

  • "olive"

  • "orange"

  • "red"

  • "sienna"

  • "yellow"

comments

字符串

注释字符串。

details_level

字符串

响应中某些字段的详细程度可能不同,从仅显示对象的 UID 值到对象的完全详细表示。

选择

  • "uid"

  • "standard"

  • "full"

ignore_errors

布尔值

应用更改时忽略错误。您将无法发布此类更改。如果省略 ignore-warnings 标志,则也会忽略警告。

选择

  • false

  • true

ignore_warnings

布尔值

应用更改时忽略警告。

选择

  • false

  • true

name

字符串 / 必需

对象名称。

observables

列表 / elements=字典

指标的可观测项。

comments

字符串

注释字符串。

confidence

字符串

指标已发现真正威胁的置信度级别。

选择

  • "low"

  • "medium"

  • "high"

  • "critical"

domain

字符串

域的名称。

ignore_errors

布尔值

应用更改时忽略错误。您将无法发布此类更改。如果省略 ignore-warnings 标志,则也会忽略警告。

选择

  • false

  • true

ignore_warnings

布尔值

应用更改时忽略警告。

选择

  • false

  • true

ip_address

字符串

有效的 IP 地址。

ip_address_first

字符串

有效的 IP 地址,范围的开始。如果配置此参数的值,则还必须配置“ip-address-last”参数的值。

ip_address_last

字符串

有效的 IP 地址,范围的结束。如果配置此参数的值,则还必须配置“ip-address-first”参数的值。

mail_cc

字符串

有效的电子邮件地址,抄送字段。

mail_from

字符串

有效的电子邮件地址,发件人字段。

mail_reply_to

字符串

有效的电子邮件地址,回复地址字段。

mail_subject

字符串

电子邮件的主题。

mail_to

字符串

有效的电子邮件地址,收件人字段。

md5

字符串

有效的 MD5 序列。

name

字符串

对象名称。在域中应唯一。

product

字符串

处理可观测项的软件 Blade,AV - AntiVirus,AB - AntiBot。

选择

  • "AV"

  • "AB"

severity

字符串

威胁的严重程度。

选择

  • "low"

  • "medium"

  • "high"

  • "critical"

url

字符串

有效的 URL。

observables_raw_data

字符串

包含指标可观测项的文件内容。

profile_overrides

列表 / elements=字典

要在其中覆盖指标默认操作的配置文件。

action

字符串

此配置文件中指标的操作。

选择

  • "Inactive"

  • "Ask"

  • "Prevent"

  • "Detect"

profile

字符串

要在其中覆盖指标操作的配置文件。

state

字符串

访问规则的状态(present 或 absent)。

选择

  • "present" ← (默认)

  • "absent"

tags

列表 / elements=字符串

标记标识符的集合。

version

字符串

检查点版本。如果未提供,则采用最新版本。

wait_for_task

布尔值

等待任务结束。例如发布任务。

选择

  • false

  • true ← (默认)

wait_for_task_timeout

整数

等待多长时间(分钟)才会抛出超时错误。

默认值: 30

示例

- name: add-threat-indicator
  cp_mgmt_threat_indicator:
    action: ask
    ignore_warnings: true
    name: My_Indicator
    observables:
    - confidence: medium
      mail_to: [email protected]
      name: My_Observable
      product: AV
      severity: low
    profile_overrides:
    - action: detect
      profile: My_Profile
    state: present

- name: set-threat-indicator
  cp_mgmt_threat_indicator:
    action: prevent
    ignore_warnings: true
    name: My_Indicator
    state: present

- name: delete-threat-indicator
  cp_mgmt_threat_indicator:
    name: My_Indicator
    state: absent

返回值

常见返回值在此处记录 此处,以下是此模块特有的字段

描述

cp_mgmt_threat_indicator

字典

创建或更新的检查点对象。

返回:始终,删除对象时除外。

作者

  • Or Soffer (@chkp-orso)