Back to skill

Security audit

local-dev-stack-bootstrap

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports passwordless database access and disabled dependency checks, creating security and integrity risks.

Consider the suspicious verdict before installing. Review the database authentication and any instructions to reuse data or replace password hashes, and keep dependency integrity checks enabled. Skillspector’s analysis is partial: it inspected the listed components but could not resolve two local path-like references, so its evidence is incomplete.

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

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md
Finding

Trust authentication exposes the database superuser to other local users

Content
View full analysis

Impact

A local attacker can authenticate as the database superuser, read or alter application data, and use PostgreSQL superuser capabilities such as COPY PROGRAM to execute commands as the operating-system account running PostgreSQL.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

The database initialization enables passwordless trust authentication without disclosing local-access risks.

High
Category
Output Handling
Confidence
99% confidence
Finding

The initialization enables trust authentication for both Unix-socket and TCP connections, allowing reachable clients to impersonate database roles without a password, including the bootstrap superuser. Binding TCP to loopback reduces remote exposure but does not protect against other local users or compromised local processes, particularly with a socket in /tmp and instructions to reuse existing data.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
# 本地开发环境搭起来(无 root / 无 docker)

用于:把项目在本机跑起来、要能在浏览器里预览它的 Web 面板;主机没有 root(`sudo -n true` 不通过)、没有 docker;或遇到「后台服务起来一会儿就没了」「界面能开但登录 404」「多行密钥要注入 systemd」。

## 0. 先定验收口径

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
## 1. 工具链装到用户目录

先探能力再下结论:`sudo -n true`(能否免密)、`which go node npm psql docker`、`apt-cache policy <包>`。装不了系统包就全部用户态。

- Go:`curl -sSL -o /tmp/go.tgz https://mirrors.aliyun.com/golang/go1.26.0.linux-amd64.tar.gz && mkdir -p ~/sdk && tar -C ~/sdk -xzf /tmp/go.tgz`,然后 `export PATH=$HOME/sdk/go/bin:$PATH`。
- 模块代理:`export GOPROXY=https://goproxy.cn,direct GOSUMDB=off`。

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

跑通的判据是真实请求往返,不是进程存在或端口在听:

bash
curl -sS -m 5  http://127.0.0.1<api>/healthz
curl -sS -m 8  http://127.0.0.1<web>/api/version                    # 经前端 dev server 代理
curl -sS -m 10 -X POST http://127.0.0.1<web>/api/v1/auth/login \
  -H 'Content-Type: application/json' -d @/tmp/login.json             # 登录往返

The setup disables Go module checksum verification without warning about the integrity trade-off.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

Setting GOSUMDB=off disables verification against Go's checksum database while using a third-party module proxy. Existing go.sum entries still provide integrity checks, but newly resolved dependencies lose an independent authenticity safeguard; a compromised upstream or proxy could supply malicious code that executes during development.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
## 2. 长期服务一律 systemd --user

`setsid nohup <cmd> & disown` 起的进程会被执行会话**静默回收**:日志里连 shutdown 记录都没有,尾部干净地停住。数据库、API、前端 dev server 都走单元:

`~/.config/systemd/user/<name>.service`

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
## 2. 长期服务一律 systemd --user

`setsid nohup <cmd> & disown` 起的进程会被执行会话**静默回收**:日志里连 shutdown 记录都没有,尾部干净地停住。数据库、API、前端 dev server 都走单元:

`~/.config/systemd/user/<name>.service`

Session Persistence

Medium
Category
Rogue Agent
Confidence
80% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

StandardError=append:/tmp/.log

text

`systemctl --user daemon-reload && systemctl --user enable --now <name>`。

判断「崩了还是被回收」:先 `ps` 看进程是否 gone,再看应用日志有没有异常;日志无异常却没了=被回收,换 systemd 而不是加日志。

The login troubleshooting workflow recommends directly replacing a password hash without warning about the account impact.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The troubleshooting guidance recommends replacing an account's password hash directly without first confirming account ownership or authorization. Although this requires database write access and is not an independent unauthenticated exploit, following it against reused data can lock out a legitimate owner and bypass application reset auditing, notifications, and session-revocation logic.

Content

No source excerpt is available for this finding.