2ad8b32ce2
* Add Investigation Guides for Windows Rules - First half
* + 1/2
* Update impact_volume_shadow_copy_deletion_or_resized_via_vssadmin.toml
* Update credential_access_mod_wdigest_security_provider.toml
* Apply suggestions from code review
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
* Update defense_evasion_amsienable_key_mod.toml
* Update defense_evasion_amsienable_key_mod.toml
* Apply suggestions from code review
Co-authored-by: benironside <91905639+benironside@users.noreply.github.com>
* Update command_and_control_certutil_network_connection.toml
* Apply suggestions from code review
Co-authored-by: nastasha-solomon <79124755+nastasha-solomon@users.noreply.github.com>
Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
Co-authored-by: benironside <91905639+benironside@users.noreply.github.com>
* Update collection_winrar_encryption.toml
* Apply suggestions from code review
Co-authored-by: nastasha-solomon <79124755+nastasha-solomon@users.noreply.github.com>
Co-authored-by: Colson Wilhoit <48036388+DefSecSentinel@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
Co-authored-by: benironside <91905639+benironside@users.noreply.github.com>
Co-authored-by: nastasha-solomon <79124755+nastasha-solomon@users.noreply.github.com>
Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
(cherry picked from commit a3d7427d29)
92 lines
3.6 KiB
TOML
92 lines
3.6 KiB
TOML
[metadata]
|
|
creation_date = "2020/12/04"
|
|
maturity = "production"
|
|
updated_date = "2022/03/07"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies use of WinRar or 7z to create an encrypted files. Adversaries will often compress and encrypt data in
|
|
preparation for exfiltration.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Encrypting Files with WinRar or 7z"
|
|
note = """## Triage and analysis
|
|
|
|
### Investigating Encrypting Files with WinRar or 7z
|
|
|
|
Attackers may compress and/or encrypt data collected before exfiltration. Compressing the data can help obfuscate the
|
|
collected data and minimize the amount of data sent over the network. Encryption can be used to hide information that is
|
|
being exfiltrated from detection or make exfiltration less apparent upon inspection by a defender.
|
|
|
|
These steps are usually done in preparation for exfiltration, meaning the attack may be in its final stages.
|
|
|
|
#### Possible investigation steps
|
|
|
|
- Investigate the script execution chain (parent process tree).
|
|
- Retrieve the encrypted file.
|
|
- Investigate other alerts related to the user/host in the last 48 hours.
|
|
- Check if the password used in the encryption was included in the command line.
|
|
- Decrypt the `.rar`/`.zip` and check if the information is sensitive.
|
|
- If the password is not available, and the format is `.zip` or the option used in WinRAR is not the `-hp`, list the
|
|
file names included in the encrypted file.
|
|
- Investigate if the file was transferred to an attacker-controlled server.
|
|
|
|
### False positive analysis
|
|
|
|
- Backup software can use these utilities. Check the `process.parent.executable` and
|
|
`process.parent.command_line` fields to determine what triggered the encryption.
|
|
|
|
### Response and remediation
|
|
|
|
- Initiate the incident response process based on the outcome of the triage.
|
|
- If personally identifiable information (PII) or other classified data is involved, investigations into this should be prioritized.
|
|
- Quarantine the involved host for forensic investigation, as well as eradication and recovery activities.
|
|
- Reset the passwords of the involved accounts.
|
|
- Safeguard critical assets to prevent further harm or theft of data.
|
|
"""
|
|
references = ["https://www.welivesecurity.com/2020/12/02/turla-crutch-keeping-back-door-open/"]
|
|
risk_score = 47
|
|
rule_id = "45d273fb-1dca-457d-9855-bcb302180c21"
|
|
severity = "medium"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Collection"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
process where event.type in ("start", "process_started") and
|
|
((process.name:"rar.exe" or process.code_signature.subject_name == "win.rar GmbH" or
|
|
process.pe.original_file_name == "Command line RAR") and
|
|
process.args == "a" and process.args : ("-hp*", "-p*", "-dw", "-tb", "-ta", "/hp*", "/p*", "/dw", "/tb", "/ta"))
|
|
|
|
or
|
|
(process.pe.original_file_name in ("7z.exe", "7za.exe") and
|
|
process.args == "a" and process.args : ("-p*", "-sdel"))
|
|
|
|
/* uncomment if noisy for backup software related FPs */
|
|
/* not process.parent.executable : ("C:\\Program Files\\*.exe", "C:\\Program Files (x86)\\*.exe") */
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1560"
|
|
name = "Archive Collected Data"
|
|
reference = "https://attack.mitre.org/techniques/T1560/"
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1560.001"
|
|
name = "Archive via Utility"
|
|
reference = "https://attack.mitre.org/techniques/T1560/001/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0009"
|
|
name = "Collection"
|
|
reference = "https://attack.mitre.org/tactics/TA0009/"
|
|
|