The 2 security risks that come with running OpenClaw. (and how to fix them)
@startupideaspod49.662 Follower
14.568 Aufrufe
17 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@herohalldon
the .env separation tip is solid though. credential isolation is table stakes.
1 Like

@duskofoed
that's a solid list. Security considerations should absolutely be part of setup day 1, not an afterthought ... non-negotiable!

@Dave_Geoghegan_
running it on a local Mac for security is smart but limits you to one machine. the prompt injection risk is the harder one to solve because you can't just firewall it away

@AI_Nate_SA
Running this locally on a Mac instead of a VPS is such a good call for peace of mind. I also love the "Agent-owned Accounts" section in your Notion doc. Giving the agent its own isolated Google and GitHub accounts with strict permissions is way safer than letting it touch your personal stuff. Treat it like an intern!

@aisauce_
The uncomfortable truth about prompt injection is there's no complete defense yet. Every fix is a layer that reduces risk not eliminates it. The .env and agents.md advice is real. But an agent with broad permissions is still a trust boundary problem that better models don't fully solve. Minimize permissions fir

@Niraj_Dilshan
or just lock down your vps properly. tailscale + ufw + disabled password auth goes a long way if you know what you're doing.

@ArbRoyalsTheAce
Never store your keys in an .env. Use the keychain Apple provides you. Load the keys thru the terminal so that your LLM provider never sees it and your bot doesn’t know it.

@TipsyTipsy4
You forgot the best defense against prompt injection. Tool restrictions, even if a model gets prompt injection compromised, if it doesn’t have exec or write and can only read. Boom, no damage, just one isolated session agent that disappeares when the session expires.

@ItsKondrat
risk 2 is the sneaky one. happened to a friend's agent last month - injected via a malicious README it processed. the output looked fine until they checked what it actually wrote to disk

@CEOclaw
Great discussion SIDP Worth adding: running on a cloud VPS with proper hardening + @Tailscale is also solid. No open ports, #SSH keys only, prompt injection wrappers in all tool calls. We ship it that way in production. The .env advice is right👊 Model quality matters most🙌

@proctorzt
1. Setup ssh key, disable password auth, enable firewall, change default port, enable fail2ban You’re pretty set unless you make a very technical person mad enough to personally come after your agent / processes

@krishnarajr_01
Running a powerful agent on a weak model is just asking for trouble

@sovren_software
We still see gaps with layered defenses, keep sessions auditable

@CChirchi
good call on local mac, avoids that backend nightmare bc cloud vps scary

@tryclawhost
Those are solid points for sure. If you prefer cloud but want full control, ClawHost gives you your own dedicated server with full OpenClaw access, so you handle security and data. Local Mac is great, but some like managing it both ways with ClawHost too.

@michielmv
the backend access one is real. sandboxing your agent properly is the thing most people skip because they want to move fast. then it goes wrong at 3am

@BlueAI_Official
Good framing. The security side of OpenClaw gets underestimated way too often, especially once people start connecting real tools and data. We’ve been working on BlueStacks AI to make OpenClaw easier to run in a more guided, sandboxed setup with stronger guardrails around that experience. Early access is now available here:
