Nessus Reporting Karma

Null Meet Pune May 2011 Pune, India
1 / 32
Slide 1 of Nessus Reporting Karma
Slide 2 of Nessus Reporting Karma
Slide 3 of Nessus Reporting Karma
Slide 4 of Nessus Reporting Karma
Slide 5 of Nessus Reporting Karma
Slide 6 of Nessus Reporting Karma
Slide 7 of Nessus Reporting Karma
Slide 8 of Nessus Reporting Karma
Slide 9 of Nessus Reporting Karma
Slide 10 of Nessus Reporting Karma
Slide 11 of Nessus Reporting Karma
Slide 12 of Nessus Reporting Karma
Slide 13 of Nessus Reporting Karma
Slide 14 of Nessus Reporting Karma
Slide 15 of Nessus Reporting Karma
Slide 16 of Nessus Reporting Karma
Slide 17 of Nessus Reporting Karma
Slide 18 of Nessus Reporting Karma
Slide 19 of Nessus Reporting Karma
Slide 20 of Nessus Reporting Karma
Slide 21 of Nessus Reporting Karma
Slide 22 of Nessus Reporting Karma
Slide 23 of Nessus Reporting Karma
Slide 24 of Nessus Reporting Karma
Slide 25 of Nessus Reporting Karma
Slide 26 of Nessus Reporting Karma
Slide 27 of Nessus Reporting Karma
Slide 28 of Nessus Reporting Karma
Slide 29 of Nessus Reporting Karma
Slide 30 of Nessus Reporting Karma
Slide 31 of Nessus Reporting Karma
Slide 32 of Nessus Reporting Karma

Abstract

Covers Nessus vulnerability scanner reporting formats, custom report parsing techniques, and building an integrated vulnerability management system with a PHP and Oracle backend.

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

The “Nessus Reporting Karma” session at a Null community meet in Pune in May 2011 was interactive rather than a formal talk, built around Nessus vulnerability scanner reporting formats and what can be done with them. The deck covers the HTML, NBE, and .nessus v1 and v2 formats, the evolution of the v2 XML schema, custom parsing with a PHP proof of concept, and the integrated vulnerability management system built on top, closing with the road ahead.

Summary

Expectations were set first: this was not a talk but an interactive session, presenting work done to give back to the community, with opinions, suggestions and comments explicitly invited. The discussion list covered Nessus reporting formats, customization, understanding the Nessus XML format, PHP code as a proof of concept for parsing logic, and analysis, which the deck called the real pain, with reclassification and false positives.

The format walkthrough started with HTML reports and the legacy NBE format, then dug into the two .nessus XML versions. The v1 format has three basic sections: Target listing the machines to be scanned, Policies covering the scan policy and plugin preferences, and Reports holding the actual scan results. Inside each ReportHost the ReportItem section repeats for every problem identified, but its data section packs CVSS score, plugin output, solution, references and more into one place. The v2 format, documented by Tenable, has two basic sections, Policy and ReportHost, and clearly separates all fields, so CVSS vectors and plugin output get their own tags. The format also keeps evolving: 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 got a brief mention as a good option for people who do not want to mess with outputs too much, and the deck also showed opening a Nessus file directly in Excel.

On parsing, the deck pointed at existing options, with Seccubus as a very good option providing periodic scans with report comparison, a PHP interface from Harvard, and a number of Python and Perl tools. Writing a custom parser, as the deck argued, is only required when integrating with existing infrastructure tools such as inventory management or security checking tools, when more customization is needed than provided, or when better control over scan frequency and granularity is required. The session then shared a shareable PHP proof of concept using simplexml_load_file that walks Policy and ReportHost nodes and prints every field, from ports and plugin IDs through CVSS vectors, exploit availability flags, and Metasploit and CANVAS package names.

The actual work section described the system built from that parser: a PHP front end for uploading reports to an Oracle database, integration with an inventory management tool, and an analysis layer that identifies known false positives by plugin ID, groups vulnerabilities by common remediation, classifies devices as network or server, and extracts Excel based reports. The report queries went further: auto-removing false positives based on plugin IDs and plugin output parameters, finding missing systems by cross referencing system inventory, detecting changes in device details between past and current inventory snapshots, and finding repeated vulnerabilities over time using system inventory IDs as the base. Plugin detail extraction differs by version: up to Nessus 4.2 a command line query against port 1241 works, and above 4.2 the XML-RPC interface is the way in. The road ahead named a similar interface for OpenVAS, XML-RPC based remote initialization and control, and keeping MySQL as an alternative database option.

Key Themes

  • Know your formats: HTML, NBE, and the two .nessus XML versions behave differently, and custom reporting starts with understanding where each field lives.
  • A schema in motion: the v2 format continuously evolves, and newer exploit-related tags open the door to correlating scan results with exploitation frameworks.
  • Parse, don’t squint: Seccubus and other existing tools cover periodic scanning and comparison, but inventory integration, deeper customization, and scan control justify writing a custom parser.
  • One proof of concept, every field: the PHP example with simplexml_load_file shows that pulling the complete ReportItem structure, exploit flags included, is straightforward.
  • Analysis is the real pain: false positive identification, grouping by remediation, and network versus server classification turn raw scan output into actionable work.
  • Inventory gives context: cross referencing scan data with a system inventory finds missing systems, tracks repeated vulnerabilities over time, and flags device changes between snapshots.
  • Give back, ask for feedback: the session itself was framed as returning work to the community, with suggestions and comments requested throughout.

Notable Points

  • The .nessus v1 format has three sections (Target, Policies, Reports), with CVSS score, plugin output, solution and references combined in a single data section inside each ReportItem.
  • The .nessus v2 format separates every field into its own tag, with Policy and ReportHost as the two basic sections; the spec is published at cgi.tenable.com/nessus_v2_file_format.pdf.
  • Recently added v2 tags include exploit_available, exploit_framework_canvas, canvas_package, exploit_framework_metasploit, and metasploit_name.
  • Existing parsing options cited: Seccubus for periodic scans with report comparison, a nessusphp interface, and multiple Python and Perl tools.
  • The proof of concept parser is PHP using simplexml_load_file, and it extracts ports, protocol, service name, plugin ID, plugin name and family, severity, risk factor, synopsis, description, solution, CVE, CVSS base score and vector, references, bug track IDs, plugin output, exploit availability, and Metasploit/CANVAS details.
  • The production system uses a PHP front end for report uploads to an Oracle database, integrated with an inventory management tool.
  • Analysis features: known false positive identification by plugin ID, grouping vulnerabilities with common suggestions, and classification of network versus server devices.
  • Report queries find missing systems against system inventory, detect device detail changes between snapshots, and track repeated vulnerabilities over time keyed on system inventory IDs.
  • Plugin extraction up to Nessus 4.2 uses the command line (Nessus -Spq localhost 1241 with credentials); above 4.2 it uses the XML-RPC interface.
  • Planned next steps: a similar interface for OpenVAS, XML-RPC for remote initialization and control, and MySQL as an alternative database.

Notable Quotes

“This should be an interactive session.”

“I am here presenting what I have worked so far to give back what I learned from community.”

“If options exist why write again”

“Analysis : the real pain”

“Disclaimer : I am bad at db design and co-relation”

“Thanks for still being seated.”

Embed This Presentation

See Also