asc.xhack.lab_mpbank role – Deploy the M&P Online Banking vulnerable lab application

Note

This role is part of the asc.xhack collection (version 2.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/xhack $HOME/.ansible/collections/ansible_collections/asc/xhack.

To use it in a playbook, specify: asc.xhack.lab_mpbank.

Entry point main – Deploy the M&P Online Banking vulnerable lab application

New in asc.xhack 1.0.0

Synopsis

  • Deploys the deliberately vulnerable M&P Online Banking web application (end-of-life PHP 5.6 / MySQL 5.7) as containers, used as a target within the eXtreme Hacking lab.

Parameters

Parameter

Comments

lab_mpbank_build_dir

path

added in asc.xhack 2.0.0

Directory on the VM where the build context and compose project are rendered.

Default: "/opt/mpbank"

lab_mpbank_config

dictionary

‘lab_mpbank’ role configuration

enabled

boolean

Whether to enable the lab_mpbank role

Choices:

  • false ← (default)

  • true

vm_name

string

Name of the VM to deploy

Default: "vmmpbank01"

vm_size

string

Size of the VM to deploy (Azure VM size)

Default: "Standard_B2as_v2"

lab_mpbank_db_image

string

added in asc.xhack 2.0.0

MySQL 5.7 image for the application database, pinned by digest.

Default: "mysql:5.7@sha256:4bc6bc963e6d8443453676cae56536f4b8156d78bae03c0145cbe47c2aad73bb"

lab_mpbank_web_image

string

added in asc.xhack 2.0.0

Container image for the banking application. Deliberately end-of-life (PHP 5.6) for the lab, pinned by digest.

Default: "php:5.6-apache@sha256:0a40fd273961b99d8afe69a61a68c73c04bc0caa9de384d3b2dd9e7986eec86d"

Authors

  • Ignace De Cock