Attacks on AI systems · Question 12 of 12

Why is prompt injection considered hard to fix completely, unlike SQL injection?

1 answer is correct. Hard

Show answer

Answer

  • A Models do not strictly separate commands from data

Explanation

With SQL injection, prepared statements reliably separate code and data. A language model, by contrast, processes everything as text in the same context. That is why several layers are used: filters, minimal rights, confirmations and monitoring.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications