Python Script for integrating IBM QRadar SIEM with Jira Ticketing System, in order to create issue(open ticket) automatically at real time on Jira, for offenses with magnitude bigger than a selected score via Custom Actions, making Incident Responce process faster and efficient!
-
Generate Jira Personal Access Token
-
Generate QRadar API Key
-
Create a QRadar Offense Rule, when a new offense is generated then create a new event "Offense Created"
-
Create a QRadar Event Rule, when the event "Offense Created" is generated, then run a python script via Custom Actions on QRadar Console.
-
Create a QRadar Offense Rule, when a offense magnitude has increased by at least 1 unit(s), then create a new event "Offense Magnitude has increased"
-
Create a QRadar Event Rule, when the event "Offense Magnitude has increased" is generated, then run a python script via Custom Actions on QRadar Console.
-
Python script:
- Identify API endpoints both for QRadar and Jira.
- Select the attributes of QRadar API.
- Select the fields of Jira issue.
- Check for open tickets on Jira with offenses with magnitude equal or bigger from the selected value.
- Write the python script.
-
Test the Integration:
- Test QRadar API via Custom Actions. TestQradarApi.py
- Test Jira API via Custom Actions. TestJiraApi.py
- Test Jira API for Updated Offenses via Custom Actions. TestJiraUpdatedOffense.py
- Test QRadar-Jira Scripts via Custom Actions. QRadarJiraIntegration.py QRadarJiraIncreasedMagnitude.py
- Test the integration after the QRadar Event Rules are fired. QRadarJiraIntegration.py QRadarJiraIncreasedMagnitude.py
- Jira Personal Access Token is A Bearer Token, check your syntax on API Request Authorization headers.
- Use QRadar's Console IP, NOT Domain, on API Request.
- On Custom Actions, any property is a string.
- Extract Offense ID from the event "Offense Created", for creating the QRadar API request in order to catch any new offense.
- Extract Offense ID from the event "Offense Magnitude has increased", for creating the QRadar API request in order to catch any offense that its magnitude has been increased.