Skip to content

leelening/MulVAL-to-pddl

Repository files navigation

MULVALTOPDDL

This is a small tool I develop to convert a logic attack graph to PDDL files describing the attacking procedure.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

MulVAL

Python 3.x

PDDL

Visit http://editor.planning.domains/ to solve the problem. Once you have domain.pddl and problem.pddl

Installing

The following Python packages are required:

  1. pandas

You can run the following command to install the package.

pip install pandas

You can download the tool using the following command.

git clone https://github.com/leelening/MulVALTOPDDL.git

Running the example

We provide a running example in the package. You can find AttackGraph.dot, ARCS.CSV, and VERTICES.CSV in the package. These files are generated by the MulVAL.

You can create a domain file domain.pddl by running the following command.

python create_domain.py ./example/VERTICES.CSV ./example/ARCS.CSV

Then you can create a problem file problem.pddl by running the following command.

python create_prob.py ./example/VERTICES.CSV

Once you get these two files: domain.pddl and problem.pddl. You can go to PDDL Editor to solve your planning problem. This online editor has many good features.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages