MicroAI Security & Monitoring
MicroAI Security & Monitoring is an Edge-native AI platform that embeds and trains advanced security algorithms directly on a device, machine, or process.
This guide will help you install, configure, and validate the MicroAI Security & Monitoring agent, ensuring it operates correctly and securely. No technical expertise is required—just follow the steps carefully, and you'll have the agent up and running in no time!
Table of Contents
Installation
Follow the steps below to install MicroAI Security on your system. The installation process varies depending on your operating system and architecture. Before proceeding, ensure you have your Licensing key, which is essential for activating the agent.
Determine your Operating system and architecture here.
Step 1: Download the Package
Download the latest supported release from the packages page and transfer it onto the system intended for installation. Alternatively, use the commands directly from step 2.
Step 2: Extract and Set Up the Agent
Copy the following section for your operating system and architecture and update the command to match it with your details.
- Replace
<latest-version>with the latest release version. The latest version can be found on the packages page or on the top of this page.
Linux (x64)
wget https://maicdn.micro.ai/security/linux/MicroAI-Security-linux-amd64-<latest-version>.tar.gz
tar -xzf MicroAI-Security-linux-amd64-<latest-version>.tar.gz
cd MicroAI-Security-linux-amd64-<latest-version>/bin
chmod +x main
Linux (ARM x86)
wget https://maicdn.micro.ai/security/linux_arm/MicroAI-Security-linux-arm-<latest-version>.tar.gz
tar -xzf MicroAI-Security-linux-arm-<latest-version>.tar.gz
cd MicroAI-Security-linux-arm-<latest-version>/bin
chmod +x main
Linux (ARM x64)
wget https://maicdn.micro.ai/security/linux_arm/MicroAI-Security-linux-arm64-<latest-version>.tar.gz
tar -xzf MicroAI-Security-linux-arm64-<latest-version>.tar.gz
cd MicroAI-Security-linux-arm64-<latest-version>/bin
chmod +x main
Windows (x64)
Invoke-WebRequest https://maicdn.micro.ai/security/windows/MicroAI-Security-windows-amd64-<latest-version>.exe -OutFile MicroAI-Security-windows-amd64-<latest-version>.exe
Step 3: Activate your License
Activate your license and retrieve your license key on MicroAI Launchpad. See activation walkthrough for guided steps.
Step 4: Install Java 17 (If UI Console is Needed)
If you're enabling the Local UI Console, install Java 17 for your linux environments:
wget https://download.oracle.com/java/17/archive/jdk-17.0.9_linux-x64_bin.tar.gz
mkdir -p /usr/lib/jdk
tar xvzf jdk-17.0.9_linux-x64_bin.tar.gz -C /usr/lib/jdk
Windows installer includes this step in the instllation process.
Step 5: Run the Agent
Replace <license-key> with a valid license key retrieved from step 3. See configurations to find the default configurations the agent is set up with.
Run Without Console
sudo ./main -MAI_API_KEY=<license-key>
Run with Console on Default Port (8989)
sudo ./main -MAI_API_KEY=<license-key> -console
Run with Console on a Custom Port
sudo ./main -MAI_API_KEY=<license-key> -console -console.port=<port>
Run with Java Path (for Console)
sudo ./main -MAI_API_KEY=<license-key> -console -javapath=/usr/lib/jdk/jdk-17.0.9/bin/java
Windows (x64)
Double-click the .exe file and follow the installation steps. See Launching MicroAI Security & Monitoring for a detailed walkthrough.
Docker
Docker provides an efficient way to run MicroAI in a containerized environment. If you prefer deploying the agent as a Docker container, use the following commands, selecting the appropriate version based on your system architecture.
Key Considerations
- Ensure Docker is installed and running on your system before executing the commands.
- Replace
<license-key>with the actual MicroAI License key for authentication. - Using
--privilegedand--net=hostgrants the container full system access, which is required for security monitoring but should be used cautiously. - The image tag
<latest-version>corresponds to the MicroAI agent version; update it as needed for newer versions. - If you need to update the configuration file, you can mount the config directory using the
-voption and add this to the commands below:-v <absolute_path_to_config_directory_on_host_machine>:/home/security/config - Similarly, to access logs from the host machine, mount the log directory as follows:
-v <absolute_path_to_log_directory_on_host_machine>:/home/security/data/logs
For Linux x64 Systems
docker run -v /etc/ssl:/etc/ssl -d --privileged --net=host --pid=host --ipc=host --name microai_security_<latest-version> -e MAI_API_KEY=<license-key> -ti plasmacomputing/microai_security:linux-amd64-<latest-version>-rc1
For Linux ARM (x86) Systems
docker run -v /etc/ssl:/etc/ssl -d --priv
ileged --net=host --pid=host --ipc=host --name microai_security_<latest-version> -e MAI_API_KEY=<license-key> -ti plasmacomputing/microai_security:linux-arm-<latest-version>-rc1
For Linux ARM (x64) Systems
docker run -v /etc/ssl:/etc/ssl -d --privileged --net=host --pid=host --ipc=host --name microai_security_<latest-version> -e MAI_API_KEY=<license-key> -ti plasmacomputing/microai_security:linux-arm64-<latest-version>-rc1
See Launching MicroAI Security & Monitoring for a detailed walkthrough.
Validation
After installation, use the following steps to ensure the agent is running correctly:
-
Check if the process is running:
ps aux | grep main -
Verify logs for errors:
cat <installation-path>/data/logs/microai-main.log -
Confirm API key authentication and start of agent:
cat <installation-path>/data/logs/microai-main.log [*] MicroAI Security and Monitoring v2.2.17 - Release linux amd64 [-] MicroAI Starting [-] Training Mode set [-] Profile API: *** [-] Device activated sucessfully [-] starting subprocess 0 [-] starting subprocess 1 [-] starting subprocess 2 [-] starting subprocess 3 [-] starting subprocess 4 [-] Training started [-] Training complete! [-] Everything started
If all checks pass, the agent is successfully installed and operational!
Configurations
To customize your agent settings, refer to the Configurations Guide.
See configure url and port monitoring page to get a walkthrough on how to use the local UI and monitor these options. Requires Local UI to be running
Review our extend agents capabilities page to apply custom remediation options and take custom actions on the agents alerts and notifications.
If you wish to view your profile, devices or update your plan, follow this guide.
Features
Take a peek at our feature page for current features available with our agent.
Troubleshooting
If you encounter issues, try these solutions:
Issue: "Permission Denied" on Running ./main
- Solution:
chmod +x main sudo ./main -MAI_API_KEY=<license-key>
Issue: UI Console Not Launching
- Solution:
java -version # Ensure Java 17 is installed sudo ./main -MAI_API_KEY=<license-key> -console
Issue: API Key Authentication Fails
- Solution:
- Verify your License key
- Ensure you have an active internet connection
- Check logs:
<installation-path>/data/logs/microai-main.log
For further assistance, contact [email protected].
License
See Software Licensing Agreement for more details.
Contact
- Company: MicroAI™
- Website: www.security.micro.ai
- Email: [email protected]