Copyright

© 2021 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.

Trademark

Outpost24® and OUTSCAN™ are trademarks of Outpost24® in Sweden and other countries.


Introduction

The Outpost24 Agent is primarily designed for mobile employees who are rarely office based, but still requires vulnerability scanning of their assets. When working remotely, often via a VPN, it is not possible to run a remote vulnerability scan of these assets as it can have a serious impact on network performance. Using the Outpost24 Agent, makes it possible to get these results, with no impact on network capacity and is designed to run an equivalent of an authenticated network scan, giving details of missing patches, updates, and hotfixes for both OS and common business software. The Outpost24 Agent can be downloaded based on Operating System from the Outscan UI, under Menu > Support.


Caution!

When running an Outpost24 Agent, some Anti Virus/Anti-Malware software will trigger on the agent.

To avoid triggering the AV/Malware platform, the path to the agents executable need to be whitelisted.


Example from Bitdefender

Requirements

  • The Linux Agent comes both in rpm and deb format.
  • The Windows Agent only support Windows 10, 64-bit, MSI installer.
  • Tha MacOS Agent only support x64.

Tested Version

Agent version: v1.8.5-1

OSVersionBuild
Windows10
Windows Server2012 R2  (Datacenter Edition)9600
Windows Server2016 (Datacenter Edition)14393
Windows Server2019 (Datacenter Edition)17763
Centos7
Centos8
Debian10
Fedora33
RHEL7
macOS

Big Sur 11 (Experimental support on Sierra10.12 and newer)

Note

The agent for macOS is built for amd64 but are dependent on Rosetta 2 for other architectures and versions.


Note

The Outpost24 Agent may work on other Windows, Mac, and Debian/Fedora based system as well, however testing is underway to ensure these are fully supported.


Downloading the Agent

To download agents:

  1. Log in to Outscan.
  2. Go to Main Menu > Support.
  3. Click the Agent Installers tab.
  4. In the drop down menus select:
    1. Select Platform, for example Linux or Windows.
    2. Select Architecture, for example amd64.
    3. Select Package, for example pkg, rpm, deb or msi depending on platform.
  5. Click the Download button.

    image2020-7-9_12-0-25.png

Installing the Agent

Linux

Log in at the workstation on which you want to install the software.

Note

Ensure that the user can get root privileges using the sudo command.


Fedora

  1. Download and verify the package you wish to install as shown in Downloading the Agent. The package is named linux-amd64.rpm.
  2. To install the package using the RPM package manager, enter the following command at the prompt:

    sudo rpm -ivh linux-amd64.rpm
    BASH


    Note

    You can also use dnf the next upcoming major version of the yum package manager for RPM-based Linux distribution, as follow:

    sudo dnf install linux-amd64.rpm
    BASH

CentOS

  1. Download and verify the package you wish to install as shown in Downloading the Agent. The package is named linux-amd64.rpm.
  2. To install the package using RPM package manager, enter the following command at the prompt:

    sudo rpm -ivh linux-amd64.rpm
    BASH

    Note

    You can also use dnf the next upcoming major version of the yum package manager for RPM-based Linux distribution, as follow:

    sudo yum install linux-amd64.rpm
    BASH

Debian

  1. Download the package you wish to install as shown in Downloading the Agent. The package is named linux-amd64.deb.
  2. To install the package using Package Manager for Debian, enter the following command at the prompt:

    sudo dpkg -i linux-amd64.deb
    BASH

    Note

    You can also use Debian high level command line interface for the package management system provided by apt as follow:

    sudo apt /FULL_PATH_TO/linux-amd64.deb
    BASH

Windows

To install an agent:

  1. Click the downloaded file in the lower left corner of your browser to start the installation.
  2. Check to see that the Outpost24 Agent been enrolled properly by checking:
    1. Start > Windows Systems > Control Panel > Programs > Programs and Features.



    2. Check that the Outpost24 Agent Service is running in Start > Windows Administrative Tools > Services.



    3. Check This PC > Windows 10(C:) ProgramData > Outpost24 > Agent for a o24agent.crt certificate.

macOS

Overview

The following flowchart illustrates the two mechanisms through which a macOS Agent may be configured and enrolled.

For automated deployment to a large number of targets we recommend flow A, in which the system administrator first manually obtains an enrollment configuration file which is then deployed to the entire fleet.
In flow B, the agent application is instead provided with a REST API token and retrieves its configuration file from its enrollment host. This flow implies additional network traffic overhead and the potential exposure of a more general credential.

Flow A

This flow reduces the required network communication between the agent and the enrollment host, and also minimizes the exposure of the REST API token needed for enrollment configuration file acquisition.

  1. Obtain enrollment configuration file
    The system administrator installs the agent application on a single system, from which the enrollment configuration is bootstrapped.
    This configuration file, which contains a long-lived enrollment token, is then deployed to all targets in the subsequent step.
    Refer to the Acquiring a JSON Web Token (JWT) for Interfacing with the Outpost24 REST API and Obtaining Enrollment Configuration sections for guidance.
  2. Install agent .pkg and enrollment configuration file on targets
    The enrollment configuration file is placed in the /etc/o24-agent/ directory and the agent binary is installed to /usr/local/bin/o24-agent. (see Installing the macOS Agent).
    Granted that the configuration file is valid and readable, the agent will be able to enroll on first startup.

    Important!

    The configuration file should be owned by the root user and have its permissions set to 640.

