Find sensitive data in log calls

Proprietary

Log calls (SLF4J, println, android.util.Log) whose message string mentions password/token/secret/api_key/credit_card — each match likely renders the secret value into a log destination that isn't designed for secret storage.

org.openrewrite.kotlin.security.FindSensitiveDataInLogs$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindSensitiveDataInLogs$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.

  1. Find SLF4J log calls with sensitive field names in the format string
  2. Find println("... password ...") patterns
  3. Find android.util.Log.{d,i,v,w,e} calls with sensitive content