pidsmaker 5.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. pidsmaker/__init__.py +1 -0
  2. pidsmaker/cli.py +81 -0
  3. pidsmaker/config/__init__.py +2 -0
  4. pidsmaker/config/config.py +2100 -0
  5. pidsmaker/config/pipeline.py +1824 -0
  6. pidsmaker/config/schemas.py +1032 -0
  7. pidsmaker/datasets.py +323 -0
  8. pidsmaker/debug_tests.py +30 -0
  9. pidsmaker/decoders/__init__.py +5 -0
  10. pidsmaker/decoders/custom_edge_mlp_decoder.py +17 -0
  11. pidsmaker/decoders/custom_mlp_decoder.py +10 -0
  12. pidsmaker/decoders/edge_linear_decoder.py +16 -0
  13. pidsmaker/decoders/inner_product_decoder.py +18 -0
  14. pidsmaker/decoders/nodlink_decoder.py +56 -0
  15. pidsmaker/detection/__init__.py +0 -0
  16. pidsmaker/detection/evaluation_methods/__init__.py +9 -0
  17. pidsmaker/detection/evaluation_methods/edge_evaluation.py +255 -0
  18. pidsmaker/detection/evaluation_methods/evaluation_utils.py +1788 -0
  19. pidsmaker/detection/evaluation_methods/host_two_stage_evaluation.py +115 -0
  20. pidsmaker/detection/evaluation_methods/node_evaluation.py +459 -0
  21. pidsmaker/detection/evaluation_methods/node_tw_evaluation.py +196 -0
  22. pidsmaker/detection/evaluation_methods/plot.py +192 -0
  23. pidsmaker/detection/evaluation_methods/queue_evaluation.py +456 -0
  24. pidsmaker/detection/evaluation_methods/tw_evaluation.py +93 -0
  25. pidsmaker/detection/flash_detection.py +162 -0
  26. pidsmaker/detection/magic_knn.py +190 -0
  27. pidsmaker/detection/node_scoring.py +52 -0
  28. pidsmaker/detection/threatrace_detection.py +65 -0
  29. pidsmaker/detection/training_methods/__init__.py +1 -0
  30. pidsmaker/detection/training_methods/inference_loop.py +287 -0
  31. pidsmaker/detection/training_methods/ocrapt_early_stop.py +165 -0
  32. pidsmaker/detection/training_methods/threatrace_training.py +168 -0
  33. pidsmaker/detection/training_methods/training_loop.py +383 -0
  34. pidsmaker/encoders/__init__.py +22 -0
  35. pidsmaker/encoders/argus_encoder.py +69 -0
  36. pidsmaker/encoders/custom_mlp.py +75 -0
  37. pidsmaker/encoders/custom_mlp_encoder.py +10 -0
  38. pidsmaker/encoders/egraphsage_encoder.py +56 -0
  39. pidsmaker/encoders/gat.py +67 -0
  40. pidsmaker/encoders/gcn.py +27 -0
  41. pidsmaker/encoders/gin.py +48 -0
  42. pidsmaker/encoders/glstm.py +298 -0
  43. pidsmaker/encoders/graph_attention.py +63 -0
  44. pidsmaker/encoders/gru.py +29 -0
  45. pidsmaker/encoders/hetero/__init__.py +4 -0
  46. pidsmaker/encoders/hetero/ancestor_encoder.py +98 -0
  47. pidsmaker/encoders/hetero/entity_encoder.py +33 -0
  48. pidsmaker/encoders/hetero/event_encoder.py +81 -0
  49. pidsmaker/encoders/hetero/hetero_graph_transformer.py +40 -0
  50. pidsmaker/encoders/lares_encoder.py +68 -0
  51. pidsmaker/encoders/linear_encoder.py +16 -0
  52. pidsmaker/encoders/magic_encoder.py +161 -0
  53. pidsmaker/encoders/rcaid_encoder.py +81 -0
  54. pidsmaker/encoders/rgcn.py +75 -0
  55. pidsmaker/encoders/sage.py +51 -0
  56. pidsmaker/encoders/shadewatcher_encoder.py +149 -0
  57. pidsmaker/encoders/sum_aggregation.py +20 -0
  58. pidsmaker/encoders/temporal_wrappers.py +80 -0
  59. pidsmaker/encoders/textrcnn.py +82 -0
  60. pidsmaker/encoders/tgn_encoder.py +193 -0
  61. pidsmaker/experiments/tuning.py +102 -0
  62. pidsmaker/experiments/uncertainty.py +261 -0
  63. pidsmaker/factory.py +1456 -0
  64. pidsmaker/featurization/__init__.py +0 -0
  65. pidsmaker/featurization/feat_inference_methods/__init__.py +7 -0
  66. pidsmaker/featurization/feat_inference_methods/feat_inference_HFH.py +30 -0
  67. pidsmaker/featurization/feat_inference_methods/feat_inference_TRW.py +65 -0
  68. pidsmaker/featurization/feat_inference_methods/feat_inference_alacarte.py +14 -0
  69. pidsmaker/featurization/feat_inference_methods/feat_inference_doc2vec.py +53 -0
  70. pidsmaker/featurization/feat_inference_methods/feat_inference_fasttext.py +37 -0
  71. pidsmaker/featurization/feat_inference_methods/feat_inference_flash.py +69 -0
  72. pidsmaker/featurization/feat_inference_methods/feat_inference_graph2vec.py +84 -0
  73. pidsmaker/featurization/feat_inference_methods/feat_inference_ocrapt_features.py +95 -0
  74. pidsmaker/featurization/feat_inference_methods/feat_inference_pretrained.py +1728 -0
  75. pidsmaker/featurization/feat_inference_methods/feat_inference_word2vec.py +55 -0
  76. pidsmaker/featurization/featurization_methods/__init__.py +0 -0
  77. pidsmaker/featurization/featurization_methods/build_trw.py +66 -0
  78. pidsmaker/featurization/featurization_methods/featurization_alacarte.py +747 -0
  79. pidsmaker/featurization/featurization_methods/featurization_doc2vec.py +98 -0
  80. pidsmaker/featurization/featurization_methods/featurization_fasttext.py +74 -0
  81. pidsmaker/featurization/featurization_methods/featurization_flash.py +201 -0
  82. pidsmaker/featurization/featurization_methods/featurization_graph2vec.py +242 -0
  83. pidsmaker/featurization/featurization_methods/featurization_trw.py +114 -0
  84. pidsmaker/featurization/featurization_methods/featurization_word2vec.py +89 -0
  85. pidsmaker/featurization/featurization_utils.py +275 -0
  86. pidsmaker/featurization/utils/build_random_walks.py +66 -0
  87. pidsmaker/featurization/utils/trw.py +203 -0
  88. pidsmaker/hetero.py +81 -0
  89. pidsmaker/losses.py +170 -0
  90. pidsmaker/main.py +478 -0
  91. pidsmaker/mimicry.py +284 -0
  92. pidsmaker/model.py +382 -0
  93. pidsmaker/objectives/__init__.py +16 -0
  94. pidsmaker/objectives/autoencode_edge_emb.py +43 -0
  95. pidsmaker/objectives/deep_graph_infomax.py +94 -0
  96. pidsmaker/objectives/detect_few_shot.py +21 -0
  97. pidsmaker/objectives/one_class.py +75 -0
  98. pidsmaker/objectives/predict_edge_contrastive.py +165 -0
  99. pidsmaker/objectives/predict_edge_supervised.py +77 -0
  100. pidsmaker/objectives/predict_edge_type.py +28 -0
  101. pidsmaker/objectives/predict_masked_struct.py +49 -0
  102. pidsmaker/objectives/predict_node_type.py +36 -0
  103. pidsmaker/objectives/predict_process_tag.py +169 -0
  104. pidsmaker/objectives/predict_snapshot_embedding.py +97 -0
  105. pidsmaker/objectives/reconstruct_edge_emb.py +16 -0
  106. pidsmaker/objectives/reconstruct_masked_feat.py +51 -0
  107. pidsmaker/objectives/reconstruct_node_emb.py +13 -0
  108. pidsmaker/objectives/reconstruct_node_feat.py +13 -0
  109. pidsmaker/objectives/validation_wrapper.py +55 -0
  110. pidsmaker/preprocessing/__init__.py +0 -0
  111. pidsmaker/preprocessing/build_graph_methods/__init__.py +1 -0
  112. pidsmaker/preprocessing/build_graph_methods/build_default_graphs.py +825 -0
  113. pidsmaker/preprocessing/build_graph_methods/build_magic_graphs.py +216 -0
  114. pidsmaker/preprocessing/cleaning.py +258 -0
  115. pidsmaker/preprocessing/transformation_methods/__init__.py +2 -0
  116. pidsmaker/preprocessing/transformation_methods/attack_generation/synthetic_attack_naive.py +194 -0
  117. pidsmaker/preprocessing/transformation_methods/transformation_dag.py +28 -0
  118. pidsmaker/preprocessing/transformation_methods/transformation_merge_edges.py +136 -0
  119. pidsmaker/preprocessing/transformation_methods/transformation_rcaid_pseudo_graph.py +510 -0
  120. pidsmaker/preprocessing/transformation_methods/transformation_undirected.py +24 -0
  121. pidsmaker/preprocessing/transformation_methods/transformation_utils.py +36 -0
  122. pidsmaker/pretrained/__init__.py +5 -0
  123. pidsmaker/pretrained/data/__init__.py +4 -0
  124. pidsmaker/pretrained/data/behavior_signatures.py +548 -0
  125. pidsmaker/pretrained/data/canonical_tokens.py +1035 -0
  126. pidsmaker/pretrained/data/edge_filter.py +381 -0
  127. pidsmaker/pretrained/data/entity_classes.py +476 -0
  128. pidsmaker/pretrained/data/sampler.py +926 -0
  129. pidsmaker/pretrained/data/tokenizer_bpe.py +1659 -0
  130. pidsmaker/pretrained/detect.py +1427 -0
  131. pidsmaker/pretrained/embedding_generator.py +252 -0
  132. pidsmaker/pretrained/finetune.py +1434 -0
  133. pidsmaker/pretrained/models/__init__.py +20 -0
  134. pidsmaker/pretrained/models/behavior.py +348 -0
  135. pidsmaker/pretrained/models/bert.py +286 -0
  136. pidsmaker/pretrained/models/deepwalk.py +128 -0
  137. pidsmaker/pretrained/models/dgi.py +120 -0
  138. pidsmaker/pretrained/models/gae.py +114 -0
  139. pidsmaker/pretrained/models/gnn_distill.py +475 -0
  140. pidsmaker/pretrained/models/graphmae.py +373 -0
  141. pidsmaker/pretrained/models/hf_pretrained.py +213 -0
  142. pidsmaker/pretrained/models/llama.py +110 -0
  143. pidsmaker/pretrained/models/modernbert.py +567 -0
  144. pidsmaker/pretrained/models/roberta.py +147 -0
  145. pidsmaker/pretrained/models/rope_utils.py +99 -0
  146. pidsmaker/pretrained/models/ropebert.py +322 -0
  147. pidsmaker/pretrained/models/spider.py +204 -0
  148. pidsmaker/pretrained/models/tgn.py +770 -0
  149. pidsmaker/pretrained/pretrain/__init__.py +3 -0
  150. pidsmaker/pretrained/pretrain/pretrain_behavior_cluster.py +513 -0
  151. pidsmaker/pretrained/pretrain/pretrain_common.py +585 -0
  152. pidsmaker/pretrained/pretrain/pretrain_deepwalk.py +31 -0
  153. pidsmaker/pretrained/pretrain/pretrain_dgi.py +143 -0
  154. pidsmaker/pretrained/pretrain/pretrain_gae.py +143 -0
  155. pidsmaker/pretrained/pretrain/pretrain_gnn_distill.py +438 -0
  156. pidsmaker/pretrained/pretrain/pretrain_graphmae.py +151 -0
  157. pidsmaker/pretrained/pretrain/pretrain_hf.py +169 -0
  158. pidsmaker/pretrained/pretrain/pretrain_main.py +275 -0
  159. pidsmaker/pretrained/pretrain/pretrain_mlm.py +491 -0
  160. pidsmaker/pretrained/pretrain/pretrain_spider.py +502 -0
  161. pidsmaker/pretrained/training_utils.py +157 -0
  162. pidsmaker/process_reapr_gt.py +101 -0
  163. pidsmaker/resources/config/anomal_e.yml +25 -0
  164. pidsmaker/resources/config/argus.yml +56 -0
  165. pidsmaker/resources/config/attack_edges/cadets_e3.yml +435 -0
  166. pidsmaker/resources/config/attack_edges/cadets_e5.yml +407 -0
  167. pidsmaker/resources/config/attack_edges/theia_e3.yml +382 -0
  168. pidsmaker/resources/config/attack_edges/theia_e5.yml +387 -0
  169. pidsmaker/resources/config/attack_edges/trace_e3.yml +415 -0
  170. pidsmaker/resources/config/attack_edges/trace_e5.yml +417 -0
  171. pidsmaker/resources/config/default.yml +315 -0
  172. pidsmaker/resources/config/egraphsage.yml +95 -0
  173. pidsmaker/resources/config/euler.yml +104 -0
  174. pidsmaker/resources/config/eval/eval_set_clustering.json +3170 -0
  175. pidsmaker/resources/config/experiments/tuning/components/tuning_featurization_methods.yml +29 -0
  176. pidsmaker/resources/config/experiments/tuning/systems/clearscope_e5/tuning_orthrus.yml +14 -0
  177. pidsmaker/resources/config/experiments/tuning/systems/default/tuning_default_baselines.yml +13 -0
  178. pidsmaker/resources/config/experiments/tuning/systems/default/tuning_orthrus_fixed.yml +16 -0
  179. pidsmaker/resources/config/experiments/uncertainty/none.yml +5 -0
  180. pidsmaker/resources/config/experiments/uncertainty/run_n_times.yml +12 -0
  181. pidsmaker/resources/config/experiments/uncertainty/run_n_times_hyperparameters.yml +12 -0
  182. pidsmaker/resources/config/experiments/uncertainty/uncertainty.yml +22 -0
  183. pidsmaker/resources/config/flash.yml +79 -0
  184. pidsmaker/resources/config/jbeil.yml +65 -0
  185. pidsmaker/resources/config/kairos.yml +121 -0
  186. pidsmaker/resources/config/lares.yml +115 -0
  187. pidsmaker/resources/config/magic.yml +86 -0
  188. pidsmaker/resources/config/nodlink.yml +79 -0
  189. pidsmaker/resources/config/ocrapt.yml +91 -0
  190. pidsmaker/resources/config/orthrus.yml +126 -0
  191. pidsmaker/resources/config/orthrus_fixed.yml +17 -0
  192. pidsmaker/resources/config/pretrained/README.md +101 -0
  193. pidsmaker/resources/config/pretrained/cybergfm/cybergfm.yml +49 -0
  194. pidsmaker/resources/config/pretrained/pretrained.yml +190 -0
  195. pidsmaker/resources/config/pretrained/pretrained_flash.yml +9 -0
  196. pidsmaker/resources/config/pretrained/pretrained_kairos.yml +12 -0
  197. pidsmaker/resources/config/pretrained/pretrained_magic.yml +1 -0
  198. pidsmaker/resources/config/pretrained/pretrained_nodlink.yml +1 -0
  199. pidsmaker/resources/config/pretrained/pretrained_orthrus.yml +1 -0
  200. pidsmaker/resources/config/pretrained/pretrained_supervised.yml +13 -0
  201. pidsmaker/resources/config/pretrained/pretrained_threatrace.yml +8 -0
  202. pidsmaker/resources/config/pretrained/pretrained_velox.yml +14 -0
  203. pidsmaker/resources/config/prographer.yml +136 -0
  204. pidsmaker/resources/config/rcaid.yml +88 -0
  205. pidsmaker/resources/config/shadewatcher.yml +146 -0
  206. pidsmaker/resources/config/tests.yml +10 -0
  207. pidsmaker/resources/config/threatrace.yml +73 -0
  208. pidsmaker/resources/config/tuned_baselines/optc_net/tuned_argus.yml +4 -0
  209. pidsmaker/resources/config/tuned_baselines/optc_net/tuned_lares.yml +13 -0
  210. pidsmaker/resources/config/velox.yml +10 -0
  211. pidsmaker/resources/config/viz_config.yml +10 -0
  212. pidsmaker/resources/ground_truth/orthrus/E3-CADETS/node_Nginx_Backdoor_06.csv +8 -0
  213. pidsmaker/resources/ground_truth/orthrus/E3-CADETS/node_Nginx_Backdoor_11.csv +4 -0
  214. pidsmaker/resources/ground_truth/orthrus/E3-CADETS/node_Nginx_Backdoor_12.csv +43 -0
  215. pidsmaker/resources/ground_truth/orthrus/E3-CADETS/node_Nginx_Backdoor_13.csv +24 -0
  216. pidsmaker/resources/ground_truth/orthrus/E3-CLEARSCOPE/node_clearscope_e3_firefox_0411.csv +41 -0
  217. pidsmaker/resources/ground_truth/orthrus/E3-CLEARSCOPE/node_clearscope_e3_firefox_0412.csv +0 -0
  218. pidsmaker/resources/ground_truth/orthrus/E3-FIVEDIRECTIONS/node_fivedirections_e3_browser_0412.csv +1 -0
  219. pidsmaker/resources/ground_truth/orthrus/E3-FIVEDIRECTIONS/node_fivedirections_e3_excel_0409.csv +63 -0
  220. pidsmaker/resources/ground_truth/orthrus/E3-FIVEDIRECTIONS/node_fivedirections_e3_firefox_0411.csv +56 -0
  221. pidsmaker/resources/ground_truth/orthrus/E3-THEIA/node_Browser_Extension_Drakon_Dropper.csv +61 -0
  222. pidsmaker/resources/ground_truth/orthrus/E3-THEIA/node_Firefox_Backdoor_Drakon_In_Memory.csv +58 -0
  223. pidsmaker/resources/ground_truth/orthrus/E3-TRACE/node_trace_e3_firefox_0410.csv +11 -0
  224. pidsmaker/resources/ground_truth/orthrus/E3-TRACE/node_trace_e3_phishing_executable_0413.csv +11 -0
  225. pidsmaker/resources/ground_truth/orthrus/E3-TRACE/node_trace_e3_pine_0413.csv +14 -0
  226. pidsmaker/resources/ground_truth/orthrus/E5-CADETS/node_Nginx_Drakon_APT.csv +19 -0
  227. pidsmaker/resources/ground_truth/orthrus/E5-CADETS/node_Nginx_Drakon_APT_17.csv +107 -0
  228. pidsmaker/resources/ground_truth/orthrus/E5-CLEARSCOPE/node_clearscope_e5_appstarter_0515.csv +26 -0
  229. pidsmaker/resources/ground_truth/orthrus/E5-CLEARSCOPE/node_clearscope_e5_firefox_0517.csv +1 -0
  230. pidsmaker/resources/ground_truth/orthrus/E5-CLEARSCOPE/node_clearscope_e5_lockwatch_0517.csv +17 -0
  231. pidsmaker/resources/ground_truth/orthrus/E5-CLEARSCOPE/node_clearscope_e5_tester_0517.csv +8 -0
  232. pidsmaker/resources/ground_truth/orthrus/E5-FIVEDIRECTIONS/node_fivedirections_e5_bits_0515.csv +54 -0
  233. pidsmaker/resources/ground_truth/orthrus/E5-FIVEDIRECTIONS/node_fivedirections_e5_copykatz_0509.csv +87 -0
  234. pidsmaker/resources/ground_truth/orthrus/E5-FIVEDIRECTIONS/node_fivedirections_e5_dns_0517.csv +11 -0
  235. pidsmaker/resources/ground_truth/orthrus/E5-FIVEDIRECTIONS/node_fivedirections_e5_drakon_0517.csv +6 -0
  236. pidsmaker/resources/ground_truth/orthrus/E5-THEIA/node_THEIA_1_Firefox_Drakon_APT_BinFmt_Elevate_Inject.csv +70 -0
  237. pidsmaker/resources/ground_truth/orthrus/E5-TRACE/node_Trace_Firefox_Drakon.csv +71 -0
  238. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_m1.csv +1 -0
  239. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_m2.csv +1 -0
  240. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_m3.csv +1 -0
  241. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_m4.csv +5 -0
  242. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_m5.csv +23 -0
  243. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_m6.csv +18 -0
  244. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_s1.csv +1 -0
  245. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_s2.csv +1 -0
  246. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_s3.csv +16 -0
  247. pidsmaker/resources/ground_truth/orthrus/atlasv2_edr/atlasv2_edr_s4.csv +22 -0
  248. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_m1.csv +126 -0
  249. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_m2.csv +105 -0
  250. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_m3.csv +94 -0
  251. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_m4.csv +139 -0
  252. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_m5.csv +228 -0
  253. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_m6.csv +131 -0
  254. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_s1.csv +118 -0
  255. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_s2.csv +89 -0
  256. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_s3.csv +133 -0
  257. pidsmaker/resources/ground_truth/orthrus/atlasv2_h1/node_h1_s4.csv +135 -0
  258. pidsmaker/resources/ground_truth/orthrus/carbanakv2_edr/carbanakv2_edr.csv +2453 -0
  259. pidsmaker/resources/ground_truth/orthrus/h051/node_h051_0925.csv +114 -0
  260. pidsmaker/resources/ground_truth/orthrus/h201/node_h201_0923.csv +2905 -0
  261. pidsmaker/resources/ground_truth/orthrus/h501/node_h501_0924.csv +749 -0
  262. pidsmaker/resources/ground_truth/orthrus/readme.md +98 -0
  263. pidsmaker/resources/ground_truth/reapr/E3-CADETS/node_Nginx_Backdoor_06.csv +3 -0
  264. pidsmaker/resources/ground_truth/reapr/E3-CADETS/node_Nginx_Backdoor_12.csv +655 -0
  265. pidsmaker/resources/ground_truth/reapr/E3-CADETS/node_Nginx_Backdoor_13.csv +770 -0
  266. pidsmaker/resources/ground_truth/reapr/E3-FIVEDIRECTIONS/node_fivedirections_e3_excel_0409.csv +0 -0
  267. pidsmaker/resources/ground_truth/reapr/E3-FIVEDIRECTIONS/node_fivedirections_e3_firefox_0411.csv +18 -0
  268. pidsmaker/resources/ground_truth/reapr/E3-THEIA/node_Browser_Extension_Drakon_Dropper.csv +42 -0
  269. pidsmaker/resources/ground_truth/reapr/E3-THEIA/node_Firefox_Backdoor_Drakon_In_Memory.csv +81 -0
  270. pidsmaker/resources/ground_truth/reapr/E3-TRACE/node_trace_e3_firefox_0410.csv +37 -0
  271. pidsmaker/resources/ground_truth/reapr/E3-TRACE/node_trace_e3_phishing_executable_0413.csv +9 -0
  272. pidsmaker/resources/ground_truth/reapr/E3-TRACE/node_trace_e3_pine_0413.csv +40 -0
  273. pidsmaker/resources/ground_truth/threatrace/E3-CADETS/ground_truth.txt +12858 -0
  274. pidsmaker/resources/ground_truth/threatrace/E3-FIVEDIRECTIONS/ground_truth.txt +18420 -0
  275. pidsmaker/resources/ground_truth/threatrace/E3-THEIA/ground_truth.txt +25363 -0
  276. pidsmaker/resources/ground_truth/threatrace/E3-TRACE/ground_truth.txt +68265 -0
  277. pidsmaker/resources/ground_truth/threatrace/README.md +123 -0
  278. pidsmaker/tasks/__init__.py +10 -0
  279. pidsmaker/tasks/batching.py +47 -0
  280. pidsmaker/tasks/construction.py +31 -0
  281. pidsmaker/tasks/evaluation.py +241 -0
  282. pidsmaker/tasks/feat_inference.py +413 -0
  283. pidsmaker/tasks/featurization.py +43 -0
  284. pidsmaker/tasks/training.py +17 -0
  285. pidsmaker/tasks/transformation.py +306 -0
  286. pidsmaker/tasks/triage.py +143 -0
  287. pidsmaker/tgn.py +635 -0
  288. pidsmaker/tokenization/__init__.py +112 -0
  289. pidsmaker/tokenization/base.py +58 -0
  290. pidsmaker/tokenization/bpe_tokenizer.py +83 -0
  291. pidsmaker/tokenization/hf_tokenizer.py +61 -0
  292. pidsmaker/tokenization/hierarchical_tokenizer.py +44 -0
  293. pidsmaker/tokenization/label_tokenizer.py +24 -0
  294. pidsmaker/tokenization/nltk_tokenizer.py +84 -0
  295. pidsmaker/tokenization/substitution.py +295 -0
  296. pidsmaker/triage/__init__.py +0 -0
  297. pidsmaker/triage/tracing_methods/__init__.py +1 -0
  298. pidsmaker/triage/tracing_methods/depimpact.py +213 -0
  299. pidsmaker/triage/tracing_methods/depimpact_utils.py +537 -0
  300. pidsmaker/triage/tracing_methods/ocrapt_subgraph.py +267 -0
  301. pidsmaker/utils/__init__.py +0 -0
  302. pidsmaker/utils/cache_utils.py +256 -0
  303. pidsmaker/utils/console.py +282 -0
  304. pidsmaker/utils/data_utils.py +1742 -0
  305. pidsmaker/utils/database.py +150 -0
  306. pidsmaker/utils/dataset_utils.py +413 -0
  307. pidsmaker/utils/dataset_writer.py +570 -0
  308. pidsmaker/utils/graph_store.py +634 -0
  309. pidsmaker/utils/labelling.py +445 -0
  310. pidsmaker/utils/loss_files.py +193 -0
  311. pidsmaker/utils/process_tags.py +44 -0
  312. pidsmaker/utils/utils.py +712 -0
  313. pidsmaker/vizgen/__init__.py +1 -0
  314. pidsmaker/vizgen/backfill_manifests.py +100 -0
  315. pidsmaker/vizgen/dimensionality_reduction.py +249 -0
  316. pidsmaker/vizgen/embed_exporter.py +467 -0
  317. pidsmaker/vizgen/exporter.py +493 -0
  318. pidsmaker/vizgen/html_builder.py +936 -0
  319. pidsmaker/vizgen/web/__init__.py +1 -0
  320. pidsmaker/vizgen/web/export.py +62 -0
  321. pidsmaker/vizgen/web/static/css/app.css +250 -0
  322. pidsmaker/vizgen/web/static/index.html +182 -0
  323. pidsmaker/vizgen/web/static/js/app.js +627 -0
  324. pidsmaker/vizgen/web/static/js/campaign.js +123 -0
  325. pidsmaker/vizgen/web/static/js/data.js +119 -0
  326. pidsmaker/vizgen/web/static/js/dialogs.js +240 -0
  327. pidsmaker/vizgen/web/static/js/jobs.js +75 -0
  328. pidsmaker/vizgen/web/static/js/scene.js +651 -0
  329. pidsmaker/vizgen/web/static/js/ui.js +370 -0
  330. pidsmaker/vizgen/web/static/vendor/OrbitControls.js +1045 -0
  331. pidsmaker/vizgen/web/static/vendor/d3.v4.min.js +2 -0
  332. pidsmaker/vizgen/web/static/vendor/three.min.js +6 -0
  333. pidsmaker/vizgen/web/viz_server.py +2176 -0
  334. pidsmaker-5.0.0.dist-info/METADATA +597 -0
  335. pidsmaker-5.0.0.dist-info/RECORD +339 -0
  336. pidsmaker-5.0.0.dist-info/WHEEL +5 -0
  337. pidsmaker-5.0.0.dist-info/entry_points.txt +2 -0
  338. pidsmaker-5.0.0.dist-info/licenses/LICENSE +201 -0
  339. pidsmaker-5.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,136 @@
