Skip to content

Glossary: Application and Credential Attacks, and AI Risks

eval()

Also written: eval

A Python function that runs text as code. Passing an AI's reply to eval() let a hidden instruction run the operating system command id, so AI output must never be passed to it unchecked.

Where the book teaches it

Related terms

code executionimproper output handlingsandboxid