“Nessus Reporting Karma” is an interactive session covering Nessus vulnerability scanner reporting formats, custom report parsing, and the building of an integrated vulnerability management system with a PHP frontend and Oracle database backend. The deck walks through the available report formats and the structure of the .nessus XML versions. It then shows a working PHP proof-of-concept parser and the analysis features (false positive handling, vulnerability grouping, and inventory cross-referencing) that motivated the custom build.
Summary
The session opens by declaring itself not a talk but an interactive session, presenting what has been worked on so far to give back what was learned from the community and explicitly asking for opinions, suggestions, and comments on how to improve it. The agenda lists the points to discuss: Nessus reporting in various formats, how to customize, understanding the Nessus XML format, PHP code as a proof of concept for parsing logic, and analysis as the real pain, covering reclassification and false positives.
The format survey covers four options: HTML, NBE, dot nessus v1, and dot nessus v2. The v1 format has three basic sections (Target, Policies, Reports) with the repeated ReportItem holding data fields combined in one place, while v2 clearly separates all fields so CVSS vectors and plugin output each get their own tags. The format continuously evolves: recently added tags include exploit_available, exploit_framework_canvas, canvas_package, exploit_framework_metasploit, and metasploit_name, enabling automated correlation with exploitation frameworks. Customized HTML reports are acknowledged as a decent option, though the deck admits not being good at that, and simply opening the Nessus file in Excel is demonstrated as well.
For parsing, the deck surveys existing options before writing new code: Seccubus (described as a very good option providing periodic scans with report comparison), a PHP interface, and a number of Python and Perl options. Custom parser writing is only required for integrating with existing infrastructure tools (inventory, security checking tools), when more customization is needed than provided, or for better control over scan frequency and granularities. The PHP proof-of-concept uses simplexml_load_file to read the file, prints the policy name, iterates over ReportHost entries, dumps all HostProperties tags, and then walks each ReportItem echoing every field, from port and severity through CVSS vector and exploit availability flags to see-also references.
The actual work section shows what was built: a PHP frontend for uploading reports to a database backed by Oracle, integration with an inventory management tool, and analysis features including known false positive identification by plugin ID, grouping common vulnerabilities together, classification of network versus server devices, and Excel-based report extraction. Its reports layer auto-removes false positives by plugin ID and plugin output, groups vulnerabilities by common suggestion, finds missing systems against the inventory, detects device detail changes between snapshots, and tracks repeated vulnerabilities over time keyed on the inventory systemid. Plugin detail extraction differs by version: up to Nessus 4.2 the command-line query interface works, while versions above 4.2 use the XML-RPC interface. The road ahead plans a similar interface for OpenVAS, XML-RPC for remote initialization and control, and MySQL as an alternative database option. The closing thanks the audience for still being seated and invites comments and suggestions.
Key Themes
- Nessus reporting formats: four formats are covered: HTML (standard web-based reports), NBE (legacy format), .nessus v1 (three sections: Target, Policies, Reports, with data fields combined in a single section), and .nessus v2 (improved format with clearly separated fields such as CVSS vector and plugin output in separate tags, documented at Tenable’s specification).
- Format evolution: the v2 format continuously evolves with new tags. Recent additions include exploit_available, exploit_framework_canvas, canvas_package, exploit_framework_metasploit, and metasploit_name. These fields enable automated correlation with exploitation frameworks.
- Custom parsing approaches: existing options include Seccubus (periodic scans with report comparison) and various Python/Perl tools. Custom parsing is needed for integrating with existing infrastructure tools, deeper customization, and better control over scan frequency and granularity. The session demonstrates a PHP proof-of-concept parser using simplexml_load_file to extract all report fields.
- Integrated vulnerability management system: a PHP frontend uploads reports to an Oracle database, integrated with inventory management tools. Key analysis features: known false positive identification by plugin ID, vulnerability grouping by common remediation, classification by network versus server devices, Excel-based report extraction, cross-referencing with system inventory to find missing systems, tracking repeated vulnerabilities over time using system inventory IDs, and detecting changes in device details between scan snapshots.
- Plugin detail extraction: Nessus 4.2 and below offer a command-line query interface; versions above 4.2 provide an XML-RPC interface for remote initialization and control.
- Planned enhancements: creating a similar interface for OpenVAS, using XML-RPC for remote initialization and control, and adding MySQL as an alternative database option.
Notable Points
- Takeaway: understanding Nessus XML formats enables powerful custom reporting.
- Takeaway: integrating vulnerability data with asset inventory provides organizational context.
- Takeaway: automated false positive identification by plugin ID reduces analysis burden.
- Takeaway: grouping vulnerabilities by common remediation streamlines patching efforts, and historical tracking reveals vulnerability trends and persistent issues.
- The .nessus v1 format divides into Target, Policies, and Reports sections with the ReportItem repeated per problem, while v2 splits into Policy and Report host sections and separates every field into its own tag, per the specification at cgi.tenable.com/nessus_v2_file_format.pdf.
- The v2 format’s recently added tags: exploit_available (boolean), exploit_framework_canvas (boolean), canvas_package (name), exploit_framework_metasploit (boolean), and metasploit_name (name).
- Existing parsing options cited: seccubus.com for periodic scans with report comparison, the nessusphp interface at enterprise.bidmc.harvard.edu/pub/nessusphp/, plus Python and Perl alternatives.
- The PHP proof of concept reads files with simplexml_load_file and iterates ReportHost and ReportItem elements, extracting port, protocol, svc_name, pluginID, pluginName, pluginFamily, severity, risk_factor, synopsis, description, solution, cve, cvss_base_score, cvss_vector, xfref, bid, plugin_output, exploit availability (Metasploit and CANVAS with package names), and see_also.
- The built system pairs a PHP upload frontend with an Oracle database, and its report queries auto-remove false positives by plugin ID and plugin output parameters, group vulnerabilities by common suggestion, find missing systems against the inventory, detect device detail changes between snapshots, and track repeated vulnerabilities over time keyed on the inventory systemid.
- Plugin extraction commands: Nessus -Spq localhost 1241 (with user and pass) for Nessus 4.2 and below, XML-RPC for versions above 4.2; the roadmap adds an OpenVAS interface, XML-RPC remote initialization and control, and MySQL as an alternative to Oracle.
Notable Quotes
“This is not a talk.”
“I am here presenting what I have worked so far to give back what I learned from community.”
“Analysis : the real pain”
“Frankly I am not good at that”
“Disclaimer : I am bad at db design and co-relation”
“Thanks for still being seated.”