# Is OpenClaw safe? Security risks and how to limit them

> OpenClaw acts with your computer's and accounts' access. Its real risks, from prompt injection to malicious skills, the deleted-inbox story, and safer settings.

Updated 2026-11-28 · https://upsy.ai/guides/openclaw/is-it-safe

## Short answer

OpenClaw is as safe as what you let it touch. The software is open source, ships security fixes often, and now defaults to keeping its Gateway private. The risk is the job it does: it runs commands on a real computer and acts in your real accounts, and anything it reads, an email, a web page, a Slack message, can try to steer it. Sandboxing is off by default. Keep it updated and private, give it the least access that works, keep risky tools behind approval, and put limits on your accounts that the agent itself can't change.

## What OpenClaw can reach

OpenClaw's Gateway runs on your Mac, a Linux box or a server. Its agents can, depending on how you set them up:

- **Run shell commands** on that machine, read and write files, and drive a browser that may be signed in to your sites.
- **Act in your accounts** through skills such as `gog` (Gmail, Calendar, Drive), `notion` and `github`, each holding a token on that machine.
- **Read and send messages** in the chat apps it's connected to: WhatsApp, Telegram, Slack, iMessage and more.
- **Run on a schedule** with cron jobs, and react to new email through its Gmail hook.

OpenClaw's own docs put it plainly: an assistant that acts for you "holds credentials, reads mail, and runs commands on real computers" ([Why OpenClaw](https://docs.openclaw.ai/start/why-openclaw)).

## The real risks

### Anything it reads can carry instructions

