Back to skill

Security audit

Web Code Deploy

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it flags advice to weaken secure cookies and reports possible vulnerabilities in its example dependency; the scan was partial, so its evidence is incomplete.

Consider the suspicious verdict before installing. In particular, review the reported advice about Secure cookies and the example framework version; the scanner’s dependency report may need verification. The scan was partial because some referenced paths could not be resolved, so it does not establish that all related material was assessed.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (34)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
1. Every deployment goes through the deployment platform, by running appcli. No SSH, no SCP, no direct connection to a server, no remote Docker.
2. Never read, print or ask for the deploy key. The user sets it themselves, in their own terminal (section 0).
3. Never put .env files, keys, tokens, database passwords, local databases or uploaded files into the image.
4. An upload that succeeded, or a task that is queued or running, is not a successful deployment. Wait for succeeded or failed.
5. Redact before showing logs: Authorization, Cookie, password, token, secret, private keys, passwords inside connection strings, and strings that start with `dpk_`.
6. Errors of category auth, server or platform are never worked around by another route. Never suggest opening SSH or the Docker API.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
Check before deploying and fix what is found (directly when it is within the checklist, otherwise explain it):

- Does the build context contain .env files, private keys, local databases or uploaded files?
- Does the Dockerfile COPY credentials or .env, or pass a secret in through `ARG`?
- Is a secret declared as `NEXT_PUBLIC_*` or placed in buildEnv?
- Is `.appcli/` in both .gitignore and .dockerignore?

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 · SKILL.md (reported line 119)May include surrounding context.

md
| Base image | Prefer the platform's own `node-base` (written as the name alone). Another public image may be used, with an explicit version; anything needed may be installed or upgraded on top of either (see base images) |
| .dockerignore | Excludes .env*, .appcli, node_modules, .next, .git, local databases (with their -wal / -shm files), upload directories and backups |
| .gitignore | Add `.appcli/` |
| .npmrc | Points at Alibaba's npmmirror, with binary mirrors for the dependencies that need them (see "npm registry" in base images). The Dockerfile copies it before `npm ci` |
| deploy.manifest.json | As in section 2 of the appcli reference; applicationId left empty; checked with `appcli validate --json` |
| Health check endpoint | `/api/health` by default, answering 200 with a small JSON body. It may do a read-only database check. It writes nothing and has no business logic. **It must be exempt from middleware such as login guards and i18n redirects** (in Next.js, exclude the path in

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 · SKILL.md (reported line 144)May include surrounding context.

md
- The project's own runtime version constraint comes first: choose `node-base` or a public image of the right version to suit it.
- Everything the build downloads goes through mirrors in mainland China: npm packages and binaries through Alibaba's npmmirror, apt through the Alibaba Cloud mirror (how, and how to check, is in base images). Do not switch to registry.npmjs.org or another registry abroad.
- With native modules such as better-sqlite3, configure the binary mirror in `.npmrc` and prefer a version that has prebuilt binaries. When there is none, install python3, make and g++ in the build stage and compile from source. A new project can also consider Node's built-in `node:sqlite`, which needs no native build.
- `next/font/google` makes the build fetch from Google, which usually cannot be reached from mainland China: change to `next/font/local` and put the font files into the project. This is outside the checklist, so explain it separately and get the user's agreement.
- Build-tim

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/base-images.md (reported line 60)May include surrounding context.

md
## npm registry

npm dependencies use npmmirror (`https://registry.npmmirror.com`) by default, which is the fastest; the complete setup is in the [example project](example-nextjs-sqlite/) (`.npmrc`, `Dockerfile`).

- Add an `.npmrc` in the project's root (no credentials in it): `registry=https://registry.npmmirror.com`, plus the binary-mirror lines the actual dependencies need (such as `better_sqlite3_binary_host=https://registry.npmmirror.com/-/binary/better-sqlite3`). The Dockerfile's build stage copies `.npmrc` before `npm ci`.
- With Prisma, set `ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma` in the build stage. When no browser is needed, set `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1`.

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/base-images.md (reported line 65)May include surrounding context.

md
project's root (no credentials in it): `registry=https://registry.npmmirror.com`, plus the binary-mirror lines the actual dependencies need (such as `better_sqlite3_binary_host=https://registry.npmmirror.com/-/binary/better-sqlite3`). The Dockerfile's build stage copies `.npmrc` before `npm ci`.
- With Prisma, set `ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma` in the build stage. When no browser is needed, set `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1`.
- The package-lock.json of npm 7+ needs no change. For yarn 1.x, replace `registry.yarnpkg.com` with `registry.npmmirror.com` in yarn.lock.
- Local `npm run dev` is not affected: `.npmrc` only changes where downloads come from.
- Native modules (such as better-sqlite3): prefer a version that has prebuilt binaries (better-sqlite3 12.11.1 is verified to have one for Node 24). When there is none, install the build tools in the build stage (see the section above) and compile from source.

## What the build can download

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/example-nextjs-sqlite/README.md (reported line 7)May include surrounding context.

md
| File | What to note |
|---|---|
| `Dockerfile` | Multi-stage; the build and the runtime stage both use the platform's `node-base`; `.npmrc` is copied before `npm ci`; `ARG NEXT_PUBLIC_APP_URL` is declared; the runtime stage has `USER 10001` and `CMD ["node", "server.js"]` |
| `.npmrc` | npmmirror, and the binary mirror for better-sqlite3 |
| `.dockerignore` | Excludes node_modules, .next, .env* and the local data directory |
| `next.config.mjs` | `output: 'standalone'` |

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/appcli-reference.md (reported line 72)May include surrounding context.

md
"env": [
    { "name": "SESSION_SECRET",  "required": true,  "secret": true,  "generate": { "bytes": 32, "encoding": "base64url" } },
    { "name": "OPENAI_API_KEY",  "required": true,  "secret": true,  "source": "manual" },
    { "name": "OPENAI_BASE_URL", "required": false, "secret": false, "source": ".env.local" }
  ],
  "buildEnv": [
    { "name": "NEXT_PUBLIC_APP_URL", "from": "publicUrl" },

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/appcli-reference.md (reported line 76)May include surrounding context.

md
],
  "buildEnv": [
    { "name": "NEXT_PUBLIC_APP_URL", "from": "publicUrl" },
    { "name": "NEXT_PUBLIC_SITE_NAME", "source": ".env.local" }
  ],
  "backupBeforeDeploy": true
}

Context Leakage

High
Category
Data Exfiltration
Confidence
85% confidence
Finding

Code or instructions that leak agent conversation context to external services, potentially exposing sensitive user interactions.

Content

Scanner excerpt · references/appcli-reference.md (reported line 307)May include surrounding context.

md
| DATA_EXPORT_FAILED | local_env | The snapshot or the packing of the local data failed |
| UPLOAD_TOO_LARGE | build | The package is over the limit |
| UPLOAD_FAILED | transient | The upload was interrupted; it can be resumed |
| UPLOAD_EXPIRED | transient | The upload session expired; upload again |
| ARTIFACT_CHECKSUM_MISMATCH | transient | The checksum does not match; deploy again |
| ARTIFACT_DOWNLOAD_FAILED | transient | The server could not fetch the package; deploy again |
| DUPLICATE_DEPLOYMENT | transient | A task is already in progress (`details.deploymentId`); wait for it with `appcli deployment` |

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/base-images.md (reported line 62)May include surrounding context.

md
npm dependencies use npmmirror (`https://registry.npmmirror.com`) by default, which is the fastest; the complete setup is in the [example project](example-nextjs-sqlite/) (`.npmrc`, `Dockerfile`).

- Add an `.npmrc` in the project's root (no credentials in it): `registry=https://registry.npmmirror.com`, plus the binary-mirror lines the actual dependencies need (such as `better_sqlite3_binary_host=https://registry.npmmirror.com/-/binary/better-sqlite3`). The Dockerfile's build stage copies `.npmrc` before `npm ci`.
- With Prisma, set `ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma` in the build stage. When no browser is needed, set `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1`.
- The package-lock.json of npm 7+ needs no change. For yarn 1.x, replace `registry.yarnpkg.com` with `registry.npmmirror.com` in yarn.lock.
- Local `npm run dev` is not affected: `.npmrc` only changes where downloads come 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/base-images.md (reported line 62)May include surrounding context.

