xql query for moved directory or folder

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

xql query for moved directory or folder

L1 Bithead

There is a canned search for files but what about folders? 

 

We are trying to find out who is moving or deleting a folder, hoping Cortex has something to help. Thx

1 REPLY 1

L6 Presenter

Hello @Joe-Oberfoell \,

 

The reason is, Cortex XDR agent does not collect all Windows Event Logs. It only collects specific security-relevant events as defined in the policy.

https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Endpoint-Da...

 

To detect events based on the folder, you can Ingest Event ID 4660 and 4663 into Cortex XDR.

Use Broker VM + Log Forwarding App

This is the most effective and supported method by Palo Alto Networks.

  1. Enable Audit Policies on Endpoints

    • Enable object access auditing via GPO:

      Computer Configuration → Windows Settings → Security Settings → Advanced Audit Policy Configuration → Audit Policies → Object Access → Audit File System → Success and Failure
  2. Configure SACLs on the Folder(s)

    • Right-click the folder → Properties → Security → Advanced → Auditing → Add

    • Choose the user/group, and select "Delete", "Delete Subfolders and Files", "Write", etc.

    • This ensures events like 4663 and 4660 are logged.

  3. Forward Logs to Cortex XDR:

    • Install Broker VM and configure the Log Forwarding App.

    • Use Windows Event Forwarding (WEF) or Winlogbeat/NXLog to forward the Security Event Log to the Broker.

    • The Broker forwards logs to the Cortex Data Lake.

Create a correlation rule to create detection

If you feel this has answered your query, please let us know by clicking like and  on "mark this as a Solution". Thank you.

 

Ashutosh Patil
  • 183 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!