Android Lint
What is it?
Android Lint is a static code analyzer provided in the official IDE Android Studio.
What will it find?
The list of checks is quite long, but the number security checks are low. There are still critical checks that justified running this tool regularly.
Installation
None! As
Demonstration
FindBugs + Find Security Bugs plugin
What is it?
FindBugs is a popular static analysis engine which is widely used in the Java community. Find Security Bugs is a plugin for this tool to bring security rules to the analysis.
What will it find?
The main focus of the security plugin FindSecBugs is to mark weaknesses such insecure communication, cryptography missuses and sensible sections of the application.
Installation
The installation and configuration of FindBugs can be done with few clicks. If you are still using Eclipse (previously official IDE), an equivalent plugin is also available in the Eclipse Marketplace.
Demonstration
Here is a short demonstration that showcases the FindBugs integration in Android Studio.
(Note
What is next?
Unfortunately, the client mobile application is only the tip of the iceberg. Your application back-end also requires special attention. The number one risk of the OWASP Top Ten Mobile Risk is Weak Server Side Controls after all.
Another great initiative would be to integrate both tools, Android Lint and FindBugs, in your continuous integration environment.
Upcoming presentation at BlackHat USA 2015
If you are doing Android development, don't miss QARK which will be presented during the same period.
That's it! If you have ideas for new security rules that would apply to Android, don't hesitate to open a ticket on Github.
References
OWASP: Source Code Analysis Tools: List of static code analysis tools
NIST: Source Code Security Analyzers: Another great list of tools classified by language.
Android Lint: Official documentation of Lint
Find Security Bugs: Github website for the FindBugs security plugin
Mobile Security Wiki: A well organized list of
Thanks
ReplyDeletePhilippe,
ReplyDeleteMay I use the Android image in your blog? If so, how do you want me to give you credit? I can link the photo back to this blog if you would like.
Thanks,
Theron Guerra
Yes. You can reuse it in any context. Thanks for asking.
Delete@Theron And no link or text needed.
Delete