potential_cred_dumping_via_lsass_silentprocessexit_technique
Description
Detects changes to the Registry in which a monitor program gets registered to dump the memory of the lsass.exe process
Query · yara_l
events:
$registry.metadata.event_type = "REGISTRY_MODIFICATION"
//$registry.metadata.product_event_type = "13"
strings.contains(strings.to_lower($registry.target.registry.registry_key), "microsoft\\windows nt\\currentversion\\silentprocessexit\\lsass.exe")
$registry.principal.hostname = $hostname
match:
$hostname over 5m
outcome:
//example usage of specifying test user and hostname to adjust risk score
$risk_score = max(if($registry.principal.user.userid = "user" and $registry.principal.hostname = "hostname", 0, 15))
$principal_hostname = array_distinct($registry.principal.hostname)
$principal_process_pid = array_distinct($registry.principal.process.pid)
$principal_process_file_full_path = array_distinct($registry.principal.process.file.full_path)
$principal_process_product_specific_process_id = array_distinct($registry.principal.process.product_specific_process_id)
$principal_user_userid = array_distinct($registry.principal.user.userid)
$target_registry_key = array_distinct($registry.target.registry.registry_key)
$target_registry_value = array_distinct($registry.target.registry.registry_value_data)
condition:
$registry