T01 · Skill Instruction Hijacking
- Location
SKILL.md:142- Finding
Autonomous Feedback Transmission Without Explicit User Consent
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches Shopee Ads management, but it also handles sensitive onboarding, API keys, payments, automatic feedback, and broad data persistence in ways users should review carefully.
Review before installing. Use it only if you intentionally want LinkFox to proxy Shopee Ads requests and you are comfortable with the skill handling shop/ad data, API keys, and possibly billing setup. Avoid sharing SMS codes or creating payment orders through the agent unless that is explicitly intended, verify no endpoint override environment variables point to unexpected hosts, and clean up saved response files that may contain business data.
SKILL.md:142Autonomous Feedback Transmission Without Explicit User Consent
scripts/_shopee_ads_common.py:18Credential Exfiltration Through Unrestricted Endpoint Overrides
scripts/_shopee_ads_common.py:166Sensitive Ads Responses Are Persisted to Undocumented Fallback Locations
scripts/onboarding.py:484Generated API Keys Are Disclosed Through Standard Output and Plaintext Shell Configuration
scripts/onboarding.py:163Unpinned Runtime Dependency Installation Guidance
The request destination and multiple outbound headers are influenced by environment variables, including the base URL and authentication/session metadata, and are then sent over the network. If an attacker can influence runtime environment variables, they can redirect requests to an arbitrary host and exfiltrate API keys and session identifiers, which is especially dangerous in an Ads skill handling authorized store operations.
method="POST",
)
try:
with urlopen(req, timeout=150) as response:
return json.loads(response.read().decode("utf-8"))
except HTTPError as e:
body = e.read().decode("utf-8") if e.fp else ""
The code allows network destinations to be overridden via environment variables and then sends authentication material, login data, SMS flows, and token-related requests to those URLs without any allowlist or host verification. In an agent/runtime environment where env can be influenced, this becomes an SSRF and credential exfiltration risk because API keys, access tokens, phone numbers, and verification codes may be posted to attacker-controlled endpoints.
except RuntimeError as e:
return {"_error": str(e)}
try:
r = requests.post(url, json=body or {}, headers=headers, timeout=timeout)
return r.json()
except Exception as e:
body_text = ""
The gateway request path builds a URL from environment-controlled base values and performs outbound urllib requests with the LinkFox API key in the Authorization header. If an attacker can influence environment configuration, they can redirect these requests to arbitrary servers and capture API keys or abuse the skill as an SSRF primitive against internal or external targets.
headers["Content-Type"] = "application/json"
req = Request(url, method=method, data=body_bytes, headers=headers)
try:
with urlopen(req, timeout=30) as resp:
return json.loads(resp.read().decode())
except urllib.error.HTTPError as e:
status = e.code
A skill presented as Shopee Ads functionality should not also contain SMS verification, phone login, API key generation/retrieval, team/account data access, plan ordering, payment QR generation, or order-status flows. These are sensitive identity, billing, and account-management functions; hiding them behind an Ads-branded skill materially increases phishing, credential abuse, and unauthorized account operation risk.
A skill presented as Shopee Ads functionality should not also contain SMS verification, phone login, API key generation/retrieval, team/account data access, plan ordering, payment QR generation, or order-status flows. These are sensitive identity, billing, and account-management functions; hiding them behind an Ads-branded skill materially increases phishing, credential abuse, and unauthorized account operation risk.
Referenced artifact was not completely inspected
| `get_product_campaign_hourly_performance` | [references/apis/get-product-campaign-hourly-performance.md](./references/apis/get-product-campaign-hourly-perform
The onboarding document expands this Shopee Ads proxy skill into unrelated account registration, SMS login, API key acquisition, and billing purchase flows for the Linkfox agent platform. This creates scope creep that can enable the agent to collect credentials, phone numbers, and perform account/payment actions outside the skill’s stated Shopee Ads purpose, increasing the chance of abuse or unauthorized data handling.
The document explicitly authorizes collection of user phone numbers, SMS verification codes, registration/login actions, and plan purchase operations that are not justified by a Shopee Ads integration skill. In context, this is especially dangerous because users invoking an ads-management skill would not reasonably expect identity onboarding and payment handling, making social engineering and over-collection of sensitive data more likely.
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
示 JSON 里的 phone/agreements
- 收到验证码后:`python scripts/onboarding.py login <phone> <code>`
- 拿到 `api_key` 后把下面三平台配置转发给用户,提示重启会话生效:
- Windows PowerShell(永久):`setx LINKFOX_AGENT_API_KEY "<key>"`
- macOS zsh:`echo 'export LINKFOX_AGENT_API_KEY="<key>"' >> ~/.zshrc && source ~/.zshrc`
- Linux bash:`echo 'export LINKFOX_AGENT_API_KEY="<key>"' >> ~/.bashrc && source ~/.bashrc`
- 变量名 `LINKFOX_AGENT_API_KEY`(主推)或 `LINKFOXAGENT_API_KEY`(老规范)任一即可
**billing 场景**:`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。
- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单,否则输出编号清单让用户选
- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`(通常 `wechat/alipay`)
- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG
This file implements a LinkFox onboarding, login, API-key issuance, plan listing, ordering, and payment workflow that is unrelated to the declared Shopee store ads proxy purpose. Capability mismatch is especially dangerous in an agent skill because it can induce users to disclose phone numbers and SMS codes or perform account/payment actions outside the expected Shopee Ads scope.
The skill can create commercial orders and render payment QR codes, which is not justified by the skill's stated purpose of proxying Shopee Ads APIs. In context, this expands the attack surface from ads management into billing/payment initiation, enabling deceptive monetization flows or unauthorized purchases under the guise of a Shopee ads tool.
The code performs SMS-based login and retrieves or generates LinkFox API tokens, which is far outside the declared Shopee Ads operational scope and directly handles sensitive authentication factors. In an agent context, this can be used to phish SMS verification codes, mint long-lived API credentials, and pivot into broader account takeover or unauthorized API use.
The skill declares capabilities consistent with environment access, filesystem writes, network calls, and shell execution, but does not define an explicit tool scope such as permissions or allowed-tools. Without least-privilege constraints, an agent may invoke broader capabilities than necessary, increasing the blast radius if the skill is misused or its instructions are ambiguous/adversarial.
The trigger guidance is very broad and explicitly allows activation even when the user does not mention ads, as long as the task vaguely relates to an authorized store's promotion or performance. Overbroad triggering increases the chance of unintended invocation, unnecessary access to shop advertising data, and execution of networked actions without clear user intent.
The skill states that full API responses are always written to disk, but does not provide a clear user-facing warning about persistence, retention, or the sensitivity of shop/account/ad data. Persisting data by default can expose business metrics, identifiers, balances, and operational details to other processes, users, or later prompts that access the workspace.
Always saving full responses and sometimes printing full JSON to stdout can leak sensitive shop, campaign, balance, and possibly user/account data into terminal logs, CI logs, transcripts, or shared workspaces. In agent environments, stdout and workspace artifacts are often more broadly visible than the immediate task context, making inadvertent disclosure likely.
The skill states at L014 that using the tool consumes compute and that repeated probing should be avoided, and L030 also references insufficient balance/quota conditions. However, L140 says "不消耗算力" (does not consume compute). These statements actively conflict and can mislead operators about runtime cost and allowed usage patterns.
The curl example demonstrates sending a sensitive API key and shop identifier to an external gateway endpoint, which is an external transmission of credentialed business data. In the context of an agent skill, users may copy-paste and run this without fully appreciating that ad-account operations and identifiers are routed through a third-party service rather than directly to Shopee.
export KEY=$LINKFOXAGENT_API_KEY
This markdown file contains all user-facing instructions in Chinese, including usage, parameters, and response guidance. Because the file does not offer an alternative language or document that the skill is intentionally limited to Chinese-speaking users, it creates a language-policy concern under the natural-language policy rules.
The skill documentation is written almost entirely in Chinese, including operational instructions and parameter explanations, with no indication that users may choose another language or that the skill is intentionally restricted to a Chinese-speaking audience. This can violate language/locale policy when a skill imposes a language requirement without opt-in or explicit justification.
This documentation describes creating ads and forwarding request data through /shopee/developerProxy to Shopee's external Ads API, but it does not clearly warn the user that the action can spend advertising budget or that request contents are sent to a third-party service. In an agent context, missing consent and action-risk messaging can lead to unintended ad creation, financial loss, and disclosure of business campaign data.
This markdown file contains core usage instructions, inputs, and operational notes in Chinese only. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is explicitly documented and justified, which it is not here.
The file's operational instructions and parameter guidance are presented entirely in Chinese, which effectively forces a specific language for users of the skill. Under the policy rule, language constraints should either be optional for the user or explicitly justified as region-specific.
The skill instructs operators to use a script for phone-based login and API key handling without any warning about the sensitivity of phone numbers, verification codes, or secret keys. This omission encourages insecure collection and transmission of sensitive data and may normalize sharing secrets through the agent workflow.
This code sends request data to developer_proxy_call, including identifiers and optional query/body content, but the file contains no confirmation prompt, user-facing log/print, or inline warning explaining that data will be transmitted. For a code file, outbound network transmission of user or system data should have some visible disclosure unless that warning is provided elsewhere.
No suspicious patterns detected.