Linux Hosts

Requirements

Agent for Linux OS

[Download Here] - x86

[Download Here] - ARM64

Alternative:

(x86 Architecture)

wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent 
chmod +x TutelaLinuxAgent

(ARM64 Architecture)

wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent_aarch64
chmod +x TutelaLinuxAgent_aarch64

❗Supported Distributions: Ubuntu, RedHat, CentOS, Rocky Linux, Alma Linux, Amazon Linux

Important!

Before moving forward, make sure to retrieve your API key.

  • Login to Tutela

  • Go to Settings > Agent API Keys and Settings

  • Click on Add API Key

Linux Platform

The agent does not need to be installed but simply run.

Initiate a Host Scan

Running the agent is very straightforward. Simply run the below command from a root terminal:

./TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY

⚠️ Trial Users

./TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"

Create a CronJob

To create a CronJob, simply navigate to use crontab -e and add the below line to the crontab file:

The below CronJob will run every Sunday at 5:00AM. Please make sure to replace the path of the Tutela agent with the real file path.

0 5 * * 0 /absolute/path/to/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY >> /var/log/tutela_agent.log 2>&1

⚠️Trial Users

0 5 * * 0 /absolute/path/to/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io" >> /var/log/tutela_agent.log 2>&1

Linux Provisioning Script

The below provisioning script downloads and schedules the scan since the Tutela agent does not require it to be installed.

Please make sure to adjust the HTTP_PROXY and HTTPS_PROXY depending on your configuration. The below script will run monthly.

#!/bin/bash

export HTTP_PROXY=http://change-or-remove.proxy.com
export HTTPS_PROXY=http://change-or-remove.proxy.com

cd /usr/local/bin
wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent
chmod +x TutelaLinuxAgent

echo '''#!/bin/bash 
/usr/local/bin/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY''' > /etc/cron.monthly/tutela.sh
chmod +x /etc/cron.monthly/tutela.sh

⚠️ Trial Users

#!/bin/bash

export HTTP_PROXY=http://change-or-remove.proxy.com
export HTTPS_PROXY=http://change-or-remove.proxy.com

cd /usr/local/bin
wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent
chmod +x TutelaLinuxAgent

echo '''#!/bin/bash 
/usr/local/bin/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"''' > /etc/cron.monthly/tutela.sh
chmod +x /etc/cron.monthly/tutela.sh


tags:

  • Linux provisioning script

  • Tutela agent