background-tasks

Fail

Audited by Socket on Mar 1, 2026

2 alerts found:

Obfuscated Filex2
Obfuscated FileHIGH
SKILL.md

The provided fragment documents a background task manager that accepts JSON with a 'command' string and requires bash. While no explicit malicious code is present, the interface allows arbitrary shell execution when given attacker-controlled input, which is a high-risk capability. Without demonstrated input validation, authorization, sandboxing, or least-privilege execution, this component should be treated as a significant security risk: it can be abused to achieve remote code execution, credential access, and data exfiltration. Apply strong mitigations (whitelisting, sandboxing, auth, auditing, resource limits) before deploying in production.

Confidence: 98%
Obfuscated FileHIGH
run.py

This module is a legitimate background-task helper but is dangerous if exposed to untrusted input: it executes arbitrary shell commands (shell=True) and allows caller-controlled working directory and environment influences via repo dotenv. The code contains no explicit obfuscation or embedded malware, but it provides a powerful remote-exec primitive that can be abused for data exfiltration, persistence, or privilege misuse. Mitigations: avoid shell=True or sanitize/validate commands, require authentication/authorization for callers, restrict cwd, set strict file permissions and file locking, and avoid loading untrusted dotenv files.

Confidence: 98%
Audit Metadata
Analyzed At
Mar 1, 2026, 12:37 AM
Package URL
pkg:socket/skills-sh/cklxx%2Felephant.ai%2Fbackground-tasks%2F@dbc3e9bb7d0438b76856b151d8238910284d32ad