<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Post-processing script to close XDR alerts from XSOAR in Mirroring Both Direction integration setting. in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522171#M1443</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/226640"&gt;@Josep&lt;/a&gt;, From what I see in the current command set there is no command (API) to update or close alerts. I found one for incidents -&amp;nbsp;&lt;CODE&gt;xdr-update-incident&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest creating a XDR support case to check this is possible or requires a feature request. Once Identified the XSOAR content team can update the integration.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 02:04:31 GMT</pubDate>
    <dc:creator>jfernandes1</dc:creator>
    <dc:date>2022-11-23T02:04:31Z</dc:date>
    <item>
      <title>Post-processing script to close XDR alerts from XSOAR in Mirroring Both Direction integration setting.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522103#M1438</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We are using XDR with XSOAR mirroring both direction configuration. It's working. However, incidents created on XSOAR don't close all the alerts of XDR related to the incident. So a post-script should be done to force them to close. What commands in XSOAR could make them close? How do we choose those alerts related to the incident?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 17:25:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522103#M1438</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2022-11-22T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing script to close XDR alerts from XSOAR in Mirroring Both Direction integration setting.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522171#M1443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/226640"&gt;@Josep&lt;/a&gt;, From what I see in the current command set there is no command (API) to update or close alerts. I found one for incidents -&amp;nbsp;&lt;CODE&gt;xdr-update-incident&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest creating a XDR support case to check this is possible or requires a feature request. Once Identified the XSOAR content team can update the integration.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 02:04:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522171#M1443</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-11-23T02:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing script to close XDR alerts from XSOAR in Mirroring Both Direction integration setting.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522613#M1465</link>
      <description>&lt;P&gt;There is nothing to close the alerts, but post-processing executes right before an XSOAR Incident is closed, you can use a post processing script with the xdr-update-incident command as mentioned, here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# get the close notes &amp;amp; reason from the XSOAR Incident&lt;BR /&gt;close_reason = demisto.args().get("closeReason","Resolved")&lt;BR /&gt;close_notes = demisto.args().get("closeNotes","No close notes provided")&lt;/P&gt;
&lt;P&gt;# get the xdr incident id&lt;BR /&gt;xdrincidentid = demisto.incident().get("CustomFields",{}).get("xdrincidentid",False)&lt;/P&gt;
&lt;P&gt;# map XSOAR close reasons to XDR close codes&lt;BR /&gt;close_code_map = {&lt;BR /&gt;"False Positive":"RESOLVED_FALSE_POSITIVE",&lt;BR /&gt;"Resolved":"RESOLVED_THREAT_HANDLED",&lt;BR /&gt;"Other":"RESOLVED_OTHER",&lt;BR /&gt;"Duplicate":"RESOLVED_DUPLICATE"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;if xdrincidentid:&lt;BR /&gt;demisto.results(demisto.executeCommand("xdr-update-incident", {"incident_id":xdrincidentid,"status":close_code_map.get(close_reason),"resolve_comment":close_notes}))&lt;/P&gt;
&lt;P&gt;else:&lt;BR /&gt;demisto.results("No XDR Incident ID found, doing nothing...")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 16:17:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522613#M1465</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2022-11-28T16:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing script to close XDR alerts from XSOAR in Mirroring Both Direction integration setting.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522724#M1472</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;We are already using "xdr-update-incident" command completely at the end of the playbook. It should do exactly the same as the post-script. However, as I said, it's not closing all the alerts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:44:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/post-processing-script-to-close-xdr-alerts-from-xsoar-in/m-p/522724#M1472</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2022-11-29T10:44:37Z</dc:date>
    </item>
  </channel>
</rss>

