diff --git a/rules/windows/persistence_suspicious_service_created_registry.toml b/rules/windows/persistence_suspicious_service_created_registry.toml new file mode 100644 index 000000000..7935c7563 --- /dev/null +++ b/rules/windows/persistence_suspicious_service_created_registry.toml @@ -0,0 +1,40 @@ +[metadata] +creation_date = "2020/11/23" +maturity = "production" +updated_date = "2020/11/23" + +[rule] +author = ["Elastic"] +description = """ +Identifies the creation of a suspicious ImagePath value. This could be an indication of an adversary attempting to +stealthily persist or escalate privileges through abnormal service creation. +""" +index = ["winlogbeat-*", "logs-endpoint.events.*"] +language = "eql" +license = "Elastic License" +name = "Suspicious ImagePath Service Creation" +risk_score = 73 +rule_id = "36a8e048-d888-4f61-a8b9-0f9e2e40f317" +severity = "high" +tags = ["Elastic", "Host", "Windows", "Threat Detection", "Persistence"] +type = "eql" + +query = ''' +registry where registry.path : "HKLM\\SYSTEM\\ControlSet*\\Services\\*\\ImagePath" and + /* add suspicious registry ImagePath values here */ + registry.data.strings : ("%COMSPEC%*", "*\\.\\pipe\\*") +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1050" +name = "New Service" +reference = "https://attack.mitre.org/techniques/T1050/" + + +[rule.threat.tactic] +id = "TA0003" +name = "Persistence" +reference = "https://attack.mitre.org/tactics/TA0003/"