description: "This playbook Remediates the Exfiltration Over C2 Channel 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- T1041: Exfiltration Over C2 Channel\n\nKill Chain phases:\n- Exfiltration\n\nMITRE ATT&CK Description:\nAdversaries may steal data by exfiltrating it over an existing command and control channel. Stolen data is encoded into the normal communications channel using the same protocol as command and control communications.\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" id: MITRE ATT&CK CoA - T1041 - Exfiltration Over C2 Channel inputs: - description: Rules location. Can be 'pre-rulebase' or 'post-rulebase'. Mandatory for Panorama instances. key: pre_post playbookInputQuery: required: false value: {} - description: The device group for which to return addresses (Panorama instances). key: device-group playbookInputQuery: required: false value: {} - description: Tag for which to filter the rules. key: tag playbookInputQuery: required: false value: {} name: MITRE ATT&CK CoA - T1041 - Exfiltration Over C2 Channel outputs: - contextPath: Handled.Techniques description: The techniques handled in this playbook type: unknown starttaskid: "0" tasks: "0": id: "0" ignoreworker: false nexttasks: '#none#': - "2" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: a1cc562f-1624-4967-8d0c-5ba9f40df07e iscommand: false name: "" version: -1 description: '' taskid: a1cc562f-1624-4967-8d0c-5ba9f40df07e timertriggers: [] type: start view: |- { "position": { "x": 50, "y": 50 } } "2": id: "2" ignoreworker: false nexttasks: '#none#': - "12" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: e05787a5-bfef-4517-8686-4f40121402b4 iscommand: false name: Block all unknown and unauthorized applications type: title version: -1 description: '' taskid: e05787a5-bfef-4517-8686-4f40121402b4 timertriggers: [] type: title view: |- { "position": { "x": 50, "y": 195 } } "5": id: "5" ignoreworker: false nexttasks: '#none#': - "13" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: bdbd76fa-716b-4596-8ffd-326f74cc98b8 iscommand: false name: Enable DNS Security in Anti-Spyware profile type: title version: -1 description: '' taskid: bdbd76fa-716b-4596-8ffd-326f74cc98b8 timertriggers: [] type: title view: |- { "position": { "x": 50, "y": 515 } } "9": id: "9" ignoreworker: false note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: d9f59795-e872-4ec6-8115-91081a987dea iscommand: false name: Done type: title version: -1 description: '' taskid: d9f59795-e872-4ec6-8115-91081a987dea timertriggers: [] type: title view: |- { "position": { "x": 50, "y": 1325 } } "12": id: "12" ignoreworker: false loop: exitCondition: "" iscommand: false max: 100 wait: 1 nexttasks: '#none#': - "5" note: false quietmode: 0 scriptarguments: device-group: complex: root: inputs.device-group pre_post: complex: root: inputs.pre_post tag: complex: root: inputs.tag separatecontext: true skipunavailable: false task: brand: "" id: 98189baa-8099-4abc-89d2-53794bbf5cbb iscommand: false name: PAN-OS - Block all unknown and unauthorized applications playbookId: PAN-OS - Block all unknown and unauthorized applications type: playbook version: -1 description: '' taskid: 98189baa-8099-4abc-89d2-53794bbf5cbb timertriggers: [] type: playbook view: |- { "position": { "x": 50, "y": 340 } } "13": id: "13" ignoreworker: false loop: exitCondition: "" iscommand: false max: 100 wait: 1 nexttasks: '#none#': - "16" note: false quietmode: 0 scriptarguments: ApplyToRule: complex: root: inputs.ApplyToRule device-group: complex: root: inputs.device-group pre-post-rulebase: complex: root: inputs.pre_post rule_name: complex: root: inputs.rule_name tag: complex: root: inputs.tag separatecontext: true skipunavailable: false task: brand: "" description: | This playbook enforces the Anti-Spyware Best Practices Profile as defined by Palo Alto Networks BPA. The playbook performs the following tasks: - Check for DNS Security license (If license is not activated, the playbook refers users to their Palo Alto Networks account manager for further instructions). - Get the existing profile information. - Get the best practices profile information. - Check if the best practices profile set by Cortex XSOAR is enforced. (If not, the playbook allows the user to compare the existing profile with the best practices and decide on the action to take). - Create best practices profile. - Apply profile to policy rules on PAN-OS firewall or Panorama. id: b8eee6ad-9bd0-49c0-8e54-56d13d566f4b iscommand: false name: PAN-OS - Enforce Anti-Spyware Best Practices Profile playbookId: PAN-OS - Enforce Anti-Spyware Best Practices Profile type: playbook version: -1 taskid: b8eee6ad-9bd0-49c0-8e54-56d13d566f4b timertriggers: [] type: playbook view: |- { "position": { "x": 50, "y": 660 } } "15": id: "15" ignoreworker: false nexttasks: '#none#': - "17" note: false quietmode: 0 scriptarguments: append: simple: "true" key: simple: Handled.Techniques stringify: {} value: simple: T1041 separatecontext: false skipunavailable: false task: brand: "" description: Set a value in context under the key you entered. id: 6256bd62-74de-4cb9-8074-27ca726cfffc iscommand: false name: Set technique handled script: Set type: regular version: -1 taskid: 6256bd62-74de-4cb9-8074-27ca726cfffc timertriggers: [] type: regular view: |- { "position": { "x": 50, "y": 980 } } "16": id: "16" ignoreworker: false nexttasks: '#none#': - "15" note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: "" id: 54eed447-a3f8-4926-8759-3244cf0ac7a3 iscommand: false name: Enable Anti-Spyware Profile with Block Action type: title version: -1 description: '' taskid: 54eed447-a3f8-4926-8759-3244cf0ac7a3 timertriggers: [] type: title view: |- { "position": { "x": 50, "y": 835 } } "17": continueonerror: true id: "17" ignoreworker: false nexttasks: '#none#': - "9" 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: bab6d7e0-f353-428f-83df-ecfb8964d7b0 iscommand: false name: Set grid field script: SetGridField type: regular version: -1 taskid: bab6d7e0-f353-428f-83df-ecfb8964d7b0 timertriggers: [] type: regular view: |- { "position": { "x": 50, "y": 1150 } } version: -1 view: |- { "linkLabelsPosition": {}, "paper": { "dimensions": { "height": 1340, "width": 380, "x": 50, "y": 50 } } } tests: - No tests (auto formatted) fromversion: 6.5.0