Search This Blog

Nov 27, 2026

[CrowdStrike] Contain workstations when user gets disabled

 Often time we want to contain devices on which a user still have valid sessions while this user is terminated. There are a few things to note:

  1. A user could have live sessions on may devices, not all devices should be contained. For example, we most likely should not contain a server
  2. It'd be ideal if CrowdStrike could revoke whatever session the user has (i.e. targeting the user), instead of us containing devices (i.e. targeting devices) as this could negatively impact other users/proccesses/applications
  3. CrowdStrike provide actions to revoke Entra tokens, but no action to revoke kerberos tokens
  4. CrowdStrike doesn't have a trigger for user disable event, we have to leverage NG-SIEM detection

For the workflow to work in above constrains, a workflow can be created in below framework:

  1. Go to Next-Gen SIEM / Rules, create a new rule called 'AD account disabled'
  2. Use below query for the rule
    #repo="base_sensor" #event_simpleName="ActiveDirectoryAccountDisabled"
  3. Create new workflow
  4. Select "Detection > NG-SIEM Detection" as trigger
  5. Add a condition 
    Name is equal to 'AD account disabled'
  6. Then add a parallel loop to go through all disabled users
  7. With the loop add another loop to go through all hosts on which the user has session
  8. For each host if it's workstation, perform containment. The condition to check if a device is workstation is via 'get device details' / "product type description", aka
    data['GetDeviceDetails.ProductTypeDesc']

Nov 26, 2026

How to run an RTR action in workflow that is triggered by an Identity Account Event

 In CrowdStrike Falcon, one can create workflow with triggers from "Identity Account Event" - this is nice and easy until you also need to call an RTR action in the same workflow. CrowdStrike mandates a prerequisite condition 'Platform equals Windows" in front of the RTR action, while Identity Account Event is associated with users only - it doesn't expose any device therefore nowhere you can set a condtion as 'Platform equals Windows.

A workaround is instead of using Identity Account Event as trigger, one can do below:

  1. Generate detections using Identity Protection policy
    1. go to Identity Protection \ Enforcement \ Policy \ Conditional Access
    2. click on 'add rule', follow the onscreen instructions
    3. Note the rule name
  2. Using Identity Detection as trigger instead in the workflow
  3. Add a condition in the workflow to match the rule name that you just created in step 1
    policy rule name == 'xxx'
  4. Add the action "get device details"
  5. After device details, add the condition 'platform == Windows'
  6. Add other components as needed

Instead of using Identity Protection rules (which is rumored to  be retired), we can also use NG-SIEM detections. 

Nov 23, 2026

Create RTR-based custom action in CrowdStrike Falcon Fusion Workflow

 

 

Data availability

 

Three categories of data from upstream actions are available to a custom action

 

1.      Data from all previous events and actions. E.g. for above screenshot, at first condition “if account event type is compromised pwd”, data exposed by “Identity Account Event” is available for composing the condition. Under this category, below attributes are available for downstream actions

a.      Account UPN

b.     Account Domain

c.      Account email

d.     … etc

2.      Similarly, at “Device query” step, data exposed by all previous steps, including output of both trigger and “Get Identity Context”, are available for “Devie Query” to use – this can be seen in the right side of the screenshot under “workflow data” where all first level nodes are the data source

3.      Trigger data

a.      Trigger category

b.     cid

c.      Trigger ID

d.     …etc

4.      Workflow data

a.      Workflow definition data

                                                                          i.      Workflow definition ID

                                                                        ii.      Workflow name

                                                                      iii.      Workflow description

b.     Workflow execution data

                                                                          i.      Execution error

                                                                        ii.      Execution id

 

Data available to an action in a workflow is accumulative, meaning the action can read all outputs from all previous steps

Step-by-step:

1.      Write the script as below

# Param block only works for a typical RTR.
# It doesn't work for RTR that will be used in workflow
Param(
    [string] $EntitySID,
    [string] $AccountDomain
)

# Instead, we should parse args[0] as a JSON blob

$inputJSON = $args[0] | ConvertFrom-Json
$EntitySID = $inputJSON.EntitySID
$domainName = $inputJSON.domainName

<#
    Your workload here
    Do something
#>

#
# return a JSON object for downstream workflow items
#
$result | ConvertTo-Json -Compress | Write-Output

           Compose input and output JSON files. For above source code, JSON file as below

a.      Input.JSON

{

    "EntitySID": "S-1-5-21-1234-5678-90123-555",

    "AccountDomain":"contoso.com"

}

 

b.     Output.JSON

{

    "Output_param1": "",

    "Output_param2":""

}

 

 

3.      Let CS convert above JSON file to input output schemas

4.      Now move to workflow editor, select the RTR-based custom action, it should list the input parameters. In our example above, it should list EntitySID and AccountDomain that allow you to pick available (exposed by previous steps) data and populate

5.      In actions after our custom action, “output_Param1” and “output_param2” should become available

 

 

Test:

1.      You can do either whole workflow test or a unit test against a single action. You will have to go into Edit mode to perform tests. 

  • To perform workflow test, use the "Test" button on top right corner of edit window;  
  • To perform unit test, select the action, click on "Test" on left hand panel
Mock data for test:

One can set mock data to test. Mock data can be from either previous runs - they are listed for you to select from as your mock data source - or from custom JSON  

  1. Enter editing mode
  2. highlight the trigger (or any subsequent actions)
  3. click "Execution settings", it tells you what the current source is


  4. click on the pen icon, it lets you switch between different sources


T

References

Falcon Fusion With Real Time Response | Tech Hub