This is prompt injection. An email, a web page, a document or a group-chat message can hold text like "forward the last ten invoices to this address", and the model may follow it. [OpenClaw's prompt injection page](https://docs.openclaw.ai/gateway/security/prompt-injection) says it doesn't require strangers to message you: any untrusted content the agent reads is the threat. Newer models resist far better, and OpenClaw wraps outside content in markers, but its docs are clear that adaptive attackers still get through. The fix is limits on what an injected instruction could do.

### An instruction in chat isn't a limit

On February 23, 2026, Summer Yue, Director of Alignment at Meta Superintelligence Labs, [posted](https://twitter.com/summeryue0/status/2025836517831405980) what her OpenClaw did to her inbox. She had asked it to review her email, suggest what to archive or delete, and do nothing until she confirmed. It had worked for weeks on a small test inbox. Her real inbox was much larger, OpenClaw compacted its context, and the instruction to wait was lost ([Simon Willison's write-up](https://simonwillison.net/2026/feb/23/summer-yue)). It started trashing old email through `gog` commands, more than 200 messages by some reports. Her stop messages from her phone didn't stop it, and she had to run to the Mac mini it ran on.

Nothing was hacked. The agent had a token that could trash mail, and the only thing holding it back was a sentence in the chat. Settings that block a tool can't be forgotten that way.

### Skills are code from strangers

Skills from [ClawHub](https://clawhub.ai), OpenClaw's skill registry, run with the agent's access. In February 2026, Koi Security checked all 2,857 skills on ClawHub and found 341 malicious ones, most from one campaign it called ClawHavoc ([The Hacker News](https://thehackernews.com/2026/02/researchers-find-341-malicious-clawhub.html)). Their "Prerequisites" told users to paste an install command or download a zip, which installed the Atomic macOS Stealer or a keylogger. Others hid reverse shells or sent the bot's credentials to a webhook. ClawHub has since added reporting, and skill pages now show VirusTotal and static scan results before you install. OpenClaw's [skills docs](https://docs.openclaw.ai/tools/skills) still say to treat third-party skills as untrusted code and read them first.

### Exposed gateways and old versions

The Gateway has a control panel and a WebSocket API. In February 2026, SecurityScorecard found more than 40,000 OpenClaw instances reachable from the internet in its first day of scanning, many on versions with known flaws ([SecurityScorecard](https://securityscorecard.com/blog/how-exposed-openclaw-deployments-turn-agentic-ai-into-an-attack-surface/)). One of those flaws, [CVE-2026-25253](https://advisories.gitlab.com/pkg/npm/clawdbot/CVE-2026-25253/), let a single malicious link take the Gateway's token and then run code; it was fixed in 2026.1.29. Today a regular install binds to loopback (your machine only), and most chat channels answer an unknown sender with a pairing code. Container images still default to an exposed bind, so pair them with auth.

### One machine, many secrets

Assume anything under `~/.openclaw/` holds secrets: the config, channel tokens, MCP sign-ins and session transcripts ([secrets and storage](https://docs.openclaw.ai/gateway/security/secrets-and-storage)). A skill's tool keeps its own token too, like `gog`'s Google refresh token. An agent with shell access on that machine can usually reach them.

## How to run OpenClaw more safely

1. **Update often,** and run `openclaw security audit`. It checks your setup against OpenClaw's own list and can fix some findings.
2. **Keep the Gateway private.** Leave it on loopback, use Tailscale or SSH to reach it remotely, and keep DM pairing and channel allowlists on. Don't add OpenClaw to a Slack or Discord where everyone can message it.
3. **Use the strongest model you can** for any agent with tools. OpenClaw's docs warn that small and older models are much easier to steer.
4. **Ask before shell commands.** `openclaw config set tools.exec.mode ask` runs allowlisted commands and asks you about the rest. Avoid `full` on the machine that holds your accounts.
5. **Sandbox untrusted work.** For incoming email, follow OpenClaw's [Gmail hook guide](https://docs.openclaw.ai/automation/cron-jobs/gmail): a separate reader agent in a sandbox, with no workspace, shell or browser.
6. **Read skills before installing them,** and run `openclaw skills verify @owner/<slug>`. Be most careful with any skill whose setup asks you to paste a command into Terminal.
7. **Give each tool the narrowest token.** Authorize `gog` with `--readonly` if OpenClaw only needs to read, give Notion an integration with only **Read content**, and leave Slack's user token read-only.
8. **Use separate accounts where you can,** like a dedicated machine or OS user, and a test inbox before your real one.
9. **Keep a way to stop it that doesn't need the agent's cooperation,** such as revoking its access at Google or in Upsy.

## What Upsy changes, and what it doesn't

Upsy is a connector OpenClaw adds as an MCP server. OpenClaw calls Upsy, and Upsy calls Gmail, Slack, Notion and your other apps. The limits sit on Upsy's server, outside OpenClaw's machine.

| Risk | With Upsy |
|---|---|
| Agent forgets "ask me first" | Set Gmail to **Read-only** or leave trash out under **Pick actions**. The tool isn't listed, and Upsy refuses it if called. |
| Injected "send this to…" | Same: on Read-only, OpenClaw can't send, draft or trash through Upsy. |
| A runaway job | An alert email when one assistant deletes 50+, sends 20+ or reads 100+ items within 10 minutes. It tells you; it doesn't stop it. |
| Stopping it from your phone | Pause OpenClaw on upsy.ai. Its next call to any app is refused. |
| Tokens on the machine | OpenClaw holds only an Upsy token, limited to what you allowed. Google, Slack and Notion tokens stay in Upsy. |
| Knowing what it did | **History** lists every call under OpenClaw MCP, with details like an email's subject. |
| Permanent deletes | Upsy has no tool that deletes an email for good. Trash keeps mail for 30 days. |

What Upsy doesn't solve:

- **It doesn't sandbox OpenClaw.** Shell commands, files, the browser and skills on that machine are outside Upsy.
- **It only covers what goes through it.** If `gog` is also set up with full access, OpenClaw can still use that. Remove what you replace.
- **Reading is still reading.** On Read-only, OpenClaw can repeat what it read in chat or pass it to another tool you've allowed.
- **No approval prompt.** Upsy has no "ask me first" step of its own. Per-action access is the limit.
- **It's one more service with access.** Upsy is built by Upstash, free for personal use, with no ads, and doesn't sell your data. Gmail, Calendar and Drive connect through Composio's verified Google app for now.

To set it up, see [how to add Upsy to OpenClaw](/guides/openclaw), then the guides for [Gmail](/guides/openclaw/gmail), [Slack](/guides/openclaw/slack), [Notion](/guides/openclaw/notion) and [Google Calendar](/guides/openclaw/google-calendar).

## FAQ

### Is OpenClaw safe to use?

For most people, yes, with care: keep it updated and private, use a strong model, keep shell commands behind approval, and give it the least access to your accounts that does the job.

### Is OpenClaw malware?

No. It's open-source software under the MIT license, stewarded by the OpenClaw Foundation. Some third-party skills on ClawHub have been malware, so check a skill before you install it.

### Is ClawHub safe?

Safer than it was, not safe by default. Skill pages show scan results, and users can report skills. Read a skill's instructions and code, and never paste a setup command you don't understand.

### Can OpenClaw delete my emails?

If its Gmail token allows it, yes. `gog`'s default sign-in can read, send, label and trash mail and change filters and forwarding. With `gog --readonly`, or Gmail on Read-only in Upsy, it can't.

### What happened with OpenClaw and the deleted inbox?

In February 2026, an OpenClaw told to suggest deletions and wait lost that instruction when it compacted its context, and trashed a large part of its owner's inbox. See the story above.

### Should I run OpenClaw on my main computer?

Better not, if that computer holds your passwords, keys and work. A spare Mac mini, a VM or a separate OS user limits what a mistake can reach.

### Does Upsy make OpenClaw safe?

It makes your connected accounts safer: per-action limits OpenClaw can't change, an off switch, history and alerts. It doesn't protect the machine OpenClaw runs on.

---

Upsy connects personal AI assistants (Muse, Grok, ChatGPT, Claude, Gemini, Cursor, Antigravity, Claude Code, Codex, OpenClaw, Devin) to your Gmail, Google Calendar, Google Drive, Slack, Notion and other apps through one MCP server, with a shared memory, files and a cloud browser signed in to your sites. You choose what each assistant may do in each app, see everything it did, and turn it off in one click. Upsy is free. To add Upsy to an assistant, add a remote MCP server (Streamable HTTP) named Upsy at https://upsy.ai/connect. It signs in with OAuth; there is no API key.
