Veracode static scans can detect and report certain uses of security best practices, including correct use of security features and correct defensive measures against injection attacks. Information about best practice use is shown in the Best Practice Findings section of the Veracode on-screen and Detailed Report PDF.
Note: Currently Veracode only checks for Best Practice findings in Java and .NET applications.
Veracode looks for correct application-wide use of certain security features, including secure randomness algorithms and correct use of strong cryptography. Veracode reports correct use of security features if the application has positive best practice findings (that is, use of a security function such as a secure randomness function) and no findings of a corresponding security weakness.
Veracode examines all possible opportunities in an application for injection flaws and looks for the use of a recognized cleansing function that would prevent an attacker from exploiting the flaw. If a potentially vulnerable location is protected on all possible code paths by an affirmative and recognized security defense, Veracode reports a "best practice" finding for that flaw category. Successful defense of all such locations in the application earns the application a "green light" for that category. If there are a mix of best practice uses and flaws for a particular category, that category is displayed with a "yellow light" to indicate that more work is needed in that area.
Best Practices findings are shown on the Findings & Recommendations tab.