Back to skill

Security audit

custom-ipconfig

Security checks for vulnerabilities and agentic risk

Overview

This skill does what it says by checking the device's public IP and location through a public web service, with some privacy and HTTP-transport caveats.

Before installing, be comfortable with a third-party IP lookup service receiving your public exit IP and returning approximate location/network details. Prefer a version that uses HTTPS-only lookups and activate it only for explicit IP or network-location questions.

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
SKILL.md:33
Finding

Plaintext HTTP Used for Sensitive Public IP and Geolocation Lookup

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 33–34 and 54
Vulnerability Type: Plaintext transmission of IP address and geolocation data
Risk Level: Medium

Vulnerable code snippets:

text
接口地址:`http://ip-api.com/json/`
(备选 `https://ipapi.co/json/` 有 Cloudflare 反爬限制,优先用 ip-api.com)
text
2. 调用 `http://ip-api.com/json/` 获取完整网络信息

Technical Analysis

The skill explicitly requires the Agent to use http://ip-api.com/json/ as its preferred endpoint. Because this request uses unencrypted HTTP, it provides neither transport confidentiality nor authenticated response integrity.

The remote service receives the originating public IP implicitly through the network connection and returns sensitive network-location information, including the public IP, country, region, city, ISP, organization, coordinates, and timezone. A party capable of observing or modifying traffic between the Agent and the endpoint—such as a malicious Wi-Fi operator, compromised router, proxy, ISP-level intermediary, or other on-path attacker—can inspect or alter the response.

The Agent is instructed to format the response and report it directly to the user. Therefore, a modified response may be presented as trustworthy network information without integrity verification. No response authentication, schema validation, redirect restriction, or independent verification is specified.

Attack Path

  1. A user asks the Agent to report the current public IP address or network location.
  2. The skill directs the Agent to send a request to http://ip-api.com/json/.
  3. An on-path attacker intercepts the unencrypted HTTP request and response.
  4. The attacker observes the returned IP and geolocation details or replaces the response with attacker-controlled JSON.
  5. The Agent accepts the modified response and presents forged IP, location, ISP, coordinates, or timezone information to the user.
  6. The user may rely on this ...[truncated 914 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace the plaintext endpoint with an HTTPS-only IP-geolocation provider.
  2. Remove the instruction that prioritizes http://ip-api.com/json/; never fall back from HTTPS to HTTP.
  3. Require normal TLS certificate and hostname validation.
  4. Reject redirects from HTTPS endpoints to HTTP destinations.
  5. Apply strict connection and response timeouts and impose a maximum response size.
  6. Validate the response against an allowlisted schema before presenting it:
    • Confirm that the IP field contains a valid IPv4 or IPv6 address.
    • Require expected primitive types for location and provider fields.
    • Reject unexpected nested objects or malformed coordinate values.
  7. Treat remote values as untrusted data and avoid interpreting returned strings as Agent instructions or executable content.
  8. Fail closed with a clear error message when secure transport or response validation fails.
  9. If the selected provider does not support HTTPS for the required free endpoint, use a different provider that does rather than accepting plaintext transport.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill is designed to automatically contact a third-party endpoint to infer and disclose the host's public IP, ISP, rough geolocation, and related network metadata, but it does not provide a clear upfront warning or require explicit user consent. This creates a privacy and data-sharing risk, especially because the request is sent over plain HTTP to ip-api.com, exposing the lookup and response to interception or tampering in transit.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger phrases are broad enough to match common conversation about networking or location, which can cause the skill to run without sufficiently clear user intent. In this skill, unintended activation is more dangerous because execution performs an external network request that reveals the device's public IP and associated metadata to a third-party service.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

L56 要求“整理成简洁中文结构化结果输出”,这是对输出语言的硬性限定,但文档没有提供用户选择其他语言的选项,也未说明该技能仅面向中文场景。该限制可能违反语言/地区选择政策。

Content

No source excerpt is available for this finding.