Logo

A powerful, easily deployable network traffic analysis tool suite for network security monitoring

Quick Start

Documentation

Components

Supported Protocols

Configuring

Arkime

Dashboards

Hedgehog Linux

Contribution Guide

Running Hedgehog Linux on Raspberry Pi

Hedgehog Linux can be run on some models of the Raspberry Pi, providing a low-cost network sensor suitable for capturing traffic in networks with a smaller traffic footprint.

Obtaining the Hedgehog Linux for Raspberry Pi Image

The official Hedgehog Linux for Raspberry Pi image archive can be downloaded from GitHub. It can also be built easily on an Internet-connected system with Vagrant:

The build should work with a variety of Vagrant providers:

To perform a clean build of the Hedgehog Linux Raspberry Pi image, navigate to your local Malcolm working copy and run:

$ ./hedgehog-raspi/build_via_vagrant.sh -f -z
…
Starting build machine...
Bringing machine 'vagrant-hedgehog-raspi' up with 'virtualbox' provider...
…

Building the image should take under 30 minutes on a native ARM64 system; however, if building on an amd64 platform, the process will involve cross-compiling for the ARM64 architecture and may take five or more hours depending on your system. When the build finishes, you will see the following message indicating success:

…
2024-01-21 05:11:44 INFO All went fine.
2024-01-21 05:11:44 DEBUG Ending, all OK
…

Writing the Image to Flash Media

The resulting .img.xz file can be written to a microSD card or other bootable media using the Raspberry Pi Imager or dd.

Using the Raspberry Pi Imager

On the first boot, the system loads the embedded container images before displaying the login prompt, which may take several minutes. This one-time setup is not repeated on subsequent boots.

Setting Passwords

The provided image allows local login, requiring physical access, with the sensor account using the default password Hedgehog_Linux. On first login, the user is required to change this password. Login as root is disabled by default. After the sensor password has been changed, a root password may be set using sudo passwd root if desired.

Hedgehog-rpi-4 login: sensor
Password:
You are required to change your password immediately (administrator enforced).
Changing password for sensor.
Current password: **************
New password: ****************
Retype new password: ****************
sensor@Hedgehog-rpi-4:~$ sudo passwd root
[sudo] password for sensor: ****************
New password: ****************
Retype new password: ****************
passwd: password updated successfully

Configuration

Once Hedgehog Linux has booted, configuration can proceed using Malcolm’s ./scripts/configure script.

Performance Considerations

Due to the Raspberry Pi’s hardware and resource constraints, there are a few things to take into consideration: