Skip to content

Commit af2e8ff

Browse files
author
liangjinhuang
committed
feat:modify source regular matching rules
1 parent 012434b commit af2e8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/security/dataflow/InsecureRandomnessCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module InsecureRandomness {
6060
class RandomFnSink extends Sink {
6161
RandomFnSink() {
6262
exists(DataFlowCallable randomFn |
63-
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|salt|make|mk).*")
63+
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|make|mk|create).*(nonce|salt|pepper).*")
6464
|
6565
this.getEnclosingCallable() = randomFn
6666
)

0 commit comments

Comments
 (0)