{"id":"1bac86ba-41aa-4f62-9d6b-405eac99b485","title":"Systemd Service Creation","description":"Detects a creation of systemd services which could be used by adversaries to execute malicious code.","author":"Pawel Mazur","status":"test","level":"medium","date":"2022-02-03","modified":"2022-02-06","tags":["attack.privilege-escalation","attack.persistence","attack.t1543.002"],"technique_ids":["T1543.002"],"logsource":{"product":"linux","service":"auditd"},"falsepositives":["Admin work like legit service installs."],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.002/T1543.002.md"],"source_path":"rules/linux/auditd/path/lnx_auditd_systemd_service_creation.yml","source_sha256":"f32bb99c4cc1ea87528d0769cc3e74de7ebe9349c949883bfc6df5d25d0a2dab","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/auditd/path/lnx_auditd_systemd_service_creation.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Systemd Service Creation\nid: 1bac86ba-41aa-4f62-9d6b-405eac99b485\nstatus: test\ndescription: Detects a creation of systemd services which could be used by adversaries to execute malicious code.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.002/T1543.002.md\nauthor: 'Pawel Mazur'\ndate: 2022-02-03\nmodified: 2022-02-06\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1543.002\nlogsource:\n    product: linux\n    service: auditd\ndetection:\n    path:\n        type: 'PATH'\n        nametype: 'CREATE'\n    name_1:\n        name|startswith:\n            - '/usr/lib/systemd/system/'\n            - '/etc/systemd/system/'\n    name_2:\n        name|contains: '/.config/systemd/user/'\n    condition: path and 1 of name_*\nfalsepositives:\n    - Admin work like legit service installs.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1543.002","id":"T1543.002","name":"Systemd Service","page":"techniques/enterprise/T1543.002/"}],"data_path":"data/detection-rules/1bac86ba-41aa-4f62-9d6b-405eac99b485.json","kind":"sigma"}
