Skip to content

LS-NETRC-001: netrc Password

Severity HIGH
Blast radius Account access on the target host
Rotate at https://vasishta03.github.io/leakscan/rules/
Applies to files matching (?:^|/)[._]netrc$

If this leaks

.netrc credentials are sent automatically by curl, git and others to the listed host.

What to do

  1. Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?i)\bpassword\s+(\S{6,})

Suppress

On one line: # leakscan:ignore LS-NETRC-001. For the whole project:

disable_rules: [LS-NETRC-001]