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

# hyn-view@1.12.0 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 — allowed with a warning** — Allowed by default policy, but 12 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Persistence
- **Selected version:** 1.12.0
- **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.

The package is not shown to perform a concrete malicious action, but its install hook establishes persistent unrestricted root services and automatic self-updates. That warrants a warning rather than publication blocking under the stated policy.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-09-11T19:19:36.910Z
- **Finished:** 2026-09-11T19:21:03.503Z
- **Download time:** 514 ms
- **Static scan time:** 49 ms
- **AI review time:** 86027 ms
- **Total time:** 86593 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 root global npm install persists root-owned systemd services and enables automatic self-updates. This is a high-impact installer design, but source inspection found no credential theft, arbitrary remote command execution, or foreign AI-agent configuration changes.

- **Trigger:** Run npm install -g hyn-view as root on a Linux system with systemd.

- **Impact:** The package gains recurring root execution and can replace its own installed release.

- **Evidence paths:** package.json, scripts/postinstall.sh, lib/setup.sh, lib/core.sh, lib/update.sh

- **Review source:** ai\_review

- **Reviewed:** 2026-09-11T19:21:03.503Z

### AI review details

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

- **Mechanism:** Postinstall creates and enables persistent services that can update the package.

- **Rationale:** The package is not shown to perform a concrete malicious action, but its install hook establishes persistent unrestricted root services and automatic self-updates. That warrants a warning rather than publication blocking under the stated policy.

- **Files touched:** /etc/hyn-view, /var/lib/hyn-view, /etc/systemd/system, /usr/local/bin/hyn

- **Network endpoints:** https://registry.npmjs.org

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 88.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The package runs a postinstall script automatically., On root global installs, postinstall invokes unattended setup., Setup deliberately grants its systemd services full filesystem write access., Setup enables a persistent root agent and update timer., Automatic updates are enabled by default and install newer releases from npm.

- **Evidence against:** Local installs exit without configuring services., The lifecycle script requires a global Linux install running as root., Portal pairing and telemetry require a separate user command and token., The updater uses npm with lifecycle scripts disabled during its self-update step.

## Affected versions and remediation

This report applies to hyn-view@1.12.0.

- Review the evidence and your use of hyn-view@1.12.0 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/hyn-view@1.12.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = bash scripts/postinstall.sh
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = bash scripts/postinstall.sh
```

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

Package declares npm scripts.

### 4. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** test/bandwidth.sh
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/test/bandwidth.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = test/bandwidth.sh
kind = build_helper
sizeBytes = 3906
magicHex = [redacted]
```

### 5. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** test/bandwidth.sh
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/test/bandwidth.sh>)

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

Public source snippet (untrusted):

```shell
path = test/bandwidth.sh
kind = payload_in_excluded_dir
sizeBytes = 3906
magicHex = [redacted]
```

### 6. 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.

### 7. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** bin/hyn
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/bin/hyn>)

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 = 1
```

### 8. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/highway.sh
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/lib/highway.sh>)

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

Public source snippet (untrusted):

```shell
matchType = normalized_sha256
matchedPackage = hyn-view@1.8.0
matchedPath = lib/highway.sh
matchedIdentity = npm:aHluLXZpZXc:1.8.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 9. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/ui.sh
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/lib/ui.sh>)

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

Public source snippet (untrusted):

```shell
matchType = normalized_sha256
matchedPackage = hyn-view@1.8.0
matchedPath = lib/ui.sh
matchedIdentity = npm:aHluLXZpZXc:1.8.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 10. Medium: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 88.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/package.json>)

The package runs a postinstall script automatically.

Public source snippet (untrusted):

```json
"scripts": {
    "postinstall": "bash scripts/postinstall.sh",
    "test": "bash test/selfcheck.sh && bash test/cloud-integration.sh && bash test/update-workflow.sh && bash test/local-storage.sh && bash test/unattended.sh && bash test/bandwidth.sh && bash test/release-reliability.sh && bash test/report-reliability.sh",
```

### 11. Medium: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 88.0%
- **Path:** scripts/postinstall.sh
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/scripts/postinstall.sh>)

On root global installs, postinstall invokes unattended setup.

Public source snippet (untrusted):

```text
case ${npm[redacted]:-} in
  true | 1) ;;
  *)
    say 'local install detected; not configuring system services'
    say 'run `sudo hyn setup` if this was meant to be a global install'
    exit 0 ;;
esac

[[ $(uname -s 2>/dev/null) == Linux ]] || { say 'not Linux; nothing to configure'; exit 0; }

if [[ ${EUID:-$(id -u)} -ne 0 ]]; then
  say 'not running as root, so the timers were not installed'
  say 'finish with: sudo hyn setup --no-wizard'
  exit 0
fi

command -v systemctl >/dev/null 2>&1 || {
  say 'no systemd here; the CLI works but nothing will be scheduled'
  exit 0
}

# Resolve
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 88.0%
- **Path:** lib/setup.sh
- **Public source:** [View source](<https://unpkg.com/hyn-view@1.12.0/lib/setup.sh>)

Setup deliberately grants its systemd services full filesystem write access.

Public source snippet (untrusted):

```text
# hyn has FULL WRITE ACCESS to the filesystem. That is deliberate and it is a
# reversal: these units used to run under ProtectSystem=strict with
# ReadWritePaths limited to one state directory, which read well in a README and
# in practice meant the agent could not install its own updates, could not
# rewrite its own units, and could not repair itself -- every one of those needs
# /usr and /etc. A monitor that cannot fix itself on an unattended box is worse
# than one with a wide mount namespace.
```

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

## Package metadata
- **Package:** hyn-view
- **Ecosystem:** npm
- **Version:** 1.12.0
- **License:** MIT
- **Version published:** 2026-09-11T19:17:44.061Z
- **Package first seen:** 2026-08-06T21:29:43.148Z
- **Package last seen:** 2026-10-15T17:28:03.231Z
- **Known versions:** 11
- **Latest version:** 2.1.0
- **Appeal under review:** No

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