2022-04-26 19:36:30 -05:00
2022-04-26 17:49:17 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00
2022-03-20 16:24:40 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00
2022-04-26 18:10:18 -05:00
2022-04-26 17:49:17 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00
2022-02-25 00:09:41 -06:00
2022-01-28 18:49:20 -06:00
2021-09-23 13:55:29 -05:00
2022-02-24 23:45:44 -06:00
2021-09-23 13:55:29 -05:00
2022-04-26 18:13:02 -05:00
2022-04-26 19:36:30 -05:00
2021-09-23 13:55:29 -05:00
2022-04-26 19:36:30 -05:00
2021-09-23 13:55:29 -05:00
2022-04-26 19:36:30 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00
2021-09-23 13:55:29 -05:00

ag_gen: Attack Graph Generation System

Installation

Dependencies

Run the deps.sh command to install necessary dependencies. This script supports debian based systems and Mac OSX (with homebrew)

PostgreSQL

Create a user

Use the createuser and createdb scripts to create the necessary account and database in PostgreSQL.

createuser -d -l -P ag_gen
createdb -O ag_gen ag_gen

Populate the database

Use the db_manage.sh utility to populate the database (this will overwrite anything in the ag_gen database). An example use of this is:

./db_manage.sh -d ag_gen

Add PSQL users and alter permissions

Log in to the Postgres user sudo su postgres Then connect to the PSQL terminal psql Now create the user and adjust permissions CREATE USER ag_gen;

ALTER USER ag_gen WITH SUPERUSER;
ALTER USER ag_gen WITH login;
ALTER USER ag_gen WITH ENCRYPTED PASSWORD '8PZQc79NUZ3FjqSB';

Repeat, using root and your local user name in place of the ag gen user. Note, if you change the password, be sure to change the passwords in the config.ini files.

Building

This application uses CMake to build.

mkdir build
cd build

For debug builds:

cmake -DCMAKE_BUILD_TYPE=Debug ../

For release builds:

cmake -DCMAKE_BUILD_TYPE=Release ../

Build the application:

make ag_gen

Configuration

RAGE uses an ini-style configuration, located in config.ini.

  • name: name of the database
  • host: IP or hostname of the database server
  • port: port number of the database server
  • username: database user name
  • password (optional): database password

Running

Execute example from the examples directory.

./ag_gen -n ../examples/thesis_example.nm -x ../examples/thesis_example.xp

Contributing

Editorconfig

When contributing code, please install the "editorconfig" plugin for your text editor.

  • Adds extra newline to end of file if not already there.
  • Removes whitespace at end of lines
  • Automatically sets indentation to tabs set to 4 spaces =======

ag_gen

C++ Attack Graph Generation

64be5b8cb4

Description
C++ Attack Graph Generation
Readme 388 MiB
ag_gen Latest
2022-04-27 17:47:53 -05:00
Languages
C++ 52.8%
C 27.5%
Cuda 9.9%
Makefile 4.5%
CMake 2.5%
Other 2.8%