{"id":"c74d7efc-8826-45d9-b8bb-f04fac9e4eff","title":"Run Once Task Configuration in Registry","description":"Rule to detect the configuration of Run Once registry key. Configured payload can be run by runonce.exe /AlternateShellStartup","author":"Avneet Singh @v3t0_, oscd.community","status":"test","level":"medium","date":"2020-11-15","modified":"2024-03-25","tags":["attack.persistence","attack.defense-impairment","attack.t1112"],"technique_ids":["T1112"],"logsource":{"product":"windows","category":"registry_event"},"falsepositives":["Legitimate modification of the registry key by legitimate program"],"references":["https://twitter.com/pabraeken/status/990717080805789697","https://lolbas-project.github.io/lolbas/Binaries/Runonce/"],"source_path":"rules/windows/registry/registry_event/registry_event_runonce_persistence.yml","source_sha256":"5348034c2383b4c089ed504254b4eb72c878dc844263d0a79ffc4b3f7133c9fc","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_event/registry_event_runonce_persistence.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Run Once Task Configuration in Registry\nid: c74d7efc-8826-45d9-b8bb-f04fac9e4eff\nstatus: test\ndescription: Rule to detect the configuration of Run Once registry key. Configured payload can be run by runonce.exe /AlternateShellStartup\nreferences:\n    - https://twitter.com/pabraeken/status/990717080805789697\n    - https://lolbas-project.github.io/lolbas/Binaries/Runonce/\nauthor: 'Avneet Singh @v3t0_, oscd.community'\ndate: 2020-11-15\nmodified: 2024-03-25\ntags:\n    - attack.persistence\n    - attack.defense-impairment\n    - attack.t1112\nlogsource:\n    product: windows\n    category: registry_event\ndetection:\n    selection:\n        TargetObject|contains: '\\Microsoft\\Active Setup\\Installed Components'\n        TargetObject|endswith: '\\StubPath'\n    filter_optional_chrome:\n        Details|contains|all:\n            - 'C:\\Program Files\\Google\\Chrome\\Application\\'\n            - '\\Installer\\chrmstp.exe\" --configure-user-settings --verbose-logging --system-level' # In some cases the Details will contain an additional flag called \"--channel=stable\" at the end\n    filter_optional_edge:\n        Details|contains:\n            - 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\'\n            - 'C:\\Program Files\\Microsoft\\Edge\\Application\\'\n        Details|endswith: '\\Installer\\setup.exe\" --configure-user-settings --verbose-logging --system-level --msedge --channel=stable'\n    condition: selection and not 1 of filter_optional_*\nfalsepositives:\n    - Legitimate modification of the registry key by legitimate program\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1112","id":"T1112","name":"Modify Registry","page":"techniques/enterprise/T1112/"}],"data_path":"data/detection-rules/c74d7efc-8826-45d9-b8bb-f04fac9e4eff.json","kind":"sigma"}
