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

# @guandata/guanmetric@0.1.17 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:** 0.1.17
- **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.

LPM treats this as warn-only first-party agent extension lifecycle risk. A global-install postinstall hook automatically installs an AI skill and copies it into two assistant configuration locations. No credential theft, data exfiltration, or destructive behavior was identified in the inspected scripts.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 86.0%
- **Started:** 2026-09-29T14:35:46.377Z
- **Finished:** 2026-09-29T14:38:10.872Z
- **Download time:** 1272 ms
- **Static scan time:** 154 ms
- **AI review time:** 143068 ms
- **Total time:** 144495 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:** A global-install postinstall hook automatically installs an AI skill and copies it into two assistant configuration locations. No credential theft, data exfiltration, or destructive behavior was identified in the inspected scripts.

- **Trigger:** A global npm installation or upgrade outside CI, without the opt-out flag.

- **Impact:** This is a guarded automatic AI-agent extension installation affecting user home configuration, but no confirmed active attack surface was established.

- **Evidence paths:** bin/postinstall.js, bin/run.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-29T14:38:10.872Z

### AI review details

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

- **Mechanism:** The hook starts the package launcher with install-skill; that path non-interactively calls the skills installer and then copies the bundled skill to CodeBuddy and WorkBuddy directories.

- **Rationale:** The automatic postinstall mutation of AI-assistant skill locations is a concrete guarded extension lifecycle risk. Its constraints and absence of a demonstrated harmful payload support a warning rather than a block.

- **Files touched:** .codebuddy/skills/guanmetric, .workbuddy/skills/guanmetric

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 86.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for warning:** The package registers a postinstall hook that launches bin/postinstall.js., The hook runs only for global, non-CI installs unless an opt-out environment flag is set, then invokes install-skill., The install-skill path non-interactively invokes npx skills add with global-install flags., After that command succeeds, it copies the package skill into CodeBuddy and WorkBuddy configuration directories.

- **Evidence against:** The lifecycle hook skips local installs and CI, and supports an explicit opt-out., No source inspected shows credential collection, data transmission, destructive actions, or remote payload execution.

## Affected versions and remediation

This report applies to @guandata/guanmetric@0.1.17.

- Review the evidence and your use of @guandata/guanmetric@0.1.17 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/@guandata/guanmetric@0.1.17/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/@guandata/guanmetric@0.1.17/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: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 7. Medium: Ships Native Binary
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** binaries/guanmetric-darwin-arm64
- **Public source:** [View source](<https://unpkg.com/@guandata/guanmetric@0.1.17/binaries/guanmetric-darwin-arm64>)

Package ships native binary artifacts.

Public source snippet (untrusted):

```text
path = binaries/guanmetric-darwin-arm64
kind = native_binary
sizeBytes = 11871570
magicHex = [redacted]
```

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

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

### 9. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

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

The package registers a postinstall hook that launches bin/postinstall.js.

Public source snippet (untrusted):

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

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

The hook runs only for global, non-CI installs unless an opt-out environment flag is set, then invokes install-skill.

Public source snippet (untrusted):

```javascript
console.log(`[${CLI_NAME}] postinstall: refreshing AI skill (${CLI_NAME} install-skill)...`);
  const result = spawnSync(
    process.execPath,
    [path.join(__dirname, "run.js"), "install-skill"],
    { stdio: "inherit", env: process.env, timeout: 180000 }
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 86.0%
- **Path:** bin/run.js
- **Public source:** [View source](<https://unpkg.com/@guandata/guanmetric@0.1.17/bin/run.js>)

The install-skill path non-interactively invokes npx skills add with global-install flags.

Public source snippet (untrusted):

```javascript
const args = [
    // --yes: postinstall 等非交互环境下 npx 需要免确认下载 skills CLI
    "--yes",
    "skills",
    "add",
    pkgRoot,
    "--skill",
    "guanmetric",
    "-g",
    "-y",
    ...extraArgs,
  ];
  console.log("Installing guanmetric to AI coding assistants...");
  const npxInvocation = resolveNpxInvocation();
  const result = spawnSync(npxInvocation.command, [...npxInvocation.argsPrefix, ...args], {
    // Avoid leaking project-only Agent markers (for example Pro
```

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

## Package metadata
- **Package:** @guandata/guanmetric
- **Ecosystem:** npm
- **Version:** 0.1.17
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-09-18T06:04:47.884Z
- **Package first seen:** 2026-07-23T11:40:54.605Z
- **Package last seen:** 2026-09-29T14:38:40.443Z
- **Known versions:** 12
- **Latest version:** 0.1.19
- **Appeal under review:** No
- **Description:** 观远 BI 指标写操作工具 - 指标创建编辑删除、指标目录、公共维度、Excel 标准化
- **Maintainers:** liushuaimaya, wanghefeng-guandata, lemon2zhao, wubaoqi, jameswhf, amberoasis, wangjialin
- **Keywords:** guandata, metric, cli, agent-skill
- **Runtime engines:** node: \>=14
- **Supported OS:** darwin, linux, win32
- **Artifact files:** 26
- **Artifact unpacked size:** 61,490,585 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@guandata/guanmetric/v/0.1.17>)
