NumPy allowed · plain Python earns 10 bonus points
Softmax(logits) → probability distribution
Implement a real, simple prompt-injection detector scanning tool output for phrases attempting to override the agent's instructions -- a genuine attack surface whenever an agent reads untrusted external content.
Implement detect_injection_markers(tool_output). Lowercase the text. Return the sorted list of DISTINCT marker phrases found among: 'ignore previous instructions', 'ignore all previous', 'new instructions', 'system prompt', 'you are now'.
detect_injection_markers(tool_output: str) -> list[str]