Live data from Hacker News

Grok CLI uploaded the whole home directory to GCS

twitter.com

351–360 of 434 posts

Re: Grok CLI uploaded the whole home directory to GCS

#351

Earlier quoted context omitted.

yes, this is basically experimental tech, if used with open source harnesses. if used with proprietary harnesses, treat as actual malware.

Technically open source harness like opencode is more "malwarey" than claude code for example because its default permissions are very open.

I disagree with this, Claude code does many malware like things and has its source obfuscation. Plan mode doesn’t even work.

Re: Grok CLI uploaded the whole home directory to GCS

#353

So many of the replies are saying that they should've restricted access using .md files and whatnot. Is really any guarantee that they even follow those? It seems like even if you ask pretty please don't touch those files, there's a chance they will. So many people have just willingly installed spyware on their computers and big tech calls this the next big thing.

Claude definitely do not respect all my rules, it often ventures into other folders, most often other projects on the same machine that was greenlit before but not from the current projects' side. One other anomaly I had in the last month: I have two linux users on my laptop, one for work, one for personal. On my work account, it asked me if I wanted to continue with project x, which is in my personal account and not present at all in my home directory with work stuff. So somehow the memory system is keeping context where it shouldn't. Interesting I used this learning to improve the agent framework/harness I have running at work: it now creates a new linux user for each agent which have much stricter rules on how it can read/write to the system, and it is also no longer running as root. Much safer now. Still don't trust it 100% though.

Re: Grok CLI uploaded the whole home directory to GCS

#355
post #339
post #208

Earlier quoted context omitted.

Yeah sounds like semantic indexing that cursor (pending acquisition by spacex/xAI) does. https://cursor.com/docs/agent/tools/search

They upload your ssh keys too?

They might, if you use your home directory as the project directory, given that they only mention using gitignore as the blacklist.

Re: Grok CLI uploaded the whole home directory to GCS

#356

I made a tool to solve this problem (at least on Linux, though I believe there's a way to achieve something similar on MacOS): https://github.com/swelljoe/flar It uses bubblewrap to instantly construct a container around just the agent config, auth and history and the project path. The agent or any command it runs can't reach outside of it even if you tell it to (or, more dangerously, a random prompt injection from t…

"FLAR is the Fast Light Agent Restrictor. It runs on rocks called gars."

what is rocks and what is gars?

Re: Grok CLI uploaded the whole home directory to GCS

#358

Earlier quoted context omitted.

If the agent you are running really wanted to it could easily find a way to mount the windows folders and read them all. WSL isn't a security boundary, you are only barely more protected than people running grok in their home directory.

it is not about "security" but it is more about confinement. And how could it do that without sudo rights?

Still, you are barely more protected than someone running this as non root at home. By your same logic you could “confine” the agent to any arbitrary directory on your filesystem and say it’s sufficient.

Re: Grok CLI uploaded the whole home directory to GCS

#359
post #138

Earlier quoted context omitted.

If you decide that your entire home directory is the project, as the OP did by setting the repo_path to ~/, then, well… I mean, if you ask me, I don’t recommend it, but it’s your computer and your free will.

Then that should be considered a 'nuke button' and nuke buttons don't find themselves into well-designed software for the simple fact that an end user shouldn't have to worry about shooting themselves in the foot. Again, with good software.

Granted, but we’re talking about agents, which fundamentally presumes the obsolescence of concepts like “end user” and “good software”.

Re: Grok CLI uploaded the whole home directory to GCS

#360

So is X going to claim the user disabled something the second before everything went south? That's what the owner's other company does.

the user literally added their home directory as a trusted directory. there's nothing to "claim"

The question "do you trust this directory?" is a world away from "do you consent to upload this directory and all of its contents to a third party?".

My assumption when asked "do you trust this directory?" is that I am being asked if I am certain I understand what is in the directory and that it won't include some sort of prompt injecting attack. I would never dream that I was consenting to the complete exfiltration of that directory.

Post reply on HN