Back to skill

Security audit

service-registry

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report capabilities and data-handling concerns beyond its stated service-registry purpose; the overall confidence is medium.

Consider avoiding installation until you can review why local commands and source-file analysis are included, confirm what data may be sent to external services, and assess the agent-configuration log examples. The scan was partial because a referenced local source file was missing, so the evidence does not cover that reference.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (8)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied function reads file metadata via path.stat(), selects a ratio by extension, and returns an estimated token count. It contains no service registration, health-check, quota-enforcement, cost-logging, or session-tracking behavior. Although token estimation could support cost accounting in a larger system, this chunk does not establish that connection and instead implements a materially different standalone purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied function exposes local process execution rather than service registration or managed API calls. Although timing and token estimates could support usage accounting, executing arbitrary caller-selected programs is a materially broader capability than the description discloses. shlex.split avoids shell interpretation but does not restrict which programs or arguments can execute. The broad 'execution' trigger does not adequately declare this capability.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Although the execution trigger is relevant to the registry call, the supplied code performs a code-analysis invocation rather than the declared registration, health-check, quota, or usage-logging functions. It also explicitly supplies a local source-file path for external service processing. The snippet does not show registry.execute's internals, so actual file reading, transmission, and any implicit logging cannot be confirmed.

Content

No source excerpt is available for this finding.

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
85% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · modules/usage-logging.md (reported line 106)May include surrounding context.

bash
# View recent logs
tail -20 ~/.claude/leyline/usage/my-service.jsonl | jq .

# Query by date
grep "2025-12-05" ~/.claude/leyline/usage/my-service.jsonl

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
85% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · modules/usage-logging.md (reported line 109)May include surrounding context.

tail -20 ~/.claude/leyline/usage/my-service.jsonl | jq .

Query by date

grep "2025-12-05" ~/.claude/leyline/usage/my-service.jsonl

text
**Verification:** Run the command with `--help` flag to verify availability.

The execution workflow sends local source files to an external service without a privacy warning.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The execution example supplies a local source file to an external AI service without describing approval, sensitivity checks, or disclosure controls. Although this is a sketch rather than an implemented transfer, an agent adopting it could disclose proprietary code or embedded secrets; external-service integration makes the transfer expected but not necessarily authorized.

Content

No source excerpt is available for this finding.

The half-open circuit breaker permits repeated attempts despite documenting a single attempt.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

After transitioning to half-open, can_execute returns true for every subsequent caller until a result updates the state, rather than reserving one recovery probe. Concurrent requests can therefore flood a failing or rate-limited service, undermining the availability safeguard and potentially increasing costs.

Content

No source excerpt is available for this finding.

Session correlation claims to group operations from the same session but combines all recent operations.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The correlation function aggregates all recent operations without checking session_id, despite presenting its output as operations from the same session. In this audit-logging context, unrelated activity can contaminate session attribution and downstream investigations, although no cross-user authorization boundary is demonstrated.

Content

No source excerpt is available for this finding.