Back to skill

Security audit

TikTok Shop Product Video Maker

Security checks for vulnerabilities and agentic risk

Overview

This video-planning skill bundles account permissions far beyond writing scripts, including spending credits and cancelling tasks.

For script planning alone, avoid granting the bundled broad account authorization. Connecting enables shared spending and resource-management permissions and recurring installation reporting. Request narrower permissions, and verify other Beatra installations before using uninstall because malformed inventory can disconnect them.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (26)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk contains no product-video planning behavior. Its primary purpose is uninstalling a skill and managing shared authorization state, including credential access, network revocation, and local file deletion. These are substantive lifecycle-management capabilities not disclosed by the creative-content description or declared permissions. The inventory safeguards and dry-run mode constrain these operations but do not resolve the description-behavior mismatch. This assessment concerns the supplied chunk, not any unseen video-generation functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The reported wallet-spending and media-generation authorization exceeds a planning-only workflow that explicitly promises no paid generation task. Persistent authorization with those scopes could enable unauthorized charges or account modifications if the agent or credentials are compromised; this assessment relies on the static report because the client implementation was not supplied.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The reported automatic reporting combines a persistent installation identifier with environment metadata, creating a tracking and privacy exposure beyond the disclosed registration and version checks. General-purpose remote invocation also expands the attack surface beyond planning, although the supplied document does not establish the actual server-side permission boundaries.

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 60)May include surrounding context.

json
},
  "mcp": {
    "authentication": "device-bearer",
    "credential_file": "~/.beatra/credentials.json",
    "name": "beatra",
    "transport": "streamable-http",
    "url": "https://mcp.beatra.ai/mcp"

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/uninstall.py (reported line 132)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):

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 12)May include surrounding context.

md
The host follows this computer's network route, described below.

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

Self-Modification

High
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/updates-and-security.md (reported line 3)May include surrounding context.

md
# Updates and security

Since the October 2026 releases, Beatra Skill packages contain no self-updater.
Earlier releases could replace their own files from Beatra's CDN; that code has
been removed. Updates now come only from the store or tool you installed the
Skill from.

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/updates-and-security.md (reported line 32)May include surrounding context.

md
These files are written under `~/.beatra/`. On POSIX that directory is mode
0700. Nothing is written inside the installed Skill directory.

- `credentials.json` (POSIX mode 0600), written by `scripts/authorize.py`: the device credential.
- `installation.json` (POSIX mode 0600), written by `scripts/authorize.py`: the stable installation reference.
- `host.json` (POSIX mode 0600), written by `scripts/authorize.py`: the agent environment, and a device name when one is known.
- `network.json` (POSIX mode 0600), written by `scripts/mcp_client.py`: this computer's network route.

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/updates-and-security.md (reported line 56)May include surrounding context.

md
When `scripts/uninstall.py` decides this is the last Beatra skill on the
computer, it first asks Beatra to revoke the device credential when one is
stored. If Beatra refuses, it changes nothing so the run can be repeated.
Otherwise it unlinks exactly these names in `~/.beatra/`: `credentials.json`,
`installation.json`, `host.json`, `skills.json`, `registrations.json`,
`network.json`, `balance-holds.json`, `pending_authorization.json`, and
`.authorize.lock`. It also unlinks `state.json`, `registration.json`, and

The authorization flow requests spending and resource-management capabilities unrelated to producing product-video plans.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The skill describes producing video plans, scripts, and captions, but requests a broad credential including wallet spending, voice management, generation, artifact access, and task cancellation. Requiring that full scope even when saving or reusing credentials prevents reduced-permission authorization, increasing the financial and account-resource impact of credential compromise or unintended agent actions; this file does not itself demonstrate unauthorized spending.

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

python
def _existing_credential(state_dir: Path) -> Path | None:
    path = state_dir / "credentials.json"
    try:
        path_stat = os.lstat(path)
        if not stat.S_ISREG(path_stat.st_mode):

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 1008)May include surrounding context.

python
scope = _required_string(polled, "scope")
    if set(scope.split()) != set(SCOPE.split()):
        raise RuntimeError("Beatra authorization returned an unsupported scope")
    credential_path = state_dir / "credentials.json"
    with _SIGNALS.deferred():
        _atomic_json(
            credential_path,

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 1183)May include surrounding context.

python
def _credentials(state_dir: Path) -> tuple[str, str]:
    state_dir = state_dir.expanduser()
    path = state_dir / "credentials.json"
    if not path.is_file():
        # Not connected yet (or the file is gone): the caller may still find
        # an approval waiting to be collected.

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

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

Malformed inventory entries are silently discarded, contradicting the documented fail-closed connection-preservation policy.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The inventory loader silently drops non-dictionary entries, so a malformed inventory such as {"skills": [null]} becomes an apparently valid empty inventory. Uninstall can consequently revoke the shared device credential and delete connection state even when other skills remain installed, disrupting their access. This is an integrity and availability flaw in shared connection management, rather than evidence of malicious behavior.

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 skill documents recurring installation telemetry beyond its stated product-video planning purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

L03–L20 document an automatic beatra.installations.register call that reports a stable installation reference, installation source, network-route information, and runtime facts, repeating on changes or after 24 hours. This reporting serves installation analytics, as stated at L23–L24, rather than creating TikTok Shop video plans, and is not disclosed in the manifest description. The supplied file documents this behavior; it does not provide the client implementation for verification.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
86% confidence
Finding

The documented update command invokes an unpinned npm package through npx skills, which can download and execute a changing package version with the caller's permissions. This is a CLI supply-chain exposure rather than an unpinned MCP server; its optional, user-initiated update context reduces immediate exposure, but a compromised package release could execute malicious code.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
86% confidence
Finding

The second update-command variant also uses unpinned npx skills, exposing execution to whichever package version is resolved at invocation time. This is the same supply-chain issue as the other finding on line 94, not an independent MCP-server vulnerability; the global-install variant additionally updates the skill outside a single project.

Content

No source excerpt is available for this finding.

The workflow directs installation registration through a bundled client, unrelated to product-video planning.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The workflow directs the agent to execute a bundled Python client to trigger installation registration, introducing code execution and registration side effects unrelated to the requested writing task. Because this skill explicitly produces plans rather than rendering media, registration is particularly difficult to justify and could expose installation metadata without informed user approval. The client implementation and registration destination are not provided, so sensitive-data collection or malicious behavior cannot be confirmed from this file alone.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Automatically reports installation and runtime analytics unrelated to product-video planning.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

Session creation automatically registers a stable installation reference together with package, host-platform, distribution-source, route, and coarse runtime information, with no consent check or telemetry opt-out visible in this file. These analytics are not necessary to plan a product video and allow installation-linked profiling beyond the requested creative operation, although the code does not show transmission of arbitrary environment values or unrelated file contents.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · scripts/authorize.py (reported line 992)May include surrounding context.

python
def _install_signal_handlers(handler: Any = None) -> None:
    for name in ("SIGINT", "SIGTERM", "SIGHUP"):
        number = getattr(signal, name, None)
        if number is None:
            continue
        with suppress(OSError, ValueError, RuntimeError):

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

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

python
if (
            len(content) != before.st_size
            or len(content) > MAX_UPLOAD_BYTES
            or any(getattr(before, field) != getattr(after, field) for field in stable_fields)
        ):
            raise RuntimeError("Local upload changed while it was being read")
    except RuntimeError: