---
canonical: "https://firewall.lpm.dev/npm/blokctl"
markdown: "https://firewall.lpm.dev/npm/blokctl/v/2.5.4.md"
package: "blokctl"
report_status: "published"
title: "blokctl@2.5.4 npm security report"
verdict: "suspicious"
version: "2.5.4"
---

# blokctl@2.5.4 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged as AI-agent capability risk** — Allowed by default with warning: agent-facing configuration or capability changes need review before use.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only AI-agent capability risk
- **Public report status:** Published
- **Threat category:** AI-agent capability abuse
- **Selected version:** 2.5.4
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

Review flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-09-30T07:30:44.398Z
- **Finished:** 2026-09-30T07:33:02.801Z
- **Download time:** 1296 ms
- **Static scan time:** 3514 ms
- **AI review time:** 133592 ms
- **Total time:** 138403 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Explicit project creation can replace project-level AI-agent instruction files. This supports a capability warning; no confirmed malicious attack was established.

- **Trigger:** Running blokctl create project, including blokctl create project .

- **Impact:** Existing agent guidance can be overwritten, changing subsequent agent behavior within that project.

- **Evidence paths:** dist/index.js, dist/commands/create/project.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-30T07:33:02.801Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The scaffolder copies or writes AGENTS.md and CLAUDE.md into the selected project directory without preserving existing destination files.

- **Rationale:** Source proves explicit-user-command mutation of agent instruction files, which the supplied policy classifies as warning-only capability risk. No concrete evidence supports malicious intent or an installation-time control hijack.

- **Files touched:** AGENTS.md, CLAUDE.md

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 96.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Project creation writes AGENTS.md and CLAUDE.md without checking whether destination files already exist., The active CLI exposes create project ., which invokes project creation in the current directory., The destination is the current directory or a named project directory; template copying also replaces agent instruction files.

- **Evidence against:** The writes require an explicit project creation command., package.json has no automatic npm install lifecycle hook or runtime self-dependency., Inspected instruction templates provide Blok development guidance; no concrete malicious attack was established.

## Affected versions and remediation

This report applies to blokctl@2.5.4.

- Review the evidence and your use of blokctl@2.5.4 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: import child_process from "node:child_process";
L3: import os from "node:os";
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 4. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/scaffold-repo/triggers/websocket/src/WebSocketTrigger.ts
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/scaffold-repo/triggers/websocket/src/WebSocketTrigger.ts>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```typescript
L401: const packageName = "@blokjs/browser";
L402: const browser = (await import(packageName)) as {
L403: browserSessionManager: {
```

