File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/semmle/python/security/internal
test/experimental/dataflow/sensitive-data Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module HeuristicNames {
50
50
* Gets a regular expression that identifies strings that may indicate the presence of secret
51
51
* or trusted data.
52
52
*/
53
- string maybeSecret ( ) { result = "(?is).*((?<!is)secret|(?<!un|is )trusted).*" }
53
+ string maybeSecret ( ) { result = "(?is).*((?<!is|is_ )secret|(?<!un|un_|is|is_ )trusted).*" }
54
54
55
55
/**
56
56
* 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):
39
39
40
40
# some prefixes makes us ignore it as a source
41
41
not_found .isSecret
42
- not_found .is_secret # $ SPURIOUS: SensitiveDataSource=secret
42
+ not_found .is_secret
43
43
44
44
def my_func (non_sensitive_name ):
45
45
x = non_sensitive_name ()
You can’t perform that action at this time.
0 commit comments