Back to skill

Security audit

volcengine-db-supabase

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it found serious credential, authorization, and database-operation weaknesses, while some referenced material was only partially analyzed.

Consider avoiding installation until the credential transport and authorization issues are addressed and the database-operation guidance is reviewed. The scan was not complete: two referenced guides were only partially inspected, so the results do not establish that the remaining material is safe.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/supabase_dataplane.py
Finding

Compatibility helper can transmit service-role credentials over plaintext HTTP

Content
View full analysis

Impact

An on-path attacker can steal the service-role credential, which the project's own security guide identifies as bypassing RLS, and read or modify accessible backend data. SQL requests and results can also be exposed.

T09 · Insecure Skill Coding Practices

Error
Location
references/edge-function-dev-guide.md
Finding

Deployable CRUD template bypasses caller-level authorization using a service-role client

Content
View full analysis

Impact

When items contain user-scoped records, a caller can retrieve, modify, or delete another user's records by choosing their identifiers. The separate database-access example similarly creates a userClient but executes its actual query with the service-role client.

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/supabase_dataplane.py
Finding

Direct deletion entry points do not enforce the documented confirmation requirement

Content
View full analysis

Impact

An unconfirmed invocation can remove a deployed function, interrupting its service, or delete a bucket where the backend permits deletion. The evidence does not establish deletion of nonempty bucket contents.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • 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 (22)

