rmagent-linux
Audited by Socket on Oct 24, 2026
2 alerts found:
SecurityAnomalyThis is an SSH-based read-only host health-check script that collects system metadata and summary counts; no evidence of credential theft, destructive behavior, or covert exfiltration is present. However, an attacker able to control the local SINCE_HOURS environment variable can inject shell commands into the remote script and execute them as the SSH user, making this a significant command-injection risk. It also accepts new SSH host keys automatically on first connection. Severity: high if the environment variable can be influenced; otherwise the script's intended collection is limited to operational summaries.
This utility extracts values from input text through the installed needle library. Its primary security issue is unsanitized command-line field names embedded in generated Python code, which can enable code execution when arguments are attacker-controlled; its predictable temporary script path also creates a file-overwrite risk in unsafe TMPDIR environments. The code contains no explicit credential theft or direct network exfiltration, and the fragment does not establish the external library's behavior. Severity is medium, conditional on attacker control of arguments or the temporary directory; relevant path and environment indicators are TMPDIR, /tmp/needle-extract-child.py, and NEEDLE_PYTHON.