Detect Remote Access Software Usage DNS
Description
The following analytic detects DNS queries to domains associated with known remote access software such as AnyDesk, GoToMyPC, LogMeIn, and TeamViewer.
Query · spl
| tstats `security_content_summariesonly`
count min(_time) as firstTime
max(_time) as lastTime
FROM datamodel=Network_Resolution WHERE
[
| inputlookup remote_access_software
| search domain!=""
| rename domain as DNS.query
| table DNS.query
]
BY DNS.answer DNS.answer_count DNS.query
DNS.query_count DNS.reply_code_id DNS.src
DNS.vendor_product
| `drop_dm_object_name("DNS")`
| lookup local=t remote_access_software domain AS query OUTPUT app as signature, category, reference, description
| eval dest = query
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `remote_access_software_usage_exceptions`
| `detect_remote_access_software_usage_dns_filter`
Implementation guide
To implement this search, you must ingest logs that contain the DNS query and the source of the query.
These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the DNS logs.
The logs must also be mapped to the Network_Resolution data model.
Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
The "remote_access_software_usage_exceptions" macro leverages both an Assets and Identities lookup, as well as a KVStore collection called "remote_software_exceptions" that lets you track and maintain device-based exceptions for this set of detections.
Known false positives
- It is possible that legitimate remote access software is used within the environment. Ensure that the lookup is reviewed and updated with any additional remote access software that is used within the environment. Known false positives can be added to the remote_access_software_usage_exception.csv lookup to globally suppress these situations across all remote access content
Analyst notes
Known false positives: It is possible that legitimate remote access software is used within the environment. Ensure that the lookup is reviewed and updated with any additional remote access software that is used within the environment. Known false positives can be added to the remote_access_software_usage_exception.csv lookup to globally suppress these situations across all remote access content