Deloitte interview question

How does an EDR agent detect SQL injection attack on windows endpoint.