<?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: CP: How to get a secret with Hash authentication via a Powershell script launched from Windows Task Scheduler in Secrets Management</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management/cp-how-to-get-a-secret-with-hash-authentication-via-a-powershell/m-p/1337182#M696</link>
    <description>&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;Add the "C:\Windows\System32\svchost.exe" to the TrustedCLIShells in the CP config additionally to the powershell.exe.&lt;/P&gt;&lt;P&gt;Add the Hash of the powershell script to the Application in PVWA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;The powershell.exe application is started from the svchost.exe within the Windows process tree.&lt;/P&gt;&lt;P&gt;This can be verified with the Sysmon tool (https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll find the following output (truncated for readability:)&lt;/P&gt;&lt;P&gt;ParentImage: C:\Windows\System32\svchost.exe&lt;/P&gt;&lt;P&gt;ParentCommandLine: C:\WINDOWS\system32\svchost.exe -k netsvcs -p -s Schedule&lt;/P&gt;&lt;P&gt;ParentUser: NT-AUTORITÄT\SYSTEM&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 10:40:57 GMT</pubDate>
    <dc:creator>M.Kleinert783694</dc:creator>
    <dc:date>2023-06-09T10:40:57Z</dc:date>
    <item>
      <title>CP: How to get a secret with Hash authentication via a Powershell script launched from Windows Task Scheduler</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/cp-how-to-get-a-secret-with-hash-authentication-via-a-powershell/m-p/1337181#M695</link>
      <description>&lt;P&gt;AppProvider version: 13.0.0.6&lt;/P&gt;&lt;P&gt;PVWA version: 13.0.0.13&lt;/P&gt;&lt;P&gt;Vault version: 12.6.0.21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;Try to get a secret via the CP CLI Application Password SDK.&lt;/P&gt;&lt;P&gt;The CLI SDK is called via Powershell.&lt;/P&gt;&lt;P&gt;The script is launched from a scheduled task in Windows Task Scheduler.&lt;/P&gt;&lt;P&gt;The Application's authentication is Hash authentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if the powershell.exe is added to the TrustedCLIShells in the CP config, the log says "APPAP309E Script run using untrusted shell"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 10:40:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/cp-how-to-get-a-secret-with-hash-authentication-via-a-powershell/m-p/1337181#M695</guid>
      <dc:creator>M.Kleinert783694</dc:creator>
      <dc:date>2023-06-09T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: CP: How to get a secret with Hash authentication via a Powershell script launched from Windows Task Scheduler</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/cp-how-to-get-a-secret-with-hash-authentication-via-a-powershell/m-p/1337182#M696</link>
      <description>&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;Add the "C:\Windows\System32\svchost.exe" to the TrustedCLIShells in the CP config additionally to the powershell.exe.&lt;/P&gt;&lt;P&gt;Add the Hash of the powershell script to the Application in PVWA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;The powershell.exe application is started from the svchost.exe within the Windows process tree.&lt;/P&gt;&lt;P&gt;This can be verified with the Sysmon tool (https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll find the following output (truncated for readability:)&lt;/P&gt;&lt;P&gt;ParentImage: C:\Windows\System32\svchost.exe&lt;/P&gt;&lt;P&gt;ParentCommandLine: C:\WINDOWS\system32\svchost.exe -k netsvcs -p -s Schedule&lt;/P&gt;&lt;P&gt;ParentUser: NT-AUTORITÄT\SYSTEM&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 10:40:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/cp-how-to-get-a-secret-with-hash-authentication-via-a-powershell/m-p/1337182#M696</guid>
      <dc:creator>M.Kleinert783694</dc:creator>
      <dc:date>2023-06-09T10:40:57Z</dc:date>
    </item>
  </channel>
</rss>

