Attacks/Prompt Injection/PI-007
CRITICALCWE-74

PI-007 Persona Switch

Prompt InjectionAttempts to manipulate agent behavior via malicious input

Description

Attempts to make agent adopt a different persona

Remediation

Implement persona anchoring. Reject requests to change identity. Add identity verification in prompts.

Severity

CRITICAL

OASB Control

3.1

CWE

CWE-74

Run this test

$ npx hackmyagent attack --payload PI-007