gitleaks.toml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. title = "sample gitleaks config"
  2. # This is a sample config file for gitleaks. You can configure gitleaks what to search for and what to whitelist.
  3. # The output you are seeing here is the default gitleaks config. If GITLEAKS_CONFIG environment variable
  4. # is set, gitleaks will load configurations from that path. If option --config-path is set, gitleaks will load
  5. # configurations from that path. Gitleaks does not whitelist anything by default.
  6. [[rules]]
  7. description = "AWS Key"
  8. regex = '''AKIA[0-9A-Z]{16}'''
  9. tags = ["key", "AWS"]
  10. [[rules]]
  11. description = "PKCS8"
  12. regex = '''-----BEGIN PRIVATE KEY-----'''
  13. tags = ["key", "PKCS8"]
  14. [[rules]]
  15. description = "RSA"
  16. regex = '''-----BEGIN RSA PRIVATE KEY-----'''
  17. tags = ["key", "RSA"]
  18. [[rules]]
  19. description = "SSH"
  20. regex = '''-----BEGIN OPENSSH PRIVATE KEY-----'''
  21. tags = ["key", "SSH"]
  22. [[rules]]
  23. description = "PGP"
  24. regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
  25. tags = ["key", "PGP"]
  26. [[rules]]
  27. description = "Facebook"
  28. regex = '''(?i)facebook(.{0,4})?['\"][0-9a-f]{32}['\"]'''
  29. tags = ["key", "Facebook"]
  30. [[rules]]
  31. description = "Twitter"
  32. regex = '''(?i)twitter(.{0,4})?['\"][0-9a-zA-Z]{35,44}['\"]'''
  33. tags = ["key", "Twitter"]
  34. [[rules]]
  35. description = "Github"
  36. regex = '''(?i)github(.{0,4})?['\"][0-9a-zA-Z]{35,40}['\"]'''
  37. tags = ["key", "Github"]
  38. [[rules]]
  39. description = "Slack"
  40. regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
  41. tags = ["key", "Slack"]
  42. [whitelist]
  43. files = [
  44. "(.*?)(jpg|gif|doc|pdf|bin)$"
  45. ]
  46. #commits = [
  47. # "whitelisted-commit1",
  48. # "whitelisted-commit2",
  49. #]
  50. #repos = [
  51. # "whitelisted-repo"
  52. #]
  53. # Additional Examples
  54. # [[rules]]
  55. # description = "Generic Key"
  56. # regex = '''(?i)key(.{0,6})?(:|=|=>|:=)'''
  57. # entropies = [
  58. # "4.1-4.3",
  59. # "5.5-6.3",
  60. # ]
  61. # entropyROI = "line"
  62. # filetypes = [".go", ".py", ".c"]
  63. # tags = ["key"]
  64. # severity = "8"
  65. #
  66. #
  67. # [[rules]]
  68. # description = "Generic Key"
  69. # regex = '''(?i)key(.{0,6})?(:|=|=>|:=)'''
  70. # entropies = ["4.1-4.3"]
  71. # filetypes = [".gee"]
  72. # entropyROI = "line"
  73. # tags = ["key"]
  74. # severity = "medium"
  75. # [[rules]]
  76. # description = "Any pem file"
  77. # filetypes = [".key"]
  78. # tags = ["pem"]
  79. # severity = "high"