AiCEF AI CyberSecurity Exercise Framework

AICEF Cyber Exercise
AICEF Cyber Exercise

AiCEF (AI Cybersecurity Exercise Generation Framework) is a suite implementing the accompanying framework to harness the intelligence available from online resources, threat groups’ activities, and arsenal (e.g., MITRE), to create relevant and timely cybersecurity exercise content. This way, we abstract the events from the reports in a machine-readable form. The produced graphs can be infused with additional intelligence, e.g., the threat actor profile from MITRE, also mapped in our ontology.

While this may fill gaps missing from a report, one can also manipulate the graph to create custom and unique models. Finally, we exploit transformer-based language models like GPT to convert the graph into text that can serve as the scenario of a cybersecurity exercise. We have tested and validated AiCEF with a group of experts in cybersecurity exercises, and the results clearly show that AiCEF significantly augments the capabilities in creating timely and relevant cybersecurity exercises in terms of quality and time.

We used Python to create a machine learning powered Exercise Generation Framework. We developed a set of tools to perform a set of individual tasks which would help an exercise planner (EP) to create a timely. We targeted Cybersecurity Exercise Scenario regardless of her experience.

Problems an Exercise Planner faces:

  • Constant table-top research to have fresh content
  • Realistic CSE scenario creation can be difficult and time-consuming
  • Meeting objectives but also keeping it appealing for the target audience
  • Is the relevance and timeliness aspects considered?
  • Can all the above be automated?

Our Main Objective: Build an AI powered tool that can generate relevant and up-to-date Cyber Exercise Content in a few steps with little technical expertise from the user.

Release Roadmap

The updated project, AiCEF v.2.0 is planned to be publicly released by the end of 2023, pending heavy code review and functionality updates. Submodules with reduced functinality will start being release by early June 2023.


The most convenient way to install AiCEF is by using the docker-compose command. For production deployment, we advise you deploy MySQL manually in a dedicated environment and then to start the other components using Docker.

First, make sure you have docker-compose installed in your environment:


$ sudo apt-get install docker-compose

Then, clone the repository:

$ git clone /<choose-a-path>/AiCEF-docker
$ cd /<choose-a-path>/AiCEF-docker

Configure the environment settings

Import the MySQL file in your

$ mysql -u <your_username> –-password=<your_password> AiCEF_db < AiCEF_db.sql

Before running the docker-compose command, settings must be configured. Copy the sample settings file and change it accordingly to your needs.

$ cp .env.sample .env


Note: Make sure you have an OpenAI API key available. Load the environment setttings (including your MySQL connection details):

set -a ; source .env

Finally, run docker-compose in detached (-d) mode:

$ sudo docker-compose up -d


A common usage flow consists of generating a Trend Report to analyze patterns over time, parsing relevant articles and converting them into Incident Breadcrumbs using MLTP module and storing them in a knowledge database called KDb. Incidents are then generated using IncGen component and can be enhanced using the Graph Enhancer module to simulate known APT activity.

The incidents come with injects that can be edited on the fly. The CSE scenario is then created using CEGen, which defines various attributes like CSE name, number of Events, and Incidents. MLCESO is a crucial step in the methodology where dedicated ML models are trained to extract information from the collected articles with over 80% accuracy.

The Incident Generation & Enhancer (IncGen) workflow can be automated, generating a variety of incidents based on filtering parameters and the existing database. The knowledge database (KDB) consists of almost 3000 articles classified into six categories that can be augmented using APT Enhancer by using the activity of known APT groups from MITRE or manually.

Find below some sample usage screenshots:

AICEF Screen1
AICEF Screen1


AICEF Screen2
AICEF Screen2


  1. An AI-powered Cyber Exercise Generation Framework
  2. Developed in Python & EEL
  3. Open source library Stixview
  4. Stores data in MYSQL
  5. API to Text Synthesis Models (ex. GPT-3.5)
  6. Can create incidents based on TTPs of 125 known APT actors
  7. Models Cyber Exercise Content in machine readable STIX2.1 [2] (.json) and human readable format (.pdf)


Contributions are welcome! If you’d like to contribute to AiCEF v2.0, please follow these steps:

  1. Fork this repository
  2. Create a new branch (git checkout -b feature/your-branch-name)
  3. Make your changes and commit them (git commit -m ‘Add some feature’)
  4. Push to the branch (git push origin feature/your-branch-name)
  5. Open a new pull request

Download AICEF

Join Our Club

Enter your Email address to receive notifications | Join over Million Followers

Previous Article
Athene OS

Athena Unlocking The Next Level of Pentesting OS

Next Article
Unmasking MacOS

Unmasking The Rising Malware Threat in MacOS - Report

Related Posts