Install a Tenable Nessus Agent on macOS
Use the following procedure to install Tenable Nessus Agent on a macOS system. After the installation, you link the agent to its manager Tenable Vulnerability Management or Tenable Nessus Manager) so that it can begin sending scan data once the installation is complete.
Before you begin:
- Retrieve the Tenable Nessus Agent linking key. For more information, see the Tenable Nessus User Guide or the Tenable Vulnerability Management User Guide, depending on what manager you use.
- If you previously had the Tenable Nessus Agent installed on your system, see the knowledge base article on how to avoid linking errors.
Caution: If you install a Tenable Nessus Agent on a system where an existing Tenable Nessus Agent, Tenable Nessus Manager, or Tenable Nessus scanner is running nessusd
, the installation process kills all other nessusd
processes. You may lose scan data as a result.
Download Tenable Nessus Agent
On the Tenable Nessus Agent Download Page, download the package specific to your operating system.
Once you download the agent package, install the agent.
Install the Agent
Note: You need root privileges to perform the following steps.
To install the Tenable Nessus Agent, you can use either the GUI installation wizard or the command line.
GUI Installation:
- Double-click the Nessus Agent .dmg (macOS disk image) file.
- Double-click Install Nessus Agent.pkg.
- Complete the Nessus Agent Install Wizard.
Command line Installation:
- Extract
Install Nessus Agent.pkg
and.NessusAgent.pkg
fromNessusAgent-<version number>.dmg
.Note: The .NessusAgent.pkg file is normally invisible in the macOS Finder. - Open Terminal.
- From the command line, enter the following command:
Once the agent installation completes, link the agent to the manager.
Tip: You can install a full plugin set before linking to reduce the bandwidth impact during a mass installation. You can accomplish this by using the nessuscli agent update command with the --file parameter, which specifies the location the plugins set. You must do this before starting the Tenable Nessus Agent. For example:
The plugins set must be less than five days old. A stale plugin set older than five days forces a full plugins download to occur. You can download a recent plugin set from the Tenable Nessus Agent download page.
Link Agent Using the Command Line
To link an agent on macOS:
- Open Terminal.
-
From the command line, use the
nessuscli agent link
command.For example:
# sudo /Library/NessusAgent/run/sbin/nessuscli agent link
--key=00abcd00000efgh11111i0k222lmopq3333st4455u66v777777w88xy9999zabc00
--name=MyOSXAgent --groups=All --host=yourcompany.com --port=8834Note: You must copy and paste the entire link command on the same line. Otherwise, you receive an error.
Agent command line linking parametersThe supported arguments for this command are:
Argument Required? Value --key yes
(Required) Use the values obtained from the manager.
To retrieve the linking key from the manager, see the Tenable Nessus User Guide or the Tenable Vulnerability Management User Guide, depending on which manager you use.
--host yes --port yes --name
no Specify a name for your agent. If you do not specify a name for your agent, the name defaults to the name of the computer where you are installing the agent. --groups no Specify an existing agent group or groups where you want to add the agent. If you do not specify an agent group during the installation process, you can add your linked agent to an agent group later in Tenable Nessus Manager or Tenable Vulnerability Management.
Note: The agent group name is case-sensitive and must match exactly. You must encase the agent group name in quotation marks (for example, --groups="My Group").
--offline-install no You can install the Tenable Nessus Agent on a system even if it is offline. Add the command line option NESSUS_OFFLINE_INSTALL="yes" to the command line input. The Tenable Nessus Agent periodically attempts to link itself to either Tenable Vulnerability Management or Tenable Nessus Manager.
If the agent cannot connect to the controller then it retries every hour, and if the agent can connect to the controller but the link fails then it retries every 24 hours.
--cloud no Specify the --cloud argument to link to Tenable Vulnerability Management.
The --cloud argument is a shortcut to specifying --host=cloud.tenable.com --port=443.
Caution: The --cloud argument is not supported in FedRAMP environments. You must specify --host=fedcloud.tenable.com --port=443.
Note: If you are connecting to Tenable Vulnerability Management through Tenable Nessus scanners, Tenable Nessus Agents, Tenable Web App Scanning scanners, or Tenable Nessus Network Monitors (NNM) located in mainland China, you must connect through sensor.cloud.tenablecloud.cn instead of sensor.cloud.tenable.com.
Note: For more information about linking agents to Tenable Vulnerability Management, see Link a Sensor in the Tenable Vulnerability Management User Guide.
--network no For Tenable Vulnerability Management-linked agents, add the agent to a custom network. If you do not specify a network, the agent belongs to the default network.
Once you install and link the agent, Tenable recommends that you verify that the agent is successfully linked to the manager by viewing the agent in the manager user interface.
Tip: If you attempt to clone an agent and link it to Tenable Nessus Manager or Tenable Vulnerability Management, a 409 error may appear. This error appears because another machine was linked with the same UUID value in the /private/etc/tenable_tag
file. To resolve this issue, replace the value in the /private/etc/tenable_tag
file with a valid UUIDv4 value.
Verify the Linked Agent
Once you install and link the agent, use the following steps to view the new agent in the manager user interface:
-
To verify a linked agent in Tenable Vulnerability Management:
-
In the upper-left corner, click the button.
The left navigation plane appears.
-
In the left navigation plane, click Settings.
The Settings page appears.
-
Click the Sensors tile.
The Sensors page appears. By default, Nessus Scanners is selected in the left navigation menu and the Cloud Scanners tab is active.
-
In the left navigation menu, click Nessus Agents.
The Nessus Agents page appears and the Linked Agents tab is active.
-
Locate the new agent in the linked agents table.
-
-
To verify a linked agent in Tenable Nessus Manager:
-
In the top navigation bar, click Sensors.
The Linked Agents page appears.
-
Locate the new agent in the linked agents table.
-