Regex to detect secrets from files: dosyalardan regex ile sakıncalı kelimeleri yakalamak için aşağıdaki kodları kullanabilirsiniz.
"(?i)(([a-z0-9]+)[-|_])?(key|password|passwd|pass|pwd|private|credential|auth|cred|creds|secret|access|token)([-|_][a-z]+)?(\\s)*(:|=)+"
Kaynaklar
- https://twitter.com/0x_rood/status/1692175195031679132?t=p7SRbH__boO11WdG57ugvg&s=08