The principle of least privilege grants an LLM or system component only the minimum access required for its intended functions. In prompt-injection defenses, privilege controls limit access to backend systems through the application and system APIs. section 13.2.1
Apply the principle with layered controls:
- Assign identity-based authentication or API tokens for expandable capabilities such as data access and function-level permissions. section 13.2.1
- Require user confirmation before sensitive operations so indirect injections cannot act without explicit agreement. section 13.2.1
- Audit and detect attempted injections with application logging, while treating the LLM as unreliable. section 13.2.1
Figure 13.2 Prompt injection threats [4]
Use the threat diagram to relate excessive model access to possible prompt-injection consequences. section 13.2.1
















