Installing the Tanium Client

Use Device Management to install the Tanium Client on enrolled macOS devices that support the Tanium Client. The installation method depends on your deployment. For a list of supported operating systems for the Tanium Client, see Supported macOS versions for Tanium Client hosts.

Note: If you are working in a Tanium Cloud for U.S. Government environment, skip to Sign and package the Tanium Client installer for Tanium Cloud for U.S. Government environments.

Overview

Device Management starts a process to create the Tanium Client Installer after you configure the following prerequisites:

This process can take some time to complete after these requirements are met. The Tanium Client Installer Status section of the Summary panel on the Device Management Overview page shows one of the following statuses:

  • circle-check Available: The Tanium Client installer is ready. When a version is available, the version number appears in parentheses (for example, Available (7.8.2.1152)).

    Figure 1. Tanium Client Installer Status: Available
    Tanium Client Installer Status section showing the Available status
  • state-pending In Progress: Device Management is preparing the Tanium Client installer.

  • state-critical No Installer: No Tanium Client deployment template is selected. Click No Installer to go to the Tanium Client settings tab and select a template.

After the installer is available, Device Management pushes the Tanium Client to enrolled devices. Device Management also deploys the Tanium Client Privacy Preferences Policy Control (PPPC) profile to enrolled Macs, which grants the Tanium Client the macOS permissions that it requires. For more information about the PPPC profile, see Tanium Client PPPC profile. Enrolled devices are periodically checked for the presence of the Tanium Client and the Client is reinstalled if a user uninstalls it.

Note: This action changes the version only for new Tanium Client installations on newly enrolled devices. It does not initiate an upgrade for enrolled devices with an existing installation of an earlier version of the Tanium Client. For more information about upgrading the Tanium Client on enrolled devices, see Upgrading the Tanium Client.

Select a Tanium Client deployment template

Select the deployment template that Device Management uses to install the Tanium Client on enrolled Mac devices. The list of templates comes from Tanium Client Management.

  1. From the Main menu, go to Shared Services > Device Management. Click Settings cog and then click the Tanium Client tab.
  2. From the Tanium Client Template list, select the deployment template to use when installing the Tanium Client on enrolled Mac devices.
  3. Click Save.

Device Management submits a signing request for the Tanium Client package from the selected template. The signing process can take several days. When the signed installer is ready, the Tanium Client Installer Status on the Overview page changes to Available.

Sign and package the Tanium Client installer for Tanium Cloud for U.S. Government environments

In Tanium Cloud for U.S. Government environments, download the installer files from Tanium Client Management, sign the resulting package with your own Developer ID Installer certificate, and add the signed package as an enterprise application in Device Management.

