bash-script-validator

Warn

Audited by Socket on Sep 15, 2026

2 alerts found:

Securityx2
SecurityMEDIUM
examples/bad-bash.sh

The code contains serious shell-safety defects, especially direct eval of a variable and unconditional rm -rf * in a directory. These are security and reliability risks, but the fragment appears to be an intentionally educational example rather than concealed malware. The malformed final line and early main call may prevent normal execution; nevertheless, the unsafe behavior remains significant if the script is corrected or partially executed.

Confidence: 99%Severity: 94%
SecurityMEDIUM
examples/bad-shell.sh

The fragment is a deliberately flawed shell script rather than apparent malware. Its critical security risk is direct unsanitized eval, which permits arbitrary command execution when user_inpu is attacker-controlled. Sourcing /etc/profile also executes local configuration code, and unquoted expansions create additional correctness and injection risks. The script should be rewritten for a declared shell, avoid eval, quote expansions, and avoid sourcing ambient shell profiles.

Confidence: 99%Severity: 84%
Audit Metadata
Analyzed At
Sep 15, 2026, 02:25 PM
Package URL
pkg:socket/skills-sh/akin-ozer%2Fcc-devops-skills%2Fbash-script-validator%2F@c3d664141ca063608f9c966487d8efccf27061b03eb5521a12b060731541d58d