Create a BIOC that doesn't allow a specific folder to be created

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

Create a BIOC that doesn't allow a specific folder to be created

L0 Member

Hello,

i want to create a rule that prevent anyone from creating a directory with a specific name in C:\

for example: if we say the folder is named coffee, i don't want this folder directory being created "C:\Coffee" .

i tried to created it, but i couldn't find a way to do a BIOC for folder only for files.

 

thank you.

 

Cortex XDR

 

1 REPLY 1

L5 Sessionator

Here's a XQL query to get you alerts if a directory gets created

| dataset = xdr_data
| filter event_type = ENUM.FILE and (event_sub_type = ENUM.FILE_DIR_CREATE or event_sub_type = ENUM.FILE_DIR_RENAME)
| filter action_file_path in("C:\Coffee")

 

However, you might also want to look at additional controls like: why are users able to create directories in such paths and not under "C:\Users\<username>\", and how those permissions should be reviewed and applied to users.

bbarmanroy_0-1647236911839.png

 

 

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!