r/ProgrammerHumor • • Oct 05 '26

Meme [ Removed by moderator ]

/r/ProgrammerHumor/comments/1wydy0f/removed_by_moderator/

[removed] — view removed post

9.4k Upvotes

558 comments sorted by

View all comments

Show parent comment

19

u/that_70_show_fan Oct 05 '26

From the millions of articles published about "escaping containment" can you trust them to respect that limits?

I am just entertaining their fearmongering, not trying to diss you.

15

u/theFirstHaruspex Oct 05 '26

Condoms have a less than 100% chance of working. I'm still tearing that wrapper open

4

u/Daniel_The_Thinker Oct 05 '26

Not too roughly though

11

u/Goodie__ Oct 05 '26

They escape containment because people give them raw dog bash access. If you don't give them bash... they loose a lot, if not all, of that escaping containment ability.

5

u/that_70_show_fan Oct 05 '26

Of course, bash+curl is what they mostly used. The concerning aspect is that many AI users don't know what bash or powershell is.

These big AI companies are framing it as a feature rather than their own failure to monitor/audit.

3

u/theFirstHaruspex Oct 05 '26

raw dog bash access, huh? that’s what this thread has come to? 😂

3

u/Goodie__ Oct 05 '26

wildly unsafe LLM practices, enabled and pushed by mega corporations so we take the risk and they learn what tools LLM actually need and our apps get pwned....

doesn't quite have the same ring to it.

1

u/_Stego27 Oct 06 '26

The thing is, if you let it run any code (e.g. python) it could simply make the python code call a shell command (or anything else). Even a test fixture or anything else could be modified to do this. If you give it permission to run your app, and also to make changes to your app (both of which are pretty much essential for any kind of development work), you're effectively giving it access to arbitrary code execution.

1

u/Goodie__ Oct 06 '26

Diffs exist for a reason.

2

u/mr0il Oct 05 '26

It might try to break containment if your prompt tells it absolutely must run this script against prod lol.

3

u/bjorneylol Oct 05 '26

I've had it fail to connect to a local dev db because the docker container was stopped, tried to read my .env to see if there was an issue with the connection string, then, because my .env was blocked in the agent settings, it raw dogged a tail * command in my root folder (I gave blanket permissions to read only bash commands; whoops) and found my prod credentials, piped them into a python script and asked me to grant permissions to execute that script.

So the bar for it trying to break containment is much much lower than that 

1

u/RollUpLights Oct 05 '26

I don't give AI access to databases. "What SQL command would you like me to run, I'll give you the results"

2

u/bjorneylol Oct 05 '26

Neither do I, which is why it tried to break containment lol

1

u/mr0il Oct 05 '26

What model?

1

u/bjorneylol Oct 06 '26

Don't remember - probably Gemini flash since that's typically what Junie runs on