---
canonical: "https://firewall.lpm.dev/npm/@ohos-ports/treehouses-cli"
markdown: "https://firewall.lpm.dev/npm/@ohos-ports/treehouses-cli/report.md"
package: "@ohos-ports/treehouses-cli"
report_status: "published"
title: "@ohos-ports/treehouses-cli@1.26.23-beta.0 npm security report"
verdict: "suspicious"
version: "1.26.23-beta.0"
---

# @ohos-ports/treehouses-cli@1.26.23-beta.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:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 1.26.23-beta.0
- **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.

This is a suspicious package because its root lifecycle scripts modify system paths and its feedback command sends identifying host and device details to a hard-coded webhook without clearly disclosing those fields. The available source does not show that this data is sent automatically during installation or import.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 92.0%
- **Started:** 2026-11-03T13:13:52.825Z
- **Finished:** 2026-11-03T13:14:47.043Z
- **Download time:** 2288 ms
- **Static scan time:** 70 ms
- **AI review time:** 51860 ms
- **Total time:** 54218 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:** The package has a root-only install hook that adds system bash completion, and its feedback path sends identifying device details to a hard-coded Discord webhook.

- **Trigger:** Installation or removal as root triggers the completion/config file changes. Running the feedback command with a message triggers the outbound request.

- **Impact:** The install hook creates system-wide completion and uninstall can delete /etc/treehouses.conf. Feedback shares identifying device details beyond the message with the developers' webhook without clearly disclosing those fields in the feedback prompt.

- **Evidence paths:** package.json, cli.sh, modules/feedback.sh

- **Review source:** ai\_review

- **Reviewed:** 2026-11-03T13:14:47.043Z

### AI review details

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

- **Mechanism:** The lifecycle scripts modify paths under /etc. The feedback function fetches the public IP and posts it with the host name, device/version details, and submitted message to a Discord webhook whose URL is encoded in cli.sh.

- **Rationale:** This is a suspicious package because its root lifecycle scripts modify system paths and its feedback command sends identifying host and device details to a hard-coded webhook without clearly disclosing those fields. The available source does not show that this data is sent automatically during installation or import.

- **Files touched:** /etc/bash\_completion.d/\_treehouses, /etc/treehouses.conf

- **Network endpoints:** ifconfig.io, discord.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 92.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** When installed as root, postinstall creates a system bash-completion symlink; postuninstall can also remove /etc/treehouses.conf., The feedback command sends the host name, public IP address, device and software details, and the submitted message to a hard-coded Discord webhook.

- **Evidence against:** The package describes itself as a Raspberry Pi configuration CLI, and its feedback feature is intended to share feedback with developers., The CLI exposes the feedback command for an explicit user request; no evidence found that the webhook is contacted automatically on import or install.

## Affected versions and remediation

This report applies to @ohos-ports/treehouses-cli@1.26.23-beta.0.

- Review the evidence and your use of @ohos-ports/treehouses-cli@1.26.23-beta.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/@ohos-ports/treehouses-cli@1.26.23-beta.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = if [ $(id -u) = 0 ]; then ln -srf _treehouses /etc/bash_completion.d/_treehouses; fi && exit 0
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/package.json>)

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

Public source snippet (untrusted):

```json
scripts.postinstall = if [ $(id -u) = 0 ]; then ln -srf _treehouses /etc/bash_completion.d/_treehouses; fi && exit 0
```

### 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: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** cli.sh
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/cli.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = cli.sh
kind = build_helper
sizeBytes = 1288
magicHex = [redacted]
```

### 6. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** tests/test-helper.bash
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/tests/test-helper.bash>)

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

Public source snippet (untrusted):

```shell
path = tests/test-helper.bash
kind = payload_in_excluded_dir
sizeBytes = 848
magicHex = [redacted]
```

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

### 8. Low: Copyleft License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest declares a copyleft-style license.

### 9. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** cli.sh
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/cli.sh>)

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

Public source snippet (untrusted):

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

### 10. Medium: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 92.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/package.json>)

When installed as root, postinstall creates a system bash-completion symlink; postuninstall can also remove /etc/treehouses.conf.

Public source snippet (untrusted):

```json
"scripts": {
    "postinstall": "if [ $(id -u) = 0 ]; then ln -srf _treehouses /etc/bash_completion.d/_treehouses; fi && exit 0",
    "postuninstall": "if [ $(id -u) = 0 ]; then rm /etc/bash_completion.d/_treehouses; i
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 92.0%
- **Path:** modules/feedback.sh
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/modules/feedback.sh>)

The feedback command sends the host name, public IP address, device and software details, and the submitted message to a hard-coded Discord webhook.

Public source snippet (untrusted):

```text
if ! [[ -z "$message" ]]; then
    ip_address=$(curl ifconfig.io -s)
    if [[ ! $ip_address =~ $ip6_regex ]] && [[ ! $ip_address =~ $ip4_regex ]]; then
      ip_address="invalid address"
    fi
    message="${message//\`/}"
    if [ "$(detectrpi)" != "nonrpi" ]; then
      body="{\"content\":\"**$(hostname)** $ip_address $(version) $(detectrpi) $(cat /boot/version.txt)\n$message\"}"
    else
      body="{\"content\":\"**$(hostname)** $ip_address $(version) $(detect)\n$message\"}"
    fi
    curl -s -X POST -H "Content-Type:application/json" "$chat$hook" -d "$body" > "$LO
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 92.0%
- **Path:** cli.sh
- **Public source:** [View source](<https://unpkg.com/@ohos-ports/treehouses-cli@1.26.23-beta.0/cli.sh>)

The feedback command sends the host name, public IP address, device and software details, and the submitted message to a hard-coded Discord webhook.

Public source snippet (untrusted):

```text
chat="$(echo [redacted]== | openssl enc -d -pbkdf2 -a -salt -pass 'pass:I&l_v^diS%%repo')"
hook="$(echo [redacted]
```

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

## Package metadata
- **Package:** @ohos-ports/treehouses-cli
- **Ecosystem:** npm
- **Version:** 1.26.23-beta.0
- **License:** AGPL-3.0-only
- **Version published:** 2026-11-03T13:08:51.732Z
- **Package first seen:** 2026-11-03T13:14:47.043Z
- **Package last seen:** 2026-11-03T13:14:47.043Z
- **Known versions:** 1
- **Latest version:** 1.26.23-beta.0
- **Appeal under review:** No
- **Description:** Thin command-line interface for Raspberry Pi low level configuration.
- **Author:** OLE treehouses team
- **Maintainers:** social4hyq, zhenghongfei, z30010987, louzen, yzz\_0126, virtfans, npm\_3rd\_aoe, ljry, lljry, w30010987
- **Keywords:** raspberry pi, raspberrypi, rpi, cli, bluetooth, ethernet, wifi, hotspot, bridge, vnc, ntp, timezone
- **Artifact files:** 296
- **Artifact unpacked size:** 44,646,726 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@ohos-ports/treehouses-cli>)
- [Repository](<https://github.com/ohos-ports/ohos-ports>)
- [Homepage](<https://github.com/treehouses/cli>)
- [Issues](<https://github.com/ohos-ports/ohos-ports/issues>)
