ClientSecret is a plaintext [string]. Use [securestring] instead? #101
Replies: 6 comments 3 replies
-
Earlier versions used The PowerShell Secret Management module looks like a much better option for storing credentials as it offers cross-platform encryption. Once I get some time to review, I plan on seeing whether that can be easily integrated into the token mechanisms within PSFalcon. |
Beta Was this translation helpful? Give feedback.
-
I don't necessarily agree that using Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks, and I appreciate your feedback and suggestion! I thought The earlier versions of PSFalcon effectively used
On Windows (as you mentioned) this is protected if you're not running as the user that created the From the initial reading I've done, the Secret Management module should provide encryption no matter the platform and if you're interested you should be able to use it independently and pass ClientId/ClientSecret/Cloud/MemberCID to |
Beta Was this translation helpful? Give feedback.
-
On PowerShell Core (v6+), it's even simpler!
I haven't come across the I do have my own (non-public) |
Beta Was this translation helpful? Give feedback.
-
That's funny--I had a command with the first iteration of PSFalcon v2 that did the same thing. I'm hoping the SecretManagement module will offer the same results (plus it might store the |
Beta Was this translation helpful? Give feedback.
-
Interesting when found this thread. In the wiki also mentioned
I've observed that every time I close my PowerShell session and later return, the history of the 'Request-FalconToken' command is missing, whereas the histories of other commands are preserved. Could you provide more insight into which module might be causing this behavior @bk-cs |
Beta Was this translation helpful? Give feedback.
-
I noticed in oauth2.ps1 that the ClientSecret isn't being stored in memory as a [securestring]. I would recommend doing that.
I have a code sample that should handle the prompt when a user didn't supply the ClientSecret as a parameter, but I'm not familiar with dynamic parameters in PowerShell so I'm not sure how to handle it if it is supplied as a parameter.
Beta Was this translation helpful? Give feedback.
All reactions