ClawHub Skills Keep Shipping Hardcoded API Keys. Here's What the Audits Actually Found.
Independent security researchers have already done the audit most teams are afraid to ask for. The numbers are worse than a spot check would suggest.
Key takeaways
- -Snyk's own audit of nearly 4,000 ClawHub and skills.sh skills found more than a third had at least one flagged security issue
- -A separate, narrower report put the share of skills that had facilitated exposure of API keys, credentials, or card details at roughly 1 in 14
- -Cisco's AI Defense team found OpenClaw's single most-installed community skill, at the time ranked first, had nine vulnerabilities, two of them critical
- -Every one of these traces back to the same root cause: a skill author's code, not the agent's, handling a secret directly instead of through anything that checks for exactly this
Independent audits already answer this. Snyk's ToxicSkills study checked nearly 4,000 skills pulled from ClawHub and skills.sh, and found that more than a third had at least one flagged security issue, with roughly 1 in 14 skills facilitating the exposure of an API key, a credential, or credit card details. Here is what that research, and a separate audit from Cisco, actually found.
The audit already happened
We went looking for whether anyone had systematically checked ClawHub skills for exactly this problem, rather than running a small spot-check of our own and presenting it as if it were comprehensive. It turns out multiple independent security teams already had, at real scale, and the results are public.
What Snyk found
Snyk ran a broader audit, published as its ToxicSkills study, covering nearly 4,000 skills pulled from ClawHub and skills.sh. The reported finding: more than a third of the skills audited had at least one flagged security issue. A separate figure reported alongside that research put the specific share of skills that had facilitated the exposure of API keys, credentials, or credit card details at roughly 1 in 14.
The mechanism Snyk's researchers described isn't exotic. A skill's SKILL.md instructs the agent, in plain language, to handle a credential directly: save it to memory, pass it in a header, include it in a request to a third-party endpoint. In a traditional codebase, a hardcoded key is a static artifact you can grep for. In an agent skill, the same pattern becomes something closer to an active channel: the instruction tells a capable model to actively move the secret around, through conversation context that can itself end up logged, cached, or sent to a model provider.
What Cisco found
Separately, Cisco's AI Defense team examined OpenClaw's single most-installed community skill, a skill that had, at the time, been gamed into the top ranking on the registry. Their reported findings: nine distinct vulnerabilities, two of them rated critical, including the ability to silently exfiltrate data to an attacker-controlled server. This wasn't an obscure, low-traffic skill. It was the one most people installing from the top of the list would have picked.
Cisco's team went on to release an open-source scanner combining static analysis, behavioral dataflow analysis, LLM-based semantic review, and VirusTotal integration, specifically because catching this pattern reliably needs more than a plain secret-detection regex. A credential doesn't have to appear as a literal string to leak; an instruction that tells the agent to echo it back, or forward it somewhere, leaks it just as completely without ever writing the key itself into the skill file.
Why this keeps happening
The root cause is the same across every audit: skill authors writing their own HTTP calls, with credentials handled inside the skill's own instructions or scripts, because that's the fastest way to make a skill work. Nothing in that path checks whether a given call is sending a secret somewhere it shouldn't, because the check would have to live outside the skill itself, examining what the call is actually doing before it's allowed to happen.
ClawHub's own response, a VirusTotal partnership for scanning published skills, and OpenClaw's security-advisory mailing list, are real mitigations, and worth using. They also both operate after a skill has already been written and published; they catch what's already there rather than removing the underlying incentive for an author to write a raw HTTP call with an inline key in the first place.
What actually removes the incentive
The pattern breaks when a skill author has no reason to touch the credential at all. A skill built to call through Swytchcode's execution layer references a canonical method, stripe.refund.create, slack.chat.postmessage.create, and never sees the credential in its own code; Swytchcode's runtime injects it at execution time, outside the model's context entirely. There's nothing for the skill to hardcode, because the skill was never handed the key to begin with.
This doesn't retroactively fix the thousands of skills already on ClawHub built the old way. It does mean a newly built skill, or one rebuilt on top of swytchcode-operator, structurally can't reproduce the exact failure every one of these audits found, because the credential never enters the part of the system an author or a compromised skill can read.
FAQ
Does a VirusTotal scan on ClawHub catch this kind of leak?
It catches a meaningful share of known malicious patterns and flagged skills, which is genuinely useful. It's a detection layer applied after a skill exists, not a structural prevention of an author writing credential-handling instructions in the first place, so it should be read as a mitigation, not a guarantee.
Is this specific to OpenClaw and ClawHub, or does it happen on other registries too?
The audits cited here covered ClawHub and skills.sh specifically, but the underlying mechanism, a skill author's own instructions or code handling a credential directly, isn't specific to either registry. Any skill or plugin system where authors write their own API calls has the same structural exposure.
If I've already installed skills from ClawHub, how do I know if one of mine is affected?
There's no shortcut that doesn't involve checking: reading the skill's own SKILL.md and any scripts it ships for places a credential is referenced or transmitted, or running a scanner built for exactly this, like Cisco's open-source tool or the checks ClawHub's own VirusTotal integration already runs against published skills.
More from the blog
Skills Your Agent Writes for Itself: How Long Do They Actually Last?
Self-improving agents are genuinely good at writing skills from experience. Nobody's asking the follow-up question about how long those skills stay correct.
I Asked OpenClaw to Refund a Customer. It Told Me to Go Write an MCP Server.
The agent understood the request. It just had no way to act on it, and the fix it suggested was a weekend project. Here's the one-command version.
We asked our Hermes agent if it was leaking API keys. It printed one into the chat.
Your Hermes agent keeps API keys in more places than you think, and some go to your AI provider with every message. Swytchcode's free API Key Leak Check finds them in seconds and explains the fix in plain words.
