Find hard-coded private IPv4 addresses

Proprietary

Locates mentions of hard-coded IPv4 addresses from private IP ranges. Private IP ranges include:

  • 192.168.0.0 to 192.168.255.255
  • 10.0.0.0 to 10.255.255.255
  • 172.16.0.0 to 172.31.255.255

It is not detecting the localhost subnet 127.0.0.0 to 127.255.255.255.

org.openrewrite.text.FindHardcodedPrivateIPAddresses
mod run . --recipe=org.openrewrite.text.FindHardcodedPrivateIPAddresses

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.