The Central Agent serves as the main JADE container and hosts the database.
Step 1: System Update and Java Installation
First, we ensure the system packages are up to date and install the default Java Development Kit (JDK), which is required to run the JADE platform.
# Update package list
sudo apt update
# Install Java JDK
sudo apt install default-jdk -y
# Verify installation
java -version
javac -version
Step 2: JADE Framework and Dependencies Installation
We create a dedicated directory for the project and download the JADE libraries along with the necessary dependencies for logging (SLF4J) and database connectivity (SQLite).
# Create project directory
mkdir ~/asc
cd ~/asc
# 1. Download JADE (Version 4.6.0)
wget --no-check-certificate [https://jade.tilab.com/dl.php?file=JADE-all-4.6.0.zip](https://jade.tilab.com/dl.php?file=JADE-all-4.6.0.zip) -O jade.zip
# 2. Install unzip tool
sudo apt install unzip -y
# 3. Extract JADE
unzip jade.zip
unzip JADE-bin-4.6.0.zip
rm *.zip
# 4. Organize libraries (Create a libs folder)
mkdir libs
cp jade/lib/jade.jar libs/
# 5. Download Additional Dependencies
# SLF4J (Logging API)
wget [https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar) -P libs/
# SQLite JDBC (Database Driver)
wget [https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.44.1.0/sqlite-jdbc-3.44.1.0.jar](https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.44.1.0/sqlite-jdbc-3.44.1.0.jar) -P libs/
Step 3: Web Dashboard Environment (Python/Flask)
The central server also hosts the web interface. We set up a Python virtual environment to isolate the dependencies.
# Install Python3, pip, and venv
sudo apt install python3 python3-pip python3-venv sqlite3 -y
# Create virtual environment
python3 -m venv venv
# Activate environment
source venv/bin/activate
# Install Flask
pip install flask
Step 4: Enabling GUI Access (X11 Forwarding)
Since the server is headless (CLI only), we use X11 forwarding over SSH to display the JADE Remote Management Agent (RMA) GUI on the host machine.
# Install X11 auth utility on the VM
sudo apt install xauth -y
# Connect from Host using the -X flag
ssh -X -p 2222 sibo@127.0.0.1
The client nodes require the Java runtime and specific tools to simulate network traffic and system load.
Step 1: Environment Setup
Repeat the Java and JADE installation steps from the ASC (excluding the Python/Flask setup), or clone the VM after the initial setup.
Step 2: Installation of Simulation Tools
To test the anomaly detection capabilities, we install tools to generate CPU load (stress), network traffic (iperf3), and a compiler (gcc) for running custom resource-intensive scripts.
# Install simulation tools
sudo apt install stress iperf3 gcc -y
# Verify tools
stress --version
iperf3 --version
gcc --version
Step 3: Compiling Custom Test Scripts
On one of the nodes (e.g., AL-1), we compile a custom C script to simulate a specific “rogue process” scenario for the Scout Agent to detect.
# Compile a custom resource consumer
gcc custom_script.c -o custom_script
chmod +x custom_script