Overview
Prevention policies control malware protection settings, detection behaviors, and other security features on endpoints. These policies define how the Falcon sensor prevents and detects threats across different platforms.Required API Scope:
Prevention Policies: Read (for read operations) or Prevention Policies: Write (for write operations)Get Prevention Policies
Search for and retrieve Prevention policies.Get-FalconPreventionPolicy
Parameters
Policy identifier(s). Pattern:
^[a-fA-F0-9]{32}$Falcon Query Language (FQL) expression to limit resultsExample:
platform_name:'Windows'+enabled:trueProperty and direction to sort resultsValid values:
created_by.asc, created_by.desc, created_timestamp.asc, created_timestamp.desc, enabled.asc, enabled.desc, modified_by.asc, modified_by.desc, modified_timestamp.asc, modified_timestamp.desc, name.asc, name.desc, platform_name.asc, platform_name.desc, precedence.asc, precedence.descMaximum number of results per request (1-5000)
Include additional propertiesValid values:
membersPosition to begin retrieving results
Retrieve detailed information
Repeat requests until all available results are retrieved
Display total result count instead of results
Examples
Create Prevention Policy
Create new Prevention policies.New-FalconPreventionPolicy
Parameters
Policy name
Operating system platformValid values:
Windows, Mac, Linux, iOS, AndroidPolicy description
An array of policy settings containing prevention configuration. Each setting should include
id and value properties.One or more policies to create in a single request (for batch operations, max 100 per request)
Examples
Edit Prevention Policy
Modify existing Prevention policies.Edit-FalconPreventionPolicy
Parameters
Policy identifier. Pattern:
^[a-fA-F0-9]{32}$Policy name
Policy description
Policy settings to update. Each setting should contain
id and value.One or more policies to modify in a single request (for batch operations, max 100 per request)
Examples
Remove Prevention Policy
Remove Prevention policies.Remove-FalconPreventionPolicy
Parameters
Policy identifier(s) to remove. Pattern:
^[a-fA-F0-9]{32}$Example
Policy Actions
Perform actions on Prevention policies such as enabling/disabling or assigning to host groups.Invoke-FalconPreventionPolicyAction
Parameters
Action to performValid values:
add-host-group, add-rule-group, disable, enable, remove-host-group, remove-rule-groupHost or rule group identifier. Pattern:
^[a-fA-F0-9]{32}$Required for: add-host-group, add-rule-group, remove-host-group, remove-rule-groupPolicy identifier. Pattern:
^[a-fA-F0-9]{32}$Examples
Get Policy Members
Search for members (hosts) assigned to Prevention policies.Get-FalconPreventionPolicyMember
Parameters
Policy identifier. Pattern:
^[a-fA-F0-9]{32}$Falcon Query Language expression to limit results
Property and direction to sort results
Maximum number of results per request (1-5000)
Position to begin retrieving results
Retrieve detailed information
Repeat requests until all available results are retrieved
Display total result count instead of results
Example
Set Policy Precedence
Set Prevention policy precedence order for a specific platform.Set-FalconPreventionPrecedence
Parameters
Operating system platformValid values:
Windows, Mac, Linux, iOS, AndroidPolicy identifiers in desired precedence order (highest to lowest priority). Pattern:
^[a-fA-F0-9]{32}$All policy identifiers must be supplied in order, with the exception of the
platform_default policy.Example
Related Resources
Response Policies
Manage Real-time Response policies
Sensor Update Policies
Control sensor version deployment