### 6. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 7. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 8. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/commands/inertia/ssr.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/inertia/ssr.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L1: import { spawn, spawnSync } from "node:child_process";
L2: import { existsSync, readFileSync } from "node:fs";
L3: import { isAbsolute, join, resolve } from "node:path";
L4: const DEFAULT_URL = "http://127.0.0.1:13714";
L5: function enabled() {
L6: return !["0", "false", "off", "no"].includes((process.env.BLOK_INERTIA_SSR_ENABLED ?? "true").toLowerCase());
L7: }
```

### 10. Critical: Hardcoded Runtime Data Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/services/posthog.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/services/posthog.js>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```javascript
L9: version;
L10: constructor({ version, apiKey = "phc_2xrtQviE7fuks4uth84sqTIq7gOErCX7FOATRjHjzBa", host = "https://us.i.posthog.com", cliConfigPath, }) {
L11: this.version = version;
...
L13: try {
L14: const { distinctId, sessionId } = JSON.parse(readFileSync(cliConfigPath, "utf-8"));
L15: this.distinctId = distinctId;
...
L57: isTelemetryEnabled() {
L58: if (process.env.NO_NANOCTL_TELEMETRY) {
L59: return false;
...
L63: getDistinctId() {
L64: const machineId = os.hostname();
L65: return `blokctl-${machineId}`;
```

### 11. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/index.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/index.js spawns dist/commands/create/project.js; helper contains network access plus dynamic code execution.
L1: #!/usr/bin/env node
L2: import child_process from "node:child_process";
L3: import os from "node:os";
...
L49: const execResponse = await exec(`npm view ${CLI_NAME} version`);
L50: latestVersion = execResponse.stdout.trim();
L51: }
...
L71: try {
L72: const HOME_DIR = `${os.homedir()}/.blok`;
L73: const cliConfigPath = `${HOME_DIR}/blokctl.json`;
...
L192: .option("-f, --framework <value>", "Frontend framework: react, vue, svelte")
L193: .option("--blok-url <url>", "Blok server the dev proxy forwards to (default: http://localhost:4000)")
L194: .option("--pm <value>", "Package manager: npm, yarn, pnpm, bun")
```

### 12. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/services/posthog.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/services/posthog.js>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.main -> dist/index.js -> dist/services/posthog.js
L9: version;
L10: constructor({ version, apiKey = "phc_2xrtQviE7fuks4uth84sqTIq7gOErCX7FOATRjHjzBa", host = "https://us.i.posthog.com", cliConfigPath, }) {
L11: this.version = version;
...
L13: try {
L14: const { distinctId, sessionId } = JSON.parse(readFileSync(cliConfigPath, "utf-8"));
L15: this.distinctId = distinctId;
...
L57: isTelemetryEnabled() {
L58: if (process.env.NO_NANOCTL_TELEMETRY) {
L59: return false;
...
L63: getDistinctId() {
L64: const machineId = os.hostname();
L65: return `blokctl-${machineId}`;
```

### 13. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 14. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

### 15. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 16. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist/scaffold-repo/sdks/python3/bin/worker.py
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/scaffold-repo/sdks/python3/bin/worker.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = dist/scaffold-repo/sdks/python3/bin/worker.py
kind = build_helper
sizeBytes = 2018
magicHex = [redacted]
```

### 17. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** dist/scaffold-repo/sdks/python3/tests/test\_grpc\_server.py
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/scaffold-repo/sdks/python3/tests/test_grpc_server.py>)

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

Public source snippet (untrusted):

```python
path = dist/scaffold-repo/sdks/python3/tests/test_grpc_server.py
kind = payload_in_excluded_dir
sizeBytes = 16689
magicHex = [redacted]
```

### 18. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 19. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/commands/create/spa.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/create/spa.js%23virtual%3Anormalized%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 3
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/build/index.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/build/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/commands/build/index.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 21. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/create/node.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/create/node.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/commands/create/node.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 22. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/dev/index.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/dev/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/commands/dev/index.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/install/node.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/install/node.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/commands/install/node.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/publish/node.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/publish/node.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/commands/publish/node.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/routes/index.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/routes/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/commands/routes/index.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 26. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/services/js-worker.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/services/js-worker.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = dist/services/js-worker.js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 27. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/commands/generate/NodeFileWriter.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/generate/NodeFileWriter.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blokctl@2.3.0
matchedPath = [redacted].js
matchedIdentity = npm:Ymxva2N0bA:2.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 28. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/commands/create/project.js
- **Public source:** [View source](<https://unpkg.com/blokctl@2.5.4/dist/commands/create/project.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = blokctl@2.2.1
matchedIdentity = npm:Ymxva2N0bA:2.2.1
similarity = 0.767
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 25
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 8
- **Published dependency-graph edges:** 25

### Published dependency entries
- @ai-sdk/openai ^4.0.19 (Dependency)
- @blokjs/helper ^2.3.0 (Dependency)
- @blokjs/runner ^2.3.0 (Dependency)
- @blokjs/shared ^2.3.0 (Dependency)
- @clack/prompts ^1.0.0 (Dependency)
- ai ^7.0.36 (Dependency)
- better-sqlite3 ^12.11.1 (Dependency)
- chalk ^5.6.2 (Dependency)
- commander ^14.0.3 (Dependency)
- express ^4.21.2 (Dependency)
- fast-glob ^3.3.3 (Dependency)
- figlet ^1.10.0 (Dependency)
- fs-extra ^11.3.3 (Dependency)
- ink ^5.2.1 (Dependency)
- open ^11.0.0 (Dependency)
- picocolors ^1.1.1 (Dependency)
- pluralize ^8.0.0 (Dependency)
- posthog-node ^4.6.0 (Dependency)
- react ^18.3.0 (Dependency)
- serve-handler ^6.1.6 (Dependency)
- simple-git ^3.30.0 (Dependency)
- type-fest ^4.34.1 (Dependency)
- typescript ^5.8.3 (Dependency)
- yocto-spinner ^1.0.0 (Dependency)
- zod ^3.24.2 (Dependency)

## Package metadata
- **Package:** blokctl
- **Ecosystem:** npm
- **Version:** 2.5.4
- **License:** Apache-2.0
- **Version published:** 2026-09-30T07:13:59.377Z
- **Package first seen:** 2026-07-02T00:37:45.164Z
- **Package last seen:** 2026-09-30T19:50:59.153Z
- **Known versions:** 14
- **Latest version:** 2.5.5
- **Appeal under review:** No
- **Description:** cli for blok
- **Deprecated:** Regression: WebSocket/SSE/Webhook workflows authored with workflow() under src/workflows are not mounted. Upgrade to blokctl@2.5.5.
- **Author:** Deskree Technologies Inc.
- **Maintainers:** well-prado
- **Keywords:** blokctl, cli, blok, blok
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 1351
- **Artifact unpacked size:** 10,096,695 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/blokctl/v/2.5.4>)
