shanxi-securities-tushare

Warn

Audited by Socket on Sep 30, 2026

5 alerts found:

Securityx2Anomalyx3
SecurityMEDIUM
scripts/moneyflow_demo.py

No clear signs of explicit malware (e.g., reverse shells, persistence, file/system modification, or local data theft) are visible in the provided fragment. However, the code presents a significant security risk due to transmitting a sensitive API token in plaintext JSON to a hardcoded IP-based endpoint over plain HTTP. This creates substantial credential exposure and potential MITM/tampering risk. The HTTP calls also lack an explicit timeout, and the snippet is truncated, so additional behaviors cannot be fully excluded.

Confidence: 70%Severity: 70%
SecurityMEDIUM
scripts/stock_data_demo.py

No definitive malicious code indicators (backdoor, exec, persistence, or host takeover) are visible in the provided fragment. However, the code strongly increases security risk by sending a sensitive authentication token in the request body to a hardcoded remote IP over plaintext HTTP (no TLS), which enables interception or tampering (MITM) and potential unauthorized API access. Treat this as a credential-exposure risk and validate/replace the transport (use HTTPS), confirm endpoint trust, and consider removing token forwarding from the client request if feasible.

Confidence: 60%Severity: 72%
AnomalyLOW
scripts/index_sector_demo.py

This code is primarily a data-access wrapper, not overtly malicious in structure (no dynamic execution or process/file manipulation). However, it has a high-impact security weakness: it forwards a sensitive authentication token sourced from the environment to a hardcoded plaintext HTTP endpoint and builds DataFrames directly from untrusted JSON responses. This pattern creates a realistic risk of token interception/abuse and should be reviewed by verifying endpoint ownership/trustworthiness, enforcing HTTPS, adding request timeouts, and validating response schema.

Confidence: 66%Severity: 68%
AnomalyLOW
scripts/fin_report_demo.py

No clear in-module malware capabilities (e.g., code execution, persistence, or exfiltration of arbitrary local data) are evident in this fragment. The dominant security concern is credential handling: the environment token is transmitted in every HTTP POST request to a hardcoded non-HTTPS (plain HTTP) IP endpoint, without visible transport integrity protections or server identity validation. This creates a significant risk of credential leakage/exfiltration if the network path or endpoint trust is not strictly controlled. Review/verify the HTTP endpoint ownership, require HTTPS/TLS, and avoid sending bearer tokens over plain HTTP.

Confidence: 62%Severity: 62%
AnomalyLOW
scripts/fund_data_demo.py

The fragment is primarily a data-client wrapper, but it has a significant operational security concern: it transmits an authentication token loaded from the environment to a hardcoded IP/port over plain HTTP (no TLS). That creates a credible risk of token interception, unauthorized reuse, or abuse if the endpoint is not fully trusted or is compromised. Beyond that, it trusts remote JSON to define DataFrame structure and returns the resulting data, with limited validation. No explicit malware/backdoor behavior is visible in the shown code; assessment is constrained because the snippet appears truncated.

Confidence: 62%Severity: 62%
Audit Metadata
Analyzed At
Sep 30, 2026, 08:47 AM
Package URL
pkg:socket/skills-sh/truehooha%2Fshanxi-securities-tushare-skill%2Fshanxi-securities-tushare%2F@288036bc68584b8d6ee25f564a6d3780647f39abd7db20a43419f71ba2cf32ce