Security detectors

Apostrophe terminated single quoted string

Avoid premature termination of single-quoted strings by properly escaping apostrophes or switching to double quotes.

Sudo Redirect Misuse

Shell script incorrectly uses sudo with I/O redirection, which doesn't work as intended.

Printf Variable Interpolation

Direct use of variables in printf format string instead of using format specifiers.

Command Substitution Execution

Unintended execution of command output due to unnecessary command substitution.

Unquoted Ampersand in Command

Unescaped '&' in command terminates it prematurely.

Test Bracket Termination

Remove unexpected characters after closing test bracket.

Unquoted Eval Argument

Unquoted 'eval' can lead to arbitrary code execution if variable contains malicious input.

Glob-based Iteration

Use globs instead of 'ls' for file iteration.

Shells are space sensitive

The construct <<( is invalid; to redirect from process substitution, use < <(cmd) instead.

Parsing Error

Parser error due to invalid script structure.

Backtick Command Injection

Unintended execution of command output due to unnecessary backtick command substitution.

Syntax Error Detection

Identifying and addressing syntax errors in shell scripts.

Incorrect Quoting in Trap Commands

Using single quotes instead of double quotes in trap commands to prevent premature expansion of variables and commands.