Why use 'or' for 'set registry value' instead of 'and'? #899
-
Many persistence rules that involve writing to the registry use a pattern similar to:
Does this not result in false positives when reading registry values? I would expect the pattern to look like this:
Example here: https://github.com/mandiant/capa-rules/blob/master/persistence/registry/run/persist-via-run-registry-key.yml Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
my guess is that @mr-tz is trying to account for indirect calls to still seems like it might FP though. have you seen this happen? i wonder if we can find an example. can you shed any insight @mr-tz ? |
Beta Was this translation helpful? Give feedback.
-
yes, what Willi said happy to adjust if you have any examples of FPs |
Beta Was this translation helpful? Give feedback.
-
Thanks! I haven't seen any FPs yet, but I will let you know if I do. |
Beta Was this translation helpful? Give feedback.
my guess is that @mr-tz is trying to account for indirect calls to
SetRegValue
(that we can't resolve) but can still sort of recognize by the hive constants.still seems like it might FP though. have you seen this happen? i wonder if we can find an example.
can you shed any insight @mr-tz ?