Git Product home page Git Product logo

nessus-es's People

Contributors

iwikmai avatar n2x4 avatar nicpenning avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nessus-es's Issues

[Bug] Fix Scan History Export Option

Currently, the export of scans by date is not functioning. Unsure why, but needs to be fixed so that a user can put in a date for Export_Day and export all of the scans from all scans on that day.

Revamp code, data, and visuals

This project, while effective, is stale and needs great improvements to utilize the latest features of the Elastic stack. The following will greatly enhance this means of ingesting Nessus scan data.

  • Remove PowerShell 5.1 Compatibility
  • Remove Deprecated Templates
  • Migrate to Data Stream
  • Overhaul Dashboard
  • Update Docs

Simplify OS Name in Nessus Data Export (host.os.name)

Currently, host.os.name contains the same data as host.os.full which includes the version information. To be better compliant with ECS, we should us a simplified version of the OS in host.os.name.

This might be possible by using cpe-o in the xml data:
<tag name="cpe-0">cpe:/o:microsoft:windows_10:::x64-enterprise -&gt; Microsoft Windows 10 64-bit</tag>

But then only use the second part above which is Microsoft Windows 10 64-bit. Need to research if this is uniform across the data and implement.

Today we use this for both fields:
<tag name="operating-system">Microsoft Windows 10 Enterprise Build 19045</tag>

Consolidate scripts for ease of use โœจ๏ธ

Right now there are three scripts that can be used for different purposes.

Extract...ps1 : Exports scans from Nessus
Automate...ps1 : Finds files to ingest into Elastic
Import...ps1 : Ingest nessus files into Elastic

The plan is to have a single script that can act as a wizard ๐Ÿง™๐Ÿปโ€โ™‚๏ธ or used for end to end automation ๐Ÿค–.

This should also include the Elastic stack configuration features such as importing the templates, dashboards, pipelines, etc.

  • Extract Nessus Files
  • Ingest Nessus Files
  • Automate Extraction and Ingestion
  • Configure Elastic Stack

Name of scan is not preserved on export option

Consider the following change (works for me) in order to preserve the "vanity name" of the scan in the exported files.
Line 303
$exportFileName = Join-Path $Nessus_File_Download_Location $($($convertedTime | Get-Date -Format yyyy_MM_dd).ToString()+"-$($_.name)"+"-$scanId$($Export_Custom_Extended_File_Name_Attribute).nessus")

problem when to run Nessus-ES

Hi dear
I installed nesses on Ubuntu 20.0.4 and ran Elasticsearch on another node and the command on my system.
I ran your code on my pc (windows10 ,powershell 7)
is my command is true ? (Nessus_File_Download_Location)
I do not understand these (-Nessus_Archive_Folder_Name , Export_Scans_From_Today , Export_Day)

.\Invoke-NessusTo-Elastic.ps1 -Nessus_URL "https://192.168.4.59:8834" -Nessus_File_Download_Location "D:\result-nessus" -Nessus_Access_Key "redacted" -Nessus_Secret_Key "redacted" -Nessus_Source_Folder_Name "/opt/nessus/var/nessus/users/Nessus/reports/" -Nessus_Archive_Folder_Name "Archive-Ingested" -Export_Scans_From_Today "false" -Export_Day "01/11/2024" -Export_Custom_Extended_File_Name_Attribute "scan" -Elasticsearch_URL "http://192.168.100.169:9200" -Elasticsearch_Index_Name "logs-nessus.vulnerability" -Elasticsearch_Api_Key "redacted:redacted"


And other questions is that i dont have the value that you mentioned as _scanner1 in (Export_Custom_Extended_File_Name_Attribute)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.