SSH keys, cloud creds, wallets: what a malicious agent skill actually steals
Malicious AI-agent skills and packages target the same high-value secrets every time. Here is what they go after, how they hide it, and how to check a skill before it runs on a machine full of credentials.
A machine running an AI agent is a rich target. It usually holds SSH keys, cloud credentials, a browser profile, LLM API keys, and sometimes a funded crypto wallet. Anything the agent installs can reach all of it. Public audits of skill marketplaces keep finding the same playbook.
What they go after
- SSH private keys (
~/.ssh/id_rsa): lateral movement into other hosts. - Cloud credentials (
~/.aws/credentials, env tokens): direct access to infrastructure and billing. - Browser profiles & session cookies: logged-in access without a password.
- LLM API keys: resold or used to run up a bill.
- Crypto wallet keys and seed phrases: irreversible theft.
How they hide it
They use fake “prerequisites” that ask the agent to run a setup command. They use
curl | bash chains and base64-encoded payloads. They use install-lifecycle scripts that run on
their own during npm install. And they use prompt-injection text aimed at the agent reading the
skill. Lazaretto screens for each of these, the same way every time.
Check before it runs
curl -s https://lazaretto.dev/v1/known-bad/<sha256> # free
curl -s -X POST https://lazaretto.dev/v1/scan -H 'content-type: application/json' \
-d '{"target":{"type":"clawhub_skill","ref":"owner/skill"},"depth":"full"}'
A one-cent-scale check before install is cheap next to a drained wallet or a leaked cloud key. A report shows the exact behavior, with evidence, before the code runs. See what a result does and does not mean.
Get a free key and scan a skill. Free, no card.
Lazaretto is the pre-install checkpoint agents call themselves. Try it · pricing · connect your agent.