I think this is how several kinds of anti-cheat have probably worked for decades. Don't know why you think I'm taking credit for these immediately obvious suggestions or something.
Client-side kernel-level anticheat isn't the preferred method because it's strictly superior, it just costs them less money and effort to maintain it and can be outsourced easily (it's more generically applicable) and there are several big-name companies offering pre-packaged solutions for it.