mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
The api_token pattern required a word boundary before api_key, access_token and secret_key, and an underscore is a word character, so OPENAI_API_KEY=, GITHUB_ACCESS_TOKEN= or AWS_SECRET_KEY= followed by a real token was never recorded. Add a second branch for those names when "_" joins them to a prefix. Main never matched them, so the branch only adds findings, and it reports a value only when a digit is directly followed by a letter in its first 64 characters, as in random tokens. It also skips placeholders such as sk-your-key, calls or subscripts, and dotted references such as md5sum.digest unless the value is a JWT. The existing branch for bare names is unchanged.