When I run it on the CLI with the -m flag, I get the following results:
> yara -m multiple_meta.yar multiple_meta.yar
test [key="val1",key="val2"] multiple_meta.yar
I haven't seen it discussed in the issues section as of yet, but it looks like yara-python should be returning the metadata results as a list of lists like [ ["key", "val1"], ["key", "val2"] ] so that keys can be repeated as in libyara
Here I have a rule with a repeated meta field "key". In the results, only the latest one is shown because the meta field is returned as a dictionary.
Here, I have the same yara rule.
When I run it on the CLI with the
-m
flag, I get the following results:I haven't seen it discussed in the issues section as of yet, but it looks like yara-python should be returning the metadata results as a list of lists like
[ ["key", "val1"], ["key", "val2"] ]
so that keys can be repeated as in libyara