Salesforce ESAPI
This is an Apex-based lib from the Salesforce team for enforcing security, especially in AppExchange apps. We contributed to some key enhancements in this lib, and actively advocate using for security compliance in AppExchange apps.
References: