Back to skill

Security audit

geocode

Security checks for vulnerabilities and agentic risk

Overview

This reverse-geocoding skill is mostly coherent, but it needs review because its script can be redirected to arbitrary network endpoints through an environment setting.

Review before installing in shared, automated, or network-sensitive environments. Use it only if you are comfortable sending queried coordinates to geocode.com.cn and can keep GEOCODE_BASE_URL fixed to a trusted HTTPS endpoint; avoid letting untrusted prompts, users, or configuration set that variable.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/geocode.sh:22
Finding

Unrestricted geocoding endpoint override enables server-side request forgery

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill invokes shell-based functionality via curl but does not declare any explicit tool scope such as permissions or allowed-tools. That creates an avoidable policy gap: an agent may execute network-capable shell commands without clear restriction or review boundaries, increasing the chance of unintended command use or abuse in downstream implementations.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 56)May include surrounding context.

md
## Public API Limits

- Use public endpoints only for low-frequency, interactive lookups.
- Send an identifying `User-Agent`; do not use default curl UA for repeated calls.
- Do not loop, bulk geocode, or aggressively retry against the public endpoint.

## Commands

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The script defaults to https://geocode.com.cn and its user-facing messages describe that provider as the expected service, which imposes a specific regional service choice by default. This is a natural-language locale/policy concern because users are not offered an explicit opt-in or rationale for the China-specific provider selection.

Content

No source excerpt is available for this finding.