Back to skill

Security audit

LLM Watcher — 模型变化追踪器

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because scanners report that it runs model-generated Python without isolation and includes an embedded API credential; scanning was partial, so the evidence is incomplete.

The verdict is suspicious, not a claim that the author is malicious. Consider avoiding installation unless you can accept remote prompt transmission, local file changes, and model-generated code running with your account's access; the scan also reports an embedded credential whose current validity was not tested. Skillspector scanned all listed components but marked its analysis partial because a referenced local path was missing, so the evidence is incomplete.

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 (2)

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

Embedded API credential distributed and used for authentication

Content
View full analysis

Impact

If still active, the credential permits unauthorized API consumption and expenditure of the account's quota. Its present validity and exact privileges were not tested.

T09 · Insecure Skill Coding Practices

Error
Location
.
Finding

Remote model output executes outside any sandbox

Content
View full analysis

Impact

Returned code can read inherited API-key environment variables and accessible files, alter the workspace, or initiate network requests. These operations can occur before the appended assertions execute.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • 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 (16)

Tainted flow: 'p' from urllib.request.urlopen (line 145, network input) → subprocess.run (code execution)

Critical
Category
Data Flow
Confidence
99% confidence
Finding

The real tainted value is the model-generated script content, not the locally constructed path p, and the cited network-source line is inaccurate. Nevertheless, call() returns network-controlled text that main() passes into verify(), which writes and executes it with full user privileges.

Content

Scanner excerpt · calibrate.py (reported line 148)May include surrounding context.

python
p = os.path.join(d, f"t_{abs(hash(full)) % 99999}.py")
            try:
                open(p, "w", encoding="utf-8").write(full)
                r = subprocess.run([PY, p], capture_output=True, text=True, timeout=25)
                return "__PASS__" in r.stdout
            finally:
                try: os.unlink(p)

Tainted flow: 'req' from os.environ.get (line 181, 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 · watch.py (reported line 186)May include surrounding context.

python
headers={'Authorization': f'Bearer {key}', 'Content-Type': 'application/json'})
    t0 = time.time()
    try:
        r = urllib.request.urlopen(req, timeout=timeout)
        j = json.loads(r.read().decode())
    except urllib.error.HTTPError as e:
        try:

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The description promises read-only local operation, but the implementation writes files and executes provider-generated Python with the invoking user's privileges. This misleading boundary can induce approval of code execution capable of accessing credentials, modifying files, or making network requests.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The local read-only claim conflicts with remote prompt submission, file mutations, and unrestricted execution of returned Python. The embedded credential fallback also permits authenticated requests without a user-configured key; however, the finding's assertion that calibration is unimplemented is incorrect because calibrate.py implements it.

Content

No source excerpt is available for this finding.

Model-generated test code runs with unrestricted local privileges despite the manifest's read-only claim.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

Model-generated code is executed with the invoking user's privileges despite the manifest's read-only assurance. A hostile response can access API keys, modify local data, or establish additional processes before the timeout expires.

Content

No source excerpt is available for this finding.

The workflow instructs users to run their own tasks against an external model provider without a privacy warning.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

Users are told to replace the examples with their own work and run the benchmark; the configuration at lines 77–78 selects the external DashScope provider. The document never warns that task prompts will be sent to that provider, while its opening description as a single-machine tool could suggest local-only processing.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The quick-start workflow sends evaluation prompts to external model providers without a privacy warning and is misleadingly described as local-only.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The quick start recommends immediate execution under a description claiming local read-only operation, although running tasks sends prompts to external providers. Provider support is mentioned elsewhere, but the conflicting locality assurance can mislead users into submitting confidential tasks without informed consent.

Content

No source excerpt is available for this finding.

Tainted flow: 'p' from urllib.request.urlopen (line 145, network input) → open (file write)

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 · calibrate.py (reported line 147)May include surrounding context.

python
os.makedirs(d, exist_ok=True)
            p = os.path.join(d, f"t_{abs(hash(full)) % 99999}.py")
            try:
                open(p, "w", encoding="utf-8").write(full)
                r = subprocess.run([PY, p], capture_output=True, text=True, timeout=25)
                return "__PASS__" in r.stdout
            finally:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
99% confidence
Finding

This subprocess runs Python assembled from an external model response without isolation. A malicious or compromised response can read files and credentials, alter the workspace, or contact external services; the timeout does not restrict these capabilities.

Content

Scanner excerpt · calibrate.py (reported line 148)May include surrounding context.

python
p = os.path.join(d, f"t_{abs(hash(full)) % 99999}.py")
            try:
                open(p, "w", encoding="utf-8").write(full)
                r = subprocess.run([PY, p], capture_output=True, text=True, timeout=25)
                return "__PASS__" in r.stdout
            finally:
                try: os.unlink(p)

The skill promises read-only local operation but creates directories and writes or overwrites local files.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

Calibration creates directories and opens both its output task bank and baseline file in overwrite mode, contrary to the skill's read-only assurance. Running it can replace existing evaluation data without an overwrite confirmation, although the writes serve the advertised calibration function rather than indicating malicious intent.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · watch.py (reported line 75)May include surrounding context.

python
PROVIDERS = {
    'dashscope': 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions',
    'deepseek': 'https://api.deepseek.com/chat/completions',
}

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
99% confidence
Finding

check_python executes externally generated Python and task-supplied assertions using the current interpreter without sandboxing. Either input can perform arbitrary operations with the user's filesystem, environment, and network access; using an argument list and a timeout does not prevent this.

Content

Scanner excerpt · watch.py (reported line 132)May include surrounding context.

python
p = os.path.join(d, f'c_{hashlib.md5(full.encode()).hexdigest()[:8]}.py')
    try:
        open(p, 'w', encoding='utf-8').write(full)
        r = subprocess.run([PY, p], capture_output=True, text=True, timeout=25)
        ok = '__PASS__' in r.stdout
        msg = '' if ok else (r.stderr.strip().splitlines() or ['断言未通过'])[-1][:100]
        return ok, msg

Tainted flow: 'TASKS' from os.environ.get (line 68, credential/environment) → open (file write)

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 · watch.py (reported line 232)May include surrounding context.

python
print('已经存在:', TASKS)
        print('要覆盖加 --force')
        return
    json.dump(SAMPLE, open(TASKS, 'w', encoding='utf-8'), ensure_ascii=False, indent=2)
    print('建好:', TASKS)
    print(f'里面 {len(SAMPLE["tasks"])} 道样例题。改成你自己的活再跑。')

Tainted flow: 'p' from open (line 295, file read) → open (file write)

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 · watch.py (reported line 296)May include surrounding context.

python
os.makedirs(SNAPS, exist_ok=True)
    name = snap['time'].replace(':', '').replace('-', '')[:15] + '.json'
    p = os.path.join(SNAPS, name)
    json.dump(snap, open(p, 'w', encoding='utf-8'), ensure_ascii=False, indent=1)
    print(f'\n快照 → {p}')
    total = sum(r['pass'] for r in snap['tasks'])
    alln = sum(r['n'] for r in snap['tasks'])

The documented pass-rate comparison actually compares raw pass counts.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

L341 says changes are determined by pass rate, and L345/L348 label the results as pass-rate changes, but the conditions compare only the number of successful attempts. Because repetition counts are configurable, a change from 3/3 to 4/6 is reported as an improvement despite a lower pass rate, undermining the skill's central regression-detection purpose.

Content

No source excerpt is available for this finding.