vastai

Warn

Audited by Socket on Oct 23, 2026

4 alerts found:

Anomalyx3Security
AnomalyLOW
pdf/vast_pdf.py

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.

Confidence: 98%Severity: 57%
SecurityMEDIUM
serverless/remote/serve_deployment.py

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.

Confidence: 97%Severity: 82%
AnomalyLOW
serverless/remote/serialization.py

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.

Confidence: 96%Severity: 68%
AnomalyLOW
serverless/server/lib/server.py

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.

Confidence: 94%Severity: 62%
Audit Metadata
Analyzed At
Oct 23, 2026, 12:53 AM
Package URL
pkg:socket/skills-sh/vast-ai%2Fvast-cli%2Fvastai%2F@369859cdd0716d644a70ac4eb4c014d58e08ffaed0f2e731124d22ef28d52f46