{"id":"38879043-7e1e-47a9-8d46-6bec88e201df","title":"Potential Persistence Attempt Via Existing Service Tampering","description":"Detects the modification of an existing service in order to execute an arbitrary payload when the service is started or killed as a potential method for persistence.","author":"Sreeman","status":"test","level":"medium","date":"2020-09-29","modified":"2023-02-04","tags":["attack.privilege-escalation","attack.persistence","attack.execution","attack.stealth","attack.t1543.003","attack.t1574.011"],"technique_ids":["T1543.003","T1574.011"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://pentestlab.blog/2020/01/22/persistence-modify-existing-service/"],"source_path":"rules/windows/process_creation/proc_creation_win_sc_service_tamper_for_persistence.yml","source_sha256":"5f632ffaffab44dd263c9958930fd9542933ebe422855a5053b98c83853a2623","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_sc_service_tamper_for_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: Potential Persistence Attempt Via Existing Service Tampering\nid: 38879043-7e1e-47a9-8d46-6bec88e201df\nstatus: test\ndescription: Detects the modification of an existing service in order to execute an arbitrary payload when the service is started or killed as a potential method for persistence.\nreferences:\n    - https://pentestlab.blog/2020/01/22/persistence-modify-existing-service/\nauthor: Sreeman\ndate: 2020-09-29\nmodified: 2023-02-04\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.execution\n    - attack.stealth\n    - attack.t1543.003\n    - attack.t1574.011\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_sc:\n        - CommandLine|contains|all:\n              - 'sc '\n              - 'config '\n              - 'binpath='\n        - CommandLine|contains|all:\n              - 'sc '\n              - 'failure'\n              - 'command='\n    selection_reg_img:\n        - CommandLine|contains|all:\n              - 'reg '\n              - 'add '\n              - 'FailureCommand'\n        - CommandLine|contains|all:\n              - 'reg '\n              - 'add '\n              - 'ImagePath'\n    selection_reg_ext:\n        CommandLine|contains:\n            - '.sh'\n            - '.exe'\n            - '.dll'\n            - '.bin$'\n            - '.bat'\n            - '.cmd'\n            - '.js'\n            - '.msh$'\n            - '.reg$'\n            - '.scr'\n            - '.ps'\n            - '.vb'\n            - '.jar'\n            - '.pl'\n    condition: selection_sc or all of selection_reg_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1543.003","id":"T1543.003","name":"Windows Service","page":"techniques/enterprise/T1543.003/"},{"key":"enterprise/T1574.011","id":"T1574.011","name":"Services Registry Permissions Weakness","page":"techniques/enterprise/T1574.011/"}],"data_path":"data/detection-rules/38879043-7e1e-47a9-8d46-6bec88e201df.json","kind":"sigma"}
