T01 · Skill Instruction Hijacking
- Location
SKILL.md:165- Finding
Automatic External Disclosure of Conversation-Derived Feedback Without Explicit Consent
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill performs the advertised Ozon seller analytics, but it also adds sensitive account, billing, credential-storage, endpoint-override, and automatic feedback-reporting behaviors that need review before installation.
Review this skill carefully before installing. Use it only if you are comfortable with LinkFox account onboarding, API key handling, paid-credit purchase flows, local response retention, and outbound feedback reporting. Do not enter SMS codes or payment choices through the skill unless you trust the publisher and endpoint configuration, and avoid storing API keys in shell profile files.
SKILL.md:165Automatic External Disclosure of Conversation-Derived Feedback Without Explicit Consent
scripts/mpstats_ozon_seller_products.py:36Environment-Controlled Endpoints Can Redirect Credential-Bearing Requests
scripts/onboarding.py:484Generated API Key Is Printed to Standard Output and Recommended for Plaintext Shell Persistence
scripts/mpstats_ozon_seller_products.py:64Product Requests Transmit Unnecessary Agent Session Metadata
scripts/onboarding.py:31Onboarding Relies on Unpinned Runtime Dependencies
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
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 lets environment variables control the base URLs for login and agent-user APIs, then sends sensitive data such as phone numbers, SMS codes, access tokens, refresh tokens, and generated API keys to those endpoints via requests.post. If an attacker can influence the runtime environment, they can redirect authentication traffic to attacker-controlled servers and exfiltrate credentials and tokens; this is especially dangerous because the file’s purpose already includes token issuance and account onboarding.
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 URL is derived from environment variables and then used in urllib.request.urlopen with the Authorization header containing the LinkFox API key. An attacker who can set the environment can redirect these requests to an arbitrary host and capture the API key and related billing/account data, effectively turning the CLI into a credential exfiltration path.
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
The declared purpose is seller-product analytics, but the detected behavior includes SMS login, token handling, API key generation/retrieval, account/team inspection, subscription listing, payment order creation, QR rendering, and order-status checks. That is a severe hidden-capability mismatch: it could trick operators into authorizing account access, credential flows, or billing actions under the guise of a read-only analytics skill.
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
}
## Display Rules
1. **Compact store table** — key columns: `productId`, `title`, `brand`, `price`, `monthlySalesUnits`, `monthlySalesRevenue`, `rating`, `balance`, `turnoverDays`, `lostProfit`, `position`.
2. **Revenue share = within this seller query** — 0-100%; clarify the base.
The file embeds authentication recovery, account registration, and billing purchase workflows that are outside the stated purpose of an Ozon seller analytics skill. This unjustified expansion of capability can cause an agent to collect credentials, guide account creation, or initiate commercial actions unrelated to analytics, increasing the risk of abuse, social engineering, and unauthorized account/payment handling.
The documentation explicitly authorizes collecting a phone number, sending SMS codes, logging in, listing plans, and creating payment orders, none of which are necessary to analyze Ozon seller products. In the context of this skill, these are high-risk operational capabilities that could be misused to register accounts, intercept sensitive authentication flows, or induce the user to make purchases.
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
The documentation promises that writing to /tmp is forbidden and that failure to write the current directory will error, but the implementation silently falls back to home and temporary directories. This mismatch can defeat operator expectations and policy controls, causing data to be written to less trusted locations where other users or processes may access it.
This file is functionally unrelated to the stated Ozon seller-product analytics skill and instead implements LinkFox account onboarding, login, API key issuance, package purchase, and order/payment operations. That capability mismatch is dangerous because it expands the skill into credential handling and financial actions that users would not reasonably expect from a read-only analytics integration.
The code can list plans, create orders, and render payment QR codes, introducing billing and transaction functionality that is unjustified for an analytics skill. In context, this makes the skill more dangerous because it enables monetization and purchase flows under the guise of seller analytics, increasing the risk of unauthorized or deceptive financial operations.
The file performs SMS-based login, refresh/access token handling, team discovery, and API token generation, all of which are far beyond what is needed for Ozon seller drill-down analytics. Because the skill context is read-oriented marketplace analysis, embedding identity and token-issuance flows materially raises the risk of account compromise, silent credential collection, and privilege expansion.
The skill declares no explicit tool scope even though its instructions imply access to environment variables, filesystem writes, and network calls. Without a least-privilege allowlist, the runtime may permit broader capability use than users or reviewers expect, increasing the blast radius if the skill is abused or behaves unexpectedly.
The trigger criteria are broad enough to activate on general Ozon seller-analysis intent even when the user did not explicitly request this specific skill. Over-broad activation can route unrelated requests into a high-cost or higher-privilege workflow, especially problematic here because the skill also appears to have hidden account/payment capabilities.
The skill mandates persistent logging of full API responses into session-scoped files under the working directory. Those retained artifacts may contain seller-query details, identifiers, account metadata, or other sensitive content, and storing them by default increases exposure through later workspace access, backups, or accidental commit/sync.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
| 402 | 算力或余额不足 | HTTP 402:按 SKILL.md 的 ## 解决认证和算力问题 处理。 |
| 其他 | 业务异常 | 查看 errmsg;常见为 sellerId 不是数字、该 ID 不存在、日期越过昨日等 |
curl -X POST https://tool-gateway.linkfox.com/mpstats/ozon/sellerProducts \
The document embeds a second API for submitting feedback that is unrelated to the seller-products analytics function. In an agent-skill context, unrelated outbound endpoints expand the skill’s effective capability surface and can be abused to exfiltrate user content or operational metadata under the guise of feedback, especially because the instructions provide a ready-to-call public URL and payload format.
The markdown instructs the agent to ask for a user's phone number and process SMS-based login without any clear privacy notice, retention limits, masking guidance, or prohibition on storing or retransmitting the data. This creates an unnecessary sensitive-data collection path and raises the risk of privacy violations, mishandling of personal data, and unsafe credential-recovery behavior.
The script sends user-supplied parameters together with SESSION_ID, MESSAGE_ID, MODE_ID, and APP_NAME to a remote service without explicit disclosure at runtime. In this skill context, the network call is expected, but forwarding extra identifiers and analytics inputs without transparency can leak operational metadata and user context beyond what is necessary.
The script persistently stores full API responses, cache contents, and session metadata on local disk even though the skill's stated purpose is to return seller analytics. If responses contain sensitive business data or identifying session information, this creates unnecessary data retention and enlarges the exposure surface to other local users, later processes, backups, or accidental disclosure.
The module docstring presented to users is entirely in Chinese and describes the CLI interface and behavior without any indication that other languages are supported. This is a natural-language policy concern because the skill imposes a specific language on all users rather than offering an opt-in or documented locale constraint.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
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 display rule mandates a specific language/locale behavior: Russian titles must be preserved and only translated on request. This constrains language presentation by default rather than offering a user choice or making the locale preference explicit upfront.
This markdown file documents reading an API key from environment variables and sending it in the Authorization header, but it does not include any caution about protecting credentials or avoiding exposure in logs/shared terminals. Because SQP-2 applies to markdown files when descriptions omit warnings about privacy-sensitive behavior, this merits a low-severity disclosure finding.
The code accesses LINKFOX_AGENT_API_KEY or LINKFOXAGENT_API_KEY from the environment to authorize the request. While this is functionally necessary, the file lacks any user disclosure that the skill consumes credentials from the environment, which falls under sensitive environment-variable access.
No suspicious patterns detected.