Detection rules › Sigma
Remote Access Tool - Action1 Arbitrary Code Execution and Remote Sessions
Detects the execution of Action1 in order to execute arbitrary code or establish a remote session. 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. 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.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Command & Control | T1219.002 Remote Access Tools: Remote Desktop Software |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
Rule body yaml
title: Remote Access Tool - Action1 Arbitrary Code Execution and Remote Sessions
id: aa3168fb-d594-4f93-a92d-7a9ba675b766
status: test
description: |
Detects the execution of Action1 in order to execute arbitrary code or establish a remote session.
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.
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.
references:
- https://twitter.com/Kostastsale/status/1646256901506605063?s=20
- https://www.action1.com/documentation/
author: '@kostastsale'
date: 2023-04-13
tags:
- attack.command-and-control
- attack.t1219.002
- detection.threat-hunting
logsource:
category: process_creation
product: windows
detection:
selection_app_deployment_exec:
ParentImage|endswith: '\action1_agent.exe'
Image|contains: '\Windows\Action1\package_downloads\'
selection_command_exec:
ParentImage|endswith:
- '\cmd.exe'
- '\powershell.exe'
ParentCommandLine|contains:
- '\Action1\scripts\Run_Command_'
- '\Action1\scripts\Run_PowerShell_'
selection_remote_session_init:
Image|endswith: '\agent1_remote.exe'
condition: 1 of selection_*
falsepositives:
- If Action1 is among the approved software in your environment, you might find that this is a noisy query. See description for ideas on how to alter this query and start looking for suspicious activities.
level: medium
Stages and Predicates
Stage 0: condition
1 of selection_*Stage 1: selection_app_deployment_exec
selection_app_deployment_exec:
ParentImage|endswith: '\action1_agent.exe'
Image|contains: '\Windows\Action1\package_downloads\'
Stage 2: selection_command_exec
selection_command_exec:
ParentImage|endswith:
- '\cmd.exe'
- '\powershell.exe'
ParentCommandLine|contains:
- '\Action1\scripts\Run_Command_'
- '\Action1\scripts\Run_PowerShell_'
Stage 3: selection_remote_session_init
selection_remote_session_init:
Image|endswith: '\agent1_remote.exe'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
Image | ends_with |
|
Image | match |
|
ParentCommandLine | match |
|
ParentImage | ends_with |
|