Threats, Vulnerabilities, and Attacks

Which two situations are examples of code execution risk in an AI system? (Choose two.)

Choose 2 answers

Show the answer

Correct answersC. An agent runs attacker-supplied code after a prompt injectionD. Model output pasted into a shell runs attacker commands

AWhy not this: Mislabeled training data is poisoning, which harms accuracy without running code.

BWhy not this: Perturbing inputs to fool a model is evasion, which does not execute code.

CWhy this is right: An injected instruction that makes a tool-enabled agent run attacker code is code execution.

DWhy this is right: Passing unvalidated model output to a shell lets attacker commands execute on the system.

EWhy not this: Inventing a nonexistent case is hallucination, not code running.

FWhy not this: Replaying a stolen cookie is session hijacking, which gives access but runs no code.

Code execution risk arises when an AI system or its output causes attacker-controlled code or commands to run. Stolen cookies are session hijacking, which does not run code on the system.