os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
# Try LCM via openclaw command (if available) try: result = os.popen("lcm_describe 2>/dev/null").read() if result: return result except Exception as e:- Confidence
- 90% confidence
- Finding
- The script executes an external command via a shell using os.popen("lcm_describe 2>/dev/null"). Even though the command string is static, invoking a shell introduces avoidable risk such as PATH hijacking or unexpected execution of a malicious lcm_describe binary in a compromised environment. In a memory-extraction skill, executing an external binary also broadens the trust boundary beyond simple file processing.
