- Add input validation for command parameter - Check for dangerous shell metacharacters - Allow only safe command patterns