Giter Site home page Giter Site logo

tagapt_generated_samples's Introduction

TAGAPT: Towards Automatic Generation of Advanced Persistent Threat Samples with Provenance-level Granularity

1. AAG Generator

  • Model training. The number of training rounds is 3. The models generated in each round are saved and stored in ./save_pretrain/exp_ASG_CTI_epoch3_1gpu/.
python -u -W ignore train_CTI.py --path ./data_preprocessed/CTI --train --num_workers 4 --batch_size 4 --lr 0.001 --epochs 3 --shuffle --deq_coeff 0.9 --save --name CTI_epoch3_1gpu --num_flow_layer 12 --nhid 128 --nout 128 --gcn_layer 3 --is_bn --divide_loss --st_type exp --seed 2019 --all_save_prefix ./
  • AAG generation, the results are saved at ./CTIs/100asg
python -u -W ignore train_CTI.py --path ./data_preprocessed/CTI --gen --gen_out_path ./CTIs/100asg.txt --batch_size 32 --lr 0.001 --epochs 100 --shuffle --deq_coeff 0.9 --save --name l12_h128_o128_exp_sbatch --num_flow_layer 12 --nhid 128 --nout 128 --gcn_layer 3 --is_bn --divide_loss --st_type exp --init_checkpoint ./save_pretrain/exp_ASG_CTI_epoch3_1gpu/checkpoint2 --gen_num 100 --min_atoms 10 --save --seed 66666666 --temperature 0.7
  • Process the generated AAG
python trans_gendata_CTI.py --directory_path ./CTIs --new_directory_path ./CTIs_trans/onerow --new_directory_path_multirow ./CTIs_trans/multirow --new_directory_path_multirow_divide ./CTIs_trans/multirow_divide --maxnode 100

2. AASG Divider

python Find_hub_process_test.py

3. IAG Builder

python graph_instance.py

4. Visualize IAG

python generate_subgraph_CTI.py --graph_path_txt ./result --graph_txt_path_2 ./result-visualization

5. Generated samples

The generated samples are stored in "2000_instance_linux" and "2000_instance_windows"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.