Flow B

In this flow, the agent application retrieves its enrollment configuration file using a REST API token; automated installation on multiple targets using this flow would entail issuing a longer-lived token and distributing it to all installation targets.

  1. Install agent .pkg on target(s)
    Refer to the instructions in the Installing the macOS Agent section.
  2. Obtain enrollment configuration file
    Obtain a REST API token and subsequently the enrollment configuration file as described in Acquiring a JSON Web Token (JWT) for Interfacing with the Outpost24 REST API and Obtaining Enrollment Configuration.

After concluding either flow A or B, see Starting the service for finalization.

Installing the macOS Agent

  1. If you have access to the GUI, double-click the downloaded .pkg file and follow the installation wizard instructions.
    1. If prompted to choose installation directory, use the default (the volume the OS is installed to).
  2. Otherwise, from the command-line, use the following command:

    installer -pkg <path-to-agent.pkg> -target /
    BASH


Acquiring a JSON Web Token (JWT) for Interfacing with the Outpost24 REST API

An Outpost24 REST API may be acquired by issuing a POST request to the /opi/rest/auth/login endpoint. The endpoint accepts the following request body parameters:

  • username (mandatory) - Outpost24 sign-in username.
  • password (mandatory) - Outpost24 sign-in password.
  • validUntil (optional) - Timestamp indicating when the token will expire; default lifetime is 10 minutes.
  • code (optional) - Two-factor authentication (2FA) code, required if enabled for the user account.

Example POST request using cURL:

read -p "Username: " USER && \
read -sp "Password: " PASS && echo && \
curl --data-urlencode "username=${USER}" --data-urlencode "password=${PASS}" https://outscan.outpost24.com/opi/rest/auth/login && echo && \
unset USER PASS
BASH


Obtaining Enrollment Configuration

The /usr/local/bin/o24-agent binary provides a command fetch-enrollment-config, it retrieves a configuration file and installs it to /etc/o24-agent/agent-config.yml.

/usr/local/bin/o24-agent fetch-enrollment-config --token "<token>"
BASH

This command requires the following mandatory arguments:

  • --url: This should point to the OUTSCAN/Scheduler that you wish to run against; this defaults to https://outscan.outpost24.com.
  • --token: This should be a valid, non-expired JWT for the Outpost24 REST API, as outlined above.
    • In order to restrict the token scope, we recommend issuing the JWT for an IAM restricted sub-user.

This command accepts the following optional arguments:

  • --no-config-install: This skips installing the configuration file to /etc/o24-agent/, instead leaving it available in /tmp/.
    • By obtaining the configuration file in this manner you may subsequently incorporate it into a specific deployment workflow, for example automatically placing it in /etc/o24-agent/ during installation, Sidestepping the need to expose a valid JWT in the same flow.
    • See the "Enrollment flow overview" for additional information.
  • --insecure-skip-verify: Skips TLS certificate validation for the given --url.
    • Should only be utilized if required for particular DSAgent deployments.

This command must be invoked as the root user due to the privileged configuration file location.

Starting the Service

After the enrollment configuration file has been obtained, launch the agent service as such:

launchctl load -w /Library/LaunchDaemons/com.outpost24.agent.plist
BASH

Note

On first run, the agent is enrolled against the OUTSCAN or Scheduler instance. This operation includes a randomized timeout in order to support large-scale deployments, and may thus require up to an hour to conclude.

Setting up the Agent as a Target

Once the agent has been installed, perform a discovery scan for enrolled agents.

  1. Open Main Menu > Netsec > Scan Scheduling.
  2. Click + New button to open a Maintain Scan Schedule.
  3. Add a new name, for example agent discovery.
  4. Select Scan Mode in the drop-down menu: Discovery [Discovery|Discovery/Scan|Scan].
  5. Select the Discovery Settings tab.
  6. Select the Agent Discovery checkbox.
  7. Select the Add Found Targets To Targets Group check box.
  8. Under All Targets tree, select a target.



  9. Click the Save button.
  10. Select the new agent schedule listed under the Scan Schedules tab.
  11. Click the Scan now button.

Once the discovery scan has finished the agent is added under Manage Targets and can be handled as any other target in Scan Scheduling.

Upgrading the Agent


Note

Do not forget to login on the target system with a user that can gain administrative access on the system such as root on Linux.


Linux

Fedora

  1. Log in at the workstation on which you want to upgrade the software.

  2. To update the package using RPM package manager, enter the following command at the prompt: 

    sudo rpm -Uvh linux-amd64.rpm
    BASH

Debian

  1. Log in at the workstation on which you want to install the software.

  2. To update the package using Package Manager for Debian, enter the following command at the prompt:

    sudo dpkg -i linux-amd64.deb
    BASH

Windows

  1. Log in at the workstation on which you want to install the software.
  2. Follow the instructions for installing a Windows agent in Installing the Agent section


Reference

  1. Scan Scheduling
  2. Manage Targets