3.9 KiB
title | date | draft | pre | weight | tags | |||
---|---|---|---|---|---|---|---|---|
Linux | 2020-05-26T20:57:28+03:00 | false | <i class="fab fa-linux"></i> | 4 |
|
Supported operating systems
An AppImage is a distribution-agnostic, self-running package that contains an application and everything that it may need to run.
The Infection Monkey AppImage package should run on most modern Linux distros that have FUSE installed, but the ones that we've tested are:
- BlackArch 2020.12.01
- Kali 2021.2
- Parrot 4.11
- Rocky 8
- openSUSE Leap 15.3
- Ubuntu Bionic 18.04
- Ubuntu Focal 20.04
- Ubuntu Hirsute 21.04
On Windows, AppImage can be run in WSL 2.
Deployment
- Make the AppImage package executable:
chmod u+x InfectionMonkey-v1.13.0.AppImage
- Start Monkey Island by running the Infection Monkey AppImage package:
./InfectionMonkey-v1.13.0.AppImage
- Access the Monkey Island web UI by pointing your browser at
https://localhost:5000
.
{{% notice info %}} If you're prompted to delete your data directory and you're not sure what to do, see the [FAQ]({{< ref "/faq/#i-updated-to-a-new-version-of-the-infection-monkey-and-im-being-asked-to-delete-my-existing-data-directory-why"
}}) for more information. {{% /notice %}}
Configuring the server
You can configure the server by creating a server configuration file and providing a path to it via command line parameters:
./InfectionMonkey-v1.13.0.AppImage --server-config="/path/to/server_config.json"
Start Monkey Island with user-provided certificate
By default, Infection Monkey comes with a self-signed SSL certificate. In enterprise or other security-sensitive environments, it is recommended that the user provide Infection Monkey with a certificate that has been signed by a private certificate authority.
-
Terminate the Island process if it's already running.
-
(Optional but recommended) Move your
.crt
and.key
files to$HOME/.monkey_island
. -
Make sure that your
.crt
and.key
files are readable only by you.chmod 600 <PATH_TO_KEY_FILE> chmod 600 <PATH_TO_CRT_FILE>
-
Create a server configuration file and provide the path to the certificate. The server configuration file should look something like:
{ "ssl_certificate": { "ssl_certificate_file": "$HOME/.monkey_island/my_cert.crt", "ssl_certificate_key_file": "$HOME/.monkey_island/my_key.key" } }
-
Start Monkey Island by running the Infection Monkey AppImage package:
./InfectionMonkey-v1.13.0.AppImage --server-config="/path/to/server_config.json"
-
Access the Monkey Island web UI by pointing your browser at
https://localhost:5000
.
Change logging level
-
Terminate the Island process if it's already running.
-
Create a server configuration file. The server configuration file should look something like:
{ "log_level": "INFO" }
-
Start Monkey Island by running the Infection Monkey AppImage package:
./InfectionMonkey-v1.13.0.AppImage --server-config="/path/to/server_config.json"
-
Access the Monkey Island web UI by pointing your browser at
https://localhost:5000
.
Upgrading
Currently, there's no "upgrade-in-place" option when a new version is released. To get an updated version, download the updated AppImage package and follow the deployment instructions again.
If you'd like to keep your existing configuration, you can export it to a file using the Export config button and then import it to the new Monkey Island.