{"id":"dd2a821e-3b07-4d3b-a9ac-929fe4c6ca0c","title":"Suspicious Scheduled Task Creation via Masqueraded XML File","description":"Detects the creation of a scheduled task using the \"-XML\" flag with a file without the '.xml' extension. This behavior could be indicative of potential defense evasion attempt during persistence","author":"Swachchhanda Shrawan Poudel, Elastic (idea)","status":"test","level":"medium","date":"2023-04-20","modified":"2024-12-01","tags":["attack.privilege-escalation","attack.execution","attack.persistence","attack.stealth","attack.t1036.005","attack.t1053.005"],"technique_ids":["T1036.005","T1053.005"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://learn.microsoft.com/en-us/windows/win32/taskschd/daily-trigger-example--xml-","https://github.com/elastic/protections-artifacts/blob/084067123d3328a823b1c3fdde305b694275c794/behavior/rules/persistence_suspicious_scheduled_task_creation_via_masqueraded_xml_file.toml"],"source_path":"rules/windows/process_creation/proc_creation_win_schtasks_schedule_via_masqueraded_xml_file.yml","source_sha256":"d6b14da16493ca296a7d6be9127272edd4724593f0085ee583a7965284cdd4ce","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_schtasks_schedule_via_masqueraded_xml_file.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Scheduled Task Creation via Masqueraded XML File\nid: dd2a821e-3b07-4d3b-a9ac-929fe4c6ca0c\nstatus: test\ndescription: Detects the creation of a scheduled task using the \"-XML\" flag with a file without the '.xml' extension. This behavior could be indicative of potential defense evasion attempt during persistence\nreferences:\n    - https://learn.microsoft.com/en-us/windows/win32/taskschd/daily-trigger-example--xml-\n    - https://github.com/elastic/protections-artifacts/blob/084067123d3328a823b1c3fdde305b694275c794/behavior/rules/persistence_suspicious_scheduled_task_creation_via_masqueraded_xml_file.toml\nauthor: Swachchhanda Shrawan Poudel, Elastic (idea)\ndate: 2023-04-20\nmodified: 2024-12-01\ntags:\n    - attack.privilege-escalation\n    - attack.execution\n    - attack.persistence\n    - attack.stealth\n    - attack.t1036.005\n    - attack.t1053.005\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_img:\n        - Image|endswith: '\\schtasks.exe'\n        - OriginalFileName: 'schtasks.exe'\n    selection_cli_create:\n        CommandLine|contains:\n            - '/create'\n            - '-create'\n    selection_cli_xml:\n        CommandLine|contains:\n            - '/xml'\n            - '-xml'\n    filter_main_extension_xml:\n        CommandLine|contains: '.xml'\n    filter_main_system_process:\n        IntegrityLevel:\n            - 'System'\n            - 'S-1-16-16384'\n    filter_main_rundll32:\n        ParentImage|endswith: '\\rundll32.exe'\n        ParentCommandLine|contains|all:\n            - ':\\WINDOWS\\Installer\\MSI'\n            - '.tmp,zzzzInvokeManagedCustomActionOutOfProc'\n    filter_optional_third_party:\n        ParentImage|endswith:\n            # Consider removing any tools that you don't use to avoid blind spots\n            - ':\\ProgramData\\OEM\\UpgradeTool\\CareCenter_*\\BUnzip\\Setup_msi.exe'\n            - ':\\Program Files\\Axis Communications\\AXIS Camera Station\\SetupActions.exe'\n            - ':\\Program Files\\Axis Communications\\AXIS Device Manager\\AdmSetupActions.exe'\n            - ':\\Program Files (x86)\\Zemana\\AntiMalware\\AntiMalware.exe'\n            - ':\\Program Files\\Dell\\SupportAssist\\pcdrcui.exe'\n    condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1036.005","id":"T1036.005","name":"Match Legitimate Resource Name or Location","page":"techniques/enterprise/T1036.005/"},{"key":"enterprise/T1053.005","id":"T1053.005","name":"Scheduled Task","page":"techniques/enterprise/T1053.005/"}],"data_path":"data/detection-rules/dd2a821e-3b07-4d3b-a9ac-929fe4c6ca0c.json","kind":"sigma"}
