tas-guard@0.5.1
CAUTION· startup onlyPublisher claims: "Order limits, human approval (terminal or Telegram), a kill switch and a hash-chained audit log in front of any broker or exchange MCP server. Verified profiles for Alpaca MCP and CCXT MCP." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Startup only; authenticated tool behavior not tested.- Tested
- server startup over stdio (initialize sent) · every file read, file written and host contacted by what ran
- Not tested
- the tool list (the server exited before answering) · what the tools do when called with real credentials
What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.
Behavior
In our sandbox run on 2026-11-16, [email protected] read no files and called no hosts, and its code names 10 environment variables. Coverage: startup only.
Files read
None recorded.
Hosts called
None recorded.
Environment variables its code names
ALPACA_API_KEY, ALPACA_SECRET_KEY, HELIUS_API_KEY, HL_ACCOUNT, HL_API_PRIVATE_KEY, HL_MAIN_PRIVATE_KEY, TAS_GUARD_BASE_BUILDER_CODE, TAS_GUARD_HL_BUILDER_FEE, TAS_GUARD_HOME, TAS_TELEGRAM_BOT_TOKEN
Names only, read from the code. We never hold a value.
Tools offered
No tool list recorded.
Changes since the prior version
No prior version with a result to compare.
What we did not test
- the tool list (the server exited before answering)
- what the tools do when called with real credentials
| Run date | 2026-11-16 |
| Coverage | startup only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try tas-guard |
| This record | behavior.json, behavior.md, signed attestation |
This is a record of what one version did in the runs we made. It is evidence, not a certificate.
Before you give it your token
- It will ask for
ALPACA_API_KEYALPACA_SECRET_KEYHELIUS_API_KEYHL_API_PRIVATE_KEYHL_MAIN_PRIVATE_KEYTAS_TELEGRAM_BOT_TOKENConfiguration, not credentials: HL_ACCOUNT, TAS_GUARD_BASE_BUILDER_CODE, TAS_GUARD_HL_BUILDER_FEE, TAS_GUARD_HOME- Where it talks to
- no vendor host named in the codeAlso hyperliquid.xyz, telegram.org, base.org, helius-rpc.com, hyperliquid-testnet.xyz — not the publisher's domain; check what for before connecting.
- What we saw when it ran
- no credential files read · no network
- What we could not test
- the tool list (the server exited before answering) · what the tools do when called with real credentials
Connect it with a scoped credential, under the guard, and read the third-party hosts first. The code names hyperliquid.xyz, telegram.org, base.org, helius-rpc.com, hyperliquid-testnet.xyz as well as its own vendor. The guard injects ALPACA_API_KEY, ALPACA_SECRET_KEY, HELIUS_API_KEY, HL_API_PRIVATE_KEY, HL_MAIN_PRIVATE_KEY, TAS_TELEGRAM_BOT_TOKEN only into requests to the host you bind (and its subdomains) and refuses the rest.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; startup only; authenticated tool behavior not tested) on 2026-11-16 and scored it 65/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Host or code assembled from base64 fragments; Host or code assembled from base64 fragments; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 20 s · 2 scenarios · 0 deviationsStatic findings
return { lamports: Number(acc.lamports), owner: acc.owner, data: [Buffer.from(acc.data).toString("base64"), "base64"], executable: !!acc.executable, rentEpoch: 0, space: acc.data.length };Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.`Approve it once with: npx tas-guard hl approve-fee${this.testnet ? " --testnet" : ""} (signs with your main wallet; run it yourself, not the agent). ` +Fix: Pin versions and sources; vendor anything fetched at install time.… for this account yet, so Hyperliquid will reject orders. Approve it once with: npx tas-guard hl approve-fee${this.testnet ? " --testnet" : ""} (or set TAS_GUARD_HL_BUILDER_…Fix: Pin versions and sources; vendor anything fetched at install time.2. Held for you: send 30 USDC to a new address (then run: npx tas-guard approve <id>)Fix: Pin versions and sources; vendor anything fetched at install time.// in-process, and GuardProxy runs every call through the same policy, approvals, kill switch and audit logFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.`Ask the user to approve it themselves by running: npx tas-guard approve ${item.id}\n` +Fix: Pin versions and sources; vendor anything fetched at install time.// call is blocked anyway (kill switch, blocked class), so those answers don't depend on the network.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."description": "Order limits, phone approvals and a kill switch in front of any broker or exchange MCP server.",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.await this.notify("TAS Guard controls:\n/status: limits and today's usage\n/pending: actions waiting for you\n/kill: stop all new orders\n/resume: turn the kill switch off");Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."description": "Path to your guard config: the broker or exchange MCP server to wrap, plus your limits. Create one with: npx tas-guard init alpaca-mcp-server"Fix: Pin versions and sources; vendor anything fetched at install time.if (!cfg?.bot_token || !cfg?.chat_id) throw new Error("approvals.telegram needs bot_token and chat_id (run: npx tas-guard telegram-setup)");Fix: Pin versions and sources; vendor anything fetched at install time.tas-guard kill [reason] kill switch: block all new orders on every guardFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// so parallel requests (or a long approval wait) can't slip past the daily caps or the kill switch.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.this.log(`Base Builder Code ${this.builderCode} is added to eth_sendTransaction calls (attribution only, no fee). Turn it off with TAS_GUARD_BASE_BUILDER_CODE=0.`);Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.// so parallel calls (or a long approval wait) can't slip past the daily caps or the kill switch.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// Approve / Deny buttons for held actions, alerts, and /kill /resume /status /pending from your phone.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// On-disk state: daily usage, pending approvals, the kill switch and the audit log.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// Risk-reducing classes stay available while the kill switch is on.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.…this.policy.chains_allow.length && !this.policy.chains_allow.includes(cid)) this.log(`warning: upstream chain ${cid} is not on chains_allow: every send and signature will be blocked`); } /** Remove the upstream URL (and its AP…Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.Hyperliquid mode: trade Hyperliquid directly through the same limits, approvals and kill switch:Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.set(a, v) { this.accts.set(a, { lamports: BigInt(v.lamports ?? 0), owner: v.owner ?? SYSTEM, data: Buffer.from(v.data ?? []), executable: !!v.executable }); }Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.console.log("1. In Telegram, open @BotFather, send /newbot and follow the steps.\n2. Copy the token it gives you (looks like 123456789:ABC...).");Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.description: "TAS Guard: show the trading limits that apply to this connection, today's usage, the kill switch and pending approvals. Read-only.",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.console.log("3. Now open your bot in Telegram and press Start (or send it any message). Waiting up to 2 minutes...");Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.…son}\n\n` + `Ask the user to tap Approve in Telegram (or run: npx tas-guard approve ${item.id}), then repeat exactly the same call within ${this.policy.app…Fix: Pin versions and sources; vendor anything fetched at install time.tas-guard resume turn the kill switch offFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.…AI agents: puts per-order and daily caps, symbol allowlists, human approvals, a kill switch and a tamper-evident audit log in front of any broker or exchange MCP ser…Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// --- kill switch (global across guards) ---Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.if (!(k in (upstream.env || {})) && !(profile?.mode?.env && k.startsWith(profile.mode.env.split("_")[0]))) continue;Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.alerts, and /kill /resume /status /pendingFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.// Solana helpers for the Solana guard, with no dependencies: base58, the transaction wire formatFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("phone approvals (Telegram) work for Solana: the phone sees the decoded summary; /kill and /status work", async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.writeFileSync(f, "" + JSON.stringify({ a: 1 }));Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.assert.match(txt(r), /npx tas-guard hl approve-fee/);Fix: Pin versions and sources; vendor anything fetched at install time.const childEnv = { ...process.env, TAS_GUARD_HOME: home, MOCK_LOG: mockLog, ...env };Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const p = spawn(process.execPath, [CLI, ...args], { env: { ...process.env, ...env }, stdio: ["ignore", "ignore", "pipe"] });Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert.ok(!g.stderr().includes("sk-live-abcdef123456"), "key not in the log");Fix: Never read or enumerate credential locations; accept a documented environment variable instead.test("kill switch: every send and signature is blocked, reads still pass", async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("policy: kill switch, wrong signer, cluster and block list", () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("chains, wallets, kill switch, signing classes and unsupported methods", () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.try { execFileSync(process.execPath, [CLI, ...args], { env: { ...process.env, TAS_GUARD_HOME: home, HL_ACCOUNT: "", HL_API_PRIVATE_KEY: "", ...env }, encoding: "utf8", stdio: "pipe" }); return ""; }Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.test("kill switch stops new orders on a running guard; cancels still work", async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("kill switch: orders blocked without touching the network; cancel and close still work (close carries the builder code)", async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("phone kill switch, blocked-order alert, resume and status", async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("kill switch blocks sends but not reads; base58 encoding and v0 lookup tables work", async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("kill switch blocks new risk but allows reads, cancels and closes", () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.const g = startCli(["rpc", "--config", cfg], { TAS_GUARD_HOME: home, TEST_RPC_KEY: "sk-live-abcdef123456" });Fix: Never read or enumerate credential locations; accept a documented environment variable instead.writeFileSync(cfg, "" + JSON.stringify({ name: "x", profile: "alpaca-mcp-server", upstream: { command: "x" }, policy: { max_order_value: 50 } }));Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
15 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim intoapex: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Obfuscated code≈ +5 on the totalRemove base64-assembled strings, eval of decoded text and minified blobs. Reviewers and scanners both treat unreadable code as hostile.
- Host or code assembled from base64 fragments≈ +4 on the totalPut hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Destructive file system command detected≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- New publisher≈ +3 on the totalTime clears this on its own after 14 and 30 days. Claiming the handle (+50) is the fastest way past it.