mirror of
https://github.com/securego/gosec.git
synced 2025-11-23 22:15:04 +02:00
Add a rule to detect the usage of ssh InsecureIgnoreHostKey function
This commit is contained in:
@@ -65,6 +65,7 @@ func Generate(filters ...RuleFilter) RuleList {
|
||||
"G103": RuleDefinition{"Audit the use of unsafe block", NewUsingUnsafe},
|
||||
"G104": RuleDefinition{"Audit errors not checked", NewNoErrorCheck},
|
||||
"G105": RuleDefinition{"Audit the use of big.Exp function", NewUsingBigExp},
|
||||
"G106": RuleDefinition{"Audit the use of ssh.InsecureIgnoreHostKey function", NewSSHHostKey},
|
||||
|
||||
// injection
|
||||
"G201": RuleDefinition{"SQL query construction using format string", NewSQLStrFormat},
|
||||
|
||||
Reference in New Issue
Block a user