-
Notifications
You must be signed in to change notification settings - Fork 72
Get FalconDeviceControlPolicy
bk-cs edited this page Apr 28, 2023
·
24 revisions
Search for Falcon Device Control policies
Requires 'Device control policies: Read'.
Name | Type | Description | Min | Max | Allowed | Pipeline | PipelineByName |
---|---|---|---|---|---|---|---|
Id | String[] | Policy identifier | X | X | |||
Filter | String |
Falcon Query Language expression to limit resultscreated_by created_timestamp description enabled groups modified_by modified_timestamp name name.raw platform_name
|
|||||
Sort | String | Property and direction to sort results |
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
|
||||
Limit | Int32 | Maximum number of results per request | 1 |
5000 |
|||
Include | String[] | Include additional properties | members |
||||
Offset | Int32 | Position to begin retrieving results | |||||
Default | Switch | Retrieve default Device Control policy, including notification content | |||||
Detailed | Switch | Retrieve detailed information | |||||
All | Switch | Repeat requests until all available results are retrieved | |||||
Total | Switch | Display total result count instead of results |
Get-FalconDeviceControlPolicy [[-Filter] <String>] [[-Sort] <String>] [[-Limit] <Int32>] [[-Include] <String[]>] [-Offset <Int32>] [-All] [-Total] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-FalconDeviceControlPolicy -Id <String[]> [[-Include] <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-FalconDeviceControlPolicy [[-Filter] <String>] [[-Sort] <String>] [[-Limit] <Int32>] [[-Include] <String[]>] [-Offset <Int32>] -Detailed [-All] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-FalconDeviceControlPolicy -Default [-WhatIf] [-Confirm] [<CommonParameters>]
GET /policy/combined/device-control/v1
GET /policy/entities/default-device-control/v1
GET /policy/entities/device-control/v1
GET /policy/queries/device-control/v1
queryDeviceControlPolicies
getDeviceControlPolicies
queryCombinedDeviceControlPolicies
getDefaultDeviceControlPolicies
Get-FalconDeviceControlPolicy -Filter "name:'policy'" -Sort created_timestamp.asc -Detailed
Get-FalconDeviceControlPolicy -Filter "name:'diana.hudson'" -Sort name.desc -Detailed
Get-FalconDeviceControlPolicy -Id <id>, <id>
NOTE: The example uses a name
filter to target a policy named my_policy
.
foreach ($Policy in (Get-FalconDeviceControlPolicy -Filter "name:'my_policy'" -Include members -Detailed)) {
foreach ($Device in (Get-FalconHost -Id $Policy.members.device_id -Login)) {
foreach ($Member in @($Policy.members).Where({ $_.device_id -eq $Device.device_id })) {
$Recent = @($Device.recent_logins).Where({ $_.user_name -match $Member.hostname }) | Select-Object -First 1
[PSCustomObject]@{
policy_id = $Policy.id
policy_name = $Policy.name
device_id = $Member.device_id
hostname = $Member.hostname
most_recent_user_name = $Recent.user_name
most_recent_login_time = $Recent.login_time
} | Export-Csv .\policy_members.csv -NoTypeInformation -Append
}
}
}
2023-04-25: PSFalcon v2.2.5
- Using PSFalcon
-
Commands by Permission
- Actors (Falcon Intelligence)
- Alerts
- API integrations
- App Logs
- Channel File Control Settings
- Configuration Assessment
- Content Update Policies
- Correlation Rules
- CSPM registration
- Custom IOA rules
- Detections
- Device Content
- Device control policies
- Event streams
- Falcon Complete Dashboards
- Falcon Container Image
- Falcon Data Replicator
- Falcon Discover
- Falcon FileVantage
- Falcon FileVantage Content
- Firewall management
- Flight Control
- Host groups
- Host Migration
- Hosts
- Identity Protection Entities
- Identity Protection GraphQL
- Identity Protection Policy Rules
- Incidents
- Indicators (Falcon Intelligence)
- Installation tokens
- Installation token settings
- IOA Exclusions
- IOC Manager APIs
- IOCs
- Kubernetes Protection
- Machine Learning exclusions
- MalQuery
- Malware Families (Falcon Intelligence)
- Message Center
- Mobile Enrollment
- Monitoring rules (Falcon Intelligence Recon)
- On demand scans (ODS)
- OverWatch Dashboard
- Prevention Policies
- Quarantined Files
- QuickScan Pro
- Real time response
- Real time response (admin)
- Reports (Falcon Intelligence)
- Response policies
- Rules (Falcon Intelligence)
- Sample uploads
- Sandbox (Falcon Intelligence)
- Scheduled Reports
- Sensor Download
- Sensor update policies
- Sensor Usage
- Sensor Visibility Exclusions
- Snapshot
- Snapshot Scanner Image Download
- Tailored Intelligence
- Threatgraph
- User management
- Vulnerabilities
- Vulnerabilities (Falcon Intelligence)
- Workflow
- Zero Trust Assessment
- Other Commands
- Examples
-
CrowdStrike SDKs
- FalconPy - Python 3
- goFalcon - Go
- Rusty Falcon - Rust