Arbitrary code execution and remote sessions via Action1 RMM

Action1 is a powerful Remote Monitoring and Management tool that enables users to execute commands, scripts, and binaries. Through the web interface of action1, the administrator must create a new policy or an app to establish remote execution and then points that the agent is installed. Hunting Opportunity 1- Weed Out The Noise --- When threat actors execute a script, a command, or a binary through these new policies and apps, the names of these become visible in the command line during the execution process. Below is an example of the command line that contains the deployment of a binary through a policy with name "test_app_1": ParentCommandLine: "C:\WINDOWS\Action1\action1_agent.exe schedule:Deploy_App__test_app_1_1681327673425 runaction:0"

After establishing a baseline, we can split the command to extract the policy name and group all the policy names and inspect the results with a list of frequency occurrences. An example query of this in Splunk could be: Index="" source="" Image="*\action1_agent.exe" ParentCommandLine="runaction:0" | rex field=ParentCommandLine "(?<=Deploy_App__)(?.(?=(_1)))"

Hunting Opportunity 2 - Remote Sessions On Out Of Office Hours ---- If you have admins within your environment using remote sessions to administer endpoints, you can create a threat-hunting query and modify the time of the initiated sessions looking for abnormal activity.

Sigma rule (View on GitHub)

 1title: Arbitrary code execution and remote sessions via Action1 RMM
 2hypothesis: Threat actors using Action1 to execute arbitrary code or establish a remote session
 3description: >
 4    Action1 is a powerful Remote Monitoring and Management tool that enables users to execute commands, scripts, and binaries. Through the web interface of action1,  
 5    the administrator must create a new policy or an app to establish remote execution and then points that the agent is installed. 
 6
 7    Hunting Opportunity 1- Weed Out The Noise
 8    ---
 9    When threat actors execute a script, a command, or a binary through these new policies and apps, the names of these become visible in the command line during the execution process. 
10    Below is an example of the command line that contains the deployment of a binary through  a policy with name "test_app_1":
11
12    ParentCommandLine: "C:\WINDOWS\Action1\action1_agent.exe schedule:Deploy_App__test_app_1_1681327673425 runaction:0"
13
14    
15    After establishing a baseline, we can split the command to extract the policy name and group all the policy names and inspect the results with a list of frequency occurrences. 
16    An example query of this in Splunk could be: 
17
18    Index="<myindex>" source="<mysource>" Image="*\action1_agent.exe" ParentCommandLine="*runaction:0" | rex field=ParentCommandLine "(?<=Deploy_App__)(?<AppName>.*(?=(\_1)))"
19
20    
21    Hunting Opportunity 2 - Remote Sessions On Out Of Office Hours
22    ----
23    If you have admins within your environment using remote sessions to administer
24    endpoints, you can create a threat-hunting query and modify the time of the
25    initiated sessions looking for abnormal activity.     
26status: experimental
27date: 2023/04/13
28author: '@kostastsale'
29references:
30  - https://twitter.com/Kostastsale/status/1646256901506605063?s=20
31  - https://www.action1.com/documentation/
32logsource:
33    category: process_creation
34    product: windows
35detection:
36    AppDeploymentExec:
37      Image|contains:
38        - '\Windows\Action1\package_downloads\'
39      ParentImage|endswith:
40        - '\action1_agent.exe'
41    CommandExec:
42      ParentImage|endswith:
43        - '\cmd.exe'
44        - '\powershell.exe'
45      ParentCommandLine|contains:
46        - '\Action1\scripts\Run_Command_'
47        - '\Action1\scripts\Run_PowerShell_'
48    RemoteSessionInit:
49      Image|endswith:
50        - '\agent1_remote.exe'
51    condition: AppDeploymentExec or CommandExec or RemoteSessionInit
52falsepositives:
53    - "If Action1 is among the approved software in your environment, you might find that this is a noisy query. 
54      See description for ideas on how to alter this query and start looking for suspicious activities."
55level: medium
56tags:
57    - attack.CommandAndControl
58    - attack.T1219

References

to-top