-
Notifications
You must be signed in to change notification settings - Fork 72
Invoke FalconCommand
bk-cs edited this page Apr 28, 2023
·
20 revisions
Issue a Real-time Response read-only command to an existing single-host or batch session
Sessions can be started using 'Start-FalconSession'. A successfully created session will contain a 'session_id' or 'batch_id' value which can be used with the '-SessionId' or '-BatchId' parameters.
The 'Wait' parameter will use 'Confirm-FalconCommand' to check for command results every 20 seconds until complete or processing ends.
Requires 'Real time response: Read'.
Name | Type | Description | Min | Max | Allowed | Pipeline | PipelineByName |
---|---|---|---|---|---|---|---|
Command | String | Real-time Response command |
cat cd clear csrutil env eventlog backup eventlog export eventlog list eventlog view filehash getsid help history ifconfig ipconfig ls mount netstat ps reg query users
|
||||
Argument | String | Arguments to include with the command | |||||
OptionalHostId | String[] | Restrict execution to specific host identifiers | |||||
Timeout | Int32 | Length of time to wait for a result, in seconds [default: 30] | 1 |
600 |
|||
HostTimeout | Int32 | Length of time to wait for a result from target host(s), in seconds | 1 |
600 |
|||
SessionId | String | Session identifier | X | ||||
BatchId | String | Batch session identifier | X | ||||
Wait | Switch | Use 'Confirm-FalconCommand' to retrieve command result |
Invoke-FalconCommand [-Command] <String> [[-Argument] <String>] [[-OptionalHostId] <String[]>] [[-Timeout] <Int32>] [[-HostTimeout] <Int32>] -BatchId <String> [-Wait] [-WhatIf] [-Confirm] [<CommonParameters>]
Invoke-FalconCommand [-Command] <String> [[-Argument] <String>] -SessionId <String> [-Wait] [-WhatIf] [-Confirm] [<CommonParameters>]
POST /real-time-response/combined/batch-command/v1
POST /real-time-response/entities/command/v1
Invoke-FalconCommand -Command ls -Argument C:\Windows -BatchId $Batch.batch_id
When using single-host sessions, commands must be confirmed to retrieve the results and notify the session that the command has completed.
$Command = Invoke-FalconCommand -Command ls -Argument C:\Windows -SessionId $Session.session_id
See Start-FalconSession.
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