XQL quey help

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

XQL quey help

L1 Bithead

Hello everyone, 

I would like to replicate some queries in Cortex using XQL, but I have many doubts with this language and I am arguing with it 😄

Example:

T1140 Deobfuscate/Decode Files or Information 

DeviceProcessEvents
| where ProcessVersionInfoProductName == "GNU Privacy Guard (GnuPG)"
| where (ProcessCommandLine has "gpg" and ProcessCommandLine has "--passphrase" or (ProcessCommandLine has "--output" or ProcessCommandLine has "-o") and (ProcessCommandLine has "--decrypt" or ProcessCommandLine has "-d") and (ProcessCommandLine matches regex @"\.gpg" or ProcessCommandLine matches regex @"\.pgp"))


Thanks, regards!

1 REPLY 1

L5 Sessionator

Hi @agirones, thanks for reaching us using the Live Community.

 

I'll recommend you to take this XQL Crash Course to learn from the basics to some more advanced use cases like the one you are quoting here: https://live.paloaltonetworks.com/t5/cortex-xdr-how-to-videos/cortex-xdr-basic-xql-crash-course/ta-p...

 

If this post answers your question, please mark it as the solution.

JM
  • 557 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!