---
canonical: "https://firewall.lpm.dev/npm/@buntok/core"
markdown: "https://firewall.lpm.dev/npm/@buntok/core/v/1.0.2.md"
package: "@buntok/core"
report_status: "published"
title: "@buntok/core@1.0.2 npm security report"
verdict: "malicious"
version: "1.0.2"
---

# @buntok/core@1.0.2 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
**Blocked & quarantined** — Existing consumer documentation is overwritten without a consent check.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Install Hook Abuse
- **Selected version:** 1.0.2
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The unconsented postinstall overwrite of a broad consumer project file establishes concrete destructive behavior. This supports blocking publication as install\_hook\_abuse.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-10-10T03:33:10.038Z
- **Finished:** 2026-10-10T03:33:42.736Z
- **Download time:** 1003 ms
- **Static scan time:** 575 ms
- **AI review time:** 31118 ms
- **Total time:** 32698 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 automatic postinstall hook replaces the consumer project's root README.md with this package's README.md. This can destroy the consumer's existing project documentation.

- **Trigger:** Installing the package when npm runs its postinstall lifecycle hook.

- **Impact:** Existing consumer documentation is overwritten without a consent check.

- **Evidence paths:** package.json, scripts/postinstall.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-10-10T03:33:42.736Z

### AI review details

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

- **Mechanism:** The hook resolves the project root from INIT\_CWD or the current directory, then writes the package README to that root's README.md even when that file already exists.

- **Attack narrative:** During postinstall, the package targets the consumer project's root README.md and unconditionally writes its own README content there. An existing README is overwritten, creating an install-time destructive effect.

- **Rationale:** The unconsented postinstall overwrite of a broad consumer project file establishes concrete destructive behavior. This supports blocking publication as install\_hook\_abuse.

- **Files touched:** README.md

### Review decision

- **Verdict:** Malicious

- **Confidence:** 96.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** package.json runs scripts/postinstall.mjs automatically during postinstall., The hook selects the invoking project root and targets its README.md., The hook overwrites an existing root README.md with this package's README without a consent check.

- **Evidence against:** The copied content comes from this package's README.md., The inspected hook does not show network access or credential handling.

## Affected versions and remediation

This report applies to @buntok/core@1.0.2.

- Avoid installing @buntok/core@1.0.2. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@buntok/core@1.0.2/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.mjs
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.mjs
```

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

Package declares npm scripts.

### 4. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/core-exports.cjs
- **Public source:** [View source](<https://unpkg.com/@buntok/core@1.0.2/dist/core-exports.cjs>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L1935: }
L1936: const factory = new Function("fns", `return function(ctx) { ${code} }`);
L1937: return factory(fns);
```

### 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. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

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

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

### 9. High: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 96.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@buntok/core@1.0.2/package.json>)

package.json runs scripts/postinstall.mjs automatically during postinstall.

Public source snippet (untrusted):

```json
"postinstall": "node scripts/postinstall.mjs"
	},
	"keywords
```

### 10. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 96.0%
- **Path:** scripts/postinstall.mjs
- **Public source:** [View source](<https://unpkg.com/@buntok/core@1.0.2/scripts/postinstall.mjs>)

The hook selects the invoking project root and targets its README.md.

Public source snippet (untrusted):

```javascript
// Get the project root (where npm was invoked)
const projectRoot = process.env.INIT_CWD || process.cwd();

// Source: README.md in this package
const sourceReadme = join(__dirname, "..", "README.md");

// Destination: project root
const destReadme = join(proj
```

### 11. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 96.0%
- **Path:** scripts/postinstall.mjs
- **Public source:** [View source](<https://unpkg.com/@buntok/core@1.0.2/scripts/postinstall.mjs>)

The hook overwrites an existing root README.md with this package's README without a consent check.

Public source snippet (untrusted):

```javascript
const content = readFileSync(sourceReadme, "utf-8");

  if (existsSync(destReadme)) {
    console.log("[postinstall] Updating README.md in project root...");
  } else {
    console.log("[postinstall] Creating README.md in project root...");
  }

  writeFileSync(destReadme, content, "utf-8");
  console.log("[postinstall] Done! README.md has been w
```

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

### Published dependency entries
- zod ^4.4.3 (Dependency)
- bun \>=1.0.0 (PeerDependency)

## Package metadata
- **Package:** @buntok/core
- **Ecosystem:** npm
- **Version:** 1.0.2
- **License:** MIT
- **Version published:** 2026-08-22T08:19:15.927Z
- **Package first seen:** 2026-08-22T12:19:26.405Z
- **Package last seen:** 2026-10-16T07:18:00.202Z
- **Known versions:** 25
- **Latest version:** 2.2.4
- **Appeal under review:** No
- **Description:** Core HTTP framework for Bun — Express-like, bring your own structure
- **Author:** Pitok
- **Keywords:** bun, framework, web, api, typescript, http, express
- **Artifact files:** 30
- **Artifact unpacked size:** 682,155 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@buntok/core/v/1.0.2>)
