Back to skill

Security audit

PocketBook Cloud

Security checks for vulnerabilities and agentic risk

Overview

ClawScan’s verdict is benign with medium confidence: the findings were judged purpose-aligned or low risk, though some analysis was partial and the result is not a guarantee of safety.

The verdict is benign, but confidence is medium and Skillspector reports partial analysis: it scanned 12 of 13 components, with static checks unable to fully evaluate obfuscated instruction text and several local references unresolved. Consider whether the undeclared tool scope and detected capabilities fit your use, and review the skill’s permissions before installing.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pocketbook_lib/api.py (reported line 84)May include surrounding context.

python
access = data.get("access_token")
    refresh = data.get("refresh_token")
    if not isinstance(access, str) or not access:
        raise AuthRequired("PocketBook token response did not contain a usable access token")
    if require_refresh and (not isinstance(refresh, str) or not refresh):
        raise AuthRequired("PocketBook token response did not contain a usable refresh token")
    if refresh is not None and not isinstance(refresh, str):

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, 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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
If ambiguous, show candidates and stop. Do not create deletion requests for the candidates until the user identifies one.

`delete prepare` stores exactly one pending item with a 15-minute TTL, replaces any older pending deletion, and binds it to the current PocketBook account fingerprint. It intentionally returns **no confirmation code** to the model. Show the exact book/edition, ask for separate plain-text confirmation, and end the turn. A first-turn imperative such as `find it and delete it` or `найди и удали` authorizes preparation only; it is not the second confirmation.

Only after the user's **next** message explicitly confirms the pending deletion may you pass that exact current user message verbatim to:

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · scripts/pocketbook_lib/api.py (reported line 170)May include surrounding context.

python
if authenticated and response.status == 401 and retry_auth:
            failed_access = str(self.session.get("access_token") or "")
            if self.refresh(expected_access_token=failed_access):
                return self._request(method, path_or_url, form=form, body=body if form is None else None, content_type=content_type, authenticated=True, retry_auth=False)
            raise AuthRequired("PocketBook session expired; run auth login again")
        return response

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · scripts/pocketbook_lib/api.py (reported line 271)May include surrounding context.

python
"/api/v1.0/auth/renew-token",
                form=form,
                authenticated=bool(self.session.get("access_token")),
                retry_auth=False,
            )
            if not 200 <= response.status < 300:
                # Do not clear or overwrite a previously valid session on refresh failure.

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.

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.