Insecure Output Handling¶
Insecure Output Handling¶
The Mistake: Trusting AI-generated content without validation.
# VULNERABLE CODE
user_input = " Delete all files "
llm_response = model . generate_code ( user_input )
# LLM returns : " os . system ( ’ rm - rf / ’) "
eval ( llm_response ) # Arbitrary Code Execution