- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-11-2022 06:51 AM
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.
03-13-2022 10:48 PM
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.
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!