- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-03-2023 12:43 AM
Hello,
Currently we are trying to create a query that gives us the result if the user has executed Sudo command and then right after executed the cd command. Is it possible to write a query that searches for commands executed one after the other?
During this process we observed that cortex is not giving us logs for cd command in any of the systems. why is it so?
01-03-2023 01:52 AM
You can use below query. You should have enough telemetry data for this task, if you enabled XDR Pro on the endpoint.
dataset = xdr_data
| filter os_actor_process_image_path = "/usr/bin/sudo" and os_actor_process_command_line contains "cd"
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!