File tree Expand file tree Collapse file tree
lib/semmle/python/security/internal
test/experimental/dataflow/sensitive-data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module HeuristicNames {
5050 * Gets a regular expression that identifies strings that may indicate the presence of secret
5151 * or trusted data.
5252 */
53- string maybeSecret ( ) { result = "(?is).*((?<!is)secret|(?<!un|is )trusted).*" }
53+ string maybeSecret ( ) { result = "(?is).*((?<!is|is_ )secret|(?<!un|un_|is|is_ )trusted).*" }
5454
5555 /**
5656 * Gets a regular expression that identifies strings that may indicate the presence of
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def encrypt_password(pwd):
3939
4040# some prefixes makes us ignore it as a source
4141not_found .isSecret
42- not_found .is_secret # $ SPURIOUS: SensitiveDataSource=secret
42+ not_found .is_secret
4343
4444def my_func (non_sensitive_name ):
4545 x = non_sensitive_name ()
You can’t perform that action at this time.
0 commit comments