Skip to content

Commit 23fbfce

Browse files
Exclude new private heuristics from swift sensitive credential
1 parent 5f4bc41 commit 23fbfce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift/ql/lib/codeql/swift/security/SensitiveExprs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class SensitiveCredential extends SensitiveDataType, TCredential {
4949
exists(SensitiveDataClassification classification |
5050
not classification = SensitiveDataClassification::password() and // covered by `SensitivePassword`
5151
not classification = SensitiveDataClassification::id() and // not accurate enough
52+
not classification = SensitiveDataClassification::private() and // covered by `SensitivePrivateInfo`
5253
result = HeuristicNames::maybeSensitiveRegexp(classification)
5354
)
5455
or

0 commit comments

Comments
 (0)