- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-27-2026 05:17 AM
Hi everyone,
i've created this bioc:
05-27-2026 12:48 PM
Hello @tlmarques ,
Greetings for the day.
Standard Behavioral Indicator of Compromise (BIOC) rules in Cortex XDR are configured for Detection only by default. To enable prevention (blocking), you must convert the BIOC into a Custom Prevention Rule and apply it to an active Restrictions Profile.
The rule you created is currently failing to block because of incompatible XQL syntax and the selected event type. Follow these steps to configure it correctly for prevention:
The Cortex XDR agent has specific requirements for prevention rules. The contains operator and simple string matching are often incompatible with agent-side enforcement.
contains with the regular expression operator ~= (tilde equals).ENUM.LOAD_IMAGE, use ENUM.PROCESS. This enables the agent to block the command at execution time rather than reacting to a module load.dataset = xdr_data
| filter event_type = ENUM.PROCESS
| filter action_process_image_command_line ~= ".*netsh.*advfirewall.*set.*currentprofile.*state.*off.*"
Once the BIOC rule is saved using compatible syntax, link it to a Restrictions Profile:
Asynchronous Nature:
Behavioral Threat Protection (BTP) is an asynchronous module. If the netsh process executes and terminates very quickly before the agent can intervene, the alert may appear as Detected even though the rule is configured to block.
Whitelisting:Some critical system processes are whitelisted from termination to maintain OS stability. If the command originates from a whitelisted process, process termination may be skipped.
Note - License Requirement: Creating and managing custom BIOC rules requires a Cortex XDR Pro license.
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution".
Thanks & Regards,
S. Subashkar Sekar
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!

