tos-file-access

Warn

Audited by Socket on Sep 21, 2026

2 alerts found:

AnomalySecurity
AnomalyLOW
scripts/tos_upload.py

The code is primarily a cloud-storage upload utility. No clear malware or intentional backdoor is present. The main security issue is direct disclosure of credential-service credentials through print output. Additional risks are broad recursive directory uploads, automatic loading of a root-level dotenv file, configurable credential-service redirection, and long-lived signed URLs. These risks warrant remediation, especially removing credential printing and constraining uploaded paths and URL expiration.

Confidence: 97%Severity: 68%
SecurityMEDIUM
scripts/file_download.py

The code is a straightforward file downloader and does not show clear malicious intent. It has meaningful security risks when exposed to untrusted input: unrestricted outbound requests can enable SSRF, and unsanitized custom filenames can permit path traversal or arbitrary file writes. The CLI also contains an undefined epilog variable that causes a runtime failure. Restrict URL destinations and schemes, validate redirects, enforce path containment with resolved paths, reject traversal and absolute filenames, and apply download size and integrity controls.

Confidence: 98%Severity: 72%
Audit Metadata
Analyzed At
Sep 21, 2026, 03:16 PM
Package URL
pkg:socket/skills-sh/bytedance%2Fagentkit-samples%2Ftos-file-access%2F@b24203cf4a9f46396bb8644059c1c921949eaa87206414557de2086d9e65ff08