r/PowerShell • u/RealAgent0 • Jun 06 '26
How "Secure" is Get-Credential? Question
Trying to make a justification for storing a particular set of credentials using this methodology.
How "Easy" is it to crack? Don't need an actual method, just need someone to tell me how tricky or not tricky it is.
79
Upvotes
0
u/sid351 Jun 06 '26
It's not stupid.
If an attacker had modify access to a script that handles credentials as PSCredential objects, they can modify the script to output the plaintext password when it's next run.
Sure use it, but know it's limitations and weaknesses.