1
+ # ProGrapher (Yang et al., USENIX Security 2023): "PROGRAPHER: An Anomaly Detection System based on
2
+ # Provenance Graph Embedding". The provenance stream is cut into snapshots, each embedded as a whole
3
+ # by graph2vec: the Weisfeiler-Lehman rooted subgraphs (RSGs) of all nodes, built from node and
4
+ # edge types only, are the words of a document (the snapshot) embedded with doc2vec (PV-DBOW).
5
+ # A TextRCNN (bidirectional RNN + max-pooling) predicts the embedding of each snapshot from those
6
+ # of the previous L snapshots, and snapshots whose actual embedding is far (L2) from the
7
+ # prediction are anomalous. Key indicators are the nodes rooted at the RSGs that explain the
8
+ # deviation the most: RSGs r are ranked by w_r . (E - E'), the difference of their log-likelihood
9
+ # (Eq. 1) under the actual (E) and the predicted (E') embeddings.
10
+ #
11
+ # Components: `graph2vec` featurization (snapshot embedding `graph_emb` and RSGs of each graph),
12
+ # `textrcnn` encoder (state: the embeddings of the last `sequence_length` snapshots, carried
13
+ # across graphs like `snapshot_gru`), `predict_snapshot_embedding` objective (L2 error; at
14
+ # inference, one score per node = snapshot error x (1 - rank of the node's best RSG / #RSGs)).
15
+ #
16
+ # Evaluation:
17
+ # - `tw_evaluation` (default), as the paper: each time window is a snapshot, scored by its
18
+ # prediction error (the max of its node scores) and flagged above the max validation error.
19
+ # - `node_evaluation` (`--evaluation.used_method=node_evaluation`), to compare ProGrapher with the
20
+ # node-level PIDSs on ADP: a node is scored by its key-indicator score in its snapshots (max
21
+ # over windows). `predict_snapshot_embedding.top_k: 4` keeps only the nodes of the top-4 RSGs
22
+ # (the indicators reported by the paper, K = 4 in its Table 10); 0 (default) ranks all nodes.
23
+ #
24
+ # Differences with the original implementation (no public code is available):
25
+ # - snapshots are the time windows of the framework (`construction.time_window_size`), whereas
26
+ # ProGrapher builds snapshots of n nodes (900 on CADETS/THEIA, 300 on CLEARSCOPE) overlapping by
27
+ # 1 - fr, with a forgetting rate fr = 1/3 that retires the oldest nodes; lower the window size
28
+ # to get closer to its snapshot sizes;
29
+ # - graph2vec is trained on the training snapshots only (`training_split: train`, no data
30
+ # snooping) and the embedding of every snapshot (all splits) is then inferred with the trained
31
+ # RSG vectors; ProGrapher is transductive and learns the embeddings of all snapshots jointly,
32
+ # test included (`--featurization.training_split=all` trains on all of them). RSGs unseen in
33
+ # training are ignored, in the embedding and in the key indicators;
34
+ # - gensim truncates documents to 10,000 words: snapshot documents are split into chunks of
35
+ # 10,000 RSGs that share the same tag, and their embedding is inferred over all chunks;
36
+ # - the TextRCNN is trained with one optimizer step per snapshot (sequence of the previous
37
+ # L snapshots, teacher forcing), and the sequence is carried from the training snapshots to
38
+ # the validation and test ones; with fewer than L previous snapshots, the sequence is shorter;
39
+ # - its RNN is a 5-layer bidirectional LSTM (`rnn_type: lstm`, as common TextRCNN code); the
40
+ # paper's equations describe the ReLU recurrence of TextRCNN (`rnn_type: rnn`);
41
+ # - the paper evaluates 2-hour graphs (malicious if one of their snapshots is), here each time
42
+ # window is evaluated, and the threshold is the max validation error (the paper's threshold is
43
+ # "pre-defined");
44
+ # - the model is selected on validation data (lowest mean validation error, `best_val_score`),
45
+ # as the paper's early stopping (patience of 30 epochs); the paper does not report its
46
+ # number of epochs, 20 are run here (one optimizer step per snapshot, i.e. ~600 steps per
47
+ # epoch on CADETS_E3);
48
+ # - ProGrapher only keeps the latest event between a pair of entities: RSGs are built from sets
49
+ # of neighbors and edge types, so repeated events have no effect here (but events of other
50
+ # types between the same pair are kept). As sets, distinct neighbors with the same RSG also
51
+ # count once: an RSG does not reflect how many such neighbors a node has (e.g. a process
52
+ # writing 1 or 1,000 files of the same RSG), unlike the multisets of the original WL kernel.
53
+
54
+ _include_yml: default
55
+
56
+ construction:
57
+ used_method: default
58
+ use_all_files: True
59
+ mimicry_edge_num: 0
60
+ time_window_size: 15.0
61
+ use_hashed_label: False
62
+ fuse_edge: True
63
+ multi_dataset: none
64
+ cleaning:
65
+ used_methods: none
66
+ transformation:
67
+ used_methods: none
68
+
69
+ featurization:
70
+ used_method: graph2vec
71
+ emb_dim: 256 # dimension of the graph embedding
72
+ epochs: 100 # graph2vec training epochs (Section 6.4)
73
+ seed: 0
74
+ training_split: train
75
+ tokenization:
76
+ used_method: none # graph2vec only uses node and edge types
77
+ graph2vec:
78
+ wl_iterations: 4 # depth d of the WL kernel: 4 on large graphs (CADETS, THEIA), 3 on small ones (CLEARSCOPE)
79
+ negative: 15
80
+ min_count: 1
81
+ alpha: 0.025
82
+ infer_epochs: 100
83
+ num_workers: 1 # several workers make the training of gensim non-deterministic
84
+ feat_inference:
85
+ to_remove: True
86
+
87
+ batching:
88
+ save_on_disk: False
89
+ node_features: node_type
90
+ edge_features: none
91
+ fix_buggy_graph_reindexer: True
92
+ # One graph per snapshot (time window)
93
+ global_batching:
94
+ used_method: none
95
+ intra_graph_batching:
96
+ used_methods: none
97
+ inter_graph_batching:
98
+ used_method: none
99
+
100
+ training:
101
+ used_method: default
102
+ seed: 0
103
+ deterministic: False
104
+ num_epochs: 20
105
+ patience: 30
106
+ lr: 0.0003
107
+ weight_decay: 0.0
108
+ node_hid_dim: 128 # hidden size of the anomaly detector
109
+ node_out_dim: 256 # the TextRCNN outputs a graph embedding of size `featurization.emb_dim`
110
+ grad_accumulation: 1
111
+ encoder:
112
+ dropout: 0.2
113
+ used_methods: textrcnn
114
+ textrcnn:
115
+ sequence_length: 128 # L: 128 on CADETS and THEIA, 32 on CLEARSCOPE
116
+ num_layers: 5
117
+ rnn_type: lstm
118
+ decoder:
119
+ used_methods: predict_snapshot_embedding
120
+ predict_snapshot_embedding:
121
+ decoder: none
122
+ top_k: 0
123
+
124
+ evaluation:
125
+ viz_malicious_nodes: False
126
+ ground_truth_version: orthrus
127
+ best_model_selection: best_val_score
128
+ used_method: tw_evaluation
129
+ tw_evaluation:
130
+ threshold_method: max_val_loss
131
+ node_evaluation:
132
+ threshold_method: max_val_loss
133
+ use_kmeans: False
134
+ node_tw_evaluation:
135
+ threshold_method: max_val_loss
136
+ use_kmeans: False
@@ -0,0 +1,88 @@
1
+ construction:
2
+ used_method: default
3
+ use_all_files: True
4
+ mimicry_edge_num: 0
5
+ time_window_size: 15.0
6
+ use_hashed_label: False
7
+ fuse_edge: True
8
+ node_label_features:
9
+ subject: path, cmd_line
10
+ file: path
11
+ netflow: remote_ip
12
+ multi_dataset: none
13
+ cleaning:
14
+ used_methods: none
15
+ transformation:
16
+ used_methods: rcaid_pseudo_graph
17
+ rcaid_pseudo_graph:
18
+ use_pruning: True
19
+ prune_threshold: 0.5
20
+ root_node_types: file, netflow
21
+ keep_original_edges: True
22
+ merge_same_label_roots: True
23
+ max_roots_per_node: 16
24
+
25
+ featurization:
26
+ epochs: 5
27
+ emb_dim: 128
28
+ seed: 0
29
+ training_split: all
30
+ used_method: doc2vec
31
+ tokenization:
32
+ used_method: nltk
33
+ nltk:
34
+ type_aware: True
35
+ substitutions: none
36
+ doc2vec:
37
+ include_neighbors: False
38
+ truncate_process_name: True
39
+ alpha: 0.025
40
+ workers: 1
41
+ feat_inference:
42
+ to_remove: True
43
+
44
+ batching:
45
+ save_on_disk: False
46
+ node_features: node_emb
47
+ edge_features: none
48
+ fix_buggy_graph_reindexer: False
49
+ global_batching:
50
+ used_method: none
51
+ intra_graph_batching:
52
+ used_methods: none
53
+ inter_graph_batching:
54
+ used_method: none
55
+ training:
56
+ used_method: default
57
+ seed: 0
58
+ deterministic: False
59
+ num_epochs: 12
60
+ patience: 3
61
+ lr: 0.0001
62
+ weight_decay: 0.0001
63
+ node_hid_dim: 128
64
+ node_out_dim: 128
65
+ grad_accumulation: 1
66
+ encoder:
67
+ dropout: 0.5
68
+ used_methods: rcaid_gat
69
+ rcaid_gat:
70
+ num_layers: 2
71
+ num_heads: 1
72
+ decoder:
73
+ used_methods: predict_process_tag
74
+ predict_process_tag:
75
+ decoder: node_mlp
76
+ balanced_loss: False
77
+ detection: kmeans
78
+ node_mlp:
79
+ architecture_str: none
80
+
81
+ evaluation:
82
+ viz_malicious_nodes: False
83
+ ground_truth_version: orthrus
84
+ best_model_selection: best_adp
85
+ used_method: node_evaluation
86
+ node_evaluation:
87
+ threshold_method: max_val_loss
88
+ use_kmeans: False
@@ -0,0 +1,146 @@
1
+ # ShadeWatcher (Zeng et al., IEEE S&P 2022): "ShadeWatcher: Recommendation-guided Cyber Threat
2
+ # Analysis using System Audit Records". Threat detection as a recommendation problem: system
3
+ # entities interact with other entities as users with items, and interactions that an entity
4
+ # would unlikely "prefer" are threats. A knowledge graph (KG) joins the interactions,
5
+ # (h, interact, t), with the events of the provenance graph as side information, (h, event, t).
6
+ # TransR embeds the entities and relations of the KG (first-order information), GNN layers
7
+ # propagate these embeddings along the KG with a relation-aware attention (KGAT-style) and a
8
+ # GraphSAGE aggregator (higher-order information), and the inner product of the concatenated
9
+ # embeddings of two entities is the probability that they would *not* interact. The GNN is
10
+ # trained with a BPR loss against random interactions, TransR with a pairwise loss against
11
+ # corrupted triples, on benign data only.
12
+ #
13
+ # Mapping onto PIDSMaker:
14
+ # - each edge of a time window is both an interaction and a KG triple whose relation is the edge
15
+ # type (`shadewatcher` encoder); repeated events are merged per (src, type, dst) (`merge_edges`)
16
+ # so that triples are unique, as in the KG of ShadeWatcher;
17
+ # - the TransR loss is computed by the encoder and added to the loss of the objective; the
18
+ # interactions are scored by `predict_edge_contrastive` with the BPR loss (`loss: bpr`), two
19
+ # negatives per interaction sharing its source (`uniform_dst`, `neg_ratio: 2`, as
20
+ # `inter_pos_rate`), and the negated inner product (`negate`: an observed interaction has a low
21
+ # probability of not happening);
22
+ # - the anomaly score of an interaction is the inner product, and an entity's is the max over its
23
+ # interactions (`node_evaluation`, both endpoints), so that alerts are entity-level and comparable
24
+ # with the other PIDSs.
25
+ #
26
+ # Differences with the original implementation (https://github.com/jun-zeng/ShadeWatcher):
27
+ # - Entity embeddings: ShadeWatcher learns one embedding per entity ID over a single KG of all
28
+ # the audit data, randomly split 80/10/10 into interactions to train, validate and test. Here,
29
+ # models are trained on the first days and tested on later days, whose entities are mostly
30
+ # unseen: a per-ID embedding would stay untrained for them. The embedding of an entity is
31
+ # instead a linear projection of its features: a word2vec embedding of its label (process
32
+ # path and command line, file path, IP and port, i.e. the attributes of ShadeWatcher's
33
+ # entities) and its type, trained on the training split only. Add `node_id_embedding` to the
34
+ # encoders (`--training.encoder.used_methods=shadewatcher,node_id_embedding`) to concatenate a
35
+ # learned ID embedding to the features, closer to ShadeWatcher but transductive.
36
+ # - Interactions: ShadeWatcher pairs the root data object of each behavior (a subgraph found by
37
+ # a forward DFS from a data object) with every entity of that behavior, i.e. multi-hop causal
38
+ # pairs; here, interactions are the endpoints of the events (1-hop). The KG and its GNN
39
+ # propagation are built per time window (15 min) instead of over the whole log, and the noise
40
+ # reduction of ShadeWatcher's parser is not applied. As in the code (inverse relations are
41
+ # commented out in `recommend/util/gnn_data.py`), each node only aggregates the tails of the
42
+ # triples it is the head of: nodes that are only destinations of events get no neighborhood
43
+ # information from the GNN layers.
44
+ # - Training: the BPR and TransR losses are summed and optimized jointly at each batch (time
45
+ # window), as in the objective of the paper (L = L_first + L_higher + lambda ||Theta||, lambda
46
+ # as Adam's weight decay), whereas the code alternates one epoch of each with two optimizers
47
+ # over random batches of 1024 interactions/triples. Negatives are drawn among the nodes of the
48
+ # window instead of all the entities. The BPR loss averages the pairs (interaction, negative),
49
+ # whereas the code compares each interaction to the sum of the scores of its 2 negatives.
50
+ # - TransR: squared L2 distance as the code (the paper writes L1), with the margin γ = 1 of the
51
+ # paper (defined but unused in the code). The attention is recomputed from the current TransR
52
+ # embeddings at each batch, without gradient, whereas the code computes it once before training.
53
+ # - Threshold and epochs: the threshold is the max score of validation interactions
54
+ # (`max_val_loss`) instead of a fixed value grid-searched on labelled validation data (-0.5 in
55
+ # the paper, 1.5 in the code), and the reported epoch is chosen as for the other PIDSs
56
+ # (`best_adp`), among 30 epochs as in the paper.
57
+ # - Model adaptation from analyst feedback on false positives is not implemented.
58
+
59
+ _include_yml: default
60
+
61
+ construction:
62
+ used_method: default
63
+ use_all_files: True
64
+ mimicry_edge_num: 0
65
+ time_window_size: 15.0
66
+ use_hashed_label: False
67
+ fuse_edge: True
68
+ node_label_features:
69
+ subject: type, path, cmd_line
70
+ file: type, path
71
+ netflow: type, remote_ip, remote_port
72
+ multi_dataset: none
73
+ transformation:
74
+ used_methods: merge_edges
75
+ merge_edges:
76
+ per_edge_type: True
77
+
78
+ featurization:
79
+ emb_dim: 128
80
+ epochs: 50
81
+ training_split: train
82
+ seed: 0
83
+ used_method: word2vec
84
+ tokenization:
85
+ used_method: nltk
86
+ nltk:
87
+ type_aware: True
88
+ substitutions: none
89
+ feat_inference:
90
+ to_remove: True
91
+
92
+ batching:
93
+ node_features: node_emb,node_type
94
+ edge_features: none
95
+ fix_buggy_graph_reindexer: True
96
+ global_batching:
97
+ used_method: none
98
+ intra_graph_batching:
99
+ used_methods: none
100
+ inter_graph_batching:
101
+ used_method: none
102
+
103
+ training:
104
+ used_method: default
105
+ seed: 0
106
+ deterministic: False
107
+ num_epochs: 30
108
+ patience: 5
109
+ lr: 0.001
110
+ weight_decay: 0.00001 # λ = 1e-5
111
+ node_hid_dim: 32 # size of the TransR entity embeddings
112
+ node_out_dim: 80 # 32 (TransR) + 32 + 16 (GNN layers), concatenated
113
+ grad_accumulation: 1
114
+ stable_optim: False
115
+ fuse_duplicate_edges_training: False
116
+ encoder:
117
+ dropout: 0.2
118
+ used_methods: shadewatcher
119
+ shadewatcher:
120
+ hidden_dims: 32,16
121
+ kg_dim: 32
122
+ kg_neg_ratio: 2
123
+ kg_margin: 1.0
124
+ decoder:
125
+ used_methods: predict_edge_contrastive
126
+ predict_edge_contrastive:
127
+ loss: bpr
128
+ neg_sampling: uniform_dst
129
+ neg_ratio: 2.0
130
+ decoder: inner_product
131
+ inner_product:
132
+ dropout: 0.0
133
+ negate: True
134
+ use_few_shot: False
135
+
136
+ evaluation:
137
+ viz_malicious_nodes: False
138
+ ground_truth_version: orthrus
139
+ best_model_selection: best_adp
140
+ used_method: node_evaluation
141
+ node_evaluation:
142
+ threshold_method: max_val_loss
143
+ max_val_loss:
144
+ alpha: 1.0
145
+ use_dst_node_loss: True
146
+ use_kmeans: False
@@ -0,0 +1,10 @@
1
+ _include_yml: orthrus
2
+
3
+ featurization:
4
+ epochs: 1
5
+ emb_dim: 16
6
+
7
+ training:
8
+ num_epochs: 1
9
+ node_hid_dim: 16
10
+ node_out_dim: 16
@@ -0,0 +1,73 @@
1
+ construction:
2
+ used_method: default
3
+ use_all_files: True
4
+ mimicry_edge_num: 0
5
+ time_window_size: 15.0
6
+ use_hashed_label: False
7
+ fuse_edge: True
8
+ node_label_features:
9
+ subject: type, path, cmd_line
10
+ file: type, path
11
+ netflow: type, remote_ip, remote_port
12
+ multi_dataset: none
13
+ cleaning:
14
+ used_methods: none
15
+ transformation:
16
+ used_methods: none
17
+
18
+ featurization:
19
+ used_method: only_type
20
+ tokenization:
21
+ used_method: none
22
+ feat_inference:
23
+ to_remove: True
24
+
25
+ batching:
26
+ save_on_disk: False
27
+ node_features: edges_distribution
28
+ edges_distribution_scaling: none
29
+ edge_features: none
30
+ fix_buggy_graph_reindexer: True
31
+ global_batching:
32
+ used_method: none
33
+ intra_graph_batching:
34
+ used_methods: none
35
+ inter_graph_batching:
36
+ used_method: none
37
+ training:
38
+ used_method: threatrace
39
+ seed: 0
40
+ deterministic: False
41
+ num_epochs: 12
42
+ patience: 3
43
+ lr: 0.01
44
+ weight_decay: 0.0005
45
+ node_hid_dim: 32
46
+ node_out_dim: 3
47
+ grad_accumulation: 1
48
+ threatrace:
49
+ ratio_threshold: 1.5 # `thre` of CADETS and THEIA in the original
50
+ max_submodels: 100
51
+ max_retrain_epochs: 149
52
+ retrain_loss_threshold: 1.0
53
+ max_rounds_without_progress: 3
54
+ encoder:
55
+ dropout: 0.5
56
+ used_methods: sage
57
+ sage:
58
+ activation: relu
59
+ num_layers: 2
60
+ decoder:
61
+ used_methods: predict_node_type
62
+ predict_node_type:
63
+ decoder: none
64
+ balanced_loss: False
65
+
66
+ evaluation:
67
+ viz_malicious_nodes: False
68
+ ground_truth_version: orthrus
69
+ best_model_selection: best_adp
70
+ used_method: node_evaluation
71
+ node_evaluation:
72
+ threshold_method: threatrace
73
+ use_kmeans: False
@@ -0,0 +1,4 @@
1
+ # Snapshots of Argus on OpTC (6 min, `--delta 0.1` hours), loaded with `--tuned`. The defaults
2
+ # of argus.yml are those of LANL (1 h).
3
+ construction:
4
+ time_window_size: 6.0
@@ -0,0 +1,13 @@
1
+ # Hyperparameters of LARES on OpTC (`OPTC_base` in src/utils/config.py of the LARES repository),
2
+ # loaded with `--tuned`. The defaults of lares.yml are those of LANL.
3
+ construction:
4
+ time_window_size: 30.0 # 30 one-minute files per snapshot
5
+ training:
6
+ seed: 42
7
+ lr: 0.001
8
+ node_hid_dim: 128
9
+ node_out_dim: 128
10
+ evaluation:
11
+ host_two_stage_evaluation:
12
+ alpha: 5
13
+ beta: 30
@@ -0,0 +1,10 @@
1
+ # Simply the same config as orthrus + encoder set to none
2
+
3
+ _include_yml: orthrus
4
+
5
+ batching:
6
+ intra_graph_batching:
7
+ used_methods: edges
8
+ training:
9
+ encoder:
10
+ used_methods: none # uses only a linear layer
@@ -0,0 +1,10 @@
1
+ embedding_viz:
2
+ activated: false
3
+ embeddings: "word2vec" # word2vec | encoder | both
4
+ method: "umap" # umap | tsne
5
+ max_benign_nodes: "all" # int or "all"
6
+ max_attack_nodes: "all" # int or "all"
7
+ default_hops: 0
8
+ show_trajectories: true
9
+ show_stats_overlay: true
10
+ n_neighbors: 30
@@ -0,0 +1,8 @@
1
+ 674D8313-390A-11E8-BF66-D9AA8AFF4A69,{'subject': 'None nginx'},211776
2
+ 60040266-39AE-11E8-BF66-D9AA8AFF4A69,{'netflow': '128.55.12.73:80->81.49.200.166:43530'},26277
3
+ 6034BA72-39AE-11E8-BF66-D9AA8AFF4A69,{'netflow': '128.55.12.73:38265->200.36.109.214:80'},26281
4
+ FFF277E0-39AD-11E8-BF66-D9AA8AFF4A69,{'netflow': '128.55.12.73:80->81.49.200.166:44623'},26254
5
+ D384652A-39AF-11E8-BF66-D9AA8AFF4A69,{'netflow': '128.55.12.73:19857->139.123.0.113:80'},26318
6
+ 323ED9A0-39B1-11E8-BF66-D9AA8AFF4A69,{'netflow': '128.55.12.73:17330->61.167.39.128:80'},26357
7
+ D3822AFC-39AF-11E8-BF66-D9AA8AFF4A69,{'subject': 'None vUgefal'},228725
8
+ F77E454D-CA07-6B5D-87CA-9EFDCD6BA3ED,{'file': '/tmp/vUgefal'},1219519
@@ -0,0 +1,4 @@
1
+ BA2C1AFC-3DBB-11E8-B8CE-15D78AC88FB6,{'netflow': '128.55.12.73:59166->155.162.39.48:80'},132794
2
+ 2720E25F-39BE-11E8-B8CE-15D78AC88FB6,{'subject': 'None nginx'},276239
3
+ BA00F667-3DBB-11E8-B8CE-15D78AC88FB6,{'netflow': '128.55.12.73:80->25.159.96.207:36673'},132790
4
+ BA012C50-3DBB-11E8-B8CE-15D78AC88FB6,{'netflow': '128.55.12.73:26292->76.56.184.25:80'},132791
@@ -0,0 +1,43 @@
1
+ 4DA445A7-56DB-D353-9B56-AD9CD3D373D6,{'file': '/tmp/main'},2446982
2
+ 5CD609A7-3E7F-11E8-A5CB-3FA3753A265A,{'subject': 'None main'},355470
3
+ 11C64B2C-3DC3-11E8-A5CA-3FA3753A265A,{'subject': 'None nginx'},337550
4
+ 5EE4F8FC-3E7B-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:80->25.159.96.207:45203'},140956
5
+ 5EE54774-3E7B-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:46517->76.56.184.25:80'},140957
6
+ 48289024-3E7E-11E8-A5CB-3FA3753A265A,{'subject': 'None XIM'},355357
7
+ C4F4FF22-3E7B-11E8-A5CB-3FA3753A265A,{'subject': 'None tmux-1002'},354975
8
+ 5F12229C-3E7B-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:12680->155.162.39.48:80'},140960
9
+ 74D78344-4A18-265B-984A-8D22BB26DDCF,{'file': '/tmp/minions'},2444455
10
+ 7CF2DDA4-3E7B-11E8-A5CB-3FA3753A265A,{'subject': 'None python2.7'},354935
11
+ 1AC05B7A-3DC3-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},337065
12
+ 1902FFA3-6F80-2052-806F-3D6A2220819E,{'file': '/var/log/salt/minion'},381102
13
+ 7B30E76D-3E7D-11E8-A5CB-3FA3753A265A,{'subject': 'None minions'},355247
14
+ AE11D308-3E7F-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},355502
15
+ B2C5B97D-3E7F-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},355507
16
+ 482AD2B6-3E7E-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:39242->53.158.101.118:80'},141183
17
+ 327621AE-3E80-11E8-A5CB-3FA3753A265A,{'subject': 'None test'},355641
18
+ 60EBF436-633F-B75F-BF63-A8040FB73989,{'file': '/var/cache/salt/minion/proc/20180412180113291397'},2442683
19
+ 34612C08-3E7B-11E8-A5CB-3FA3753A265A,{'subject': 'None top'},354877
20
+ 47E61FFC-3E80-11E8-A5CB-3FA3753A265A,{'subject': 'None test'},355657
21
+ DCBB8D5C-3E7F-11E8-A5CB-3FA3753A265A,{'subject': 'None test'},355535
22
+ 5026C48F-56BA-3E5B-BA56-DD382B3EC82B,{'file': '/tmp/XIM'},2445651
23
+ CBBF8038-5237-8651-B752-A1C99186128A,{'file': '/var/log/sendmail'},2446677
24
+ 1131CD42-3DC3-11E8-A5CA-3FA3753A265A,{'subject': 'None python2.7'},336472
25
+ 51110606-D232-9652-B2D2-3A7242968F8A,{'file': 'None'},379482
26
+ 21A20E29-3E7E-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:60746->53.158.101.118:80'},141147
27
+ 15FD3B4A-3DC3-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},336477
28
+ E5F1BC5B-052D-3F5F-AD05-928A8F3FF746,{'file': '/var/log/netlog'},2446308
29
+ 47EA0B5C-3E80-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:34345->192.113.144.28:80'},141285
30
+ 17C4C0C3-3E7D-11E8-A5CB-3FA3753A265A,{'subject': 'None minions'},355176
31
+ 15267234-3E7F-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},355439
32
+ 42E4A848-3E7C-11E8-A5CB-3FA3753A265A,{'subject': 'None tmux-1002'},355056
33
+ F993C224-C6AD-AB5C-ADC6-09316CABFFD8,{'file': '/tmp/font'},2445298
34
+ 1633500B-D34B-8058-8BD3-ABB7D880915E,{'file': 'None'},379506
35
+ 0001A528-3E80-11E8-A5CB-3FA3753A265A,{'subject': 'None test'},355572
36
+ 219DE547-3E7E-11E8-A5CB-3FA3753A265A,{'subject': 'None XIM'},355316
37
+ 84D440C2-4E50-4A5C-904E-C4772C4ACD5A,{'file': '/tmp/test'},2447478
38
+ 1D3ACF79-3E7F-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},355447
39
+ 416AB837-8E42-6D58-828E-6976586D8E68,{'file': '/dev/random'},380024
40
+ 7CED5514-3E7B-11E8-A5CB-3FA3753A265A,{'subject': 'None python2.7'},354933
41
+ 7D2E10B3-3E7B-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},354938
42
+ 81E2003D-3E7B-11E8-A5CB-3FA3753A265A,{'subject': 'None sendmail'},354940
43
+ 5453C813-1A0E-4359-8E1A-41B40943CDC5,{'file': '/tmp/tmux-1002'},2442623
@@ -0,0 +1,24 @@
1
+ 937BA111-3F1B-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:80->25.159.96.207:58625'},147459
2
+ 937BE863-3F1B-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:49722->76.56.184.25:80'},147460
3
+ 93A2D6AC-3F1B-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:27115->155.162.39.48:80'},147461
4
+ 11C65665-3DC3-11E8-A5CA-3FA3753A265A,{'subject': 'None nginx'},356868
5
+ E5A15412-68E0-FD54-A068-DD6114FD9040,{'file': '/tmp/pEja72mA'},2609543
6
+ 042ADADF-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370896
7
+ 4FB0BFEA-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None pEja72mA'},370961
8
+ 0433BCDC-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370897
9
+ 044B097A-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370898
10
+ 04632D66-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370899
11
+ 0488BCD7-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None mkdir'},370903
12
+ 04A9D03C-3F1C-11E8-A5CB-3FA3753A265A,{'subject': 'None wget'},370904
13
+ 51110606-D232-9652-B2D2-3A7242968F8A,{'file': 'None'},379482
14
+ 48289024-3E7E-11E8-A5CB-3FA3753A265A,{'subject': 'None XIM'},355357
15
+ 4FB30E44-3F1C-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:63341->53.158.101.118:80'},147515
16
+ 3209A26F-A6EF-0350-AFA6-B1BD1003D390,{'file': 'None'},418674
17
+ EC6F1E3C-792F-485D-AF79-1A832D489243,{'file': '/usr/home/user/eraseme'},2609587
18
+ 00C8E4E5-8BBC-D45B-BC8B-D32BABD4AFCE,{'file': '/usr/home/user/eraseme/index.html'},2609590
19
+ 2CA83801-3E80-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},355640
20
+ E0C1A46B-3F1B-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370873
21
+ E0CAAC23-3F1B-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370874
22
+ E0E17EDD-3F1B-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370875
23
+ E0F82A6C-3F1B-11E8-A5CB-3FA3753A265A,{'subject': 'None sshd'},370876
24
+ 482AD2B6-3E7E-11E8-A5CB-3FA3753A265A,{'netflow': '128.55.12.73:39242->53.158.101.118:80'},141183
@@ -0,0 +1,41 @@
1
+ 678FB298-C353-7A50-71A3-5A1AEF00AA82,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/46B4A4959D24A571D23DA5286AC96EDDAB2A9CF9'},333568
2
+ 814A9E51-6C2A-86B6-FCD8-551F5F2980B2,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/EB030A27D194C1F449A64B9A97D86FE1ABED0D97'},333570
3
+ 4ABC5FE7-B6EF-AA12-82C1-E9374857BDF5,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/196106106D51C11F05AFC8B8CD8CAFC017BBCCC6'},333571
4
+ 40B2C166-ECF4-6F74-482D-83556CCEED61,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/52402ECA9BB7A2FE83C6CEECB7F446BB2DBB4B2D'},333572
5
+ 31B193EC-BF14-E549-B185-6B1F0A186FCD,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/BEB8B8AD3A51C349E411F0D18C089027E6C21D44'},333574
6
+ 781059F2-FFB0-B5A4-9287-C1B344989176,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/F1EF148E840E33785DC909C0537D1F785202D84E'},333576
7
+ 8A35394A-2231-1010-DBC5-B4EBA7AF521A,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/F6B9CCEB5301704972DD7A21B69DBE3E684FB66A'},333578
8
+ 2A24E05F-E807-51A2-8D04-92C487DDB0F1,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/12DEF1AF8D1E018DEBE6C64C954FDA0AE802CC92'},333579
9
+ 7285312C-657F-1786-AF64-CC77D3FDA5A5,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/1A6F9919FD48093240774CCCD3371B6B6D0E89AE'},333582
10
+ 10107FE5-244A-09AB-9969-54FC7AF734CB,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/4BCE9F2B3270508CC941B753991F527FAABA2800'},333328
11
+ B2DEFDBC-13D1-C567-11D2-E5C09D43157D,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/816217C28472C8D862F88295E8306531A0710579'},333585
12
+ 60EFAD0C-EE70-E87D-BF45-F9653CD59AC6,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/0ECD769D002EB6149142131896D1EA6DAC9D87A0'},333713
13
+ 343DE61A-9D6F-228B-41A4-5390CA4DBF42,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/77AC25913C11621E836468FCAB26A6E75F26E050'},333331
14
+ 31B0CC41-3B94-A3CF-14B3-477B249AAF1D,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/559BFC97EC7DCE714B5BCA34DE9D6E9E4723DFB9'},333332
15
+ 44B5A404-C5A2-0942-4D17-5FE2E65FA37C,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/36431A40DC5CA0D945956738365C65FCD41F72A2'},333589
16
+ 17C36DC5-B509-5409-95D2-CB42B804C986,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/6F2F84E8E5586BADE43C1F6A5D66A71644B85D75'},333333
17
+ C458CDC4-5BBD-A48C-6A60-D1FDF322CB09,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/33CA4A200BAF6D0AA410E059BC87ED67B5E74329'},333591
18
+ D9E62DE4-5381-1EBD-A7B2-30AE10AA200F,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/B15B185E17A829FD96F17C81E4842FABC0A6648D'},333335
19
+ C9297375-F295-3B1F-8754-05DEABAF6705,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/5F50610873D27F5131FEBB5E6B5AC9221872A3BD'},333714
20
+ D544C22C-61A9-3CB9-2861-64AEB8ECF952,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/B18C575F801CE5A97206C89BDE540D516407CB00'},333715
21
+ 7466F8F9-8CA8-6619-44A8-8F0DADABAE09,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/701C68657986327243990CF47E9DCF6510177E52'},333595
22
+ 512BD6FE-602A-DADB-8D92-7AE9101296BD,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/6D3AED773A3693D60D0AFCD96B21C705725F731F'},333716
23
+ F6CAADEE-7B7A-D834-ABC7-A69FCBF06574,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/8E96638A6FE2C3E4063E6FBD30CD6BC6E3D42FEE'},333717
24
+ 2182F1CD-690C-1011-DB30-035F91AAFC14,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/70BF62F1865C6F7EEE66E5D1EF56834734395DB2'},333598
25
+ 6BF8AE5E-F3E6-1761-5A83-3FA75ADB03CA,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/86C05B80D6195F03E8123996937A5A8F3FCC25EB'},333718
26
+ 1A80C693-D0F2-418F-5A65-983175D992DC,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/C0BF6BD2D6A5267089C36CCAEC2963FA5E481CF0'},333719
27
+ CF39311C-2C8E-E702-1484-829E28969D17,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/271986106F7838B3C82314646D2EA22E556D208E'},333601
28
+ 7A47E2C9-32B9-0F26-A636-6FE31EA1DAD6,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/12A2BA44D907525068E155A52F13CF964F4003F5'},333603
29
+ A84C42A4-1282-5AD6-0D5E-921C9E05A32C,{'file': '/data/data/org.mozilla.fennec_firefox_dev/shared_files'},362801
30
+ 81F7E43E-1BCA-6D06-ECAB-F1F199534E66,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/AAA30C3DC290FC9FF24BF19629A4BA72240F2BB5'},362419
31
+ 111AFAA0-2B05-9D6E-976D-88A291DCEC6E,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/9E1886F1BA7B0CCE6BFE005FCF3B255099AB9844'},333634
32
+ E08C2DF8-B62A-2599-B3CA-7FEC28B4EB83,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/2A168F68142EADE6A0713B8C0A82E3C221FC9976'},362352
33
+ 00000000-0000-0000-0000-0000002AC72E,{'subject': 'None org.mozilla.fennec_firefox_dev'},282354
34
+ 464FFA1A-5D2A-F148-EA59-719B9CCE813F,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/9F18D771ADFED1D2821963AB176D1A514A909C66'},333555
35
+ 5FFCD166-6A82-252B-3981-903EBB82D2FF,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/C89BBF8F560B91AB6451CF2C9AABD0C4D5A25FF1'},333556
36
+ 1ECB57DD-D98F-9321-DDB0-6D6F4F29B75F,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/CFAC09F7F2C7C9F8882577A0A445FAFB70A1011E'},333557
37
+ 071B1B17-2DEC-5D3D-928B-D1745B022463,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/8F01177F116FC52347C400FC49178863E507285D'},333559
38
+ 43FB2679-7B90-E0FF-734A-7AB56AFB7B86,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/1FC24FA80E86FE8B804D8568310931F3755120A5'},333562
39
+ C6987BB1-E66A-8756-A732-BC51FB64D3E7,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/BE96464491D24E5AB39D1B0A3897E247A6498F8F'},333564
40
+ A453E17C-CD5D-435A-8897-1B84CFF8D62C,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/4597B488556E6B607D95D91F7C2DD26A1FA7D4B4'},336125
41
+ 2F743104-5866-58A3-2267-6C98C5916CFE,{'file': '/data/data/org.mozilla.fennec_firefox_dev/cache/nz9885vc.default/cache2/entries/8E971B752520EC6EACE16E05504739B16FB0165C'},333566
@@ -0,0 +1 @@
1
+ E20F7C55-319D-4AF5-BC62-11317B9DEC3C,{'netflow': '128.55.12.67:61082->135.84.161.202:80'},52170