jd-aipay-onboarding

Warn

Audited by Socket on Sep 2, 2026

7 alerts found:

Securityx3Anomalyx4
SecurityMEDIUM
assets/server-examples/java-quickstart/src/main/java/com/jdd/demo/RokidCreateOrderGatewayDemo.java

No clear evidence of intentional malware/backdoor in this fragment. However, it contains high-impact security weaknesses: it disables TLS certificate and hostname verification (enabling MITM) and logs sensitive information (plaintext request/response contents and signatures) to stdout. These issues could facilitate interception/tampering and data leakage if used beyond a tightly controlled demo/test environment. If this code is part of a published dependency, reviewers should treat trustAllHttps() and the extensive System.out logging as major red flags.

Confidence: 74%Severity: 78%
SecurityMEDIUM
assets/server-examples/java-quickstart/src/main/java/com/jdd/demo/RokidRefundGatewayDemo.java

No clear evidence of overt malware/backdoor logic in this module. However, the code contains high-severity security weaknesses: it disables TLS certificate and hostname verification (trust-all HTTPS), enabling MITM interception/tampering, and it logs highly sensitive plaintext payloads, signatures, headers, full request/response bodies, and decrypted response content to stdout. Additionally, it decrypts attacker-influenced response data using private PFX material. This combination makes the module unsafe for production or any untrusted network environment.

Confidence: 74%Severity: 83%
AnomalyLOW
assets/server-examples/python-quickstart/src/aipay_demo/utils/common.py

This fragment does not show clear indicators of intentional malware (no backdoor, no command execution, no hardcoded credentials, no obvious data theft logic). However, it contains significant security risks for real deployments: it disables TLS certificate validation for HTTPS (making MITM attacks feasible) and it prints decrypted plaintext bizContent and related errors to stdout (which can leak sensitive business data into logs/console). The custom SM3-based HMAC-like helper and protocol field mismatch ('encrypt-type' vs expected encryption behavior) are security-relevant for correctness/interop but are not direct malware evidence.

Confidence: 66%Severity: 67%
SecurityMEDIUM
assets/server-examples/java-quickstart/src/main/java/com/jdd/demo/RokidQueryRefundGatewayDemo.java

No direct malware/backdoor behavior is evident in this file (no process execution, persistence, or covert external callbacks). However, it contains multiple high-impact security weaknesses that make it unsafe outside a tightly controlled demo environment: it disables TLS certificate/hostname verification (enabling MITM) and it extensively logs plaintext and cryptographic/signing material plus decrypted response content. This combination creates a substantial risk of tampering and sensitive data exposure if reused or deployed in real systems.

Confidence: 74%Severity: 88%
AnomalyLOW
assets/server-examples/nodejs-quickstart/src/utils/common.js

No clear evidence of embedded malware/backdoor behavior in this module. However, it has high-impact security weaknesses: HTTPS certificate validation is disabled (rejectUnauthorized=false), making MITM attacks feasible, and it logs decrypted/plaintext business payloads to console, risking sensitive data exposure. It also generates a signed nonce using Math.random (non-cryptographic), which may undermine replay resistance depending on protocol expectations.

Confidence: 72%Severity: 67%
AnomalyLOW
assets/server-examples/python-quickstart/src/aipay_demo/create_order_gateway_demo.py

This appears to be a payment integration/test client that encrypts and signs a request, sends it via HTTP POST, and decrypts the response. No direct malware behavior is evident in the fragment itself. However, it materially increases security risk via (1) runtime sys.path modification enabling potential import hijacking, and (2) extensive debug printing of plaintext payloads, signature preimages/values, headers, and the full HTTP body, which can leak sensitive information into logs. Network transmission is expected but means the request may carry sensitive data to a configured endpoint; helper-function behavior is not shown.

Confidence: 62%Severity: 56%
AnomalyLOW
assets/server-examples/nodejs-quickstart/src/query_refund_result_gateway_demo.js

No clear malware/backdoor indicators are visible in this module. However, it performs payment/refund request generation and aggressively logs plaintext business data, signing inputs/signatures, full headers, full request bodies, and full responses. In real deployments this can readily expose sensitive transaction identifiers and security material to log systems. Additionally, it transmits the constructed payload to a configurable ENDPOINT_URL, so the operational risk depends on deployment trust and correct secret management.

Confidence: 62%Severity: 61%
Audit Metadata
Analyzed At
Sep 2, 2026, 01:35 PM
Package URL
pkg:socket/skills-sh/jd-opensource%2Fjd-aipay-skill%2Fjd-aipay-onboarding%2F@e758128ec968f35cbef0c6f2750edd1dab62d27ccb4517ad4e0ca4273504fa10
Security Audit — socket — jd-aipay-onboarding