pub fn check_security(command: &Command, session_id: &str) -> bool