title: What are the possible list of Linux bash shell injection commands?
body: <p>We are writing a Linux bash shell script that receives arguments. We wanted to fail the script when it receives possible shell injections commands as parameters. I have added some commands below using regex. Can someone give me possible list of all such commands so that we can avoid threats</p>
  
  <pre><code>invalid_format="(^.*[;&amp;|].*$)|(\brmdir\b)|(\bls\b)|(rm\s-)|(\bping\b)"
  
  if [[ $LOCAL_DIR =~ $invalid_format ]]; then
  
  echo "Error! LOCAL_DIR cannot contain command chaining characters like ; &amp;&amp; || or possible shell injection commands"
  
  exit 1
  </code></pre>