← Lab /Software

Automatic generation creates attack scripts from informal scenario descriptions

The authors claim their MDA-based approach can automatically generate attack scripts and contexts from informal descriptions

Software arXiv 12 Mar 2026 Method Maturity unclear

Published as “Automatic Attack Script Generation: a MDA Approach”

Why it matters

If mature, the approach could substantially reduce manual effort and errors when preparing cyber-range training exercises.

Summary

The authors built a model-driven pipeline that automatically turns formal attack scenario descriptions into executable attack scripts and corresponding infrastructure definitions, and demonstrated it on a sample "SnifAttack" scenario. They report that the formalized SnifAttack yielded 38 resources, a knowledge graph of 182 nodes and 1482 relationships, and that the generated script and context are concrete artifacts that can be run on their OpenTOSCA/Ansible platform. Evidence is limited to this single illustrative example; no broader empirical evaluation or performance numbers are provided.

What they found 2

  1. The SnifAttack example produced a knowledge graph with 38 resources, 182 nodes and 1482 relationships.

    “In case of the formalized SnifAttack, 38 resources were derived, making the global knowledge graph reach 182 nodes and 1482 relationships.”

  2. The generated script and context are concrete artifacts that can be directly executed.

    “The generated script and context are considered concrete because they make possible to apprehend the attack directly from their implementation artifacts.”

Caveats 4

  • Although the approach claims multi-platform reuse, the implementation and demonstration were limited to a single virtual laboratory using OpenTOSCA and Ansible.
  • Lacking a cyber-range type of platform, we opted for a virtual laboratory on a server where attacks can be implemented and deployed.
  • This enrichment consists in adding the concepts AttackTransitions and HostSystem in the service template. ... This constitutes a limitation for expressing attacks that may require vulnerability exploit and/or misuse of services.
  • The implementation of an evaluation process is in progress.

What’s new here 4

  • Applies Model-Driven Architecture (MDA) to automate both attack script and context generation from informal scenario descriptions.
  • Introduces a unified attack model expressed as a Computation Independent Model and uses TOSCA to define Platform Independent and Specific Models.
  • Implements rule-based transformations that produce TOSCA service templates and Ansible playbooks automatically.
  • Demonstrates end-to-end generation and execution of a multi-step attack (SnifAttack) on a virtual lab.