md
npm dependencies use npmmirror (`https://registry.npmmirror.com`) by default, which is the fastest; the complete setup is in the [example project](example-nextjs-sqlite/) (`.npmrc`, `Dockerfile`).

- Add an `.npmrc` in the project's root (no credentials in it): `registry=https://registry.npmmirror.com`, plus the binary-mirror lines the actual dependencies need (such as `better_sqlite3_binary_host=https://registry.npmmirror.com/-/binary/better-sqlite3`). The Dockerfile's build stage copies `.npmrc` before `npm ci`.
- With Prisma, set `ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma` in the build stage. When no browser is needed, set `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1`.
- The package-lock.json of npm 7+ needs no change. For yarn 1.x, replace `registry.yarnpkg.com` with `registry.npmmirror.com` in yarn.lock.
- Local `npm run dev` is not affected: `.npmrc` only changes where downloads come 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/example-nextjs-sqlite/README.md (reported line 30)May include surrounding context.

md
FROM node-base AS build
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1
COPY package.json package-lock.json .npmrc ./
RUN npm ci
COPY . .
ARG NEXT_PUBLIC_APP_URL

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/example-nextjs-sqlite/README.md (reported line 8)May include surrounding context.

md
| File | What to note |
|---|---|
| `Dockerfile` | Multi-stage; the build and the runtime stage both use the platform's `node-base`; `.npmrc` is copied before `npm ci`; `ARG NEXT_PUBLIC_APP_URL` is declared; the runtime stage has `USER 10001` and `CMD ["node", "server.js"]` |
| `.npmrc` | npmmirror, and the binary mirror for better-sqlite3 |
| `.dockerignore` | Excludes node_modules, .next, .env* and the local data directory |
| `next.config.mjs` | `output: 'standalone'` |
| `src/lib/db.ts` | The database path is read from `DATABASE_URL`; locally it defaults to `./data/app.db` |

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/example-nextjs-sqlite/README.md (reported line 19)May include surrounding context.

md
- better-sqlite3 is pinned to 12.x (12.11.1): npmmirror has a prebuilt binary of it for Node 24. It has none for 13.x, and the build would fail.
- `package-lock.json` is not part of this template. In a project, create it with `npm install` and commit it (`npm ci` needs it).

## `Dockerfile`, `.dockerignore` and `.npmrc`

Written out here rather than shipped as files. In the project, write each into a file with exactly that name in the project's root.

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/example-nextjs-sqlite/README.md (reported line 60)May include surrounding context.

*.log

text

### `.npmrc`

