Sigma rule: Potential Persistence Attempt Via Existing Service Tampering

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7c71648bdcfd, updated 2023-02-04T00:00:00.000Z.

Rule

Title
Potential Persistence Attempt Via Existing Service Tampering
Status
test
Level
medium
Author
Sreeman
Date
2020-09-29
Modified
2023-02-04
File
rules/windows/process_creation/proc_creation_win_sc_service_tamper_for_persistence.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
windows
category
process_creation

Detection

selection_sc:
    - CommandLine|contains|all:
          - 'sc '
          - 'config '
          - 'binpath='
    - CommandLine|contains|all:
          - 'sc '
          - 'failure'
          - 'command='
selection_reg_img:
    - CommandLine|contains|all:
          - 'reg '
          - 'add '
          - 'FailureCommand'
    - CommandLine|contains|all:
          - 'reg '
          - 'add '
          - 'ImagePath'
selection_reg_ext:
    CommandLine|contains:
        - '.sh'
        - '.exe'
        - '.dll'
        - '.bin$'
        - '.bat'
        - '.cmd'
        - '.js'
        - '.msh$'
        - '.reg$'
        - '.scr'
        - '.ps'
        - '.vb'
        - '.jar'
        - '.pl'
condition: selection_sc or all of selection_reg_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.privilege-escalation
  • attack.persistence
  • attack.execution
  • attack.stealth
  • attack.t1543.003
  • attack.t1574.011

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_sc_service_tamper_for_persistence.yml

Sources and licences

  • SigmaHQ

    "Potential Persistence Attempt Via Existing Service Tampering" by Sreeman (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_sc_service_tamper_for_persistence.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Potential Persistence Attempt Via Existing Service Tampering",
entity page, dataset version ref-7c71648bdcfd, updated 2023-02-04T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/38879043-7e1e-47a9-8d46-6bec88e201df (accessed 2026-11-03).
Underlying source: SigmaHQ rule 38879043-7e1e-47a9-8d46-6bec88e201df, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.