-
Security
Prevent command injection in shell calls
Finds every place user input reaches a shell command and replaces string interpolation with safe argument arrays.
Free Prompt
What This Does / How This Helps
Finds where user input flows into shell commands and rebuilds those calls so input can never become part of the command itself. Command injection is the worst-case bug class: the attacker runs whatever they want on your server with your app's permissions. It sneaks in through innocent features like PDF exports, image conversions, or git operations, anywhere a filename or option from the user gets glued into a command string. The fixes are mechanical once found (argument arrays instead of strings, strict allowlists, flag separators), and the test cases include the classic metacharacter payload so you can watch it do nothing.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).