Back to skill

Security audit

webnovel-serial-audio

Security checks for vulnerabilities and agentic risk

Overview

This skill is meant to create webnovel audio, but it requests broad Beatra account powers, exposes a raw remote-tool caller, and silently self-updates by default.

Review this before installing. It may be appropriate if you trust Beatra and want its shared account integration, but it grants more account capability than webnovel narration alone needs and it can update its own installed files silently. Consider disabling automatic updates with the documented command and avoid using the raw `call` interface except for known Beatra narration tools.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (2)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/authorize.py:33
Finding

Overprivileged Shared Authorization Token and Unrestricted MCP Tool Dispatch

Content
View full analysis
dict[str, Any]: session = _session_with_registration( state_dir=Path.home() / ".beatra", post_json=_default_post_json, ) if command == "tools": return session.request(2, "tools/list", {}) try: arguments = json.load(os.sys.stdin) except json.JSONDecodeError as exc: raise RuntimeError("Tool arguments on stdin must be one JSON object") from exc if not isinstance(arguments, dict): raise RuntimeError("Tool arguments on stdin must be one JSON object") assert tool_name is not None return session.request( 2, "tools/call", {"name": tool_name, "arguments": arguments}, ) ``` ### Technical Analysis The declared purpose of this Skill is chapter-by-chapter webnovel audio generation, with optional narrator voice cloning. Its legitimate operations require speech generation, voice discovery, optional voice creation, authorized media upload, task reads, and read-only wallet information. The requested token nevertheless includes unrelated capabilities such as: - Image generation - Video generation - Music generation - Generic artifact reads and writes - Wallet spending - Task cancellation - Generic MCP tool access The bundled client accepts an arbitrary `tool_name` and forwards it to `tools/call` without a package-specific allowlist. Consequently, the client does not constrain ...[truncated 2033 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/mcp_client.py:1044
Finding

Windows Credential File Privacy Is Assumed but Not Enforced

Content
View full analysis
str: if os.name == "nt": # The state directory lives under the user profile, whose default # ACL is already private to the user (the gh/aws/gcloud posture). # The former custom DACL verification was dropped deliberately: its # command patterns read as hostile to agent safety policies and # endpoint security, failing installs while adding nothing an # elevated administrator could not bypass. return path.read_text(encoding="utf-8") ``` Credential creation likewise applies explicit restrictions only on POSIX: ```python def _private_directory(path: Path) -> None: # POSIX gets explicit 700/600. On Windows the state directory lives under # the user profile, whose default ACL is already private to the user — # the same posture as gh/aws/gcloud credential stores. The former custom # DACL ceremony was dropped deliberately: its command patterns read as # hostile to agent safety policies and endpoint security, failing installs # while adding no protection an elevated administrator could not bypass. path.mkdir(mode=0o700, parents=True, exist_ok=True) if os.name == "posix": path.chmod(0o700) ``` ```python def _restrict_file(path: Path) -> None: if os.name == "posix": path.chmod(0o600) ``` ### Technical Analysis The bearer token in `~/.beatra/credentials.json` grants access to sensitive and billable Beatra operations. On POSIX systems, the code validates that the state directory is owned by the current user with mode `0700` and that the cr ...[truncated 2334 chars]
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (35)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The same package includes uninstall and credential-revocation behavior that reads and removes local state unrelated to chapter narration. Even if useful operationally, bundling destructive maintenance actions into a content-production skill broadens risk and can surprise users or agents that only intended to generate audio.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The same package includes uninstall and credential-revocation behavior that reads and removes local state unrelated to chapter narration. Even if useful operationally, bundling destructive maintenance actions into a content-production skill broadens risk and can surprise users or agents that only intended to generate audio.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The same package includes uninstall and credential-revocation behavior that reads and removes local state unrelated to chapter narration. Even if useful operationally, bundling destructive maintenance actions into a content-production skill broadens risk and can surprise users or agents that only intended to generate audio.

Content

No source excerpt is available for this finding.

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 · manifest.json (reported line 55)May include surrounding context.

json
```

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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 · references/installation-and-auth.md (reported line 14)May include surrounding context.

text

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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 · references/installation-and-auth.md (reported line 21)May include surrounding context.

text

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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 · references/installation-and-auth.md (reported line 49)May include surrounding context.

text

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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 · references/mcp-connection.md (reported line 10)May include surrounding context.

text

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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/authorize.py (reported line 207)May include surrounding context.

python
```

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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/authorize.py (reported line 514)May include surrounding context.

python
```

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

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/mcp_client.py (reported line 1025)May include surrounding context.

python
```

