Prompt Injection into Shell and Tool Commands | Guide

How model or user text ends up in shell commands and agent tools, why it leads to command execution, and the coding patterns that prevent it.