Hello guys,
I’m working on SecOps Audit events for MOC purposes.
I wrote a query to identify modifications on Parsers & Extensions.
Here’s my query :
events:
metadata.log_type = "GCP_CLOUDAUDIT"
target.application = "chronicle.googleapis.com"
// Filter on Parser Mgmt events
metadata.product_event_type = /\.ParserService\./
$action = re.capture(metadata.product_event_type, `ParserService\.(.*)$`)
// Exclude 'Read' events
not $action = "GetParser"
not $action = "ListParsers"
not $action = "ListParserExtensions"
not $action = "GetParserExtension"
$evtid = metadata.id
match:
$evtid
outcome:
$timestamp = array(timestamp.get_timestamp(metadata.event_timestamp.seconds, "SECOND", "Europe/Paris"))
$audit_action = array_distinct($action)
$log_type = array_distinct(re.capture(target.resource.name, `logTypes/([^/]+)`))
$actor = array_distinct(principal.user.email_addresses)
order:
$timestamp desc
unselect:
$evtidUnfortunately, my filters to remove ‘Read’ events seem to be not working, these events being included in the stats table...
I don’t understand the issue because in the output table I see those exact strings that I’m trying to exclude… Note that when trying to filter out these events via regex (e.g. not $action = /GetParser/) it works as expected. This leads me to think there must be an invisible character or something but it does not make any sense.
Any idea on what I may be missing here ?
Regards,
