From 66b2c07af41aa31efb1d0458679eec217b0fb4df Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Mon, 31 May 2021 09:53:19 -0600 Subject: [PATCH] main: show matching file limitation rule when showing warning --- capa/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capa/main.py b/capa/main.py index 39906c56..1f6174b8 100644 --- a/capa/main.py +++ b/capa/main.py @@ -206,7 +206,8 @@ def has_file_limitation(rules, capabilities, is_standalone=True): logger.warning("-" * 80) for line in file_limitation_rule.meta.get("description", "").split("\n"): - logger.warning(line) + logger.warning(" " + line) + logger.warning(" Identified via rule: %s", file_limitation_rule.name) if is_standalone: logger.warning(" ") logger.warning(" Use -v or -vv if you really want to see the capabilities identified by capa.")