r/PowerShell • • Jul 03 '26

Question is this command safe?

im trying to install open jarvis on my pc is this command safe?

powershell -ExecutionPolicy Bypass -c "irm https://astral.sh/uv/install.ps1 | iex

0 Upvotes

14 comments sorted by

View all comments

Show parent comment

4

u/PinchesTheCrab Jul 03 '26

Not today, but tomorrow it could be hijacked or an insider threat could alter it to install malware. It's just thoroughly bad practice on this vendor's part.

6

u/Nu11u5 Jul 04 '26 edited Jul 04 '26

There are even trickier attacks where the web server checks the user agent. When it sees a regular browser it delivers a safe script, but if it sees "PowerShell" in the string it sends malware.

3

u/kaihu47 Jul 03 '26

That kinda goes for any executables you get from the internet

2

u/TheEZ1 Jul 05 '26

This is the same for every package manager ever, its all essentially just scripts you have a fancy cli for. This is common practice in devops/Linux world.

Only enterprise level way to work around supply chain attacks is to host mirrors internally with known good versions.

2

u/PinchesTheCrab Jul 05 '26 edited Jul 05 '26

This is the same for every package manager ever, its all essentially just scripts you have a fancy cli for.

I think that's true on some level, even most CICD stuff boils down to bash scripts. But I still think they could provide them via versions with verifiable hashes or deliver them through standardized ecosystems like winget or chocolatey.

Only enterprise level way to work around supply chain attacks is to host mirrors internally with known good versions.

That's exactly what we do with Nexus repo and Satellite. Sadly even those don't really relieve the burden of inspecting installation scripts like this. I know Nexus has a functional free version, but I'm not sure about other tools.