subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env = _sanitize_env(args.keep_env, args.keep_env_prefix) try: proc = subprocess.run(command, check=False, env=env, timeout=args.command_timeout) except FileNotFoundError: print(f"Command not found: {command[0]}", file=sys.stderr) _append_audit_log(- Confidence
- 93% confidence
- Finding
- proc = subprocess.run(command, check=False, env=env, timeout=args.command_timeout)
