Agent skills are a new infection vector: skill exchanges have already seen viruses, and the first skill in the OpenClaw catalog outright asks you to “hand over your passwords.” When you put an agent platform on your personal computer, you are “granting access to an unknown group of people who can think faster than you and act faster than you.” Below is a breakdown of real incidents and the practical defenses community members are assembling: isolation, access mode and auditing, hooks with guard scripts, and encrypting secrets with two keys. Practices and figures are current as of fall 2026.
Cases Worth Remembering
The OnePassword skill from an open catalog: “just give us your passwords” — in the assessment of a practitioner at one meetup, from a security standpoint it is “a complete no-no.” Formally, such a skill works: it really does collect passwords. The problem is that it works for the skill’s author, not for you. In her breakdowns of local agents, Tina Huang notes that skill exchanges have seen cases of viruses and deleted emails, and Claude Hub has had security problems and fraud. A separate vector is malicious MCP servers: someone else’s server is a convenient channel for injecting instructions into the agent’s context, and the user usually cannot see what exactly the server handed to the model.
The price of the mistake is shown by the key-leak case: a meetup participant published keys on GitHub along with a workflow — within 10 minutes the keys were stolen and about 200 spam emails went out from the mailbox. We covered this incident separately: how published keys get stolen in 10 minutes and what an attacker manages to do in that time. Another vector is helper tools that look harmless: a browser weighing only 12 MB quietly bypasses captchas and site protections — convenient for your own agent and dangerous when the agent is someone else’s or has been compromised. In OpenClaw the picture is made worse by the architecture: the framework opens all ports, people focus on “making it work,” and the result is “one big sieve.” What such an agent looks like running around the clock is covered in the material on OpenClaw autonomy.
The main attack vectors and defense layers are summarized in the table below — it also works as a checklist when you connect a new skill or connector.
| Attack vector | Community example | Defense |
|---|---|---|
| Malicious skill | The OnePassword skill from an open catalog: “just give us your passwords” | Read a foreign skill with your own eyes first, run it second; sources must be vetted |
| Viruses via exchanges | Cases of viruses and deleted emails in skill exchanges; Claude Hub has had security problems and fraud | Isolation: a separate machine, a sandbox, or an external VPS |
| Malicious MCP server | Someone else’s server is a channel for injecting instructions into the agent’s context | Vetted servers only; review permissions once a month |
| Key leaks | Keys on GitHub along with a workflow: stolen within 10 minutes, about 200 spam emails sent from the mailbox | An encrypted vault with two keys; secrets never in code, email, or a repository |
| Helper tools on someone else’s agent | A 12 MB browser quietly bypasses captchas and site protections | Read-only until trust, activity auditing, minimal permissions |
Isolation: a Separate Machine, a Sandbox, a VPS
The top recommendation from practitioners: do not install an agent platform on your main work PC. The options are a separate server with no work files on it, a sandbox or isolated environment, or an external VPS. The logic is simple: an agent that can write files and reach the network will sooner or later get access to everything stored on the machine — the only question is whether there is anything worth stealing there. For how an isolated environment is set up in practice, see the material on a sandbox for your agent.
A telling configuration from the local-station case: two servers split by task — No. 1 on an 8 GB card for transcription and voice, No. 2 with 24 GB AMD for text and images; the working files of NDA projects live outside the agent’s reach — NDA code must never be thrown into the cloud under any circumstances. For why it is easier to keep sensitive projects on local models, see the separate material. A telling detail: the practitioner runs Claude Code in permission-skip mode (Dangerously Skip Permissions) — but on a separate machine where there is nothing to steal. That is an important contrast: the mode itself is not dangerous; what is dangerous is that mode on a machine holding personal data.
Access Mode and Auditing
Tina Huang’s rules: read-only until trust — during the first period connectors only read, and write access is switched on selectively, for a specific task; an activity audit roughly every hour or at least once a day; separate email addresses for agents, not personal ones; a monthly review of connector permissions — anything unnecessary gets switched off. Every rule costs less than the consequences it prevents: a separate mailbox limits the damage from a leak, the read-only period shows how the agent actually uses its access, and a regular review keeps the permission set from quietly ballooning.
The same logic covers “never trust foreign workflows”: someone else’s script or skill is read with your own eyes first and only then run. This applies both to skills from catalogs and to examples from community chats: before you add a foreign skill to your folder, you should understand exactly what is written in it — the skills-folder practice helps you tell a normal skill from a suspicious one. Installing OpenClaw on a personal PC means “granting access to an unknown group of people”: that group can think faster than you and act faster than you, and tracing its steps after the fact is hard.
Hooks, Guard Scripts, and Double Blocking
The technical layer of defense is hooks. A guard script on PreToolUse checks tool calls before they execute: destructive commands, keys inside commands, forbidden file paths. The mechanics are simple: the hook receives a description of the upcoming call on standard input, and the return code decides the call’s fate — exit code 2 blocks the action, zero lets it through. The wiring in settings.json looks like this:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash|Edit|Write",
"hooks": [
{
"type": "command",
"command": "python3 /home/user/guards/guard.py"
}
]
}
]
}
}
The guard.py itself, schematically: a skeleton of the idea, not a finished product.
# guard.py — a schematic skeleton for checking a call
import sys, json
PATTERNS = ["rm -rf", "mkfs", "DROP TABLE", "AKIA", "sk-", "ghp_"]
data = json.load(sys.stdin)
cmd = data.get("tool_input", {}).get("command", "")
for pattern in PATTERNS:
if pattern in cmd:
print("BLOCK: match with a forbidden pattern")
sys.exit(2) # exit code 2 blocks the tool call
sys.exit(0)
The rule for expensive mistakes is double blocking: a lexical filter (patterns — instant and free) plus a semantic one — a call to a small model with the question “can this command or edit cause harm.” The lexical layer catches the known; the semantic layer catches the rephrased: “clean out the directory” contains no forbidden pattern, but the semantic layer will notice that wording. When a call is blocked, the model itself receives the error text from stderr — it sees the reason for the refusal and can adjust its plan. Where a mistake is expensive, use two layers; where it is cheap, the lexical filter is enough. For a full breakdown of events, return codes, and ready-made scripts, see the material on hooks and guard scripts.
Secrets: Encryption with Two Keys
Ready-made vaults turned out to be inconvenient: in the participant’s version of n8n there is no convenient built-in key store — variables are available only in the paid tiers, while Google and GitHub offered nothing convenient; Vaultwarden requires two-factor authentication and two keys — “too much fuss.” Writing keys into Postgres, the meetup participants called “sketchy”: the database itself encrypts nothing; Claude suggested Docker Secrets and encrypted files — a workable but less convenient path.
So a community member wrote his own secret manager: a Docker container next to n8n or on a separate server, built “on the simplest tools,” with low resource usage. The scheme uses two keys: an access key for authentication and an encryption key; secrets are encrypted inside the database — if only the database leaks, they cannot be decrypted (if the whole server is compromised — alas, that is another matter). Functions: show all keys, add an entry, filters by prefix, suffix, and substring match, bulk deletion. In the demo, an n8n node read the OpenRouter keys of three users and made three parallel requests, each with its own token; the requests took 19, 18, and 18 seconds.
Frequently Asked Questions
Does this matter for personal use? The “give us your passwords” skill case and the viruses in exchanges concern anyone who installs other people’s skills; a personal machine is the main trophy: it holds email, messengers, banking apps, and the keys to everything else.
Where do you start with defense? A separate machine or sandbox, read-only until trust, an audit every hour or at least once a day — the basic perimeter takes an evening to set up. Hooks and a secret vault come as the next step.
Why two keys in the secret manager? It separates authentication from encryption: a leaked database without the encryption key is useless to an attacker — the data simply cannot be read.
Do hooks slow the agent down? The lexical filter takes milliseconds; the semantic one takes about a second per call to a small model; for destructive operations that is imperceptible against the action itself.
Agent security is hygiene, not paranoia: a separate machine, minimal permissions, double blocking of dangerous actions, and secrets in an encrypted vault with two keys. Your action: check right now which skills and connectors your agent has and what permissions they carry — if you cannot explain the list, switch them off. Practices are current as of fall 2026.
