instagram-superpower
Audited by Socket on Jul 19, 2026
3 alerts found:
Anomalyx2SecurityNo direct evidence of intentional malware (no backdoor, no persistence, no explicit data theft/exfiltration to third-party domains) is visible in this snippet. However, the script has significant security-risk characteristics typical of automation that bridges untrusted inputs into privileged remote execution: it interpolates an untrusted URL into an SSH-constructed JSON/curl command string, uses a remote-controlled filename directly in remote/local filesystem paths (write/delete/copy), and instructs the remote host to fetch an attacker-influenced DL_URL. Additionally, it processes attacker-influenced media with ffmpeg/ffprobe and executes an external transcription script with paths derived from that untrusted flow. This warrants hardening via strict input validation/escaping, filename sanitization/whitelisting, safer remote command construction (argument passing rather than string interpolation), and integrity controls around the transcription script.
The provided fragment implements high-impact authentication automation: it submits stored Instagram credentials and generates/enters TOTP via CDP, then extracts session/CSRF cookies and persists them as raw cookie header strings for later automated use (with deployment and validation steps). While there are no clear signs of overt malware behavior in the fragment (e.g., backdoor/exfiltration), the capability is strongly security-sensitive and can directly enable account takeover/session replay if secrets/cookies are leaked, permissions are weak, or the workflow is misused. Overall risk is high due to plaintext handling and deployment of authenticated session material.
This fragment is not overtly malicious (no persistence/backdoor mechanisms, no suspicious domains beyond the targeted Instagram API, and no direct credential theft mechanisms beyond the intended cookie-validation use). However, it is security-sensitive: it retrieves bearer session cookies from a remote JSON file using root SSH and transmits them to a third-party endpoint in an authenticated request. It also prints the associated Instagram username when valid, which can leak account linkage into logs. Overall, the main risk is abuse/confidentiality impact from handling and exposure of session cookies and elevated remote execution, rather than explicit malware behavior.