memo-hooks
Audited by Socket on Sep 19, 2026
2 alerts found:
Securityx2The 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.