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

# @shuv1337/shuvgrok@1.0.7 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 agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 1.0.7
- **Selected version is latest:** Yes
- **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.

The source establishes automatic shared AI CLI state mutation and execution of an unavailable platform binary, but does not establish concrete malicious behavior such as exfiltration or destructive action. A warning is warranted for the unresolved lifecycle payload and control-surface change.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 86.0%
- **Started:** 2026-08-31T09:42:23.142Z
- **Finished:** 2026-08-31T09:43:57.343Z
- **Download time:** 506 ms
- **Static scan time:** 63 ms
- **AI review time:** 93631 ms
- **Total time:** 94201 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:** Installation automatically writes to the shared Grok home and installs a platform binary there. The inspected wrapper then executes that binary.

- **Trigger:** npm installation runs postinstall; invoking shuvgrok runs the materialized binary.

- **Impact:** A package install can alter the local Grok CLI environment and execute an uninspected platform payload.

- **Evidence paths:** package.json, bin/postinstall.js, bin/shuvgrok

- **Review source:** ai\_review

- **Reviewed:** 2026-08-31T09:43:57.343Z

### AI review details

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

- **Mechanism:** Postinstall binary deployment and shared Grok configuration mutation.

- **Rationale:** The source establishes automatic shared AI CLI state mutation and execution of an unavailable platform binary, but does not establish concrete malicious behavior such as exfiltration or destructive action. A warning is warranted for the unresolved lifecycle payload and control-surface change.

- **Files touched:** ~/.grok/bin/shuvgrok, ~/.grok/bin/shuvgrok-\<version\>, ~/.grok/config.toml

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 86.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** An automatic postinstall hook runs package code during npm installation., The hook modifies the shared Grok home configuration without an explicit setup command., The command trampoline materializes a platform binary and executes it; the binary payload is outside this snapshot.

- **Evidence against:** No network request, credential collection, or exfiltration logic appears in the inspected JavaScript., The installer uses a distinct shuvgrok command and writes an installer marker rather than upstream command settings., No self-dependency or nested lifecycle chain is declared.

## Affected versions and remediation

This report applies to @shuv1337/shuvgrok@1.0.7.

- Review the evidence and your use of @shuv1337/shuvgrok@1.0.7 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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/postinstall.js
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/postinstall.js
```

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

Package declares npm scripts.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 6. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/package.json>)

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

Public source snippet (untrusted):

```json
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 1
```

### 7. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/bin/postinstall.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 = @shuv1337/shuvgrok@1.0.6
matchedPath = bin/postinstall.js
matchedIdentity = npm:QHNodXYxMzM3L3NodXZncm9r:1.0.6
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 8. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/shuvgrok
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/bin/shuvgrok>)

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

Public source snippet (untrusted):

```text
matchType = normalized_sha256
matchedPackage = @shuv1337/shuvgrok@1.0.6
matchedPath = bin/shuvgrok
matchedIdentity = npm:QHNodXYxMzM3L3NodXZncm9r:1.0.6
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 9. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** bin/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/bin/postinstall.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = 2142ac7998c3aeff
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @shuv1337/shuvgrok@1.0.6
matchedPath = bin/postinstall.js
matchedIdentity = npm:QHNodXYxMzM3L3NodXZncm9r:1.0.6
similarity = 1.000
shingleOverlap = 3
summary = package final verdict is malicious
```

### 10. Medium: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 86.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/package.json>)

An automatic postinstall hook runs package code during npm installation.

Public source snippet (untrusted):

```json
"scripts": {
        "postinstall": "node bin/postinstall.js"
    },
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 86.0%
- **Path:** bin/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/bin/postinstall.js>)

The hook modifies the shared Grok home configuration without an explicit setup command.

Public source snippet (untrusted):

```javascript
const configDir = GROK_HOME;
const configPath = path.join(configDir, 'config.toml');
let obj = {};
try { obj = TOML.parse(fs.readFileSync(configPath, 'utf8')); } catch { }
obj.cli ??= {};
obj.cli.installer = 'npm';
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 86.0%
- **Path:** bin/shuvgrok
- **Public source:** [View source](<https://unpkg.com/@shuv1337/shuvgrok@1.0.7/bin/shuvgrok>)

The command trampoline materializes a platform binary and executes it; the binary payload is outside this snapshot.

Public source snippet (untrusted):

```text
const execPath = resolveBinary();
const childEnv = { ...process.env, GROK_MANAGED_BY_NPM: '1' };
const child = spawn(execPath, process.argv.slice(2), { stdio: 'inherit', env: childEnv });
child.on('exit', (code, signal) => {
    if (signal) {
        process.kill(process.pid, signal);
    } else {
        process.exit(code ?? 0);
    }
});
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall
- **Dependencies:** 1
- **Optional dependencies:** 6
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 7

### Published dependency entries
- @iarna/toml ^3.0.0 (Dependency)
- @shuv1337/shuvgrok-darwin-arm64 1.0.7 (OptionalDependency)
- @shuv1337/shuvgrok-darwin-x64 1.0.7 (OptionalDependency)
- @shuv1337/shuvgrok-linux-arm64 1.0.7 (OptionalDependency)
- @shuv1337/shuvgrok-linux-x64 1.0.7 (OptionalDependency)
- @shuv1337/shuvgrok-win32-arm64 1.0.7 (OptionalDependency)
- @shuv1337/shuvgrok-win32-x64 1.0.7 (OptionalDependency)

## Package metadata
- **Package:** @shuv1337/shuvgrok
- **Ecosystem:** npm
- **Version:** 1.0.7
- **License:** Apache-2.0
- **Version published:** 2026-08-31T09:39:17.536Z
- **Package first seen:** 2026-08-17T00:41:56.966Z
- **Package last seen:** 2026-08-31T09:43:57.343Z
- **Known versions:** 4
- **Latest version:** 1.0.7
- **Appeal under review:** No
- **Description:** ShuvGrok: bring Grok into your terminal
- **Maintainers:** shuvtemp, kcrommett
- **Runtime engines:** node: \>=20
- **Supported OS:** darwin, linux, win32
- **Supported CPU:** arm64, x64
- **Artifact files:** 4
- **Artifact unpacked size:** 20,417 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@shuv1337/shuvgrok/v/1.0.7>)
- [Repository](<https://github.com/shuv1337/shuvgrok>)
- [Homepage](<https://github.com/shuv1337/shuvgrok#readme>)
- [Issues](<https://github.com/shuv1337/shuvgrok/issues>)
