Skip to content

Commit

Permalink
Add nessus key (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmithv11 committed Jul 2, 2024
1 parent 98b9979 commit d133930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions detect_secrets/plugins/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
'contraseña',
'contrasena',
'recaptcha_.*key',
'nessus_?key',
)
# Includes ], ', " as closing
CLOSING = r'[]\'"]{0,2}'
Expand Down
2 changes: 2 additions & 0 deletions tests/plugins/keyword_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
('private_key "hopenobodyfindsthisone\';', None), # Double-quote does not match single-quote)
('api.key = {}'.format(COMMON_SECRET), COMMON_SECRET),
('API-KEY = {}'.format(COMMON_SECRET), COMMON_SECRET),
('nessus_key: {}'.format(COMMON_SECRET), COMMON_SECRET),
(LONG_LINE, None), # Long line test
]

Expand Down Expand Up @@ -88,6 +89,7 @@
('password := "somefakekey"', None), # 'fake' in the secret
('some_key = "real_secret"', None), # We cannot make 'key' a Keyword, too noisy)
('private_key "hopenobodyfindsthisone\';', None), # Double-quote does not match single-quote)
('nessus_key = {}"'.format(COMMON_SECRET), COMMON_SECRET), # Last character is ignored
(LONG_LINE, None), # Long line test
]

Expand Down

0 comments on commit d133930

Please sign in to comment.