Nessus

Nessus quick install on Kali

To fire off a quick install on the Kali side, head to the Tenable downloads page and then copy the curl command to grab the installer, which will look something like:

curl --request GET \
  --url 'https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-10.8.2-debian10_amd64.deb' \
  --output 'Nessus-10.8.2-debian10_amd64.deb'

Kick off the install

sudo dpkg -i Nessus-x.deb

Startup the Nessus service

sudo systemctl start nessusd.service

Finish configuration

Then visit your install at https://your.nessus.ip.address:8834 and continue with the rest of the install and setup.

Watch main nessusd.messages file

This is the file that will show things such as services starting up/down, plugin updates being applied, etc.

sudo tail -f /opt/nessus/var/nessus/logs/nessusd.messages

Reset forgotten password

If you at least know the username you can reset the forgotten password (Windows):

cd "c:\Program Files\Tenable\Nessus"
nessus chpasswd USER-GOES-HERE

Policy setup

Here's a basic internal policy to scan all the things using an AD account:

  1. Click Policies from the left-hand menu.
  2. Click New Policy.
  3. Choose Advanced Scan. Give the policy a name and (optionally) a description.

Discovery → Host Discovery

  • Uncheck Test the local Nessus host — we don't need our local box mucking up the scan.
  • Uncheck Scan Network Printers — scanning printers can sometimes make them print novels of garbage.

Report

  • Uncheck Show missing patches that have been superseded.

    A superseded patch is one that doesn't need to be installed because a later patch corrects the same vulnerability. A service pack is a good example — it may contain many smaller patches/fixes. If this setting is enabled, Nessus will report each underlying vulnerability individually. Leaving it off keeps the results focused on the "big fixes" to help plan patching accordingly.

  • Check Designate hosts by their DNS name.

    Useful for DHCP scopes where machines often change IPs over time.

Advanced

  • Check Enable safe checks.

  • Check Slow down the scan when network congestion is detected.

  • Performance Options - check out this tip:

  • Check Log scan details (optional).

    This logs the start/finish time for each plugin used in a scan (details written to nessusd.messages). Handy for troubleshooting scans and pinpointing exactly when Nessus was scanning a given host. Note: on large scans, nessusd.messages can consume significant disk space — keep an eye on it.

Credentials Tab

  1. Click Windows and provide a domain admin username and password.

  2. Check Start the Remote Registry service during the scan.

    Allows Nessus to read keys and values from the registry.

  3. Check Enable administrative shares during the scan.

    Enables the C$ and ADMIN$ shares for the duration of the scan, then disables them when the scan finishes.

Plugins Tab

All plugins should already be selected by default. Do a spot check and confirm all Plugin Family entries are set to Enabled.

Troubleshooting

Fix "installation expired" error

If you fire up the GUI URL and get this error:

Installation Expired
This installation has expired.  If you believe that you are are seeing this screen in error, please take one of the following corrective actions...

(and then you're presented with some contact options)

Here's how you fix (on Windows):

cd "c:\Program Files\Tenable\Nessus"
nessuscli.exe fetch --register xxx
net stop "tenable nessus"
net start "tenable nessus"