Skip to main content

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

string[]
Policy identifier(s). Pattern: ^[a-fA-F0-9]{32}$
string
Falcon Query Language (FQL) expression to limit resultsExample: platform_name:'Windows'+enabled:true
string
Property 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.desc
int32
Maximum number of results per request (1-5000)
string[]
Include additional propertiesValid values: members
int32
Position to begin retrieving results
switch
Retrieve detailed information
switch
Repeat requests until all available results are retrieved
switch
Display total result count instead of results

Examples

Create Prevention Policy

Create new Prevention policies.
New-FalconPreventionPolicy

Parameters

string
required
Policy name
string
required
Operating system platformValid values: Windows, Mac, Linux, iOS, Android
string
Policy description
object[]
An array of policy settings containing prevention configuration. Each setting should include id and value properties.
object[]
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

string
required
Policy identifier. Pattern: ^[a-fA-F0-9]{32}$
string
Policy name
string
Policy description
object[]
Policy settings to update. Each setting should contain id and value.
object[]
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

string[]
required
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

string
required
Action to performValid values: add-host-group, add-rule-group, disable, enable, remove-host-group, remove-rule-group
string
Host or rule group identifier. Pattern: ^[a-fA-F0-9]{32}$Required for: add-host-group, add-rule-group, remove-host-group, remove-rule-group
string
required
Policy identifier. Pattern: ^[a-fA-F0-9]{32}$

Examples

Get Policy Members

Search for members (hosts) assigned to Prevention policies.
Get-FalconPreventionPolicyMember

Parameters

string
Policy identifier. Pattern: ^[a-fA-F0-9]{32}$
string
Falcon Query Language expression to limit results
string
Property and direction to sort results
int32
Maximum number of results per request (1-5000)
int32
Position to begin retrieving results
switch
Retrieve detailed information
switch
Repeat requests until all available results are retrieved
switch
Display total result count instead of results

Example

Set Policy Precedence

Set Prevention policy precedence order for a specific platform.
Set-FalconPreventionPrecedence

Parameters

string
required
Operating system platformValid values: Windows, Mac, Linux, iOS, Android
string[]
required
Policy 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

Response Policies

Manage Real-time Response policies

Sensor Update Policies

Control sensor version deployment