vastai
Audited by Socket on Oct 9, 2026
5 alerts found:
Anomalyx4SecurityNo clear evidence of intentional malware or supply-chain sabotage is present in the supplied fragment. The main security concern is an SSRF-capable, caller-controlled on_close_route used for outbound POST requests, along with configurable outbound URLs and sensitive token/signature handling. The authenticated force-update file write is high impact if MASTER_TOKEN is exposed. The fragment is incomplete, so the assessment is limited to the visible code.
The code is intended to generate invoice PDFs and shows no evidence of malware, exfiltration, backdoors, or obfuscation. The primary security concern is unrestricted use of filter_data['pdf_filename'] for file output, which can enable path traversal or arbitrary file overwrite if controlled by an untrusted caller. It also overwrites latest-invoice.pdf and exposes last-four payment digits in generated documents. The supplied fragment is syntactically incomplete and requires correction before execution.
This is a deployment bootstrapper with intentionally broad execution privileges, not clear standalone malware. It retrieves and executes deployment-controlled code, installs arbitrary system and Python packages, runs shell commands, and persists environment variables. The use of fully trusted tar extraction without path validation is a serious archive traversal risk, and the lack of archive integrity verification increases supply-chain exposure. It should only process archives and configuration from a fully trusted, authenticated source, preferably with safe extraction, signatures or checksums, strict validation, and reduced privileges.
No clear evidence of intentional malware is present. The code implements a custom object serializer, but its deserializer is unsafe for untrusted input because it dynamically imports attacker-selected modules, resolves attacker-selected classes, bypasses constructors with __new__(), and sets arbitrary attributes. It should only process authenticated and trusted data, or be changed to an allowlisted class registry and strictly validated schema.
The code is recognizable server startup and failure-telemetry logic, with no clear evidence of malware or intentional sabotage. The infinite failure beacon and transmission of backend.mtoken are suspicious and should be reviewed with the Metrics implementation. The plaintext /session/end listener and unlimited request size create potential exposure and denial-of-service risks, depending on deployment and handler controls. The supplied start_server function also appears syntactically incomplete.