Remote File Copy to a Hidden Share
Identifies a remote file copy attempt to a hidden network share. This may indicate lateral movement or data staging activity.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/11/04"
3integration = ["endpoint", "windows"]
4maturity = "production"
5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
6min_stack_version = "8.3.0"
7updated_date = "2023/06/22"
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies a remote file copy attempt to a hidden network share. This may indicate lateral movement or data staging
13activity.
14"""
15from = "now-9m"
16index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.*", "endgame-*"]
17language = "eql"
18license = "Elastic License v2"
19name = "Remote File Copy to a Hidden Share"
20note = """## Setup
21
22If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work.
23"""
24risk_score = 47
25rule_id = "fa01341d-6662-426b-9d0c-6d81e33c8a9d"
26severity = "medium"
27tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Lateral Movement", "Data Source: Elastic Endgame", "Data Source: Elastic Defend"]
28timestamp_override = "event.ingested"
29type = "eql"
30
31query = '''
32process where host.os.type == "windows" and event.type == "start" and
33 process.name : ("cmd.exe", "powershell.exe", "robocopy.exe", "xcopy.exe") and
34 process.args : ("copy*", "move*", "cp", "mv") and process.args : "*$*"
35'''
36
37
38[[rule.threat]]
39framework = "MITRE ATT&CK"
40[[rule.threat.technique]]
41id = "T1021"
42name = "Remote Services"
43reference = "https://attack.mitre.org/techniques/T1021/"
44[[rule.threat.technique.subtechnique]]
45id = "T1021.002"
46name = "SMB/Windows Admin Shares"
47reference = "https://attack.mitre.org/techniques/T1021/002/"
48
49
50
51[rule.threat.tactic]
52id = "TA0008"
53name = "Lateral Movement"
54reference = "https://attack.mitre.org/tactics/TA0008/"
Setup
If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define event.ingested
and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate event.ingested
to @timestamp for this rule to work.
Related rules
- Execution via TSClient Mountpoint
- Lateral Movement via Startup Folder
- Mounting Hidden or WebDav Remote Shares
- NullSessionPipe Registry Modification
- Potential Remote Desktop Shadowing Activity