Detection rule
Remote Access Tool - AnyDesk Execution
Overview
An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks. These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment. Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)
- Rule id
b52e84a3-029e-4529-b09b-71d19dd27e94- ATT&CK techniques
- T1219.002 Remote Access Tools: Remote Desktop Software
- Severity
- Medium
- Confidence
- Low
- Origin
- SigmaHQ (community)
- SigmaHQ status
test- Used in defense packs
- The Gentlemen, INC Ransom, Akira, safepay, Play
Validation
- ExperimentalSyntax checked only. Not yet tested on events.
- Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
- SIEM-validatedRun in a real SIEM, with a recorded result.
3 of 3 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.
Detection logic and queries
Queries are shown exactly as generated. Test them in your environment before you deploy them.
Sigma
Sigma (YAML) · b52e84a3-029e-4529-b09b-71d19dd27e94
title: Remote Access Tool - AnyDesk Execution
id: b52e84a3-029e-4529-b09b-71d19dd27e94
status: test
related:
- id: 065b00ca-5d5c-4557-ac95-64a6d0b64d86
type: similar
description: |
An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks.
These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment.
Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1219/T1219.md#atomic-test-2---anydesk-files-detected-test-on-windows
- https://thedfirreport.com/2025/02/24/confluence-exploit-leads-to-lockbit-ransomware/
author: frack113
date: 2022-02-11
modified: 2025-02-24
tags:
- attack.command-and-control
- attack.t1219.002
logsource:
category: process_creation
product: windows
detection:
selection:
- Image|endswith:
- '\AnyDesk.exe'
- '\AnyDeskMSI.exe'
- Description: AnyDesk
- Product: AnyDesk
- Company: AnyDesk Software GmbH
condition: selection
falsepositives:
- Legitimate use
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_remote_access_tools_anydesk/info.ymlQRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: Remote Access Tool - AnyDesk Execution- Rule type
- Event rule (Local)
- Log source types
- Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
Building blocks
BB:OffSet7:Remote Access Tool AnyDesk Execution:selection(match)Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.Process Path / Process Nameends with:\AnyDesk.exe,\AnyDeskMSI.exe- custom property needed:
Descriptionis equal to (case-insensitive):AnyDeskNo QRadar property mapped for "Description": create a custom event property (regex or JSON) on the DSM first. - custom property needed:
Productis equal to (case-insensitive):AnyDeskNo QRadar property mapped for "Product": create a custom event property (regex or JSON) on the DSM first. - custom property needed:
Companyis equal to (case-insensitive):AnyDesk Software GmbHNo QRadar property mapped for "Company": create a custom event property (regex or JSON) on the DSM first.
Main rule, option A (building blocks)
- when the event(s) were detected by one or more of these log source types:
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1 - when an event matches the condition built from these building blocks:
BB:OffSet7:Remote Access Tool AnyDesk Execution:selection
Main rule, option B (AQL filter test)
Not available: the AQL conversion failed for this rule.
Rule response
- Severity 5, credibility 6, relevance 7
- Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
- Respond no more than once per 30 minutes per Log Source (tune per environment)
Limitations
- AQL conversion failed (field 'Description' is not supported); only the building-block design is available.
- QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.
Splunk
Splunk SPLSearch
Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.
Image IN ("*\\AnyDesk.exe", "*\\AnyDeskMSI.exe") OR Description="AnyDesk" OR Product="AnyDesk" OR Company="AnyDesk Software GmbH"Splunk savedsearches.conf stanzaScheduled search template
Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.
[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now
[Remote Access Tool - AnyDesk Execution]
description = An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks.These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment.Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)
search = Image IN ("*\\AnyDesk.exe", "*\\AnyDeskMSI.exe") OR Description="AnyDesk" OR Product="AnyDesk" OR Company="AnyDesk Software GmbH"Microsoft Sentinel
Microsoft Sentinel KQL (ASIM)Hunting query
Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.
imProcessCreate
| where (TargetProcessName endswith "\\AnyDesk.exe" or TargetProcessName endswith "\\AnyDeskMSI.exe") or TargetProcessFileDescription =~ "AnyDesk" or TargetProcessFileProduct =~ "AnyDesk" or TargetProcessFileCompany =~ "AnyDesk Software GmbH"Defender XDR
Microsoft Defender XDR KQLHunting query
Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.
DeviceProcessEvents
| where (FolderPath endswith "\\AnyDesk.exe" or FolderPath endswith "\\AnyDeskMSI.exe") or ProcessVersionInfoFileDescription =~ "AnyDesk" or ProcessVersionInfoProductName =~ "AnyDesk" or ProcessVersionInfoCompanyName =~ "AnyDesk Software GmbH"Elastic
Elastic Lucene (ECS)Hunting query
Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.
(process.executable:(*\\AnyDesk.exe OR *\\AnyDeskMSI.exe)) OR process.pe.description:AnyDesk OR process.pe.product:AnyDesk OR process.pe.company:"AnyDesk Software GmbH"Elastic EQL (ECS)Hunting query
EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.
any where (process.executable like~ ("*\\AnyDesk.exe", "*\\AnyDeskMSI.exe")) or process.pe.description:"AnyDesk" or process.pe.product:"AnyDesk" or process.pe.company:"AnyDesk Software GmbH"Elastic ES|QL (ECS)Hunting query
ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.
from * metadata _id, _index, _version | where ends_with(process.executable, "\\AnyDesk.exe") or ends_with(process.executable, "\\AnyDeskMSI.exe") or process.pe.description=="AnyDesk" or process.pe.product=="AnyDesk" or process.pe.company=="AnyDesk Software GmbH"No working conversion: IBM QRadar AQL (hunting query) (QRadar AQL backend has no property mapping for field "Description")
Required telemetry
- Log source
product: windows · category: process_creation- Fields used
CompanyDescriptionImageProduct
False positives
- Legitimate use
Investigation and response
No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.
References
Author and attribution
- Author
- frack113
- Source
- SigmaHQ ·
rules/windows/process_creation/proc_creation_win_remote_access_tools_anydesk.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2