Protecting Your Code with Visual C++ Defenses

Protecting Your Code with Visual C++ Defenses by Michael Howard

Executive summary:

Always compile with:
/NXCompat
/SafeSEH
/DynamicBase

In the header(PCH) always define:
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1

In the code call :
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);

Note that some of these feature are available from Vista SP1.


© Copyright 2010 Sorin Mustaca, All rights Reserved. Written For: Sorin Mustaca on Cybersecurity


Check www.endpoint-cybersecurity.com for seeing the consulting services we offer.

Visit www.itsecuritynews.info for latest security news in English
Besuchen Sie de.itsecuritynews.info für IT Sicherheits News auf Deutsch

About the Author

Sorin Mustaca
Sorin Mustaca, (ISC)2 CSSLP, CompTIA Security+ and Project+, is working since over 20 years in the IT Security industry and worked between 2003-2014 for Avira as Product Manager for the known products used by over 100 million users world-wide. Today he is CEO and owner of Endpoint Cybersecurity GmbH focusing on Cybersecurity, secure software development and security for IoT and Automotive. He is also running his personal blog Sorin Mustaca on Cybersecurity and is the author of the free eBook Improve your security .
%d bloggers like this: