diff --git a/e2e/analysis/test_case.go b/e2e/analysis/test_case.go index 5a7985578..375bdeeb1 100644 --- a/e2e/analysis/test_case.go +++ b/e2e/analysis/test_case.go @@ -77,8 +77,8 @@ func NewTestCase() []*TestCase { fmt.Sprintf(messages.MsgPrintFinishAnalysisWithStatus, analysis.Success), messages.MsgDebugVulnHashToFix, messages.MsgWarnAnalysisFoundVulns[16:], - "In this analysis, a total of 69 possible vulnerabilities were found and we classified them into:", - "Total of Vulnerability CRITICAL is: 18", + "In this analysis, a total of 73 possible vulnerabilities were found and we classified them into:", + "Total of Vulnerability CRITICAL is: 22", "Total of Vulnerability HIGH is: 24", "Total of Vulnerability MEDIUM is: 24", "Total of Vulnerability LOW is: 3", diff --git a/internal/services/engines/leaks/rules.go b/internal/services/engines/leaks/rules.go index e9495415f..4df42df18 100644 --- a/internal/services/engines/leaks/rules.go +++ b/internal/services/engines/leaks/rules.go @@ -440,11 +440,11 @@ func NewHardCodedPassword() *text.Rule { }, Type: text.Regular, Expressions: []*regexp.Regexp{ - regexp.MustCompile(`(?i)(set)?password\s*(.?=.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), - regexp.MustCompile(`(?i)(set)?pass\s*(.?=.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), - regexp.MustCompile(`(?i)(set)?pwd\s*(.?=.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), - regexp.MustCompile(`(?i)(set)?passwd\s*(.?=.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), - regexp.MustCompile(`(?i)(set)?senha\s*(.?=.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), + regexp.MustCompile(`(?i)(set)?password\s*(.?=.?|.?:.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), + regexp.MustCompile(`(?i)(set)?pass\s*(.?=.?|.?:.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), + regexp.MustCompile(`(?i)(set)?pwd\s*(.?=.?|.?:.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), + regexp.MustCompile(`(?i)(set)?passwd\s*(.?=.?|.?:.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), + regexp.MustCompile(`(?i)(set)?senha\s*(.?=.?|.?:.?|\()\s*['|\"]\w+[[:print:]]*['|\"]`), }, } }