3 ms·This is immune to the attack: bash -c "$(curl -sSLf $URL)" The key is to download first and then runby jamescostian 8y agoThis is immune to the attack: bash -c "$(curl -sSLf $URL)" The key is to download first and then runbenchaney 8y agoOr better yet: curl $URL less $FILE bash $FILE This attack only works at all if you download something and execute it immediately without looking at it.arendtio 8y agoDo you know if . <(curl -sL $url) works (sourcing from a Process Substitution)?