Find Android-specific security smells
ProprietaryDeprecated world-readable/writeable file modes, WebView JavaScript enablement and addJavascriptInterface exposure, plaintext SharedPreferences for sensitive data, and implicit Intent broadcasts that any app on the device can intercept.
org. openrewrite. kotlin. security. FindAndroidSecuritySmells$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. security. FindAndroidSecuritySmells$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Find
MODE_WORLD_READABLEreferences - Find
WebView.settings.javaScriptEnabled = true/setJavaScriptEnabled(true) - Find
WebView.addJavascriptInterface(...)calls - Find
getSharedPreferences(_, MODE_PRIVATE)callers - Find
Intent("some.implicit.action")constructions - Find
WebView.loadUrl("http://...")calls - Find
WebView.settings.mixedContentMode = MIXED_CONTENT_ALWAYS_ALLOWsettings - Find
WebView.settings.setAllowFileAccessFromFileURLs(true)calls - Find
WebView.settings.setSavePassword(true)calls