Hi Bhagyesh , you can use QRadar SIEM Functions for SOAR from here : https://exchange.xforce.ibmcloud.com/hub/extension/a9bcc3eaebf2a6efc04258b4964a48a4
On that package you need to use qradar_search function,
Here is an example of what you would like to do on the code:
AQL search to grab the data (try it first on your QRadar):
SELECT DOMAINNAME(domainID), domainID,QIDNAME(qid),LOGSOURCENAME(logSourceId), sourceaddress, destinationaddress, startTime, CATEGORYNAME(category), "SHA256 Hash" , UTF8(payload) FROM events WHERE INOFFENSE('1') ORDER BY startTime ASC LIMIT 10 START 1705586735124 STOP 1705586735125
The script on the qradar_search should look like:
offense = incident.properties.qradar_id
query = "SELECT DOMAINNAME(domainID), domainID,QIDNAME(qid),LOGSOURCENAME(logSourceId), sourceaddress, destinationaddress, startTime, CATEGORYNAME(category), \"SHA256 Hash\" , UTF8(payload) \
FROM events WHERE INOFFENSE("+ offense +") ORDER BY startTime ASC LIMIT 10 START " + str(start_time) + " STOP " + str(stop_time)
inputs.qradar_query = query
You need to get start_time and stop_time from the offense/incident with your code.
Attributes are just as examples the only thing you really need it's UTF8(payload) to grab de payload
Hope it does help
------------------------------
Juan Paulo
IBM
Santiago
------------------------------