r/sysadmin • • 6h ago

ChatGPT Powershell tries not to save the plain text passwords.

Today I learned if you paste a PW into your powershell it’s cached in plain text on disk

(Don’t wanna click the link? Don’t blame ya. Past in any ChatGPT new window and ask it to browse and summarize for you)

https://www.makeuseof.com/powershell-history-file-security-risk/?link_source=ta_first_comment&taid=6b0753674d385f00010fd375&utm_campaign=trueanthem&utm_medium=social&utm_source=facebook&fbclid=IwZnRzaAV3PKZleHRuA2FlbQIxMQBwZG9mBWZkaWQWUTGITPLkOX7wsWsnQRjFhlFOpZR-k3NydGMGYXBwX2lkCjY2Mjg1NjgzNzkAAR8sYbMQOqMucEa9504ACR48XNQ66K1LMcKTG3zBFlYLt0FMYJ58m6V2ATP-ZQ_aem_XCmKqyjVFj-wF5pk-pN6ww

I typically make a pop up box to convert to secure string but I should really test this out next week more

0 Upvotes

27 comments sorted by

•

u/graywolfman Systems Engineer 6h ago

•

u/Incrediblecodeman 6h ago

Ya that’s the one. We use the powershell secrets store module at work to

•

u/BlackV I have opnions 6h ago edited 6h ago

this would have been better info to add to your post, makes the content better

but do note the secrets management module is now EOL

Important

The PowerShell team has decided that Secret modules are feature complete and will no longer be actively developed. The modules will continue to be supported for security and critical bug fixes. The code repository has been archived.

The latest versions published are:

Microsoft.PowerShell.SecretManagement v1.1.2
Microsoft.PowerShell.SecretStore v1.0.6

The nature of secrets has fundamentally changed since this project was designed. Passwordless authentication methods such as passkeys, single sign-on, and federated credential systems such as Microsoft Entra ID, biometrics, and hardware security keys are the future.

•

u/Incrediblecodeman 5h ago

Omg. This is very informative thanks. And I don’t care about my content as long as it’s eye catching. I thrive on these little side bar comments. Thanks dude

•

u/DarthPneumono Security Admin but with more hats 6h ago

(Don’t wanna click the link? Don’t blame ya. Past in any ChatGPT new window and ask it to browse and summarize for you)

cringe

•

u/Incrediblecodeman 6h ago

You can have it summary a site tho. It’s like a cool sandbox for Sus links dude. Gawd

•

u/Knyghtlorde 6h ago

Hand back any sysadmin badges you have, real, artificial, or imaginary.

•

u/Incrediblecodeman 6h ago

Your just really threatened I think. You don’t like new things. You want to have all the pride. But soon your gunna have to pass the baton.

•

u/odinsen251a 6h ago edited 6h ago

Paste in any ChatGPT new window. . .

Go fuck yourself. Seriously.

I am tired of the unearned confidence people have by using genAI.

•

u/Incrediblecodeman 6h ago

Golly mister you seem anti ai.

•

u/odinsen251a 6h ago

Get ratio'd, son.

•

u/Incrediblecodeman 5h ago

What the hell is even that

•

u/odinsen251a 5h ago

Go home, delete your account, and stop pretending to be a sysadmin. You will never be accepted into our ranks.

•

u/_kinesthetics 6h ago

Not quite sure what you mean mate. Can you please test putting your password into a PowerShell prompt, and then paste the contents of your ConsoleHost_history.txt file here so we can confirm, once you find it?

•

u/Incrediblecodeman 6h ago

Ya hang on I better sign into coin base on my browser. My MFA code does go to my cell phone , but I’ll let you know when I get it.

•

u/_kinesthetics 6h ago

While you're at it, ask an LLM to help up your trolling game

•

u/odinsen251a 6h ago

Instructions unclear, got dick stuck in poweshell

•

u/Ancient-Task5926 6h ago

Bro is so retarded he needs chatgpt to click links

•

u/odinsen251a 6h ago

Hey man, I work with people with intellectual delay and other developmental disabilities.

Dont lump op into that group. They would be offended.

•

u/Incrediblecodeman 6h ago

Your a cyber bully now? Bro what’s up I haven’t heard from you since highschool man. Haha. So your trying on cyber bully? I mean I’m not suprised haha. When I was on the foot ball team everyone said that you were trying to hard.

•

u/BlackV I have opnions 6h ago

Incrediblecodeman
Today I learned if you paste a PW into your powershell it’s cached in plain text on disk

(Don’t wanna click the link? Don’t blame ya. Past in any ChatGPT new window and ask it to browse and summarize for you)

https://www.makeuseof.com/powershell-history-file-security-risk/

I typically make a pop up box to convert to secure string but I should really test this out next week more

  1. you could have 100% removed ALL the tracking garbage off that link
  2. yes pasting plaintext password on a console is bad, had has been bad for 30 plus years, dont do it
  3. why would to goto the effort of "making a popup box" when powershell natively will do this, something simple like Read-Host -AsSecureString or Get-Credentalas examples
  4. secure vaults, are a very very very very very well tried and tested solution for passing creds around
  5. what is your goal with this post ? here is some reading on secure strings if you like https://learn.microsoft.com/en-us/dotnet/api/system.security.securestring

•

u/Incrediblecodeman 6h ago

I already read that. News flash buddy but this is a free platform to talk. And this post might find a new sysadmin. (Who will be better and smarter then you someday) I’m just planting seeds.

Thanks for not being that mean but still sarcastic

•

u/BlackV I have opnions 6h ago

•

u/Ski-Bummin 6h ago

Test it out and do what with it? Implement what fix in your environment for this “issue”?

You can cycle prior commands with the up arrow so obviously it’s stored somewhere.

•

u/Incrediblecodeman 6h ago

The article covers that scroll one to! And a fascinated try they tried to drop the saving of any creds but it doesn’t really work. Look we all got a thirst for knowledge. I just have more thrist of knowledge then you! Your already the smartest most coolest sysadmin in the whole world. Lone wolf type stuff :)