---
canonical: "https://firewall.lpm.dev/npm/native-gravity"
markdown: "https://firewall.lpm.dev/npm/native-gravity/v/2.1.0.md"
package: "native-gravity"
report_status: "published"
title: "native-gravity@2.1.0 npm security report"
verdict: "policy_finding"
version: "2.1.0"
---

# native-gravity@2.1.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
**Blocked: dependency script approvals** — Future Bun updates can run this package's install scripts without a new approval.

- **Verdict:** Dependency script approval policy finding
- **Product-default install policy:** Block by default
- **Firewall policy:** Block by default
- **Public report status:** Published
- **Threat category:** Dependency script approval abuse
- **Selected version:** 2.1.0
- **Selected version is latest:** Yes
- **Analysis source:** AI security review (lpm-firewall-ai)

This finding concerns install-time expansion of the consumer project's dependency script approvals without explicit informed approval. The published action protects a security boundary; this behavior alone does not establish malicious author intent.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The reachable postinstall writes package-manager script approvals into the user's global Bun configuration. Because this grants future install-script approval without a separate request, classify it as dependency script approval abuse.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 94.0%
- **Started:** 2026-11-23T02:24:06.547Z
- **Finished:** 2026-11-23T02:25:08.777Z
- **Download time:** 262 ms
- **Static scan time:** 1287 ms
- **AI review time:** 60680 ms
- **Total time:** 62230 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 install hook changes Bun's global install-script trust list.

- **Trigger:** Package installation runs the postinstall hook.

- **Impact:** Future Bun updates can run this package's install scripts without a new approval.

- **Evidence paths:** package.json, scripts/npm-install.mjs, README.md

- **Review source:** ai\_review

- **Reviewed:** 2026-11-23T02:25:08.777Z

### AI review details

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

- **Mechanism:** The hook adds this package's names to `trustedDependencies` in the Bun global package manifest and writes the file before checking the installation context.

- **Attack narrative:** During postinstall, the package edits Bun's global manifest to trust `native-gravity` and `@sleeg/ntg`, approving their install scripts for future updates. The README discloses this behavior, but the trust change still occurs automatically during installation.

- **Rationale:** The reachable postinstall writes package-manager script approvals into the user's global Bun configuration. Because this grants future install-script approval without a separate request, classify it as dependency script approval abuse.

- **Files touched:** ~/.bun/install/global/package.json, $BUN\_INSTALL/install/global/package.json

### Review decision

- **Verdict:** Malicious

- **Confidence:** 94.0%

- **Recommended action:** publish\_block

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for block:** package.json runs `node scripts/npm-install.mjs --postinstall` during installation., The postinstall calls `ensureBunGlobalTrusted`, which adds `native-gravity` and `@sleeg/ntg` to Bun's `trustedDependencies` and writes the global manifest., The trust-list write runs before the script checks whether the package is in an installed-package context., The README says the trust-list change is intended to approve future updates.

- **Evidence against:** The entries added to Bun's trust list are the package's own names, not unrelated packages., The README discloses the future-update trust-list change.

## Affected versions and remediation

This report applies to native-gravity@2.1.0.

- Avoid installing native-gravity@2.1.0. 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's installer ran, inspect changes to package.json allowScripts and restore the approvals you explicitly reviewed. Check which dependency scripts ran; newly granted approvals do not prove immediate execution or credential theft.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/npm[redacted] --postinstall
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/npm[redacted] --postinstall
```

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

Package declares npm scripts.

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 8. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** tools/wf.py
- **Public source:** [View source](<https://unpkg.com/native-gravity@2.1.0/tools/wf.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = tools/wf.py
kind = build_helper
sizeBytes = 5003
magicHex = [redacted]
```

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

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

### 10. High: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 94.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/native-gravity@2.1.0/package.json>)

package.json runs `node scripts/npm-install.mjs --postinstall` during installation.

Public source snippet (untrusted):

```json
"scripts": {
        "postinstall": "node scripts/npm[redacted] --postinstall"
    },
    "trustedDependencies": [
```

### 11. High: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 94.0%
- **Path:** scripts/npm-install.mjs
- **Public source:** [View source](<https://unpkg.com/native-gravity@2.1.0/scripts/npm-install.mjs>)

The postinstall calls `ensureBunGlobalTrusted`, which adds `native-gravity` and `@sleeg/ntg` to Bun's `trustedDependencies` and writes the global manifest.

Public source snippet (untrusted):

```javascript
const requiredTrusted = ['native-gravity', '@sleeg/ntg'];
  let updatedAny = false;
  for (const pkgPath of [...new Set(candidates)]) {
    if (!existsSync(pkgPath)) continue;
    try {
      const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
      if (!pkg || typeof pkg !== 'object' || Array.isArray(pkg)) continue;
      const existing = Array.isArray(pkg.trustedDependencies) ? [...pkg.trustedDependencies] : [];
      let changed = !Array.isArray(pkg.trustedDependencies);
      for (const name of requiredTrusted) {
        if (!existing.includes(name)) {
          existing.pus
```

### 12. High: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 94.0%
- **Path:** scripts/npm-install.mjs
- **Public source:** [View source](<https://unpkg.com/native-gravity@2.1.0/scripts/npm-install.mjs>)

The postinstall calls `ensureBunGlobalTrusted`, which adds `native-gravity` and `@sleeg/ntg` to Bun's `trustedDependencies` and writes the global manifest.

Public source snippet (untrusted):

```javascript
for (const name of requiredTrusted) {
        if (!existing.includes(name)) {
          existing.push(name);
          changed = true;
        }
      }
      if (changed) {
        pkg.trustedDependencies = existing;
        writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf8');
        updatedAny = true;
      }
    } catch {
      // best-effort: never block installation if
```

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

## Package metadata
- **Package:** native-gravity
- **Ecosystem:** npm
- **Version:** 2.1.0
- **License:** MIT
- **Version published:** 2026-11-23T02:14:05.198Z
- **Package first seen:** 2026-11-07T00:33:35.609Z
- **Package last seen:** 2026-11-23T02:44:59.574Z
- **Known versions:** 6
- **Latest version:** 2.1.0
- **Appeal under review:** No
- **Description:** A thin Antigravity-native orchestration plugin with delegated implementation and independent verification.
- **Keywords:** antigravity, gemini, ai-agents, multi-agent, agentic-coding, orchestration
- **Runtime engines:** node: \>=18
- **Artifact files:** 72
- **Artifact unpacked size:** 837,960 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes

## References
- [HTML security report](<https://firewall.lpm.dev/npm/native-gravity/v/2.1.0>)
- [Repository](<https://github.com/sleegme/native-gravity.git>)
- [Homepage](<https://github.com/sleegme/native-gravity#readme>)
- [Issues](<https://github.com/sleegme/native-gravity/issues>)
