A common anti-debugging practice is to overwrite functions such as DbgUiRemoteBreakin within ntdll.dll.
Since in-memory representation of common libraries is always the same on each platform, it should be possible for an external tool to connect to a process and compare in-memory library code with a reference in order to find any manipulations done by the process itself.
Does anybody know such a tool for Windows?