File tree 3 files changed +19
-0
lines changed
test/query-tests/diagnostics
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name Sensitive Data
3
+ * @description List all sensitive data found in the database. Sensitive data is anything that
4
+ * should not be sent in unencrypted form.
5
+ * @kind problem
6
+ * @problem.severity info
7
+ * @id rust/summary/sensitive-data
8
+ * @tags summary
9
+ */
10
+
11
+ import rust
12
+ import codeql.rust.security.SensitiveData
13
+
14
+ from SensitiveData d
15
+ select d , "Sensitive data (" + d .getClassification ( ) + "): " + d .toString ( )
Original file line number Diff line number Diff line change 8
8
9
9
import rust
10
10
import codeql.rust.Concepts
11
+ import codeql.rust.security.SensitiveData
11
12
import codeql.rust.Diagnostics
12
13
import Stats
13
14
56
57
key = "Taint sources - total" and value = count ( ThreatModelSource s )
57
58
or
58
59
key = "Taint sources - active" and value = count ( ActiveThreatModelSource s )
60
+ or
61
+ key = "Sensitive data" and value = count ( SensitiveData d )
59
62
select key , value order by key
Original file line number Diff line number Diff line change 14
14
| Macro calls - resolved | 8 |
15
15
| Macro calls - total | 9 |
16
16
| Macro calls - unresolved | 1 |
17
+ | Sensitive data | 0 |
17
18
| Taint sources - active | 0 |
18
19
| Taint sources - total | 0 |
You can’t perform that action at this time.
0 commit comments