Important: Use this procedure only for Tanium Cloud for U.S. Government environments, where the deployment boundary prevents Device Management from signing the Tanium Client installer for you.
Note: The automatic Tanium Client Installer Status workflow described in the Overview does not apply on Tanium Cloud for U.S. Government environments. The status on the Device Management Overview page does not change to Available.
  1. In Tanium Client Management, go to Overview > Download Installers and download the macOS package (mac-client-bundle.zip).

    The bundle contains an installation shell script, the Tanium Client installer packages, and the default tanium-init.dat file.

  2. On a Mac, package the contents of the bundle as a signed macOS distribution PKG file.
    1. Extract the contents of mac-client-bundle.zip to a working directory. In the following steps, bundle refers to the extracted directory, and version refers to the Tanium Client version in the installer package file names.
    2. (Optional) To use the settings from a Client deployment template, replace bundle/tanium-init.dat with the tanium-init.dat file for that template. In Tanium Client Management, go to Client Deployment Templates, select the template, and click Download tanium-init.dat. Make sure that the template uses the same Tanium Client version as the default bundle.
    3. Create a scripts directory that contains the files that the postinstall script uses. The installation shell script must be named postinstall and must be executable:
      CODE
      mkdir scripts
      cp bundle/install.sh scripts/postinstall
      chmod +x scripts/postinstall
      cp bundle/TaniumClient-<version>-universal.pkg scripts/
      cp bundle/TaniumClient-<version>-x64.pkg scripts/
      cp bundle/tanium-init.dat scripts/
    4. Use pkgbuild to create a component package that has no payload and runs the installation script as a postinstall script. The --version value must match the Tanium Client installer version:
      CODE
      pkgbuild \
        --nopayload \
        --scripts scripts \
        --identifier com.tanium.client.installer \
        --version <version> \
        TaniumClient-component.pkg
    5. Use productbuild to wrap the component package as a distribution package, which is the format required by Device Management:
      CODE
      productbuild --package TaniumClient-component.pkg TaniumClient-distribution.pkg
    6. Use productsign to sign the distribution package with your Developer ID Installer certificate:
      CODE
      productsign --sign "Developer ID Installer: Your Name (TEAMID)" TaniumClient-distribution.pkg TaniumClient-signed.pkg
    7. Verify the signature:
      CODE
      pkgutil --check-signature TaniumClient-signed.pkg
    8. (Optional) Verify that the package contains the postinstall script and companion files. Save the following script as verify-bundle.sh, make it executable with chmod +x verify-bundle.sh, and run ./verify-bundle.sh TaniumClient-signed.pkg. Replace version in the file names with your Tanium Client version.
      JSON
      #!/usr/bin/env bash
      set -u
      
      PKG="${1}"
      
      if [[ ! -f "$PKG" ]]; then
        echo "FAIL: $PKG not found" >&2
        exit 1
      fi
      
      D=$(mktemp -d)
      trap 'rm -rf "$D"' EXIT
      
      pkgutil --expand "$PKG" "$D/x" || { echo "FAIL: pkgutil --expand"; exit 1; }
      
      PI=$(find "$D/x" -name PackageInfo -type f | head -1)
      if [[ -z "$PI" ]]; then
        echo "FAIL: no PackageInfo found in expansion"
        exit 1
      fi
      SD="$(dirname "$PI")/Scripts"
      
      echo "== PackageInfo ($PI) =="
      cat "$PI"
      echo
      
      echo "== <scripts> element present? =="
      if grep -q '<scripts>' "$PI" && grep -q '<postinstall' "$PI"; then
        echo "PASS: <scripts> + <postinstall> found"
      else
        echo "FAIL: scripts tag missing"
      fi
      echo
      
      echo "== Scripts dir ($SD) =="
      if [[ -d "$SD" ]]; then
        ls -la "$SD"
      else
        echo "FAIL: $SD does not exist"
      fi
      echo
      
      echo "== postinstall executable? =="
      if [[ -x "$SD/postinstall" ]]; then
        echo "PASS: executable"
      else
        echo "FAIL: not executable"
      fi
      echo
      
      echo "== Expected companion files present? =="
      for f in postinstall \
        TaniumClient-<version>-universal.pkg \
        TaniumClient-<version>-x64.pkg \
        tanium-init.dat; do
        if [[ -f "$SD/$f" ]]; then
          echo "PASS: $f"
        else
          echo "FAIL: $f missing"
        fi
      done
    9. Notarize the signed package with the Apple notary service and staple the notarization ticket to the package. Apple requires notarization for software distributed outside the Mac App Store.

      For more information, see Apple Developer documentation: Customizing the notarization workflow.

      CODE
      xcrun notarytool submit TaniumClient-signed.pkg --apple-id "you@example.com" --team-id TEAMID --password APP_SPECIFIC_PASSWORD --wait
      xcrun stapler staple TaniumClient-signed.pkg
  3. Add the signed PKG file to Device Management as an enterprise application.

    For more information, see Add an enterprise application.

  4. Assign the application to enrolled devices by adding the application to a collection that targets those devices.

    For more information, see (Apple) Managing collections.

After the collection applies, the Tanium Client installs on enrolled macOS devices that match the collection target. To upgrade the Tanium Client later, use Tanium Client Management as described in Upgrading the Tanium Client.

Upgrading the Tanium Client

The Tanium Client Installer in Device Management only handles initial installations. Use Tanium Client Management to upgrade the Tanium Client on enrolled devices. For more information, see Upgrading Tanium Clients.