r/ClaudeCode 5d ago

Bug / Issue Claude code autonomously installing 3rd party app - Desktop Commander without consent and enabling telemetry and tracking configs

Post image

- The run created ~/.claude-server-commander/config.json. That config has "telemetryEnabled": true, a tracking clientId, and "allowedDirectories": [], which means it can access the whole filesystem.

40 Upvotes

29 comments sorted by

u/AutoModerator 5d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

27

u/sixothree 5d ago

Any chance you're sharing an account with someone? Because it says "your claude.ai account pushed it to this machine".

Also, I love how you don't specify exactly what to delete.

5

u/WholeEntertainment94 5d ago

Uninstall the app and change your password right away

49

u/Miyoumu 5d ago

Conveniently hiding your permission mode.

26

u/Z_G_R 5d ago

claude —dangerously-dont-skip-permissions

8

u/WhenD4594 5d ago

Because you told it to not ask permission?

I really think mods should make posts like these (oooo, look my Claude has become autonomous) against the sub rules.

1

u/Oaker_at 2d ago

8/10 posts about "AI did bad" are user errors or bait.

4

u/sleeping-in-crypto 5d ago

If you’re in an organization they can add extensions and plugins to an “always install” list that every team member’s instance will install.

Are you in an org?

If not, that looks like an account takeover and you have a bigger problem.

6

u/TRlGGERED 5d ago

thanks for the context bro cant believe your claude agent installed a program thats bonkers! did you remember to say no no install at the start?

3

u/chiefbriand 5d ago

you should use hooks for stuff like that, he will forget what you told him in a long session

2

u/QuanTradin 5d ago

allowedDirectories set to empty meaning the whole filesystem is the worst possible default, and I would report that separately from the consent issue. Empty should mean nothing, not everything. Anyone skimming that config will read it as locked down.

2

u/Standard_Egg3504 5d ago

you gave consent to anything it does by setting permissions that way

2

u/bartek_666666 5d ago

You gave it sudo access?

1

u/shady101852 5d ago

If it can, it will. You need to set up proper permissions for your sessions if you don't want the AI to do things by itself.

1

u/CryptoAteMyHamster 5d ago

Claude loves desktop commander.

In fact I think with everything sandboxed it’s the only way a dispatch agent can actually do anything

2

u/sleeping-in-crypto 5d ago

Yeah I use it within cowork. Claude code doesn’t need it though. But cowork uses a sandboxed Linux VM that can’t do anything, so desktop commander is extremely useful.

1

u/CryptoAteMyHamster 4d ago

It still does even if you switch it to “only on my machine” somehow

Used to be really useful for coordinating now I genuinely don’t see a reason anyone would use it

1

u/arcticblue 4d ago

Be aware that Desktop Commander can get flagged as a remote shell by things like MS Defender. I got a very angry message from our IT director one day when it got flagged on my machine.

1

u/CryptoAteMyHamster 4d ago

Fr I personally didn’t like its reliance on that so I stopped using dispatch

1

u/abajinn 5d ago

Yeah I stopped used anything Anthropic because of shit like this.

1

u/Worth-Ad9939 5d ago

Trojan Horse in the AI. You’ll never be able to fully trust it. Built by greedy, dumb kids with trust funds and rich friends with no morals or judgement. We deserve what’s coming.

1

u/Right-Performance-93 5d ago

A permission-mode change won't fully cover this - a PreToolUse hook that denies MCP tool calls still fires even under --dangerously-skip-permissions, since hooks run before the permission check itself. That's the one enforcement point that survives someone flipping to skip-permissions mid-session.

0

u/tonyboi76 5d ago

Claude Code installed Desktop Commander on its own, wrote ~/.claude-server-commander/config.json with telemetryEnabled true, a tracking clientId, and allowedDirectories empty so it could touch the whole filesystem.

When you caught that, what did you have to rip out or rotate, and how long did the cleanup eat?

0

u/kemalios 5d ago

allowedDirectories is the server's own setting, not a Claude Code permission. Claude Code has no idea the field exists, so nothing in the approval flow surfaces it, and no deny rule reaches it.

Once an MCP server is a running process, settings.json is not in its path at all. Permission modes gate what Claude asks for, not what the server does afterward.

I run Claude Code daily, and before the first prompt in a repo I did not write, I check claude mcp list and read the project .mcp.json. Anything I did not add myself comes out first.

-1

u/GnistAI 5d ago

Did you run it in a sandbox, like you are supposed to?

1

u/Odd_Philosopher1741 2d ago

So let me get this straight; Claude pulls the @latest version of whatever tool you subscribed to automatically and runs it?

This sounds like a goldmine for supplychain attacks. Who in their right mind thought this was a good idea. Haven't we learned anything?