ShtukbaseStandard
package file→ .shtukbase/packages/std-owasp-secrets/checks/scr02_likely.ts

checks/scr02_likely.ts

6 lines, 431 B.

  1. // SCR-R02 (observe): likely secrets — a quoted high-entropy value under a secret-like name, a password in a URL, a JWT.
  2. import { lines, PKG, scanFiles } from './secretlib.ts';
  3. import { finish, norm } from './lib/std.ts';
  4. const n = norm(PKG, 'SCR-R02', 'observe');
  5. finish(n, n.active ? lines(scanFiles('likely'), 'if it is a secret — move it to the environment and revoke it; if not — mark the line "secrets:allow"') : []);