Creating the automation script to fetch alerts from Claroty
About this task
An automation script is created for fetching alerts from Claroty.
Follow the steps below to create the automation script:
Procedure
Table Schema in Maximo IT
To import the alerts into Maximo IT, two new tables are created: cdalert and
ALERT_ENTITY_RELATIONSHIP in Maximo IT Db2. A sample table schemas for both are
shown below.
- cdalert Table SchemaNote: This is a sample table schema for the cdalert table. You can modify the schema based on your custom fields and other changes as necessary.
CDALERT Table Schema ALERT_ID Description: Claroty's vulnerability ID. Type: VARCHAR DESCRIPTION Description: Vulnerability Name. Type: VARCHAR PRIORITY Description: Represents the priority of the vulnerability, derived from device_known_vulnerabilities. Type: VARCHAR VULNERABILITY_SCORE Description: Represent the risk level, based on device_risk_score_points. Type: VARCHAR SEVERITY Description: Describes the severity of the vulnerability, derived from device_risk_score. Type: VARCHAR STATUS Description: Status of alert. Type: VARCHAR CREATED_BY Description: Source of the alert. Type: VARCHAR MODIFIED_BY Description: The user that updated the alert details (if applicable). Type: VARCHAR CREATED_AT Description: The date and time when the vulnerability was first detected. Type: VARCHAR LOCATION Description: Site name where the vulnerability was found. Type: VARCHAR
- ALERT_ENTITY_RELATIONSHIP Table SchemaNote: This is a sample table schema for the ALERT_ENTITY_RELATIONSHIP table. You can modify the schema based on your custom fields and other changes as necessary.
ALERT_ENTITY_RELATIONSHIP Table Schema ENTITY_NAME Description: Name of the source related to the vulnerability. Type: VARCHAR ENTITY_ID Description: The unique identifier for the source id Type: VARCHAR ALERT_ID Description: Alert id from cdalert table Type: VARCHAR ALERT_STATUS Description: Indicates the current status. Type: VARCHAR INCIDENT_STATUS Description: Indicates the current status of Incident. Type: VARCHAR INCIDENT_ID Description: Unique ID of Incident. Type: VARCHAR