MicroAI Security on Linux#

  1. To start running MicroAI Security on your Windows device you must first register a device profile for Security. Login to your Launchpad account and click on create profile.

  2. Next you’re going to create a unique profile name, we recommend using something easily recognizable. Then Under “Use Case” pick “Security and Monitoring”, then click “Next”.

  3. Next is the “Health Groups”. for security the channels we monitor are kept hidden to provide even more security to your device. There are two Health Groups under Security and both have the same variables and sliders are the Health Groups for AtomML+, this is because they both run on the same technology. We will explain each Slider in detail.

Health Group Parameters Explanation#

  • Hysteresis 1 and 2: Control the speed at which a health score increases. The larger the value, the slower the increase. All values over 1 cause the health score to increase slower than it decreases.

    ../../_images/115.png
  • Aging: Controls the rate of change in the healthscore (0,1). (Higher it is, less rate of change)

    ../../_images/214.png
  • Memory: Coefficient to control how much previous data is remembered (0,1) the closer to one, the more data is considered

    ../../_images/314.png
  • Noise: Expected false positive rate (Higher it is, the more abnormal data is ignored)

    ../../_images/44.png
  • Intensity: Coefficient to control the weight of abnormal channels that are far from the normal bounds. Should not be set higher than the number of total channels.

    ../../_images/53.png
  • DTNM: Days to Maintenance is a scaled version of health score to the nominal maintenance interval and then subtract out the amount of time that has passed since maintenance has occurred.

    Note

    What is Nominal Maintenance Interval (NMI)? Nominal Maintenance Interval (NMI): Provided by the user. This value is the length of the maintenance cycle of the monitored equipment.

    ../../_images/63.png

Below DTNM, you will see three more sliders. RL is the number of days of operation expected on the device before it is permanently out of commission, similar to NMI but instead of maintenance, it is for the end of life. PdM is the algorithm for predictive maintenance. K is the noise value for remaining life algorithm.

AI General Parameters Explanation#

  • Training Secs: Controls the amount of seconds that AI trains for. The default is 300 seconds but can be modified per user discretion.

    ../../_images/73.png
  • Split Counter: Referred to as the period of the device’s behavior.

    Important

    Training secs should be 10 times longer than split counter for ideal training time.

    ../../_images/83.png
  • AI Feed Rate: The rate at which data is accepted by the AI. We recommend 1000 milliseconds but you can modify it to your needs.

    ../../_images/93.png
  • Small Threshold: Determines the minimum distance between the upper and lower bounds that they can converge to.

    ../../_images/103.png
  • Initial Period Secs: How long AtomML delays sending data to the AI to begin training or executing.

    ../../_images/116.png
  • Health Score Delay: The delay in loops between the AI starting and the health score calculation.

    ../../_images/123.png
  • Bounds Limit: A flag for the AI on whether or not it should calculate hard bounds for each channel that the upper and lower bounds can never cross.

    ../../_images/133.png
  • Build Model: A flag to tell the AI to build the model or not. By default, if there is no model available, the AI will automatically build one. This button is used if you want to replace the previous AI model with a new one with parameters tuned to the user’s discretion.

    ../../_images/142.png

AI Nominal only has two parameters, “Training Secs” and “Build Model”. These parameters follow the same requirements needed for AI General.

IMPORTANT! AI Nominal Training Secs must be equal to Training Secs in AI General.

Y Code Parameters Explanation#

  • Max Rows: How you set the amount of data. Essentially how many messages to keep stored and to send when the trigger occurs.

    ../../_images/152.png
  • Max Secs: How you set the amount of time. Every loop we check the age of one row (or message if you prefer) and ensure that it is young enough to warrant keeping.

    ../../_images/162.png
  • Post Event: The amount of time to operate in continuous mode after the trigger event. This is to give the user the context both before and after the trigger event.

    ../../_images/172.png
  • Synchronus Frequency (ms): The time period at which we generate a sync packet. Should not be run faster than the AIEngine Feed Rate.

    ../../_images/182.png
  • Max Asynchronus Frequency (ms): The time period at which we generate an async packet. Should not really be run slower than the AIEngine Feed Rate, however, that is not a hard rule that we enforce.

    ../../_images/192.png
  • Launchpad Exporter: Enabled to send data to Launchpad, we recommend keeping this on.

    ../../_images/202.png
  • External Exporter: Only applied to specific use cases, please disregard unless you fall under that category.

    ../../_images/215.png
  • AIStudio Exporter: An additional feature that will be added later to Launchpad and will be explained in another section.

  • Email Notification Exporter: If you would like email notifications for your device, you can set up the “Email Notification Exporter” accordingly.

    ../../_images/222.png
  1. Now we will begin executing security for Linux. Once you enter you payment information you will see several dropdowns in the last tab. For Linux, copy the commands below and paste it into your terminal. Make sure you use the profile API key found on the first tab of your profile.

Linux AMD64#

wget https://maicdn-staging.micro.ai/security/linux/microai_security_v1_0_5.tar.gz
tar -xzf microai_security_v1_0_5.tar.gz
cd microai_security_v1_0_5/bin
chmod +x main
sudo ./main -MAI_API_KEY=Your Profile API Key

Linux Arm#

wget https://maicdn-staging.micro.ai/security/linux_arm/microai_security_v1_0_5.tar.gz
tar -xzf microai_security_v1_0_5.tar.gz
cd microai_security_v1_0_5/bin
chmod +x main
sudo ./main -MAI_API_KEY=Your Profile API Key
  1. These commands will automatically register your device on Launchpad.

  2. You can go to the “Apps” tab in the sidebar on Launchpad and click on “Security and Monitoring”, this will open up a dashboard which will show all active devices. Click on your device and it will open the Dashboard where monitoring data will be sent.

  3. If you are versed in running ethical hacks you can begin testing MicroAI Security and see real-time reports of port scans, unusual packet data, and more.

MicroAI Security on Linux#