{"id":"7595ba94-cf3b-4471-aa03-4f6baa9e5fad","title":"Important Scheduled Task Deleted/Disabled","description":"Detects when adversaries stop services or processes by deleting or disabling their respective scheduled tasks in order to conduct data destructive activities","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2022-12-05","modified":"2023-03-13","tags":["attack.execution","attack.privilege-escalation","attack.persistence","attack.t1053.005"],"technique_ids":["T1053.005"],"logsource":{"product":"windows","service":"security","definition":"The Advanced Audit Policy setting Object Access > Audit Other Object Access Events has to be configured to allow this detection. We also recommend extracting the Command field from the embedded XML in the event data."},"falsepositives":["Unknown"],"references":["https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4699","https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4701"],"source_path":"rules/windows/builtin/security/win_security_susp_scheduled_task_delete_or_disable.yml","source_sha256":"00d85d1f9ce41f74063b9f7b7c91bf4a687e04ed81e80d91f32bfe29729e1599","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/security/win_security_susp_scheduled_task_delete_or_disable.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Important Scheduled Task Deleted/Disabled\nid: 7595ba94-cf3b-4471-aa03-4f6baa9e5fad\nrelated:\n    - id: dbc1f800-0fe0-4bc0-9c66-292c2abe3f78 # ProcCreation schtasks delete\n      type: similar\n    - id: 9ac94dc8-9042-493c-ba45-3b5e7c86b980 # ProcCreation schtasks disable\n      type: similar\n    - id: 9e3cb244-bdb8-4632-8c90-6079c8f4f16d # TaskScheduler EventLog\n      type: similar\nstatus: test\ndescription: Detects when adversaries stop services or processes by deleting or disabling their respective scheduled tasks in order to conduct data destructive activities\nreferences:\n    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4699\n    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4701\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-12-05\nmodified: 2023-03-13\ntags:\n    - attack.execution\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1053.005\nlogsource:\n    product: windows\n    service: security\n    definition: 'The Advanced Audit Policy setting Object Access > Audit Other Object Access Events has to be configured to allow this detection. We also recommend extracting the Command field from the embedded XML in the event data.'\ndetection:\n    selection:\n        EventID:\n            - 4699 # Task Deleted Event\n            - 4701 # Task Disabled Event\n        TaskName|contains:\n            # Add more important tasks\n            - '\\Windows\\SystemRestore\\SR'\n            - '\\Windows\\Windows Defender\\'\n            - '\\Windows\\BitLocker'\n            - '\\Windows\\WindowsBackup\\'\n            - '\\Windows\\WindowsUpdate\\'\n            - '\\Windows\\UpdateOrchestrator\\Schedule'\n            - '\\Windows\\ExploitGuard'\n    filter_main_defender_update:\n        EventID: 4699\n        SubjectUserName|endswith: '$'  # False positives during upgrades of Defender, where its tasks get removed and added\n        TaskName|contains: '\\Windows\\Windows Defender\\'\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Unknown\nlevel: high\nregression_tests_path: regression_data/rules/windows/builtin/security/win_security_susp_scheduled_task_delete_or_disable/info.yml\nsimulation:\n    - type: atomic-red-team\n      name: Windows - Disable the SR scheduled task\n      technique: T1490\n      atomic_guid: 1c68c68d-83a4-4981-974e-8993055fa034\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1053.005","id":"T1053.005","name":"Scheduled Task","page":"techniques/enterprise/T1053.005/"}],"data_path":"data/detection-rules/7595ba94-cf3b-4471-aa03-4f6baa9e5fad.json","kind":"sigma"}