They share the one full-scope Device Token stored in
`~/.beatra/credentials.json`. Installing or switching packages must not trigger
another authorization when that credential is already valid. Do not add,
enable, trust, or configure a host Beatra Connector. Never print or move the
token into command arguments, environment variables, logs, chat, or another

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The OAuth scope string requests far more capability than an audiobook narration skill needs, including images, videos, music, wallet spending, task cancellation, and voice management. If the issued token is compromised or the skill is abused, the overprivileged credential could be used to perform unrelated high-impact actions against the user's Beatra account.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The authorization flow actively exchanges and stores a token bound to the broad scope set, operationalizing capabilities well beyond serialized webnovel audio generation. In the context of a narrowly described TTS skill, enabling multimodal generation and wallet spending materially increases blast radius if the skill, local environment, or token store is abused.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The generic 'call' path accepts an arbitrary tool name and forwards JSON from stdin to the remote MCP server, effectively turning this skill into a general-purpose remote tool broker. That far exceeds the declared narration use case and could be abused to invoke unrelated or sensitive backend capabilities through the skill's existing authorization context.

Content

No source excerpt is available for this finding.

Self-Modification

High
Category
Rogue Agent
Confidence
97% confidence
Finding

The skill exposes self-modification/update capability from its own command surface. In the context of a narrowly scoped audiobook skill, allowing the package to rewrite its installed files is a significant security risk because it creates a persistent code-change mechanism that can alter future executions beyond the user's immediate task.

Content

Scanner excerpt · scripts/mcp_client.py (reported line 1503)May include surrounding context.

python
)
    update = subparsers.add_parser(
        "update",
        help="Check, install, or configure Beatra package self-updates",
    )
    update.add_argument(
        "--check",

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

The script explicitly targets credentials.json as part of shared state management, indicating access to authentication material outside the skill's own functional domain. Access to shared credentials is sensitive because compromise or misuse can affect all skills bound to the same device identity, not just this package.

Content

Scanner excerpt · scripts/uninstall.py (reported line 40)May include surrounding context.

python
#: these and then removes the directory only if it is empty — the script
#: never recursively deletes a directory it does not fully understand.
_STATE_FILES = (
    "credentials.json",
    "installation.json",
    "host.json",
    "skills.json",

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The _device_token function reads an access token from ~/.beatra/credentials.json so it can be used in an Authorization header for remote revocation. Direct token access by a content-generation skill is dangerous because it enables misuse of shared authentication material and broad cross-skill account actions if the script is altered or repurposed.

Content

Scanner excerpt · scripts/uninstall.py (reported line 109)May include surrounding context.

python
def _device_token(state_dir: Path) -> str | None:
    path = state_dir / "credentials.json"
    try:
        value = json.loads(path.read_text(encoding="utf-8"))
    except (OSError, ValueError):

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill declares no explicit tool scope while its documented workflow requires shell, file, network, and local-state interactions via a bundled client. That creates unnecessary ambient authority and makes it harder to constrain or audit what the skill may do, increasing blast radius if the bundled client is compromised or behavior changes later.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The runtime behavior includes unattended update checks and installations, but the skill is marketed primarily as an audio-production utility. That discrepancy weakens informed consent and creates a hidden system-modification path users may not expect when invoking narration functionality.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill performs silent self-updates that download and replace package files, which is a code-modifying operation unrelated to generating chapter audio. Even with integrity checks, automatic background replacement expands the trust boundary to the update channel and can turn a benign skill into a vehicle for unreviewed code changes.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill allows silent automatic updates that modify local package files without a prominent warning at the point of use. Hidden system modification is dangerous because users may grant trust for TTS only, while the skill can change executable content over time without fresh review.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document states that the client silently checks for and automatically installs newer releases by default without separate confirmation. Even with integrity checks and fixed update sources, unattended replacement of local package files changes the user's installation state and trust boundary without an explicit runtime warning or opt-in, which can surprise users and increase supply-chain risk if the trusted update channel is ever compromised.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% 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 · references/installation-and-auth.md (reported line 64)May include surrounding context.

md
the user signs in or creates their account there, and the approval page
  continues automatically after sign-in;
- say once that the connection continues automatically after Allow, then
  detect completion yourself — never ask the user to confirm in chat that
  they approved.

Approval legitimately takes minutes when sign-in or account creation is

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The document describes automatic installation registration that transmits package slug, version, platform, and a stable external installation reference on first use. For a skill whose stated purpose is generating serialized audiobook audio, this telemetry is not necessary to fulfill the user task and creates undisclosed metadata collection and cross-session tracking risk, even if marked non-billable and non-secret.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill resolves and persists the real agent environment/platform from environment signatures or host metadata, which amounts to environment fingerprinting unrelated to audiobook generation. This increases privacy and tracking risk and can expose infrastructure details that help correlate users or target specific environments if the data is mishandled or combined with other telemetry.

Content

No source excerpt is available for this finding.