# TrustMe - Security Kit for AI Agents

> Scan a skill before you install it (skillscan), catch quiet edits to your agent's files after (signed baseline, sandbox detonate, auto-restore), and re-sign only with a code shown on your PC screen.

TrustMe - Security Kit for AI Agents is a free AI agent skill on Agensi by Khang Chu Gia, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Khang Chu Gia](https://www.agensi.io/creators/khang-chu-gia)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.7
- Last updated: 2026-11-26
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/trustme-security-kit-for-ai-agents
- Tags: security, node-js, sandboxing, integrity-monitoring, devops

## About this skill

**New in v3.6.2:** fewer false alarms in skillscan. On Anthropic's official skills repo the verdict went from BLOCK (12 HIGH) to REVIEW (0 HIGH); planted malware is still blocked. Large documentation-heavy repos can still raise false alarms: read each finding.

**v3.6.1:** now free (source also on GitHub: github.com/cgk28/file-guard); fixed a false alarm in the new yara-lite rules.

**v3.6:** the re-sign approval code is shown only on your PC screen and never sent to Telegram, so whoever controls your Telegram cannot approve (3-minute code). `skillscan` gains a structure scan (JS/Python), yara-lite signatures and dependency checks (typosquats, git/URL deps, OSV.dev with --online), and every report lists what was NOT checked. README has a threat model: malware with Administrator/SYSTEM on the same PC is still not stopped.

**v3.5:** `skillscan` reads a skill folder, zip or GitHub link before you install it and answers CLEAN / REVIEW / BLOCK with plain reasons. On Windows the optional SYSTEM signer keeps the signing key where your own account cannot read it.

Your agent obeys SOUL.md, AGENTS.md, memory, skills, hooks and config. If anything (or a prompt injection) quietly edits them, the agent follows the new instructions and you never know. file-guard is the wall around those files.

### What you get
- **Signed baseline** (Ed25519) of core files, skills, hooks, MCP and config, including config outside the workspace. The agent can check it but cannot quietly rewrite it.
- **Scan that sees through tricks**: invisible Unicode, instruction-override phrases, secret exfiltration, encoded commands, also after deobfuscation (shell tricks like c${u}rl, UTF-16 files, base64 payloads, files up to 4 MB).
- **Detonate**: run a new or changed script inside a throw-away container (no network, read-only, capped) with decoy secrets and see what it TRIES to read, connect to or run. Needs podman or docker.
- **Exact diff + auto-restore**: shows the changed lines, restores the signed copy, keeps the tampered file as evidence.
- **Tamper-evident log with daily external anchor**: deleting or rewriting history is detected.
- **Independent watchdog** (Windows scheduled task, cron on Linux) that checks even when the agent is off and alerts once per problem on your own channel.
- **Encrypted backups** (AES-256-GCM) with a restore drill.
- **doctor**: plain-language green/red health report with the command to fix each red line.
- One-command install, zero dependencies (Node 18+).

### Honest limits
Tested on Windows and Linux (Debian container); macOS code paths are written but NOT tested. Default mode seals the signing secret with the OS, which stops tampering by anything except an agent that is already fully hijacked; the optional owner-held mode covers that. The content scan is heuristic and detonate is one run with default arguments: "nothing seen" is evidence, not proof. It detects and restores; it does not stop reads.

### Why automatic scanners may flag it
A tool that protects secrets has to name them (decoy values are marked FG-CANARY, none are real). Nothing leaves the machine except through an optional notifier script you provide. The two .mjs files are short and readable.

### Install
`node scripts/file-guard.mjs install --dir <agent workspace>` then `node scripts/file-guard.mjs doctor --dir <agent workspace>`

## Requires

- Node.js 18+
- Python

## Known limitations

Heuristic content scanning may miss novel injections. Tier 0 is vulnerable to hijacked agents with OS access. `node_modules` and `.git` are not covered. Requires Docker/Podman for detonate mode.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the TrustMe - Security Kit for AI Agents skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does File Guard protect my agent differently than just giving it security instructions in a prompt?

A prompt is only a request to the model, and an injection can override it. file-guard is code that runs outside the model: it hashes your core files against a baseline signed with a key the agent cannot quietly rewrite, shows the exact changed lines, scans them, and can restore the signed copy (check --restore 1), keeping the tampered file as evidence.

### Is this skill compatible with any AI agent framework?

Node.js 18+ is required. Windows is fully tested including the scheduled watchdog; Linux is tested in a Debian container; macOS code paths are written but NOT tested yet, so treat macOS as unverified.

### What happens if I try to install a new, unverified skill while File Guard is active?

On the next check the new files show up as NEW with a content scan (invisible Unicode, override phrases, encoded commands, obfuscation). Before you approve them, run detonate on any script: it executes it in a network-less container with decoy secrets and reports what it tries to read, connect to or run. After you approve, rebaseline signs them in. One run with default arguments is evidence, not proof.

### What exactly is included in the 'File Guard' package?

You get the file-guard skill: scripts (file-guard.mjs, detonate.mjs, detonate-rules.json, setup.ps1, watch.ps1), the SKILL.md and README. One command installs it; doctor gives a plain-language health report. The scheduled watchdog script is for Windows; on Linux/macOS you add a cron or launchd job.

### Does this skill prevent the agent from reading sensitive configuration files?

It detects and restores; it does not stop the agent from reading files. In default mode the signing secret is sealed by the OS, which does not defend against an agent that is already fully hijacked. For that, use the optional owner-held mode (setup.ps1 -Auto): you hold the passphrase and keep the key file off the machine. The content scan is heuristic and can miss novel attacks.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
