There is no application security “silver bullet” – it takes a combination of testing types to effectively reduce your risk. Each testing method has a different role to play and works best when used in harmony with others.
For instance, our research showed that there are significant differences in the types of vulnerabilities you discover dynamically at runtime compared to those you’ll find when doing static testing in a non-runtime environment. In fact, two of the top five vulnerability categories we found during dynamic testing weren’t even among the top five found by static, with one not found by static at all.
Add to this the fact that applications are increasingly “assembled” from open source components, rather than developed from scratch, which means software composition analysis is an important part of your testing mix. Neglecting to assess and keep track of the open source components you are using would leave a large portion of your code exposed and leave you open to attack.
And finally, automation alone is not enough to ensure an application is thoroughly tested from a security perspective. Some flaws, such as CSRF (Cross-Site Request Forgery) and business logic vulnerabilities, require a human to be in the loop to exploit and verify the vulnerability. Only manual penetration testing can provide positive identification and manual validation of these vulnerabilities.
Here’s an overview of the different types of vulnerabilities found by different testing types:
|capabilities||static analysis||software composition analysis||dynamic analysis||manual penetration testing|
|Flaws in custom web apps (CWEs)||X||X||X|
|Flaws in custom non-web apps (CWEs)||X||X|
|Flaws in custom mobile apps (CWEs)||X||X|
|Known vulnerabilities in open source components (CVEs)||X||X(1)|
|Behavioral issues (CWEs)||X(2)||X|
|Configuration errors (CWEs)||X||X|
|Business logic flaws (CWEs)||X|
|Repeatable process for automation||X||X||X|
|Scalable to all corporate applications||X||X||X|
|Scan speed||Seconds to hours||Seconds to minutes||Hours||Days to weeks|
|Cost per scan||$||$||$||$$|
1Penetration testing can find known vulnerabilities in open source components, but this may not be as rigorous as Veracode Software Composition Analysis, which not only systematically flags CVEs but also crawls commit histories and bug tracking tickets in open source projects to identify silent fixes of security issues.
2This is not true for all static analyzers. Veracode can exercise the code and manipulate the UI for behavioral analysis in mobile applications.
Here’s a summary of when to use each testing type:
|Static analysis (with entire application in scope)|
Static analysis (on file level, e.g., Greenlight)
|Dynamic analysis||Scan times are often between 12 and 24 hours for complex applications, so recommended for overnight scans, or for asynchronous scanning|
Software composition analysis
|Does not find flaws in first-party code|
For more details, check out our new guide, Application Security Best Practices.
*** This is a Security Bloggers Network syndicated blog from RSS | Veracode Blog authored by email@example.com (sciccone). Read the original post at: http://www.veracode.com/blog/customer-news/application-security-beyond-static-analysis