There are 2 repositories under checkremotedebuggerpresent topic.
A collection of c++ programs that demonstrate common ways to detect the presence of an attached debugger.