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

# mandrel@1.93.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 as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 1.93.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 install hook automatically writes Mandrel's own agent framework into the consumer project and may overwrite or prune files there. This matches the warning-only risk for automatic setup of a package's own agent extension; no unrelated network or credential collection was identified in the install path.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 95.0%
- **Started:** 2026-11-11T06:41:08.815Z
- **Finished:** 2026-11-11T06:42:08.596Z
- **Download time:** 1546 ms
- **Static scan time:** 405 ms
- **AI review time:** 57829 ms
- **Total time:** 59781 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:** Automatic install-time setup writes Mandrel's agent workflow files into the consumer project.

- **Trigger:** npm install runs the postinstall hook.

- **Impact:** Consumer agent instructions, skills, or other managed .agents files can be replaced or removed without a separate sync command.

- **Evidence paths:** package.json, bin/postinstall.js, lib/cli/sync.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-11T06:42:08.596Z

### AI review details

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

- **Mechanism:** The hook invokes sync with the consumer project root; sync copies files into .agents, overwrites matching files, and prunes stale managed files.

- **Rationale:** The install hook automatically writes Mandrel's own agent framework into the consumer project and may overwrite or prune files there. This matches the warning-only risk for automatic setup of a package's own agent extension; no unrelated network or credential collection was identified in the install path.

- **Files touched:** .agents/

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 95.0%

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

- **Intent class:** Unknown

- **False-positive risk:** Medium

- **Evidence for warning:** Mandrel describes itself as an AI coding-assistant workflow framework, and its postinstall hook runs automatically., The hook calls the sync routine using the consumer project root from INIT\_CWD., Sync copies the package's .agents payload into the consumer's .agents directory, overwriting matching files and deleting stale managed files., The sync routine is scoped to local filesystem operations; no network endpoint was identified in the install path.

- **Evidence against:** The install-time setup materializes Mandrel's own workflow payload, which is the package's stated purpose., Sync preserves the consumer-owned .agents/local subtree.

## Affected versions and remediation

This report applies to mandrel@1.93.0.

- Review the evidence and your use of mandrel@1.93.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/mandrel@1.93.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/postinstall.js mandrel sync
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/postinstall.js mandrel sync
```

### 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: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** .agents/scripts/lib/qa/redact-evidence.js
- **Public source:** [View source](<https://unpkg.com/mandrel@1.93.0/.agents/scripts/lib/qa/redact-evidence.js>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

```javascript
patternName = generic_password
severity = medium
line = 53
```

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/mandrel.js
- **Public source:** [View source](<https://unpkg.com/mandrel@1.93.0/bin/mandrel.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L109: function installedVersion() {
L110: const req = createRequire(import.meta.url);
L111: const manifest = req('../package.json');
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 12. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** .agents/skills/core/idea-refinement/scripts/idea-refine.sh
- **Public source:** [View source](<https://unpkg.com/mandrel@1.93.0/.agents/skills/core/idea-refinement/scripts/idea-refine.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = .agents/skills/core/idea-refinement/scripts/idea-refine.sh
kind = build_helper
sizeBytes = 342
magicHex = [redacted]
```

### 13. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** .agents/skills/core/idea-refinement/scripts/idea-refine.sh
- **Public source:** [View source](<https://unpkg.com/mandrel@1.93.0/.agents/skills/core/idea-refinement/scripts/idea-refine.sh>)

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

Public source snippet (untrusted):

```shell
path = .agents/skills/core/idea-refinement/scripts/idea-refine.sh
kind = payload_in_excluded_dir
sizeBytes = 342
magicHex = [redacted]
```

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

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

### Published dependency entries
- ajv ^8.20.0 (Dependency)
- ajv-formats ^3.0.1 (Dependency)
- js-yaml ^4.2.0 (Dependency)
- minimatch ^10.0.0 (Dependency)
- picomatch ^4.0.4 (Dependency)
- string-argv ^0.3.2 (Dependency)
- typhonjs-escomplex ^0.1.0 (Dependency)
- typescript \>=5.0.0 (PeerDependency)

## Package metadata
- **Package:** mandrel
- **Ecosystem:** npm
- **Version:** 1.93.0
- **License:** MIT
- **Version published:** 2026-07-12T23:01:13.145Z
- **Package first seen:** 2026-07-28T21:58:30.839Z
- **Package last seen:** 2026-11-22T07:24:43.620Z
- **Known versions:** 107
- **Latest version:** 2.129.0
- **Appeal under review:** No
- **Description:** Claude Code-first opinionated workflow framework: instructions, personas, skills, and SDLC workflows that govern AI coding assistants.
- **Maintainers:** dsj1984
- **Keywords:** claude-code, ai-agents, sdlc, workflow, orchestration, agentic
- **Runtime engines:** node: \>=22.22.1 \<25
- **Artifact files:** 905
- **Artifact unpacked size:** 7,502,807 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/mandrel/v/1.93.0>)
- [Repository](<https://github.com/dsj1984/mandrel>)
- [Homepage](<https://github.com/dsj1984/mandrel#readme>)
- [Issues](<https://github.com/dsj1984/mandrel/issues>)
