Back to skill

Security audit

移动网大自动挂机Skill

Security checks for vulnerabilities and agentic risk

Overview

This course automation skill includes persistent scheduled execution and broad stealth browser tampering that users should review carefully before installing.

Install only if you intentionally want automated Wangda course activity from a local Chrome profile and are comfortable with a recurring OS task plus a stealth extension that changes page behavior. Use a dedicated browser profile, avoid entering SMS codes where terminal history or logs are retained, verify scheduler cleanup after use, and do not open non-Wangda links in the automated browser.

Vulnerability Patterns
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • Tool Hijacking and SpoofingModifies or replaces tools so legitimate-looking calls execute attacker logic
  • 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
Findings (3)

T06 · System Persistence

Error
Location
scripts/tools.py:87
Finding

Automatic Study Installs Cross-Session OS Scheduled Tasks

Content
View full analysis
Remediation
View remediation

T07 · Tool Hijacking and Spoofing

Error
Location
scripts/stealth-extension/manifest.json:6
Finding

Anti-Detection Extension Modifies Browser APIs on Every Origin and Frame

Content
View full analysis
"], "js": ["stealth.js"], "run_at": "document_start", "world": "MAIN", "all_frames": true } ] ``` ```javascript try { Object.defineProperty(navigator, 'webdriver', { get: () => undefined }); } catch(e) {} try { Object.defineProperty(window, 'outerWidth', { get: () => window.innerWidth }); } catch(e) {} try { Object.defineProperty(window, 'outerHeight', { get: () => window.innerHeight }); } catch(e) {} ``` ```javascript performance.now = function() { const r = _perfNow(); pFake += Math.min(r - pReal, 16); pReal = r; return pFake; }; Date.now = function() { const r = _dateNow(); dFake += Math.min(r - dReal, 16); dReal = r; return dFake; }; ``` ```javascript window.Function = new Proxy(_Function, handler); const _eval = window.eval; window.eval = function(code) { if (typeof code === 'string') { code = code.replace(/\bdebugger\b/g, ''); } return _eval.call(this, code); }; window.eval.toString = () => 'function eval() { [native code] }'; ``` ```javascript window.setInterval = function(fn, delay) { if (isSuspicious(fn)) { return _setInterval(function(){}, 2147483647); } return _setInterval.apply(null, arguments); }; window.setTimeout = function(fn, delay) { if (isSuspicious(fn)) { return _setTimeout(function(){}, 2147483647); } return _setTimeout.apply(null, arguments); }; document.open = function() { return document; }; ``` ```python cmd_args = [ "open", "-na", chrome_path or "Google Chrome", "--args", f"--remote-debugging-port={DEBUG_PORT}", f"--user-data-dir={use ...[truncated 2741 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/subject_tools.py:21
Finding

Substring-Based Domain Validation Accepts Attacker-Controlled Hosts

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (60)

Tainted flow: 'DEBUG_PORT' from os.environ.get (line 5, 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/chrome_tools.py (reported line 237)May include surrounding context.

python
return None

    try:
        with urllib.request.urlopen(f"http://localhost:{DEBUG_PORT}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

Tainted flow: 'DEBUG_PORT' from os.environ.get (line 5, 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/chrome_tools.py (reported line 254)May include surrounding context.

python
return None

    try:
        with urllib.request.urlopen(f"http://localhost:{DEBUG_PORT}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

If the broader package truly includes stealth/anti-detection measures such as fingerprint tampering, debugger removal, interception of eval/timers, and defenses against page anti-automation logic, that behavior is far beyond legitimate study assistance and strongly suggests concealment of automated activity. Such evasion can facilitate unauthorized access, bypass platform protections, and hide malicious automation from site defenses or the user.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the broader package truly includes stealth/anti-detection measures such as fingerprint tampering, debugger removal, interception of eval/timers, and defenses against page anti-automation logic, that behavior is far beyond legitimate study assistance and strongly suggests concealment of automated activity. Such evasion can facilitate unauthorized access, bypass platform protections, and hide malicious automation from site defenses or the user.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
所有可用工具指令请参考 `references/tools.md`,所有指令都应该通过 `python scripts/tools.py <command> <args>`的形式调用

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/login_tools.py (reported line 19)May include surrounding context.

python
from dotenv import load_dotenv

load_dotenv(
    os.path.join(os.path.dirname(os.path.abspath(__file__)), ".env"), override=True
)

msg_id = 1

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest declares a content script named 'Stealth Anti-DevTools' that runs at document_start in the MAIN world on <all_urls> and all frames, explicitly to bypass anti-devtools detection. That behavior is unrelated to a course-learning skill for wangda.chinamobile.com and indicates a stealth/evasion capability that can interfere with page security logic or conceal other automation across arbitrary sites.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

A global anti-devtools evasion mechanism is unjustified for a training/course assistant and is especially suspicious because it is framed as bypassing detection rather than enabling user-visible functionality. In this skill context, the capability increases danger because it can hide automation or tampering on unrelated websites and evade user or developer inspection.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

This script performs extensive stealth, anti-debugging, and anti-analysis tampering in the page context, including hiding automation markers, altering timers, stripping debugger statements, and blocking page-clearing/navigation behavior. For a course-learning assistant limited to wangda.chinamobile.com workflows, these capabilities are unnecessary and strongly suggest an attempt to evade site defenses, conceal automation, and resist inspection by users or defenders.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The code contains explicit anti-devtools and anti-analysis logic: it clamps performance and Date timing, removes debugger statements from dynamic code execution, filters suspicious timer callbacks, and protects console methods from inspection traps. In the context of a learning assistant, this is dangerous because it impedes auditing and facilitates covert browser automation or policy-violating behavior while making investigation and debugging harder.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

This block performs hidden browser automation through CDP and is expressly designed to avoid detection while issuing synthetic mouse events. In the context of a training-platform skill, stealth interaction is more dangerous because it can silently manipulate course state and undermine platform controls intended to detect non-human use.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
87% confidence
Finding

The skill declares no explicit tool scope or permissions, yet its documented behavior relies on powerful capabilities including shell-style tool execution, browser/network interaction, and session file manipulation. Without a tight allowlist, an agent may invoke more capability than users reasonably expect, increasing the blast radius of prompt injection, misuse, or implementation bugs.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The activation rule is broad enough to trigger on general course-related requests or any mention of the wangda.chinamobile.com domain, which can cause the skill to engage in contexts the user did not specifically intend. Because the skill can perform login, session resets, course changes, and automated study actions, overbroad invocation raises the risk of unintended sensitive operations.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill content and instructions are entirely written in Chinese and implicitly assume Chinese-language interaction, but there is no statement offering language choice or explaining a required locale restriction. Under the policy, a forced language or locale without opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The documentation instructs operators to input a phone number and SMS verification code, which are sensitive authentication factors, but provides no warning about secure handling, storage, logging, or masking. In a skill that automates login to a corporate learning platform, this increases the risk of credential leakage through terminal history, logs, screenshots, or session artifacts, potentially enabling unauthorized account access.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This code contains user-facing natural-language messages and docstrings in Chinese only, such as the exception description at L011 and many printed status/error messages elsewhere. The file does not offer a language choice or indicate that the skill is intentionally limited to Chinese-speaking users, which conflicts with the policy against forcing a specific language without user opt-in.

Content

No source excerpt is available for this finding.

Tainted flow: 'header' from socket.socket.recv (line 17, network input) → socket.socket.sendall (network output)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/chrome_tools.py (reported line 70)May include surrounding context.

python
for i in range(len(msg)):
        masked_msg[i] ^= mask[i % 4]

    sock.sendall(header + masked_msg)

    if not wait_for_response:
        time.sleep(0.1)

Internal Network Request

Medium
Category
Server-Side Request Forgery
Confidence
70% confidence
Finding

Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.

Content

Scanner excerpt · scripts/chrome_tools.py (reported line 96)May include surrounding context.

python
def get_ws_url(port, tab_idx=0):
    try:
        with urllib.request.urlopen(f"http://localhost:{port}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

Internal Network Request

Medium
Category
Server-Side Request Forgery
Confidence
70% confidence
Finding

Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.

Content

Scanner excerpt · scripts/chrome_tools.py (reported line 237)May include surrounding context.

python
def get_ws_url(port, tab_idx=0):
    try:
        with urllib.request.urlopen(f"http://localhost:{port}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

Internal Network Request

Medium
Category
Server-Side Request Forgery
Confidence
70% confidence
Finding

Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.

Content

Scanner excerpt · scripts/chrome_tools.py (reported line 254)May include surrounding context.

python
def get_ws_url(port, tab_idx=0):
    try:
        with urllib.request.urlopen(f"http://localhost:{port}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

Internal Network Request

Medium
Category
Server-Side Request Forgery
Confidence
70% confidence
Finding

Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.

Content

Scanner excerpt · scripts/login_tools.py (reported line 256)May include surrounding context.

python
def get_ws_url(port, tab_idx=0):
    try:
        with urllib.request.urlopen(f"http://localhost:{port}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

Internal Network Request

Medium
Category
Server-Side Request Forgery
Confidence
70% confidence
Finding

Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.

Content

Scanner excerpt · scripts/login_tools.py (reported line 267)May include surrounding context.

python
def get_ws_url(port, tab_idx=0):
    try:
        with urllib.request.urlopen(f"http://localhost:{port}/json") as response:
            pages = json.loads(response.read().decode())
        pages = [p for p in pages if p.get("type") == "page"]
        if not pages or tab_idx < 0 or tab_idx >= len(pages):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/chrome_tools.py (reported line 110)May include surrounding context.

python
def kill_chrome():
    user_data_dir = os.environ.get("_WANGDA_USER_DATA_DIR")
    print("Closing existing Chrome instance (if any)...")
    subprocess.run(
        ["pkill", "-if", f"chrome.*user-data-dir={user_data_dir}"],
        stdout=subprocess.DEVNULL,
        stderr=subprocess.DEVNULL,

Tainted flow: 'user_data_dir' from os.environ.get (line 120, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/chrome_tools.py (reported line 110)May include surrounding context.

python
def kill_chrome():
    user_data_dir = os.environ.get("_WANGDA_USER_DATA_DIR")
    print("Closing existing Chrome instance (if any)...")
    subprocess.run(
        ["pkill", "-if", f"chrome.*user-data-dir={user_data_dir}"],
        stdout=subprocess.DEVNULL,
        stderr=subprocess.DEVNULL,

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The start and navi functions accept arbitrary URLs and drive an authenticated Chrome profile outside the manifest's narrow wangda.chinamobile.com learning scope. In context, this is dangerous because it enables the skill to browse to attacker-chosen sites using the user's live browser session, increasing the risk of phishing, session abuse, or data access beyond the declared purpose.

Content

No source excerpt is available for this finding.