Update Hashicorp Vault token pattern (#1483)

* feat(vault): add old pat, tweak new pat

* feat(hashicorp): add entropy to tf rule
This commit is contained in:
Richard Gomez authored and GitHub committed 2024-08-25 15:19:37 -05:00
1 parent 1aae66d564
commit 3be7faa1ff
4 files changed
+32 -11

No files matched your search

+5 -3
View File
@@ -2106,7 +2106,8 @@ keywords = [
[[rules]]
id = "hashicorp-tf-api-token"
description = "Uncovered a HashiCorp Terraform user/org API token, which may lead to unauthorized infrastructure management and security breaches."
regex = '''(?i)[a-z0-9]{14}\.atlasv1\.[a-z0-9\-_=]{60,70}'''
regex = '''(?i)[a-z0-9]{14}\.(?-i:atlasv1)\.[a-z0-9\-_=]{60,70}'''
entropy = 3.5
keywords = [
"atlasv1",
]
@@ -2899,9 +2900,10 @@ keywords = [
[[rules]]
id = "vault-service-token"
description = "Identified a Vault Service Token, potentially compromising infrastructure security and access to sensitive credentials."
regex = '''(?i)\b(hvs\.[a-z0-9_-]{90,100})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
regex = '''\b((?:hvs\.[\w-]{90,120}|s\.(?i:[a-z0-9]{24})))(?:['|\"|\n|\r|\s|\x60|;]|$)'''
entropy = 3.5
keywords = [
"hvs",
"hvs","s.",
]
[[rules]]