From 1406dc28d9db2349b85cf1ed56abc802a6ed0972 Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Wed, 10 Nov 2021 12:44:19 -0700 Subject: [PATCH] rules: ruleset: fix collection of features under not statements --- capa/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/rules.py b/capa/rules.py index 89053e56..927bcb4b 100644 --- a/capa/rules.py +++ b/capa/rules.py @@ -1053,7 +1053,7 @@ class RuleSet: rules_with_hard_features.add(rule) elif isinstance(node, capa.features.common.Feature): # easy feature: hash lookup - if under_not_statement: + if not under_not_statement: rules_with_easy_features.add(rule) rules_by_feature[node].add(rule) elif isinstance(node, (ceng.Not)):