Detection rules › YARA-L
YARA-L rules: 1x
| Rule | Severity |
|---|---|
| CreateDump Process Dump | high |
| GCP Service API Key Retrieved | high |
| HackTool - Dumpert Process Dumper Default File | critical |
CreateDump Process Dump
#Detects uses of the createdump.exe LOLOBIN utility to dump process memory
Known False Positives
- Command lines that use the same flags
MITRE ATT&CK Coverage
| Tactic | Techniques |
|---|---|
| Credential Access |
References
Telemetry Coverage
| Provider | Record / event type |
|---|---|
| Sysmon | Event ID 1: Process creation |
| Security-Auditing | Event ID 4688: A new process has been created. |
Rule Body
// Copyright 2025 Google LLC. Licensed under Apache-2.0.
rule create_dump_process_dump {
meta:
author = "Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)"
description = "Detects uses of the createdump.exe LOLOBIN utility to dump process memory"
reference = "https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_createdump_lolbin_execution.yml"
license = "https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md"
rule_name = "CreateDump Process Dump"
sigma_uuid = "515c8be5-e5df-4c5e-8f6d-a4a2f05e4b48"
sigma_status = "test"
rule_id = "mr_20772389-ecc9-4598-9241-843172e1dd43"
tactic = "TA0006"
technique = "T1003.001"
type = "Detection"
data_source = "Sysmon"
platform = "Windows"
severity = "High"
priority = "High"
false_positives = "Command lines that use the same flags"
events:
$process.metadata.event_type = "PROCESS_LAUNCH"
(
re.regex($process.target.process.file.full_path, `\\createdump\.exe$`) nocase or
$process.src.process.file.full_path = "createdump.exe" nocase
)
(
strings.contains(strings.to_lower($process.target.process.command_line), " -u ") or
strings.contains(strings.to_lower($process.target.process.command_line), " --full ") or
strings.contains(strings.to_lower($process.target.process.command_line), " -f ") or
strings.contains(strings.to_lower($process.target.process.command_line), " --name ") or
strings.contains(strings.to_lower($process.target.process.command_line), ".dmp ")
)
$process.principal.hostname = $hostname
match:
$hostname over 5m
outcome:
//example usage of specifying test user and hostname to adjust risk score
$risk_score = max(if($process.principal.user.userid = "user" and $process.principal.hostname = "hostname", 0, 15))
$principal_process_pid = array_distinct($process.principal.process.pid)
$principal_process_command_line = array_distinct($process.principal.process.command_line)
$principal_process_file_sha256 = array_distinct($process.principal.process.file.sha256)
$principal_process_file_full_path = array_distinct($process.principal.process.file.full_path)
$principal_process_product_specfic_process_id = array_distinct($process.principal.process.product_specific_process_id)
$principal_process_parent_process_product_specfic_process_id = array_distinct($process.principal.process.parent_process.product_specific_process_id)
$target_process_pid = array_distinct($process.target.process.pid)
$target_process_command_line = array_distinct($process.target.process.command_line)
$target_process_file_sha256 = array_distinct($process.target.process.file.sha256)
$target_process_file_full_path = array_distinct($process.target.process.file.full_path)
$target_process_product_specfic_process_id = array_distinct($process.target.process.product_specific_process_id)
$principal_user_userid = array_distinct($process.principal.user.userid)
$log_type = array_distinct(strings.concat($process.metadata.log_type,"/",$process.metadata.product_event_type))
condition:
$process
}
YARA-L Rule Structure
Condition
Fires when at least one $process event in the 5m window.
Events
$process
target.process.file.full_path matches "\\createdump\.exe$"src.process.file.full_path = "createdump.exe"target.process.command_line contains " -u "target.process.command_line contains " --full "target.process.command_line contains " -f "target.process.command_line contains " --name "target.process.command_line contains ".dmp "
Match and Correlation
Outcome
Outcome variables add context to a detection. When the rule generates an alert, $risk_score is displayed with it.
| Field | Expression |
|---|---|
risk_score | max(if($process.principal.user.userid = "user" and $process.principal.hostname = "hostname", 0, 15)) |
principal_process_pid | array_distinct($process.principal.process.pid) |
principal_process_command_line | array_distinct($process.principal.process.command_line) |
principal_process_file_sha256 | array_distinct($process.principal.process.file.sha256) |
principal_process_file_full_path | array_distinct($process.principal.process.file.full_path) |
principal_process_product_specfic_process_id | array_distinct($process.principal.process.product_specific_process_id) |
principal_process_parent_process_product_specfic_process_id | array_distinct($process.principal.process.parent_process.product_specific_process_id) |
target_process_pid | array_distinct($process.target.process.pid) |
target_process_command_line | array_distinct($process.target.process.command_line) |
target_process_file_sha256 | array_distinct($process.target.process.file.sha256) |
target_process_file_full_path | array_distinct($process.target.process.file.full_path) |
target_process_product_specfic_process_id | array_distinct($process.target.process.product_specific_process_id) |
principal_user_userid | array_distinct($process.principal.user.userid) |
log_type | array_distinct(strings.concat($process.metadata.log_type,"/",$process.metadata.product_event_type)) |
GCP Service API Key Retrieved
#Detects a successful attempt to retrieve the service API Keys.
MITRE ATT&CK Coverage
| Tactic | Techniques |
|---|---|
| Credential Access |
Telemetry Coverage
| Platform | Record / event type |
|---|---|
| GCP | google.api.apikeys.ApiKeys.GetKeyString: Get key string |
Rule Body
// Copyright 2024 Google LLC. Licensed under Apache-2.0.
rule gcp_service_api_key_retrieved {
meta:
author = "Google Cloud Security"
description = "Detects a successful attempt to retrieve the service API Keys."
rule_id = "mr_ee63778e-20ac-482c-84ef-abf5ceacd36e"
rule_name = "GCP Service API Key Retrieved"
mitre_attack_tactic = "Credential Access"
mitre_attack_technique = "Credentials from Password Stores"
mitre_attack_url = "https://attack.mitre.org/techniques/T1555/"
mitre_attack_version = "v14.1"
type = "Alert"
data_source = "GCP Cloud Audit"
platform = "GCP"
severity = "High"
priority = "High"
events:
$gcp.metadata.log_type = "GCP_CLOUDAUDIT"
$gcp.metadata.product_event_type = "google.api.apikeys.v2.ApiKeys.GetKeyString"
$gcp.target.application = "apikeys.googleapis.com"
$gcp.security_result.action = "ALLOW"
$gcp.principal.user.userid = $userid
match:
$userid over 1h
outcome:
$risk_score = max(75)
$mitre_attack_tactic = "Credential Access"
$mitre_attack_technique = "Credentials from Password Stores"
$mitre_attack_technique_id = "T1555"
$event_count = count_distinct($gcp.metadata.id)
$network_http_user_agent = array_distinct($gcp.network.http.user_agent)
$principal_ip = array_distinct($gcp.principal.ip)
$principal_ip_country = array_distinct($gcp.principal.ip_geo_artifact.location.country_or_region)
$principal_ip_state = array_distinct($gcp.principal.ip_geo_artifact.location.state)
$principal_user_id = array_distinct($gcp.principal.user.userid)
$principal_user_display_name = array_distinct($gcp.principal.user.user_display_name)
$target_resource_name = array_distinct($gcp.target.resource.name)
$dc_target_resource_name = count_distinct($gcp.target.resource.name)
condition:
$gcp
}
YARA-L Rule Structure
Condition
Fires when at least one $gcp event in the 1h window.
Events
$gcp
metadata.log_type = "GCP_CLOUDAUDIT"metadata.product_event_type = "google.api.apikeys.v2.ApiKeys.GetKeyString"target.application = "apikeys.googleapis.com"security_result.action = "ALLOW"
Match and Correlation
Outcome
Outcome variables add context to a detection. When the rule generates an alert, $risk_score is displayed with it.
| Field | Expression |
|---|---|
risk_score | max(75) |
event_count | count_distinct($gcp.metadata.id) |
network_http_user_agent | array_distinct($gcp.network.http.user_agent) |
principal_ip | array_distinct($gcp.principal.ip) |
principal_ip_country | array_distinct($gcp.principal.ip_geo_artifact.location.country_or_region) |
principal_ip_state | array_distinct($gcp.principal.ip_geo_artifact.location.state) |
principal_user_id | array_distinct($gcp.principal.user.userid) |
principal_user_display_name | array_distinct($gcp.principal.user.user_display_name) |
target_resource_name | array_distinct($gcp.target.resource.name) |
dc_target_resource_name | count_distinct($gcp.target.resource.name) |
HackTool - Dumpert Process Dumper Default File
#Detects the creation of the default dump file used by Outflank Dumpert tool. A process dumper, which dumps the lsass process memory
Known False Positives
- Very unlikely
MITRE ATT&CK Coverage
| Tactic | Techniques |
|---|---|
| Credential Access |
References
Telemetry Coverage
| Provider | Record / event type |
|---|---|
| Sysmon | Event ID 11: FileCreate |
Rule Body
// Copyright 2025 Google LLC. Licensed under Apache-2.0.
rule hacktool_dumpert_process_dumper_default_file {
meta:
author = "Florian Roth (Nextron Systems)"
description = "Detects the creation of the default dump file used by Outflank Dumpert tool. A process dumper, which dumps the lsass process memory"
reference = "https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_hktl_dumpert.yml"
license = "https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md"
rule_name = "HackTool - Dumpert Process Dumper Default File"
sigma_uuid = "93d94efc-d7ad-4161-ad7d-1638c4f908d8"
sigma_status = "test"
rule_id = "mr_13ac04a7-8853-42c9-a243-9da5dc05cb66"
tactic = "TA0006"
technique = "T1003.001"
data_source = "Sysmon"
platform = "Windows"
severity = "Critical"
priority = "Critical"
false_positives = "Very unlikely"
events:
$file.metadata.event_type = "FILE_CREATION"
re.regex($file.target.file.full_path, `dumpert.dmp$`) nocase
$file.principal.hostname = $hostname
match:
$hostname over 5m
outcome:
//example usage of specifying test user and hostname to adjust risk score
$risk_score = max(if($file.principal.user.userid = "user" and $file.principal.hostname = "hostname", 0, 15))
$principal_hostname = array_distinct($file.principal.hostname)
$principal_process_pid = array_distinct($file.principal.process.pid)
$principal_process_command_line = array_distinct($file.principal.process.command_line)
$principal_process_file_sha256 = array_distinct($file.principal.process.file.sha256)
$principal_process_file_full_path = array_distinct($file.principal.process.file.full_path)
$principal_process_product_specific_process_id = array_distinct($file.principal.process.product_specific_process_id)
$principal_process_parent_process_product_specific_process_id = array_distinct($file.principal.process.parent_process.product_specific_process_id)
$principal_user_userid = array_distinct($file.principal.user.userid)
$target_file_sha256 = array_distinct($file.target.file.sha256)
$target_file_full_path = array_distinct($file.target.file.full_path)
condition:
$file
}
YARA-L Rule Structure
Condition
Fires when at least one $file event in the 5m window.
Events
$file
target.file.full_path matches "dumpert.dmp$"
Match and Correlation
Outcome
Outcome variables add context to a detection. When the rule generates an alert, $risk_score is displayed with it.
| Field | Expression |
|---|---|
risk_score | max(if($file.principal.user.userid = "user" and $file.principal.hostname = "hostname", 0, 15)) |
principal_hostname | array_distinct($file.principal.hostname) |
principal_process_pid | array_distinct($file.principal.process.pid) |
principal_process_command_line | array_distinct($file.principal.process.command_line) |
principal_process_file_sha256 | array_distinct($file.principal.process.file.sha256) |
principal_process_file_full_path | array_distinct($file.principal.process.file.full_path) |
principal_process_product_specific_process_id | array_distinct($file.principal.process.product_specific_process_id) |
principal_process_parent_process_product_specific_process_id | array_distinct($file.principal.process.parent_process.product_specific_process_id) |
principal_user_userid | array_distinct($file.principal.user.userid) |
target_file_sha256 | array_distinct($file.target.file.sha256) |
target_file_full_path | array_distinct($file.target.file.full_path) |