Skip to content

MicroAIInc/MicroAI-Security-and-Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Static Badge


MicroAI Logo

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>-rc1.tar.gz
tar -xzf MicroAI-Security-linux-amd64-<latest-version>-rc1.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>-rc1.tar.gz
tar -xzf MicroAI-Security-linux-arm-<latest-version>-rc1.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>-rc1.tar.gz
tar -xzf MicroAI-Security-linux-arm64-<latest-version>-rc1.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>-rc1.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 --privileged and --net=host grants 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.

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 --privileged --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:

  1. Check if the process is running:
    ps aux | grep main
  2. Verify logs for errors:
    cat <installation-path>/data/logs/microai-main.log
  3. 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:
    1. Verify your License key
    2. Ensure you have an active internet connection
    3. Check logs:
      <installation-path>/data/logs/microai-main.log

For further assistance, contact [email protected].


License

See Software Licensing Agreement for more details.


Contact

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages