description: "This playbook Remediates the Windows Service technique using intelligence-driven Courses of Action (COA) defined by Palo Alto Networks Unit 42 team.\n \n***Disclaimer: This playbook does not simulate an attack using the specified technique, but follows the steps to remediation as defined by Palo Alto Networks Unit 42 team’s Actionable Threat Objects and Mitigations (ATOMs).\nTechniques Handled:\n- T1543.003: Create or Modify System Process: Windows Service\n\nKill Chain phases:\n- Persistence\n- Privilege Escalation\n\nMITRE ATT&CK Description:\nAdversaries may create or modify Windows services to repeatedly execute malicious payloads as part of persistence. When Windows boots up, it starts programs or applications called services that perform background system functions.[1] Windows service configuration information, including the file path to the service's executable or recovery programs/commands, is stored in the Windows Registry. Service configurations can be modified using utilities such as sc.exe and Reg.\n\nAdversaries may install a new service or modify an existing service by using system utilities to interact with services, by directly modifying the Registry, or by using custom tools to interact with the Windows API. Adversaries may configure services to execute at startup in order to persist on a system.\n\nPossible playbook uses:\n- The playbook can be used independently to handle and remediate the specific technique.\n- The playbook can be used as a part of the “Courses of Action - Defense Evasion” playbook to remediate techniques based on the kill chain phase.\n- The playbook can be used as a part of the “MITRE ATT&CK - Courses of Action” playbook, which can be triggered by different sources and accepts the technique MITRE ATT&CK ID as an input.\n\n\n" id: MITRE ATT&CK CoA - T1543.003 - Windows Service inputs: [] name: MITRE ATT&CK CoA - T1543.003 - Windows Service outputs: - contextPath: Handled.Techniques description: The techniques handled in this playbook type: unknown starttaskid: "0" tasks: "0": id: "0" ignoreworker: false nexttasks: '#none#': - "4" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: d2a03a6a-ce1b-48af-88ea-ce412bd17ef0 iscommand: false name: "" version: -1 description: '' taskid: d2a03a6a-ce1b-48af-88ea-ce412bd17ef0 timertriggers: [] type: start view: |- { "position": { "x": 50, "y": -220 } } "1": id: "1" ignoreworker: false nexttasks: '#none#': - "3" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" description: Manual - Configure XDR Behavioral Threat Protection under the Malware Security Profile. id: 95b39f35-a0d6-430b-8af5-78f3cb5ee4fe iscommand: false name: Manual - Configure XDR Behavioral Threat Protection under the Malware Security Profile type: regular version: -1 taskid: 95b39f35-a0d6-430b-8af5-78f3cb5ee4fe timertriggers: [] type: regular view: |- { "position": { "x": 50, "y": 275 } } "2": id: "2" ignoreworker: false note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: e13affdd-68db-4873-82e4-f9f78838b033 iscommand: false name: Done type: title version: -1 description: '' taskid: e13affdd-68db-4873-82e4-f9f78838b033 timertriggers: [] type: title view: |- { "position": { "x": 50, "y": 825 } } "3": id: "3" ignoreworker: false nexttasks: '#none#': - "6" note: false quietmode: 0 scriptarguments: append: simple: "true" key: simple: Handled.Techniques stringify: {} value: simple: T1543.003 separatecontext: false skipunavailable: false task: brand: "" description: Set a value in context under the key you entered. id: 0af7dd6d-adac-4f2f-869f-1e496fd7bf72 iscommand: false name: Set technique handled script: Set type: regular version: -1 taskid: 0af7dd6d-adac-4f2f-869f-1e496fd7bf72 timertriggers: [] type: regular view: |- { "position": { "x": 50, "y": 460 } } "4": id: "4" ignoreworker: false nexttasks: '#default#': - "5" "yes": - "1" note: false quietmode: 0 scriptarguments: brandname: simple: Cortex XDR - IR separatecontext: false skipunavailable: false task: brand: "" description: Returns 'yes' if integration brand is available. Otherwise returns 'no' id: aaf9eaaa-a8be-497c-82c4-b1e1c63b963a iscommand: false name: Is Cortex XDR integration Enabled? script: IsIntegrationAvailable type: condition version: -1 taskid: aaf9eaaa-a8be-497c-82c4-b1e1c63b963a timertriggers: [] type: condition view: |- { "position": { "x": 50, "y": -70 } } "5": id: "5" ignoreworker: false nexttasks: '#none#': - "1" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" description: | Enable the Cortex XDR integration to follow this CoA. If needed - please contact your Palo Alto Networks account manager for future guidance and assistance. id: 29f4d063-883e-4a5f-8049-7ad34a973936 iscommand: false name: Manual - Enable Cortex XDR integration type: regular version: -1 taskid: 29f4d063-883e-4a5f-8049-7ad34a973936 timertriggers: [] type: regular view: |- { "position": { "x": 480, "y": 100 } } "6": id: "6" ignoreworker: false nexttasks: '#none#': - "2" note: false quietmode: 0 scriptarguments: columns: simple: technique context_path: simple: Handled.Techniques grid_id: simple: handledtechniques keys: {} overwrite: {} sort_by: {} unpack_nested_elements: {} separatecontext: false skipunavailable: false task: brand: "" description: Creates a Grid table from items or key-value pairs. id: f4ee501c-677d-40dd-8056-d4da61ee1d3b iscommand: false name: Set grid field script: SetGridField type: regular version: -1 taskid: f4ee501c-677d-40dd-8056-d4da61ee1d3b timertriggers: [] type: regular view: |- { "position": { "x": 50, "y": 640 } } version: -1 view: |- { "linkLabelsPosition": {}, "paper": { "dimensions": { "height": 1110, "width": 810, "x": 50, "y": -220 } } } tests: - No tests (auto formatted) fromversion: 6.5.0