Tainted flow: 'req' from os.getenv (line 326, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
99% confidence
Finding

Sending a configured API credential to its intended service is expected, but endpoint discovery defaults to HTTP and accepts explicitly supplied HTTP URLs. Consequently, the service-role key and database requests can travel unencrypted, allowing an on-path attacker to steal privileged credentials or modify traffic; this is an insecure-transport issue rather than evidence of deliberate exfiltration.

Content

Scanner excerpt · scripts/supabase_dataplane.py (reported line 328)May include surrounding context.

python
for attempt in range(3):
        req = urllib_request.Request(url=url, data=data, headers=headers, method=method)
        try:
            with urllib_request.urlopen(req, timeout=timeout) as response:
                raw = response.read()
                if response.status == 204 or not raw:
                    return {"success": True}

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
com/docs/87275/2277072?lang=zh);SDK 用法见 [`references/app-integration-guide.md`](references/app-integration-guide.md)。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
com/docs/87275/2277058?lang=zh);SDK 用法见 [`references/app-integration-guide.md`](references/app-integration-guide.md)。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| [`references/app-integration-guide.md`](references/app-integration-guide.md) | 接入 TS/Python 应用:SDK 初始化 + CRUD + Auth + Realtime |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
functions deploy`),不再支持单文件/内联代码。编写规范见 [`references/edge-function-dev-guide.md`](references/edge-function-dev-guide.md)。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| [`references/edge-function-dev-guide.md`](references/edge-function-dev-guide.md) | Edge Function 编写与部署 |

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

using ( (auth.jwt() -> 'app_metadata' ->> 'role') = 'admin' );

text

### 删除用户不会让已签发的 access token 失效

删用户**不会**吊销其现有 token。敏感操作前先 sign out / 吊销会话;JWT 过期时间设短;要严格保证时,在敏感操作里校验 `session_id` 是否还在 `auth.sessions` 中。

Code capability 'env' detected in scripts/supabase_dataplane.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'env' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.

Code capability 'network' detected in scripts/supabase_dataplane.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'network' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.

The deployment workflow uses a different control-plane toolchain than the manifest declares.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

The manifest explicitly states that operations run through byted-supabase-cli, but this workflow directs the agent to use ve aidap for provisioning and activate the separate volcengine-cli skill for account verification. This is a concrete mismatch in the operational interface and delegated skill dependency, rather than an undeclared implementation detail behind the promised CLI.

Content

No source excerpt is available for this finding.

The webhook example claims to verify signatures but only checks whether a signature header exists.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Any caller can supply a nonempty signature header, so this check does not authenticate webhook payloads. The guide also recommends disabling JWT verification for webhooks, making forged order or payment events possible if this template is extended with real business actions.

Content

No source excerpt is available for this finding.

Recommended schema changes lack a warning about table rewrites and blocked writes.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

Adding a stored generated column to an existing populated table requires computing existing values and can hold a strong table lock during a rewrite. Ordinary index creation also blocks writes, so directly applying this optimization to a large production table can cause an availability incident.

Content

No source excerpt is available for this finding.

The SQL execution workflow lacks a warning about changes to the target database.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

L05 instructs the agent to execute SQL through the CLI against a workspace and run advisors after making changes. Unlike the reference catalog below it, this is an operational instruction, but it does not warn that state-changing SQL can alter database data, schema, or access controls.

Content

No source excerpt is available for this finding.

L096–L106 claim that a single UPDATE acquires all row locks atomically, but PostgreSQL can acquire them incrementally and still deadlock.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

A single UPDATE is transactionally atomic, but it does not acquire all affected row locks simultaneously or guarantee a consistent acquisition order. Presenting it as a deadlock-prevention alternative can leave concurrent workloads vulnerable to deadlock-triggered transaction failures and availability degradation.

Content

No source excerpt is available for this finding.

The diagnostic workflow resets shared query statistics without warning that existing monitoring history will be lost.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The unscoped reset clears shared accumulated query statistics rather than merely the current diagnostic session's results. Including it as a routine optimization step can erase monitoring baselines and incident evidence for other users, although it does not delete application data.

Content

No source excerpt is available for this finding.

Index-creation instructions omit a warning that ordinary CREATE INDEX can block database writes.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

Ordinary CREATE INDEX blocks writes to the target table while building the index. Because the guide targets slow queries on large tables and provides directly executable SQL, applying its recommendation to a live database can produce a substantial write outage.

Content

No source excerpt is available for this finding.

Partition cleanup recommends dropping a table without warning that its data will be deleted.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The recommended partitioning example uses DROP TABLE to clean up old data, while L005 directs execution of the directory's SQL through the database CLI. The text emphasizes speed but does not warn that dropping the partition deletes all rows it contains, rather than merely detaching or archiving them.

Content

No source excerpt is available for this finding.

The documentation claims DEFAULT auth.uid() prevents client spoofing, but clients can override a column default.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

A column default supplies a value only when the caller omits that column; it does not prevent an explicit forged user_id. The private-data policies shown elsewhere correctly enforce ownership, reducing immediate exploitability, but the false claim can cause downstream implementations to rely on the default as an authorization control.

Content

No source excerpt is available for this finding.

The storage workflow creates a public bucket without warning that uploaded files will be publicly readable.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generic storage-management workflow creates an uploads bucket with public read access without first establishing that its contents should be public. An agent following this default for user documents or other sensitive uploads could expose those files to anyone with their URLs; public readability does not imply public write permission.

Content

No source excerpt is available for this finding.

The skill uses `ve aidap` and direct HTTP requests instead of the declared `byted-supabase-cli` execution path.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The manifest explicitly states that operations run through byted-supabase-cli, but L126–L132 invoke a different executable, ve aidap. Data-plane operations also use direct authenticated HTTP requests (L304–L328), making the declared tooling and operational prerequisites inaccurate.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/supabase_dataplane.py (reported line 132)May include surrounding context.

python
cmd.extend(["--body", json.dumps(body, separators=(",", ":"), ensure_ascii=False)])
    if region:
        cmd.extend(["---region", region])
    completed = subprocess.run(cmd, check=False, text=True, capture_output=True)
    output = "\n".join(part for part in (completed.stdout, completed.stderr) if part)
    if completed.returncode != 0:
        raise DataPlaneError(f"ve aidap {action} failed: {output.strip()}")

The list-migrations action silently creates a database schema and table.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The list-migrations action executes CREATE SCHEMA and CREATE TABLE despite presenting itself as a listing operation. It is absent from WRITE_ACTIONS, so these persistent changes can occur with READ_ONLY=true; more broadly, execute-sql is also ungated and permits arbitrary writes, making the script's read-only safeguard incomplete.

Content

No source excerpt is available for this finding.