uninstall-memo-flow
Audited by Socket on Sep 19, 2026
3 alerts found:
Securityx2AnomalyThe code appears to implement a legitimate local JSON registry and contains no evident malware or data-exfiltration behavior. However, direct interpolation of command-line paths into Python source in remove and prune-missing creates a genuine arbitrary Python code-execution vulnerability when arguments are attacker-controlled. Similar, narrower injection risk exists for tiers_json in insert and update-tiers. Inputs should be passed via argv or safely encoded rather than interpolated into the Python program.
The fragment is a manifest-management Bash utility and contains no clear evidence of intentional malware, credential theft, exfiltration, or sabotage. However, its unsafe interpolation of command-line inputs into Python -c source creates a potentially serious command/code-injection vulnerability when inputs are attacker-controlled. Arguments should be passed as Python argv values and handled with safe JSON serialization; file operations should also use safely passed paths. The code should not be considered robust against hostile input until this is fixed.
The code appears to be a legitimate uninstall script, not malware. It performs expected local cleanup and has no network, credential theft, persistence, or obfuscated behavior. However, it has meaningful security risks: manifest-controlled path traversal and unsafe interpolation of user-controlled paths into Python commands can cause unintended file modification/deletion or code execution under certain inputs. Manifest targets should be canonicalized and constrained to the project directory, and paths should be passed to Python as arguments rather than interpolated into source.