Atlas / MCP servers / the-pixel-boys / `@shield-agent/kya`

`@shield-agent/kya`BLOCK

mcp/the-pixel-boys/shield-kya

AI agents audit trail & traceability — gate every tool call (Allow / Review / Deny), live activity dashboard, and continuous trust-baseline certification.

Verdict
BLOCK
Grade
F
Trust score
52 /100
Exposed tools
6 4r · 1w · 1d
Transport
stdio · streamable-http
License
MIT
Stars
1
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://www.npmjs.com/package/@shield-agent/kya) [](https://www.npmjs.com/package/@shield-agent/kya) [](https://www.npmjs.com/package/@shield-agent/kya) [](./LICENSE) [](https://shield-agent.com/install) [](https://x.com/coscosmico)

Audit trail and traceability for AI agents. See what every coding agent did, with opt-in human approval and signed certify. Every tool call is recorded on a live local dashboard and certifiable against the Agent Trust Baseline. Locally KYA is advisory and fails open, except for a small never-list that is denied; enforcement lives on the MCP gate path and the hosted plane. One command. Free forever under MIT.

npm i -g @shield-agent/kya@latest && kya start

Requires Node.js 24+. Restart Cursor / Claude Code / Codex once so MCP loads. Hosted desk: shield-agent.com.

CLI and local MCP gate for Shield’s Know Your Agent path.

An agent that asks Shield first gets Allow, Review, or Deny: you register the agent, wrap the tool (or route it through the MCP gate or the hosted plane), and Review waits for a person. Local hooks only record and block the never-list (see Hook interception); hosted is where enforcement lives. This package does not scan your network. Agents that never call evaluate stay invisible on purpose.

Walkthrough: how you use it.

npx @shield-agent/kya@latest --hel
Read from source at commit 04f4898897e1OBSERVED · 2026-10-11
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (npm)
claude mcp add kya --env KYA_API_KEY=${KYA_API_KEY} -- npx -y @shield-agent/[email protected] serve-mcp --stdio
03

Exposed tools (6)

4 read · 1 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
drop_tabledestructiveDrop a table
kya.policy_evaluatereadEvaluate ALLOW | DENY | REQUIRE_APPROVE for an agent action at the tool boundary. Sole PEP is Shield KYA; missing APPROVED means no irreversible side effect.
kya.request_approvalwriteOpen a human approval request for a high-stakes side effect. Does not execute the side effect.
kya.session_ingestreadIngest an AgentEvent-compatible session observation for raise-only risk. Risk may only raise severity, never auto-ALLOW.
org.sample.never.eventreadnever
org.sample.safe.readreadRead a record
04

Trust audit

BLOCKgrade F · trust 52/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (3 observation(s))
Network
declared (10 observation(s))
Shell
declared (5 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/sandbox/types.ts:18
exec(input: {
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
src/cli.ts:333
const beacon = startSessionBeacon("report", { env, cwd });
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
src/cli.ts:340
await beacon.stop();
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
src/cli.ts:456
const beacon = startSessionBeacon("gateway", { env, cwd });
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
src/cli.ts:460
await beacon.stop();
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
src/cli.ts:651
const beacon = startSessionBeacon(result.mode === "http" ? "mcp-http" : "mcp-stdio", { env, cwd });
MEDIUMHard-coded secrets · secret.anthropic · CWE-798, CWE-321
test/orr-agentshield.test.ts:139
"sk-ant-api03-abcdefghijklmnopqrstuvwxyz012345",
MEDIUMHard-coded secrets · secret.anthropic · CWE-798, CWE-321
test/orr-agentshield.test.ts:322
evidence: "sk-ant-api03-abcdefghijklmnopqrstuvwxyz012345",
MEDIUMHard-coded secrets · secret.anthropic · CWE-798, CWE-321
test/orr-agentshield.test.ts:524
description: "sk-ant-api03-abcdefghijklmnopqrstuvwxyz012345",
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
test/investigate.test.ts:47
const token = "a9f3c17d2e8b4056a1c9f3d7e2b80654a9f3c17d2e8b4056";
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
test/receipt-render.test.ts:205
JSON.stringify({ token: "kya-test-token-zzz-0011223344" }),
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
test/diff-preview.test.ts:64
const pem = `-----BEGIN RSA PRIVATE KEY-----
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
test/diff-preview.test.ts:210
expect(() => assertNoSecrets("-----BEGIN RSA PRIVATE KEY-----")).toThrow(/secret/);
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
test/orr-agentshield.test.ts:124
"-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKFAKE\n-----END RSA PRIVATE KEY-----",
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
test/orr-agentshield.test.ts:337
"-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKFAKE\n-----END RSA PRIVATE KEY-----",
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
test/notify.test.ts:343
const event = baseEvent({ summary: "token=sk_live_abcdef1234567890" });
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
test/trail-summary.test.ts:59
content: "sk_live_abcdefghijklmnopqrstuv",
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
test/trail-summary.test.ts:71
accessToken: "sk_live_shouldneverappear",
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
test/trail-summary.test.ts:75
expect(viaAccessToken).not.toContain("sk_live_shouldneverappear");
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
drop_table
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
test/receipt-filter-engine.test.ts:138
new Function("document", "location", "history", script!)(document, location, history);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
test/receipt-render.test.ts:904
const fn = new Function("document", "location", "history", script);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
test/receipt-render.test.ts:950
expect(() => new Function(script)).not.toThrow();
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/hash.ts:39
createHash("md5").update("kya.factory:" + trimmed, "utf8").digest(),
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/receipt/search.ts:244
return createHash("sha1").update(eventDocumentText(e)).digest("hex");

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha 04f4898897e1full audit observations/trust-audit/mcp-server/the-pixel-boys__shield-kya.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-1104f4898897e1BLOCKF52first audit
06

Questions

What is the @shield-agent/kya MCP server?

AI agents audit trail & traceability — gate every tool call (Allow / Review / Deny), live activity dashboard, and continuous trust-baseline certification.

What tools does @shield-agent/kya expose?

6 in total: 4 read-only, 1 that write, and 1 that can delete or overwrite (drop_table). Every one is listed on this page with its risk.

Is @shield-agent/kya safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (52/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does @shield-agent/kya need?

It reads FAKE_TOKEN, KYA_API_KEY and KYA_MCP_HTTP_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does @shield-agent/kya run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @shield-agent/kya at 0.24.2.

How current is this page?

The grade is for one exact copy of the source (04f4898897e1), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement