File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
test/query-tests/diagnostics Expand file tree Collapse file tree 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 88
99import rust
1010import codeql.rust.Concepts
11+ import codeql.rust.security.SensitiveData
1112import codeql.rust.Diagnostics
1213import Stats
1314
5657 key = "Taint sources - total" and value = count ( ThreatModelSource s )
5758 or
5859 key = "Taint sources - active" and value = count ( ActiveThreatModelSource s )
60+ or
61+ key = "Sensitive data" and value = count ( SensitiveData d )
5962select key , value order by key
Original file line number Diff line number Diff line change 1414| Macro calls - resolved | 8 |
1515| Macro calls - total | 9 |
1616| Macro calls - unresolved | 1 |
17+ | Sensitive data | 0 |
1718| Taint sources - active | 0 |
1819| Taint sources - total | 0 |
You can’t perform that action at this time.
0 commit comments