T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/authorize.py:31- Finding
OAuth Authorization Requests Permissions Beyond the Skill's Functional Requirements
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly coherent as a Beatra image-generation workflow, but it requests broad account authority and silently self-updates code by default.
Before installing, understand that this skill needs a Beatra account connection that can spend credits, stores a shared bearer token under ~/.beatra, sends device/platform installation metadata to Beatra, and silently updates its package files by default. Review the requested permissions and consider disabling automatic updates if you want each code change to require explicit action.
scripts/authorize.py:31OAuth Authorization Requests Permissions Beyond the Skill's Functional Requirements
scripts/mcp_client.py:969Silent Automatic Updates Permit Post-Audit Remote Code Replacement
scripts/authorize.py:343Hostname and Agent-Environment Metadata Are Collected and Transmitted Automatically
scripts/mcp_client.py:1044Windows Credential Confidentiality Relies on Unverified Inherited ACLs
Task read/cancel permissions are unrelated to generating static lab cover images and expand the blast radius of the credential into workflow management. A compromised or overreaching skill could inspect or cancel user tasks that have nothing to do with this package.
The skill documentation references uninstall/disconnect behavior, modifying ~/.beatra state, inspecting installed inventory, revoking authorization, and deleting credential-related files, which are far outside the declared lab-cover workflow. Packaging destructive administrative actions alongside a benign creative skill increases the risk of unexpected data loss, account disruption, or abuse if the skill is invoked in the wrong context.
The skill documentation references uninstall/disconnect behavior, modifying ~/.beatra state, inspecting installed inventory, revoking authorization, and deleting credential-related files, which are far outside the declared lab-cover workflow. Packaging destructive administrative actions alongside a benign creative skill increases the risk of unexpected data loss, account disruption, or abuse if the skill is invoked in the wrong context.
The skill documentation references uninstall/disconnect behavior, modifying ~/.beatra state, inspecting installed inventory, revoking authorization, and deleting credential-related files, which are far outside the declared lab-cover workflow. Packaging destructive administrative actions alongside a benign creative skill increases the risk of unexpected data loss, account disruption, or abuse if the skill is invoked in the wrong context.
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referenced artifact was not completely inspected
Submit once through bundled `scripts/mcp_client.py`. Poll
Referencing ~/.beatra/credentials.json indicates direct dependence on a local credential store, which is a sensitive resource. In the context of a benign-seeming media-generation skill, this is more dangerous because users would not reasonably expect local account credentials to be involved; any compromise or overbroad tool access could expose or misuse those secrets.
},
"mcp": {
"authentication": "device-bearer",
"credential_file": "~/.beatra/credentials.json",
"name": "beatra",
"transport": "streamable-http",
"url": "https://mcp.beatra.ai/mcp"
The document describes automatic remote installation registration for a skill whose stated purpose is local lab cover generation. Even if labeled non-billable and non-secret, it transmits package metadata, platform, and a stable external installation reference to a backend, creating undeclared telemetry and a persistent installation identifier that is unnecessary for the advertised functionality.
The described behavior performs remote registration and captures the real agent environment via environment signatures or host metadata, which amounts to host-environment fingerprinting. In the context of a simple cover-creation skill, this collection is disproportionate and increases privacy, tracking, and enterprise reconnaissance risk because it reveals platform details and a durable installation reference unrelated to generating covers.
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
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
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
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
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
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
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
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
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
```
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
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
```
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
The OAuth scope string requests a very broad set of capabilities, including artifact access, image/video/music/speech generation, voice read/write, wallet spending, and task operations, while the skill description only needs still-image lab cover generation. This violates least privilege and means any stolen token or misused skill execution could access or spend through unrelated APIs far beyond the user’s expected consent.
Task read/cancel permissions are unrelated to generating static lab cover images and expand the blast radius of the credential into workflow management. A compromised or overreaching skill could inspect or cancel user tasks that have nothing to do with this package.
The file claims to support a lab cover generation skill, but the implementation is a generic authenticated remote client with package self-update, telemetry, upload, and arbitrary tool invocation capabilities. This mismatch materially increases risk because users and reviewers may grant trust based on a narrow creative purpose while the code can perform broader networked actions and local package modification.
The code can download manifests and archives from remote services and replace local package files, which is a self-modifying capability unrelated to the stated assignment-cover purpose. Even with integrity checks, this expands the attack surface substantially: compromise of the update channel, signing process, or upstream package source could lead to silent code replacement on the user's system.
The exposed CLI includes a self-update command and the broader file implements code download and replacement routines, giving the skill a direct self-modification path. In a lab-cover generation context, self-modifying behavior is unusually powerful and dangerous because it enables the code's future behavior to change after installation, undermining static review and user expectations.
)
update = subparsers.add_parser(
"update",
help="Check, install, or configure Beatra package self-updates",
)
update.add_argument(
"--check",