registry  /  @alipay/agent-payment  /  1.0.18

@alipay/agent-payment@1.0.18

⚠ Under review

Helper scripts for managing alipay-bot-cli and openclaw plugin

Static Scan Results

scanned 1h ago · by rust-scanner

Static analysis flagged 15 finding(s) at 93.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsMinifiedObfuscatedUrlStrings
Manifest
NoLicense
scanned 2 file(s), 361 KB of source, external domains: collect.alipay.com, docs.payguard.com, mdn.alipayobjects.com

Source & flagged code

6 flagged · loading source
bin/install-payguard.jsView file
14const https = require('https'); L15: const { execSync, execFileSync } = require('child_process'); L16: const os = require('os');
High
Child Process

Package source references child process execution.

bin/install-payguard.jsView on unpkg · L14
13const path = require('path'); L14: const https = require('https'); L15: const { execSync, execFileSync } = require('child_process'); L16: const os = require('os'); ... L25: installDir: { L26: linux: process.env.PAYGUARD_INSTALL_DIR || path.join(os.homedir(), '.payguard'), L27: darwin: process.env.PAYGUARD_INSTALL_DIR || path.join(os.homedir(), 'Library/Application Support/com.alipay.agent.payguard/PayGuard.app'),
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

bin/install-payguard.jsView on unpkg · L13
11L12: const fs = require('fs'); L13: const path = require('path');
Medium
Dynamic Require

Package source references dynamic require/import behavior.

bin/install-payguard.jsView on unpkg · L11
13const path = require('path'); L14: const https = require('https'); L15: const { execSync, execFileSync } = require('child_process'); L16: const os = require('os'); ... L25: installDir: { L26: linux: process.env.PAYGUARD_INSTALL_DIR || path.join(os.homedir(), '.payguard'), L27: darwin: process.env.PAYGUARD_INSTALL_DIR || path.join(os.homedir(), 'Library/Application Support/com.alipay.agent.payguard/PayGuard.app'), ... L35: }, L36: // 平台检测映射 (process.platform -> meta 文件名中的平台名) L37: platformMap: { ... L316: } catch (e) { L317: // grep exit code 1 = 进程不存在,返回 false
Low
Weak Crypto

Package source references weak cryptographic algorithms.

bin/install-payguard.jsView on unpkg · L13
dist/cli.jsView file
matchType = previous_version_dangerous_delta matchedPackage = @alipay/agent-payment@1.0.15 matchedIdentity = npm:QGFsaXBheS9hZ2VudC1wYXltZW50:1.0.15 similarity = 0.500 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

dist/cli.jsView on unpkg
1#!/usr/bin/env node L2: 'use strict';const _0x18c6ae=_0x44f1;(function(_0x23aec3,_0x3829d6){const _0x5c26d5=_0x44f1,_0x494e2a=_0x23aec3();while(!![]){try{const _0x277031=-parseInt(_0x5c26d5(0x1a2))/0x1+pa...
High
Obfuscated Payload Loader

Source contains an obfuscator-style string-array loader that reconstructs and executes hidden code.

dist/cli.jsView on unpkg · L1

Findings

1 Critical5 High4 Medium5 Low
CriticalPrevious Version Dangerous Deltadist/cli.js
HighChild Processbin/install-payguard.js
HighShell
HighSame File Env Network Executionbin/install-payguard.js
HighObfuscated Payload Loaderdist/cli.js
HighObfuscated
MediumDynamic Requirebin/install-payguard.js
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowWeak Cryptobin/install-payguard.js
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings
LowNo License