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

# @osfactory/har@0.32.1 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 20 findings 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:** 0.32.1
- **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 postinstall hook enables telemetry by default, including prompt capture, so this warrants a warning under the install-time telemetry rule. The reviewed source defaults the endpoint to localhost and shows no fixed unofficial credential redirection.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 90.0%
- **Started:** 2026-11-06T14:57:00.404Z
- **Finished:** 2026-11-06T14:57:53.886Z
- **Download time:** 1287 ms
- **Static scan time:** 9354 ms
- **AI review time:** 42840 ms
- **Total time:** 53482 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 default postinstall preference enables telemetry signals, including prompt capture, for later hook setup.

- **Trigger:** npm install when no telemetry preference file already exists.

- **Impact:** If telemetry hooks are later configured, agent activity and raw prompt text may be collected without an affirmative opt-in.

- **Evidence paths:** package.json, scripts/ensure-telemetry-default.cjs, dist/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-06T14:57:53.886Z

### AI review details

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

- **Mechanism:** The postinstall script writes enabled=true with metrics, logs, prompts, and traces enabled; runtime hook configuration uses the control API URL, which defaults to localhost.

- **Rationale:** The postinstall hook enables telemetry by default, including prompt capture, so this warrants a warning under the install-time telemetry rule. The reviewed source defaults the endpoint to localhost and shows no fixed unofficial credential redirection.

- **Files touched:** ~/.har/telemetry.json, ~/.har/otel-hooks/otel\_config.json

- **Network endpoints:** http://localhost:3847

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 90.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The npm postinstall hook runs scripts/ensure-telemetry-default.cjs., On a new install, that script enables metrics, logs, prompts, and traces by default., The CLI documents capture of user prompts and provides a telemetry-off command., Hook configuration uses the control API URL, which defaults to localhost.

- **Evidence against:** The postinstall script only writes a local preference file; it does not itself send data or install telemetry hooks., The source describes telemetry signals and provides a way to disable telemetry., Anthropic API requests use the documented api.anthropic.com default; no fixed unofficial credential destination was found.

## Affected versions and remediation

This report applies to @osfactory/har@0.32.1.

- Review the evidence and your use of @osfactory/har@0.32.1 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/@osfactory/har@0.32.1/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/ensure-telemetry-default.cjs
```

### 2. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

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

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

Package declares npm scripts.

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

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L6750: function commandExists2(command2) {
L6751: const result = (0, import_child_process10.spawnSync)("sh", ["-c", `command -v ${JSON.stringify(command2)}`], {
L6752: encoding: "utf8"
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L73362: if (process.platform === "win32") {
L73363: if (commandExists("powershell")) {
L73364: const result = (0, import_child_process2.spawnSync)(
```

### 6. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L30748: sourceCode = this.opts.code.process(sourceCode, sch);
L30749: const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);
L30750: const validate = makeValidate(this, this.scope.get());
```

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L11: };
L12: var __commonJS = (cb, mod) => function __require() {
L13: return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 11. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/index.js:
fs2.writeFileSync(preferencePath, JSON.stringify(preference, null, 2) + "\n");
return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
cannotBeABaseURL: false
this.url.cannotBeABaseURL = true;
if (this.base === null || this.base.cannotBeABaseURL && c2 !== 35) {
} else if (this.base.cannotBeABaseURL && c2 === 35) {
this.url.cannotBeABaseURL = true;
URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c2) {
```

### 12. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L72244: const { stream: _stream, ...spawnOptions } = options;
L72245: return new Promise((resolve42) => {
L72246: const proc = (0, import_child_process.spawn)("bash", [scriptPath, ...args], {
L72247: ...spawnOptions,
...
L72249: });
L72250: let stdout = "";
L72251: let stderr = "";
...
L72253: stdout += d2;
L72254: if (stream) process.stdout.write(d2);
L72255: });
```

### 13. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/index.js
L72244: const { stream: _stream, ...spawnOptions } = options;
L72245: return new Promise((resolve42) => {
L72246: const proc = (0, import_child_process.spawn)("bash", [scriptPath, ...args], {
L72247: ...spawnOptions,
...
L72249: });
L72250: let stdout = "";
L72251: let stderr = "";
...
L72253: stdout += d2;
L72254: if (stream) process.stdout.write(d2);
L72255: });
```

### 14. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/index.js>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L6768: }
L6769: const result = (0, import_child_process10.spawnSync)(
L6770: "npm",
...
L6774: if (result.status === 0 && fs42.existsSync(localOtelHookBin(hooksHome))) {
L6775: return { ok: true, detail: `npm install --prefix ${hooksHome} ${OTEL_HOOKS_PACKAGE}` };
L6776: }
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 17. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist/templates/plugins/rocketsim/flows/example-smoke.sh
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/templates/plugins/rocketsim/flows/example-smoke.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = [redacted]-smoke.sh
kind = build_helper
sizeBytes = 3031
magicHex = [redacted]
```

### 18. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** dist/templates/plugins/rocketsim/.har/stages/rocketsim-flows.sh
- **Public source:** [View source](<https://unpkg.com/@osfactory/har@0.32.1/dist/templates/plugins/rocketsim/.har/stages/rocketsim-flows.sh>)

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

Public source snippet (untrusted):

```shell
path = [redacted]/.har/stages/rocketsim-flows.sh
kind = payload_in_excluded_dir
sizeBytes = 6653
magicHex = [redacted]
```

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

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

Package manifest declares a copyleft-style license.

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

### Published dependency entries
- @anthropic-ai/sdk ^0.27.0 (Dependency)
- @modelcontextprotocol/sdk ^1.29.0 (Dependency)
- @pydantic/genai-prices ^0.0.73 (Dependency)
- chalk ^5.3.0 (Dependency)
- inquirer ^10.1.2 (Dependency)
- js-yaml ^4.1.0 (Dependency)
- ora ^8.0.1 (Dependency)
- yargs ^17.7.2 (Dependency)
- zod ^3.23.8 (Dependency)

## Package metadata
- **Package:** @osfactory/har
- **Ecosystem:** npm
- **Version:** 0.32.1
- **License:** AGPL-3.0-only
- **Version published:** 2026-07-30T13:16:03.492Z
- **Package first seen:** 2026-07-24T13:38:39.745Z
- **Package last seen:** 2026-11-23T17:56:24.679Z
- **Known versions:** 63
- **Latest version:** 1.30.4
- **Appeal under review:** No
- **Description:** LLM-powered CLI for reproducible agent development environments
- **Author:** Antoine Frau
- **Maintainers:** theosfactory
- **Keywords:** har, cli, mcp, agent, harness, llm, devops
- **Runtime engines:** node: \>=20
- **Artifact files:** 87
- **Artifact unpacked size:** 4,021,970 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@osfactory/har/v/0.32.1>)
- [Repository](<https://github.com/os-factory/har>)
- [Homepage](<https://harproject.dev/>)
- [Issues](<https://github.com/os-factory/har/issues>)
