Valve's approach was to avoid the cat and mouse game knowing it doesn't lead anywhere. You can always cheat using DMA or reading the monitor with another computer that simulates a hardware mouse to get aimbot abilities.
They wanted a machine learning to detect, flag and ban suspicious behaviour.
This didn't work out and I'm not sure they are still trying but there's a few conferences talking about it.
They did try some stuff but got pushback from Reddit community for being too invasive. Not that it really matters for something already running on your pc.