<?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 SOAR - Create File from Artifacts in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581657#M762</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Does anyone know if it's possible to create a file from a field in an artifact?&lt;/P&gt;&lt;P&gt;Scenario:&lt;BR /&gt;We have an alert in Splunk SIEM that sends various bits of, tabulated, info to SOAR.&lt;BR /&gt;One of the fields is a comma delimited list of ID's - this could be 1 or several hundred&lt;BR /&gt;This kicks off a playbook to process this info and email the info to the 'owner'&lt;BR /&gt;The ID data must be added to the sent email as an attachment&lt;BR /&gt;&lt;BR /&gt;I'm aware of the option to add attachments from the file vault to an email from SOAR using the smtp app but......&lt;BR /&gt;How do we get the ID data from the field in the artifact into a file?&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mark.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 14:51:28 GMT</pubDate>
    <dc:creator>mark_wymer</dc:creator>
    <dc:date>2022-01-19T14:51:28Z</dc:date>
    <item>
      <title>SOAR - Create File from Artifacts</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581657#M762</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Does anyone know if it's possible to create a file from a field in an artifact?&lt;/P&gt;&lt;P&gt;Scenario:&lt;BR /&gt;We have an alert in Splunk SIEM that sends various bits of, tabulated, info to SOAR.&lt;BR /&gt;One of the fields is a comma delimited list of ID's - this could be 1 or several hundred&lt;BR /&gt;This kicks off a playbook to process this info and email the info to the 'owner'&lt;BR /&gt;The ID data must be added to the sent email as an attachment&lt;BR /&gt;&lt;BR /&gt;I'm aware of the option to add attachments from the file vault to an email from SOAR using the smtp app but......&lt;BR /&gt;How do we get the ID data from the field in the artifact into a file?&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mark.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581657#M762</guid>
      <dc:creator>mark_wymer</dc:creator>
      <dc:date>2022-01-19T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: SOAR - Create File from Artifacts</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581662#M763</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/168207"&gt;@mark_wymer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can just use the python "open" to write the file to a tmp directory on the platform and then use phantom.vault_add() to load it into the container to then be used in any way you wish. You will need to do this in a custom function and you could output the vault_id(s) to then add to any subsequent email.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kite.com/python/answers/how-to-write-a-file-to-a-specific-directory-in-python" target="_blank" rel="noopener"&gt;https://www.kite.com/python/answers/how-to-write-a-file-to-a-specific-directory-in-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SOARonprem/5.1.0/PlaybookAPI/VaultAPI#vault_add" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SOARonprem/5.1.0/PlaybookAPI/VaultAPI#vault_add&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581662#M763</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2022-01-19T14:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: SOAR - Create File from Artifacts</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581663#M764</link>
      <description>&lt;P&gt;Hi Tom, hope your well. Not 'spoken' for ages.&lt;/P&gt;&lt;P&gt;So, if I understand....&lt;/P&gt;&lt;P&gt;Pass the ID data from the artifact into a custom code snippet to write the data to, effectively, a temporary file then use the Phantom Vault API to upload this into the container (can the temporary file be deleted then or is the 'upload' just a pointer to the physical location?)&lt;BR /&gt;&lt;BR /&gt;This can then be attached to the email.&lt;/P&gt;&lt;P&gt;Mark.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581663#M764</guid>
      <dc:creator>mark_wymer</dc:creator>
      <dc:date>2022-01-19T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: SOAR - Create File from Artifacts</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581665#M765</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/168207"&gt;@mark_wymer&lt;/a&gt;&amp;nbsp;I thought it was you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;!! Yeah not bad thanks, still here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yes, you have it correct; write the file to the OS, add to the vault then use the vault_id to attach, or add to a list of vault_ids to attach. When you add to the vault it will be added to a separate location on the OS that is under vault control.&lt;/P&gt;&lt;P&gt;I'm not 100% sure if the file deletes when you add to the vault, however, you can delete the file if you wish but if it's in a "true" tmp directory then it will get flushed on reboot but if there is a chance there will be a lot of this activity it might be best to put something in place to clear the tmp directory, outside of a reboot, more regularly?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581665#M765</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2022-01-19T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: SOAR - Create File from Artifacts</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581669#M766</link>
      <description>&lt;P&gt;Thanks Tom - perfect&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-Create-File-from-Artifacts/m-p/581669#M766</guid>
      <dc:creator>mark_wymer</dc:creator>
      <dc:date>2022-01-19T15:14:16Z</dc:date>
    </item>
  </channel>
</rss>

