Skip to main content

Overview

Real-time Response (RTR) enables interactive command execution on CrowdStrike Falcon hosts. This API provides read-only commands for investigating hosts without making changes to the system.
All RTR operations require an active session. Sessions expire after 5 minutes of inactivity unless refreshed.

Session Management

Start-FalconSession

Initialize a single-host or batch Real-time Response session.
string[]
required
Host identifier(s). Use Get-FalconHost to retrieve host IDs.
boolean
Add non-responsive hosts to the offline queue for automatic connection when they come online.
string
Add hosts to an existing batch session. Must be a valid batch session UUID.
int32
default:"30"
Length of time to wait for a result, in seconds. Valid range: 1-600.
int32
Length of time to wait for a result from target host(s), in seconds. Valid range: 1-600.
Returns: Single-host session returns session_id, batch session returns batch_id and host details. Required Permission: Real time response: Read
Example: Single Host Session
Example: Batch Session

Get-FalconSession

Search for existing Real-time Response sessions.
string[]
Session identifier(s) to retrieve.
string
Falcon Query Language expression to filter results (e.g., "created_at:>'2024-01-01'").
string
Property and direction to sort results.
int32
default:"100"
Maximum number of results per request. Valid range: 1-1000.
int32
Position to begin retrieving results for pagination.
switch
Expand search to include all sessions created within your environment (requires additional permission).
switch
Restrict search to sessions in the offline queue.
switch
Retrieve detailed information for each session.
switch
Repeat requests until all available results are retrieved.
Required Permission: Real time response: Read (and Real time response audit: Read when using -Cid)
Example: Get Session Details

Update-FalconSession

Refresh a session to prevent expiration (extends the 5-minute timeout).
string
Host identifier for a single-host session.
string
Batch session identifier.
boolean
Add non-responsive hosts to the offline queue.
string[]
Host identifier(s) to remove from a batch session.
int32
default:"30"
Length of time to wait for a result, in seconds. Valid range: 1-600.
Required Permission: Real time response: Read
Example: Refresh Session

Remove-FalconSession

Terminate an active Real-time Response session.
string
required
Session identifier to remove.
Required Permission: Real time response: Read
Example: Close Session

Read-Only Commands

Invoke-FalconCommand

Execute read-only RTR commands that do not modify the host system.
string
required
Real-time Response command to execute. Available commands:
  • cat - Display file contents
  • cd - Change directory
  • clear - Clear screen
  • csrutil - Check System Integrity Protection status (macOS)
  • env - Display environment variables
  • eventlog backup - Backup Windows event logs
  • eventlog export - Export Windows event logs
  • eventlog list - List Windows event logs
  • eventlog view - View Windows event log entries
  • filehash - Calculate file hash
  • getsid - Get security identifier
  • help - Display available commands
  • history - Show command history
  • ifconfig - Display network configuration (Unix/macOS)
  • ipconfig - Display network configuration (Windows)
  • ls - List directory contents
  • mount - Display mounted filesystems
  • netstat - Display network connections
  • ps - List running processes
  • reg query - Query Windows registry
  • users - List logged-in users
string
Arguments to include with the command (e.g., file path, registry key).
string
Session identifier for single-host execution.
string
Batch session identifier for multi-host execution.
string[]
Restrict batch execution to specific host identifiers.
int32
default:"30"
Length of time to wait for a result, in seconds. Valid range: 1-600.
int32
Length of time to wait for a result from target host(s), in seconds. Valid range: 1-600.
switch
Automatically poll for command completion using Confirm-FalconCommand.
Required Permission: Real time response: Read
Example: List Processes
Example: Check Registry Key

Confirm-FalconCommand

Verify the status of a read-only command (required to acknowledge command completion).
Failing to confirm commands can lead to unexpected results. Always confirm commands as part of your workflow.
string
required
Command request identifier returned from Invoke-FalconCommand.
int32
default:"0"
Sequence identifier for command ordering.
Required Permission: Real time response: Read
Example: Manual Confirmation

Remove-FalconCommand

Remove a command from a queued Real-time Response session.
string
required
Session identifier containing the queued command.
string
required
Cloud request identifier of the command to remove.
Required Permission: Real time response: Read
Example: Cancel Queued Command

Workflow Examples

1

Establish Session

Start an RTR session with the target host(s).
2

Execute Commands

Run read-only investigation commands.
3

Review Results

Examine command output for investigation findings.
4

Clean Up

Always close sessions to free resources.

Batch Session Workflow

Complete Batch Investigation

Best Practices

Session Management
  • Sessions expire after 5 minutes of inactivity
  • Use Update-FalconSession to refresh long-running sessions
  • Always close sessions with Remove-FalconSession when done
  • Use QueueOffline for hosts that may be offline
Command Execution
  • Use the -Wait parameter for automatic result polling
  • Always confirm commands to acknowledge completion
  • Batch commands return per-host results
  • Check for errors in command output before proceeding

Error Handling

Robust RTR Workflow
  • RTR Admin - Administrative commands with write access
  • RTR Scripts - Custom script management and execution