Find data-flow source positions

Proprietary

Locations where untrusted or configuration-controlled data enters the program: readLine/Scanner reads, environment/system-property reads, HTTP request reads, and filesystem reads. Each match is a seed an LLM agent (or human reviewer) can connect to downstream sinks.

org.openrewrite.kotlin.search.FindDataFlowSources$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindDataFlowSources$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 readLine() / Scanner.next*() calls
  2. Find System.getenv(...) / System.getProperty(...) reads
  3. Find HttpServletRequest.getParameter/getHeader/getCookies reads
  4. Find filesystem read calls (File.readText, Files.readString, etc.)