I am trying to parse a bunch of Nessus vulnerability plugin files and extract the CVE and OSVDB reference IDs from each file. Each file is treated as a single event.
The format of the data is different for each plugin (probably because they were written by different people). Here are some samples:
script_cve_id("CVE-2010-4344");
script_cve_id("CVE-2010-3766", "CVE-2010-3767", "CVE-2010-3768", "CVE-2010-3770", "CVE-2010-3771", "CVE-2010-3772", "CVE-2010-3773", "CVE-2010-3774", "CVE-2010-3775", "CVE-2010-3776", "CVE-2010-3777", "CVE-2010-3778");
script_cve_id(
"CVE-2010-3512",
"CVE-2010-3514",
"CVE-2010-3544",
"CVE-2010-3545"
);
I've tried the following transforms to capture the events, but only a single CVE ID is showing up for each one:
[nessus_plugins_cve]
REGEX = (?mi)script_cve_id\(\s*"CVE-(?P<cve_id>\d+-\d+)(?=",*)
FORMAT = cve_id::$1
MV_ADD = true
Why isn't my regex capturing more than one CVE reference?
Thx.
Craig
... View more