<?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 Splunk Phantom SOAR Vault tmp Directory Clean Up in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Splunk-Phantom-SOAR-Vault-tmp-Directory-Clean-Up/m-p/670907#M1334</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, I have to transmute a file, and I leverage the /vault/tmp/ directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to do what I want, but I'm wondering if I have to 'clean up' this /vault/tmp/ directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex - I have a file I want to XOR bit by bit. I read unxord.exe bit by bit, write to /vault/tmp/xord.exe, then I do a phantom.vault_add(file_location="/vault/tmp/xord.exe"). This works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to do any removal of the "/vault/tmp/xord.exe"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to do something like:&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;os.remove("/vault/tmp/xord.exe")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get a path not found error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So, how often does Phantom SOAR clean up the /vault/tmp/ directory, and can/should I remove the temp file myself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 19:45:51 GMT</pubDate>
    <dc:creator>splunk4days</dc:creator>
    <dc:date>2023-12-05T19:45:51Z</dc:date>
    <item>
      <title>Splunk Phantom SOAR Vault tmp Directory Clean Up</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Splunk-Phantom-SOAR-Vault-tmp-Directory-Clean-Up/m-p/670907#M1334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, I have to transmute a file, and I leverage the /vault/tmp/ directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to do what I want, but I'm wondering if I have to 'clean up' this /vault/tmp/ directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex - I have a file I want to XOR bit by bit. I read unxord.exe bit by bit, write to /vault/tmp/xord.exe, then I do a phantom.vault_add(file_location="/vault/tmp/xord.exe"). This works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to do any removal of the "/vault/tmp/xord.exe"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to do something like:&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;os.remove("/vault/tmp/xord.exe")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get a path not found error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So, how often does Phantom SOAR clean up the /vault/tmp/ directory, and can/should I remove the temp file myself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Splunk-Phantom-SOAR-Vault-tmp-Directory-Clean-Up/m-p/670907#M1334</guid>
      <dc:creator>splunk4days</dc:creator>
      <dc:date>2023-12-05T19:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Phantom SOAR Vault tmp Directory Clean Up</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Splunk-Phantom-SOAR-Vault-tmp-Directory-Clean-Up/m-p/670956#M1335</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263083"&gt;@splunk4days&lt;/a&gt;&amp;nbsp;i believe that by using the phantom.vault_add() API the file is "moved" from the tmp dir into the relevant file location on the platform where the vault storage is, rather than copied.&lt;/P&gt;&lt;P&gt;I have not tested this but have also never had to clear the /tmp dir when using it for vault_add() API calls.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Splunk-Phantom-SOAR-Vault-tmp-Directory-Clean-Up/m-p/670956#M1335</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2023-12-06T08:43:30Z</dc:date>
    </item>
  </channel>
</rss>

