remarkable
Audited by Socket on Sep 14, 2026
2 alerts found:
SecurityAnomalyThe code appears to be a legitimate device-administration script rather than malware. It has significant security weaknesses: disabled SSH host verification, plaintext temporary password handling, and insufficient escaping of user-controlled values in remote shell commands. A maliciously crafted -Name value could lead to root-level command injection on the tablet. Inputs should be strictly validated or safely passed without shell interpolation, and SSH host keys should be verified.
The fragment implements readable HTTP download, JSON parsing, local file writing, and explicit file upload functionality. The principal security concern is that Send-RmFile can transmit any caller-selected local file to the configured remote endpoint while bypassing proxies when curl or PowerShell supports it. This is not, by itself, evidence of malware; no credential theft, obfuscation, persistence, destructive behavior, or hardcoded suspicious destination is visible. Review callers and the definition/configuration of $script:RmBaseUrl before deployment.