Back to skill

Security audit

OpenLX 微信公众号免白名单发布

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed WeChat Official Account gateway with scoped credential use, explicit publish confirmation, and user-directed maintenance.

Install only if you intend to let OpenLX perform WeChat Official Account operations for an account you control. Keep OPENLX_WEIXIN_API_KEY scoped to the intended account, review each handoff JSON before sending, and use explicit publish confirmation only when you want externally visible publication.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (22)

Tainted flow: 'req' from os.environ.get (line 37, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/gateway.py (reported line 39)May include surrounding context.

python
# Gateway does not guarantee idempotency-key deduplication. Never blind retry a write.
 req=urllib.request.Request('https://wx.openlx.cn/v2/proxy/'+endpoint,data=json.dumps(payload,ensure_ascii=False).encode(),headers=headers)
 try:
  with urllib.request.urlopen(req,timeout=180) as r: return json.load(r)
 except urllib.error.HTTPError as e:
  return {'status':'SUBMITTED_UNVERIFIED' if endpoint=='publish' and (e.code==408 or e.code>=500) else 'GATEWAY_REJECTED','http_status':e.code,'retry_write':False}
 except (TimeoutError,urllib.error.URLError,http.client.HTTPException,ValueError,ConnectionError,OSError): return {'status':'SUBMITTED_UNVERIFIED' if endpoint=='publish' else 'QUERY_UNAVAILABLE','retry_write':False}

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a business workflow tool, but the analysis suggests an update/maintenance entrypoint instead of visible WeChat functionality. That discrepancy is dangerous because users may expose API keys, filesystem access, and execution privileges to a package whose real behavior is not transparent, enabling deceptive installation or maintenance activity.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a business workflow tool, but the analysis suggests an update/maintenance entrypoint instead of visible WeChat functionality. That discrepancy is dangerous because users may expose API keys, filesystem access, and execution privileges to a package whose real behavior is not transparent, enabling deceptive installation or maintenance activity.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a business workflow tool, but the analysis suggests an update/maintenance entrypoint instead of visible WeChat functionality. That discrepancy is dangerous because users may expose API keys, filesystem access, and execution privileges to a package whose real behavior is not transparent, enabling deceptive installation or maintenance activity.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill is presented as a business workflow tool, but the analysis suggests an update/maintenance entrypoint instead of visible WeChat functionality. That discrepancy is dangerous because users may expose API keys, filesystem access, and execution privileges to a package whose real behavior is not transparent, enabling deceptive installation or maintenance activity.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The skill is presented as a business workflow tool, but the analysis suggests an update/maintenance entrypoint instead of visible WeChat functionality. That discrepancy is dangerous because users may expose API keys, filesystem access, and execution privileges to a package whose real behavior is not transparent, enabling deceptive installation or maintenance activity.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill declares no explicit tool scope or permissions despite instructing use of environment variables, local files, network access, and shell execution. That mismatch weakens least-privilege controls and can cause an agent or user to grant broader access than expected, especially since the skill handles credentials and invokes a gateway script.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The entire trademark notice is written in Chinese and does not provide any alternative language, opt-in choice, or explanation that the content is region-specific. Under the language/locale policy rule, this is a natural-language policy concern because it imposes a specific language on all readers by default.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README content is written entirely in Chinese and does not offer any language choice or indicate that the skill is region-specific. This creates a natural-language policy concern because it effectively imposes a specific language/locale on users without opt-in.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The document states that credentials are read from OPENLX_WEIXIN_API_KEY and used in HTTP requests via x-api-key. This is a security-relevant operation involving sensitive environment data, but the markdown provides no warning or disclosure to users about credential use or its implications.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The contract explicitly supports remote publish and media upload actions against a WeChat Official Account, which can modify external account state, but it lacks strong safety gating language such as mandatory user confirmation for all state-changing operations, account-authorization checks before mutation, and clear warning that actions are irreversible or externally visible. In this skill context, that is more dangerous because the skill is specifically designed to operate an always-on publishing gateway tied to real third-party accounts.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file contains user-facing instructions exclusively in Chinese, which can constitute a language/locale policy violation when no opt-in, alternative language, or region-specific justification is provided. The policy for this audit flags skills that force a specific language without user choice.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This markdown file contains end-user instructions exclusively in Chinese, which imposes a specific language on users without offering an alternative or opt-in. The policy requires flagging language or locale constraints when they are forced and not clearly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

This markdown file contains user-facing troubleshooting guidance exclusively in Chinese with no indication that users may choose another language. That creates a language-policy issue because the skill documentation effectively forces a specific locale without opt-in or justification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The script sends the supplied JSON payload to an external HTTPS endpoint using an API key, which may transmit user or system data off-host. Although the module docstring describes passing JSON to a gateway, there is no user-facing confirmation, warning, or log at the point of transmission indicating that data will be sent to a remote service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The installer downloads a remote Python script and immediately executes it, which creates a supply-chain risk even though a SHA256 hash is checked. The hash reduces tampering risk in transit, but users are still executing unpublished remote bootstrap code without meaningful disclosure, reviewability, signature verification, or a trust prompt; if the hosted script or release process is compromised, installation becomes code execution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script fetches a Python file from a remote URL, verifies its hash, and immediately executes it. Although integrity is checked, there is no visible user disclosure, prompt, or warning in this file that it will download and run external code on the user's system.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file implements a full standalone installer/updater with network fetch, package installation, rollback, and uninstall logic, which is materially outside the declared WeChat gateway/allowlist diagnostic purpose of the skill. Even though the installer includes several integrity and archive-safety checks, bundling lifecycle-management code inside a skill increases the attack surface, enables remote code/package delivery paths, and can mislead users into running privileged file-system mutations unrelated to the advertised functionality.

Content

No source excerpt is available for this finding.

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 7)May include surrounding context.

text
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The compatibility note is written entirely in Chinese and does not offer an alternative language or indicate that the skill is intended only for a Chinese-speaking or region-specific audience. This can violate language/locale policy when users are not given a choice or opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The FAQ and user-facing guidance are entirely written in Chinese, and there is no indication that the user can choose another language or that the locale restriction is intentional and documented. This can violate language/locale policy when a skill effectively forces a specific language without user opt-in.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · scripts/manager.py (reported line 36)May include surrounding context.

python
return found[0]
def location(agent): return Path.home()/HOSTS[agent][0]/'skills'/ID
def confirm(a,message,flag='yes'):
 if getattr(a,flag): return True
 return sys.stdin.isatty() and input(message+' [y/N] ').lower()=='y'
def backup(dest,base,state):
 folder=base/'backups'/str(time.time_ns()); folder.mkdir(parents=True)