ToolSci.com

📜 Bash Shell Script Safety Audit

Scans Bash shell scripts for unquoted variables, unsafe rm -rf commands, eval calls, and missing error flags.

ℹ️ About Bash Shell Script Safety Audit

Scans Bash and POSIX shell scripts for security vulnerabilities and antipatterns. Identifies unquoted variables in destructive commands like 'rm -rf', unverified 'curl | bash' pipelines, unsafe eval statements, and missing strict error handling (set -euo pipefail).

📖 How to use Bash Shell Script Safety Audit

  1. 1. Paste your Bash or Shell script content into the box below.
  2. 2. Click 'Run Tool' to inspect potential security risks and safety warnings.
  3. 3. Apply recommended code fixes to harden your script.

Frequently Asked Questions

What does set -euo pipefail do?

-e exits on error, -u exits on unset variables, and -o pipefail preserves non-zero exit codes in piped commands.

🔗 Related DevOps Tools