Willie
037c7943cf
fix(audit): report credential paths in Python comments and docstrings as HIGH ( #819 )
...
Credential-access rules match whole lines, so a Python docstring that
named ~/.aws/credentials in a `cat` example counted as a CRITICAL read and
blocked the mcp-sentinel skill at the default threshold (#817 ).
In .py files, a built-in CRITICAL credential-access match on a comment-only
line, or inside a string that is a whole statement such as a docstring, is
now HIGH: it still shows, and still blocks under a HIGH threshold. A small
tokenizer decides this and keeps CRITICAL wherever it cannot be sure the
line never runs: argument, assigned and bracketed strings, f-strings and
their replacement fields, code before a trailing comment, files that read
__doc__ or use bare CR line breaks, and explicit severity overrides.
A lowered finding carries severityContext "python-inert" (JSON, SARIF,
`audit rules --format json`), and the dashboard, CLI text output, both
audit TUIs, install/update warnings and the markdown report say it was
lowered from CRITICAL, so it is not mistaken for a changed rule.
Closes #817
2026-11-09 23:30:37 +08:00
..
2026-10-26 01:38:04 +08:00
2026-03-18 22:35:02 +08:00
2026-10-05 15:40:19 +08:00
2026-10-05 15:40:19 +08:00
2026-10-04 19:34:24 +08:00
2026-10-05 14:26:09 +08:00
2026-09-19 03:14:03 +08:00
2026-11-06 14:55:35 +08:00
2026-11-06 13:56:53 +08:00
2026-11-09 23:30:37 +08:00
2026-10-13 22:42:05 +08:00
2026-10-13 22:42:05 +08:00
2026-10-05 18:26:12 +08:00
2026-10-08 12:01:42 +08:00
2026-10-07 00:03:34 +08:00
2026-10-07 00:03:34 +08:00
2026-10-24 16:33:37 +08:00
2026-10-10 01:06:23 +08:00
2026-10-10 01:06:23 +08:00
2026-11-06 23:49:30 +08:00
2026-11-05 15:23:28 +08:00
2026-09-19 03:14:03 +08:00
2026-09-30 02:25:42 +08:00
2026-10-12 13:59:59 +08:00
2026-10-29 16:47:38 +08:00
2026-10-05 15:40:19 +08:00
2026-04-14 18:16:11 +08:00
2026-05-30 19:23:12 +08:00
2026-10-13 15:00:39 +08:00
2026-10-08 15:52:47 +08:00
2026-10-08 16:19:32 +08:00
2026-09-30 02:21:11 +08:00
2026-10-08 16:41:09 +08:00
2026-10-03 14:16:58 +08:00
2026-10-03 14:16:58 +08:00
2026-10-01 23:08:43 +08:00
2026-10-01 10:17:47 +08:00
2026-10-01 10:17:47 +08:00
2026-10-02 02:56:54 +08:00
2026-10-08 15:06:59 +08:00
2026-10-08 15:06:59 +08:00
2026-02-23 04:18:01 +08:00
2026-04-10 01:26:40 +08:00
2026-10-01 21:21:53 +08:00
2026-10-01 02:24:24 +08:00
2026-11-09 11:59:50 +08:00
2026-09-19 03:14:03 +08:00
2026-10-05 22:03:47 +08:00
2026-11-06 21:19:50 +08:00
2026-11-06 21:19:50 +08:00
2026-02-23 04:18:01 +08:00
2026-09-30 02:25:42 +08:00
2026-10-05 22:03:47 +08:00
2026-10-05 22:03:47 +08:00
2026-10-08 12:26:26 +08:00
2026-10-08 12:26:26 +08:00
2026-10-11 00:43:47 +08:00
2026-10-11 04:19:32 +08:00
2026-09-28 17:41:33 +08:00
2026-09-30 02:25:42 +08:00
2026-10-07 00:04:00 +08:00
2026-10-07 00:04:00 +08:00
2026-09-28 18:40:15 +08:00
2026-09-30 02:25:42 +08:00
2026-09-28 16:12:59 +08:00
2026-09-27 03:02:51 +08:00
2026-09-30 02:25:42 +08:00
2026-09-30 02:25:42 +08:00
2026-09-29 04:51:24 +08:00
2026-09-30 02:25:42 +08:00
2026-10-24 17:32:34 +08:00
2026-10-24 17:32:34 +08:00
2026-10-25 22:57:04 +08:00
2026-03-17 04:48:42 +08:00
2026-11-02 15:13:01 +08:00
2026-11-02 15:13:01 +08:00
2026-10-01 02:24:24 +08:00
2026-10-05 20:36:39 +08:00
2026-10-13 15:00:39 +08:00
2026-10-13 15:00:39 +08:00
2026-10-07 00:03:50 +08:00
2026-10-07 00:18:02 +08:00
2026-10-03 14:16:58 +08:00
2026-10-03 14:16:58 +08:00
2026-10-12 22:34:05 +08:00
2026-10-12 17:34:33 +08:00
2026-10-11 00:43:47 +08:00
2026-10-11 04:19:32 +08:00
2026-10-05 20:36:39 +08:00
2026-10-13 02:50:17 +08:00
2026-10-05 20:36:39 +08:00
2026-10-13 10:41:27 +08:00
2026-10-13 10:41:27 +08:00
2026-10-29 16:47:38 +08:00
2026-10-29 16:47:38 +08:00
2026-11-02 15:13:01 +08:00
2026-11-02 15:13:01 +08:00
2026-11-09 15:06:55 +08:00
2026-11-09 15:06:55 +08:00
2026-06-03 15:37:57 +08:00
2026-10-26 01:38:04 +08:00
2026-10-23 02:07:54 +08:00
2026-11-06 23:49:30 +08:00
2026-11-06 23:49:30 +08:00
2026-04-09 03:50:28 +08:00
2026-11-09 21:49:52 +08:00
2026-11-09 21:49:52 +08:00
2026-06-02 16:29:25 +08:00
2026-10-05 22:03:47 +08:00
2026-10-05 14:42:09 +08:00
2026-10-05 14:42:09 +08:00
2026-10-05 11:29:39 +08:00
2026-10-05 14:26:09 +08:00
2026-10-24 16:33:37 +08:00
2026-10-24 16:33:37 +08:00
2026-10-05 23:01:50 +08:00
2026-11-06 14:55:35 +08:00
2026-10-24 21:43:12 +08:00
2026-10-24 21:43:12 +08:00
2026-10-05 23:16:58 +08:00
2026-10-05 23:16:58 +08:00
2026-09-30 00:24:51 +08:00
2026-10-29 16:47:38 +08:00
2026-10-29 16:47:38 +08:00
2026-10-26 01:55:34 +08:00
2026-10-29 16:47:38 +08:00
2026-10-29 16:47:38 +08:00
2026-09-29 15:25:06 +08:00
2026-09-30 02:25:42 +08:00
2026-04-14 18:03:41 +08:00
2026-10-09 01:28:28 +08:00
2026-10-29 16:47:38 +08:00
2026-10-29 16:47:38 +08:00
2026-10-04 19:34:24 +08:00
2026-10-05 14:26:09 +08:00
2026-10-04 19:40:44 +08:00
2026-10-05 14:26:09 +08:00
2026-10-05 18:27:12 +08:00
2026-10-31 17:25:04 +08:00
2026-10-31 17:25:04 +08:00
2026-10-07 21:41:43 +08:00
2026-10-08 16:41:09 +08:00
2026-09-30 01:34:58 +08:00
2026-10-07 21:41:43 +08:00
2026-11-05 22:44:03 +08:00
2026-10-22 00:39:12 +08:00
2026-10-08 00:05:10 +08:00
2026-10-22 00:39:12 +08:00
2026-10-24 16:33:37 +08:00
2026-10-26 15:59:32 +08:00
2026-11-05 22:44:03 +08:00
2026-11-04 16:51:03 +08:00
2026-11-04 16:51:03 +08:00
2026-09-30 02:25:42 +08:00
2026-09-30 02:25:42 +08:00
2026-03-18 22:35:02 +08:00
2026-04-19 09:29:18 +08:00
2026-04-19 09:29:18 +08:00
2026-03-17 04:48:42 +08:00
2026-11-09 11:08:43 +08:00
2026-11-09 11:08:43 +08:00
2026-04-09 04:07:35 +08:00
2026-03-18 22:35:02 +08:00
2026-05-05 18:33:07 +08:00
2026-11-09 15:06:55 +08:00
2026-10-07 21:35:05 +08:00
2026-10-05 11:03:39 +08:00
2026-10-05 11:03:39 +08:00
2026-09-27 23:03:21 +08:00
2026-09-27 23:03:21 +08:00
2026-11-09 11:59:50 +08:00
2026-11-09 11:59:50 +08:00