```ini
registry=https://registry.npmmirror.com

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/personal-configuration.md (reported line 18)May include surrounding context.

md
5. When a deployment is created, the platform checks the required entries against the env declarations in the spec; when some are missing it returns `CONFIG_MISSING_REQUIRED` with the list.
6. Only when a required value is missing, or a local value does not suit the server, is the owner asked to supply it. That can be done locally or on the platform's parameters page; nobody is forced to the web page.

Do not upload .env.local blindly as a whole file. Submit only the declared business runtime parameters; leave out registry credentials, deploy keys and tokens, private keys and other projects' variables. A dotenv file is parsed as data and is never executed with `source`.

localhost addresses, absolute paths on the development machine and local callback URLs usually do not work live. Point them out when found and handle them by what the project or the platform really uses; never guess a server address.

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/troubleshooting.md (reported line 50)May include surrounding context.

md
| What is seen | Usual cause | Repair |
|---|---|---|
| BUILD_FAILED, npm download fails or times out | npmmirror is not in use (for example `.npmrc` is not copied into the build stage, or `.dockerignore` excludes it) | Check that `.npmrc` exists, is not excluded and is copied before `npm ci`, and that the addresses in yarn.lock are replaced. The platform's server itself can reach npmmirror |
| BUILD_FAILED, an install script times out reaching github.com | A package downloads a binary and has no mirror configured | Configure the npmmirror binary mirror for that package in `.npmrc` or as ENV in the build stage |
| BUILD_FAILED, compiling a native module or downloading its prebuilt binary times out | The build stage lacks the build tools, or is trying to download the prebuilt binary from GitHub | Use a version that has prebuilt binaries, or install the build tools in the build stage and compile from source (see [base images](base-images.md)) |
| REGISTRY_UNREACHABLE | The base image ca

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/troubleshooting.md (reported line 50)May include surrounding context.

md
| What is seen | Usual cause | Repair |
|---|---|---|
| BUILD_FAILED, npm download fails or times out | npmmirror is not in use (for example `.npmrc` is not copied into the build stage, or `.dockerignore` excludes it) | Check that `.npmrc` exists, is not excluded and is copied before `npm ci`, and that the addresses in yarn.lock are replaced. The platform's server itself can reach npmmirror |
| BUILD_FAILED, an install script times out reaching github.com | A package downloads a binary and has no mirror configured | Configure the npmmirror binary mirror for that package in `.npmrc` or as ENV in the build stage |
| BUILD_FAILED, compiling a native module or downloading its prebuilt binary times out | The build stage lacks the build tools, or is trying to download the prebuilt binary from GitHub | Use a version that has prebuilt binaries, or install the build tools in the build stage and compile from source (see [base images](base-images.md)) |
| REGISTRY_UNREACHABLE | The base image ca

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/troubleshooting.md (reported line 51)May include surrounding context.

md
d fails or times out | npmmirror is not in use (for example `.npmrc` is not copied into the build stage, or `.dockerignore` excludes it) | Check that `.npmrc` exists, is not excluded and is copied before `npm ci`, and that the addresses in yarn.lock are replaced. The platform's server itself can reach npmmirror |
| BUILD_FAILED, an install script times out reaching github.com | A package downloads a binary and has no mirror configured | Configure the npmmirror binary mirror for that package in `.npmrc` or as ENV in the build stage |
| BUILD_FAILED, compiling a native module or downloading its prebuilt binary times out | The build stage lacks the build tools, or is trying to download the prebuilt binary from GitHub | Use a version that has prebuilt binaries, or install the build tools in the build stage and compile from source (see [base images](base-images.md)) |
| REGISTRY_UNREACHABLE | The base image cannot be pulled for the build | Check that the image name and version tag exist. Re

The authentication repair instructs disabling Secure cookies on HTTP without warning about session exposure.

High
Category
Output Handling
Confidence
99% confidence
Finding

The repair explicitly recommends weakening the Secure cookie setting so authentication works over plain HTTP. This can expose session cookies to network interception and enable account hijacking; the deployment context increases the risk because an agent may apply this advice directly to a publicly accessible application.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env.

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.

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

appcli plan --json # what the user's plan gives, and which projects take its places (run it once the key is configured)

text

The image is built on the deployment platform's server. The developer's computer does not need Docker; do not ask the user to install or start it.

**appcli is not installed.** Tell the user it has to be installed from their platform (`npm install -g <platform address>/downloads/appcli`), and stop.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% 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 · SKILL.md (reported line 179)May include surrounding context.

md
ry its path, number of files and total size.
2. Point out that it may contain test data or personal information, and ask whether to migrate it. **The default is not to migrate**: when the user refuses, does not clearly agree, or does not answer, nothing is migrated.
3. When the user agrees: fill in `database.localPath` in the manifest (the local database file, as a path relative to the project) and `localPath` of the storage entries (the attachment and generated-files directories), and deploy with `--import-data`. appcli makes a consistent snapshot; do not copy .db files by hand.
4. appcli remembers the agreement (tied to the project ID): automatic retries before the first success bring the data along without asking the user again. When the project ID changes, the agreement is void.
5. A project that has been deployed successfully cannot import any more (`DATA_IMPORT_NOT_ALLOWED`); tell the user the live data will not be overwritten.

### 4.6 Backup before deploying (a project setting)

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% 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 · SKILL.md (reported line 188)May include surrounding context.

md
- The user agrees, does not clearly refuse, or does not answer: write `"backupBeforeDeploy": true`.
- The user clearly does not want it: write `"backupBeforeDeploy": false`, and tell them there will then be no pre-deployment backup to restore from if something goes wrong.
- From then on the setting is followed without asking again; when the user wants it changed, change the manifest.
- For a one-time exception use `appcli deploy --backup` or `--no-backup` and leave the manifest alone.
- A project without a database is not asked, and the field is not written.