Skip to content
vetkitChecksChangelogDocumentation

vetkit.shell.credentials.sudo-password-stdin

The script pipes a password from a variable into sudo -S. The sudo password is stored or passed around in clear text so the script can escalate without a human.

Last updated:

Suite: Security

regex

The script pipes a password from a variable into sudo -S. The sudo password is stored or passed around in clear text so the script can escalate without a human.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Grant the specific command with a narrowly scoped sudoers rule instead of feeding a password to sudo.

References

Source: packages/engine/rules/sast/shell.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.