← All recipes
Moderne licensed

Audit binding to all interfaces

Recipe IDorg.openrewrite.golang.codequality.AuditBindAllInterfacesArtifactgithub.com/moderneinc/recipes-go

Find network listeners bound to all interfaces (e.g. :8080, 0.0.0.0, [::]). This exposes the service beyond loopback and may be unintended; prefer an explicit host such as 127.0.0.1 (gosec G102).

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.golang.codequality.AuditBindAllInterfaces

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go