rmagent-ao

Warn

Audited by Socket on Oct 24, 2026

3 alerts found:

Anomalyx2Security
AnomalyLOW
scripts/lib.py

This code is a remote monitoring tool that retrieves credentials and executes allowlisted scripts on inventory-defined hosts; it does not show clear malware behavior or an external exfiltration destination. Untrusted Linux inventory track values can inject shell commands into the SSH-executed script, and default WinRM over HTTP with basic authentication can expose credentials in transit. Severity is moderate and depends on inventory trust and WinRM configuration; relevant credential sources include RMAgent_* environment variables, ~/.rmagent/creds.json, SCRT_PASS, SCRT_PASS_FILE, the macOS Keychain, and the scrt store.

Confidence: 97%Severity: 61%
SecurityMEDIUM
scripts/drift.py

This script maintains and compares agent-drift baselines, but directly uses inventory-controlled witness IDs in baseline file paths without validation. A crafted ID could cause reads, writes, or permission changes outside ~/.rmagent/agent-baselines, making this a path traversal and file-overwrite risk; severity is moderate to high if inventory data is untrusted. No malware behavior is evident in the supplied code, and lib.ask cannot be assessed here.

Confidence: 98%Severity: 72%
AnomalyLOW
scripts/needle_extract.py

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.

Confidence: 98%Severity: 66%
Audit Metadata
Analyzed At
Oct 24, 2026, 10:42 AM
Package URL
pkg:socket/skills-sh/drolu%2Fagent-skills%2Frmagent-ao%2F@cfec053ea23037cb700a5351f3e69d71bbe3d5af206b4f23732b0ee3be765e0b