Systems¶
PIDSMaker reimplements state-of-the-art intrusion detection systems as YAML configs in config/: provenance-based IDSs (PIDSs), which detect attacks in the system events of hosts, and network IDSs (NIDSs), which detect them in the communications between hosts. All of them are described with the same components, so they can be compared side by side, any component can be swapped into any other system, and most systems run on both kinds of datasets.
Supported systems¶
| System | Data | Config | Venue | Paper |
|---|---|---|---|---|
| Velox | Provenance | velox |
USENIX Security 2025 | Paper |
| Orthrus | Provenance | orthrus |
USENIX Security 2025 | Paper |
| OCR-APT | Provenance | ocrapt |
ACM CCS 2025 | Paper |
| R-Caid | Provenance | rcaid |
IEEE S&P 2024 | Paper |
| Flash | Provenance | flash |
IEEE S&P 2024 | Paper |
| Kairos | Provenance | kairos |
IEEE S&P 2024 | Paper |
| MAGIC | Provenance | magic |
USENIX Security 2024 | Paper |
| NodLink | Provenance | nodlink |
NDSS 2024 | Paper |
| ProGrapher | Provenance | prographer |
USENIX Security 2023 | Paper |
| ThreaTrace | Provenance | threatrace |
IEEE TIFS 2022 | Paper |
| ShadeWatcher | Provenance | shadewatcher |
IEEE S&P 2022 | Paper |
| LARES | Network | lares |
ACSAC 2026 | Paper |
| Argus | Network | argus |
IEEE S&P 2024 | Paper |
| Jbeil | Network | jbeil |
IEEE S&P 2024 | Paper |
| Euler | Network | euler |
NDSS 2022 | Paper |
| E-GraphSAGE | Network | egraphsage |
IEEE/IFIP NOMS 2022 | Paper |
| Anomal-E | Network | anomal_e |
Knowledge-Based Systems 2022 | Paper |
Run any of them with its config name and a dataset:
All systems are self-supervised and trained on benign data only. PIDSs flag the entities (processes, files, netflows) whose activity deviates from what they learned; NIDSs flag the authentications or flows that their model finds unlikely. E-GraphSAGE, originally a supervised edge classifier, is trained here with self-supervised link prediction like the other NIDSs. The header of each config describes the system and its differences with the original implementation.
Components at a glance¶
How each system is configured at the main stages of the pipeline:
| System | Featurization | Encoder | Objective | Evaluation | Threshold |
|---|---|---|---|---|---|
| Velox | word2vec |
none (linear layer) |
predict_edge_type |
node_evaluation |
max_val_loss |
| Orthrus | word2vec |
tgn, graph_attention |
predict_edge_type |
node_evaluation |
max_val_loss + k-means |
| Kairos | hierarchical_hashing |
graph_attention, tgn |
predict_edge_type |
node_evaluation |
max_val_loss |
| MAGIC | only_type |
magic_gat |
reconstruct_masked_features, predict_masked_struct |
node_evaluation |
magic |
| Flash | flash |
sage |
predict_node_type |
node_evaluation |
flash |
| R-Caid | doc2vec |
rcaid_gat |
predict_process_tag |
node_evaluation |
max_val_loss |
| NodLink | fasttext |
sum_aggregation |
reconstruct_node_features |
node_evaluation |
nodlink |
| ProGrapher | graph2vec |
textrcnn |
predict_snapshot_embedding |
tw_evaluation (or node_evaluation) |
max_val_loss |
| ThreaTrace | only_type |
sage |
predict_node_type |
node_evaluation |
threatrace |
| OCR-APT | ocrapt_features |
rgcn_per_type |
one_class |
node_evaluation |
ocrapt |
| ShadeWatcher | word2vec |
shadewatcher (TransR + attentive GNN) |
predict_edge_contrastive (bpr loss) |
node_evaluation |
max_val_loss |
| Euler | only_type |
gcn, node_id_embedding, snapshot_gru |
predict_edge_contrastive (uniform negatives) |
edge_evaluation |
max_val_loss |
| Argus | only_type |
argus, node_id_embedding, snapshot_gru |
predict_edge_contrastive (ap loss) |
edge_evaluation |
max_val_loss |
| Jbeil | only_type |
graph_attention, tgn |
predict_edge_contrastive (tgn negatives) |
edge_evaluation |
max_val_loss |
| LARES | only_type |
lares |
autoencode_edge_embeddings |
host_two_stage_evaluation |
k-means on the top host scores |
| E-GraphSAGE | only_ones |
egraphsage |
predict_edge_contrastive (uniform negatives) |
edge_evaluation |
max_val_loss |
| Anomal-E | only_ones |
egraphsage |
deep_graph_infomax (PCA scores) |
edge_evaluation |
max_val_loss |
The two families mostly differ at both ends of the pipeline. Most PIDSs embed the textual labels of entities (file paths, command lines, IP addresses), and all are evaluated per node, against the attack nodes of the ground truth. Hosts have no such labels, only a name or an ID, so NIDSs learn an embedding of the identity of each host (node_id_embedding, lares) and rely on the attributes of events; they are evaluated per edge, against the malicious events labelled in the dataset.
Other stages:
- Transformation. R-Caid builds its pseudo-graph (
rcaid_pseudo_graph: the provenance graph plus an edge from each file or socket root to each of its descendants, at most 16 roots per node) and NodLink makes graphs undirected (undirected). Euler, Argus, LARES, E-GraphSAGE and Anomal-E merge the repeated edges of each time window (merge_edges); Argus and LARES aggregate the attributes of the merged events (merge_edges.aggregate_attributes). ShadeWatcher merges them per edge type (merge_edges.per_edge_type), so that each (entity, event type, entity) triple of its knowledge graph is unique. - Edge features. Velox, Orthrus and OCR-APT use the edge type; Kairos and Jbeil the TGN messages (
msg,time_encoding), which hold the types of the past edges in Kairos (predict_edge_type.edge_type_in_msg); Argus, LARES, E-GraphSAGE and Anomal-E the event attributes (edge_attrs). - Epoch selection. PIDSs report the epoch with the best ADP (
best_adp, the default). Euler, Jbeil and E-GraphSAGE select it without labels on validation link prediction (best_val_score), Argus and Anomal-E keep the last epoch (last_epoch), and LARES selects the best MCC, as its code. See Choosing the reported epoch. - Triage. OCR-APT extracts anomalous subgraphs from its detections (
triage.used_method: ocrapt_subgraph). - Knowledge graph. ShadeWatcher sees each edge both as an interaction between two entities, scored by the inner product of their embeddings, and as a triple of a knowledge graph whose relation is the edge type. Its encoder adds the loss of TransR on these triples to the BPR loss of the interactions (
predict_edge_contrastivewithloss: bpr). Entities are embedded from their features (word2vecand type) rather than one embedding per entity, as test entities are mostly unseen during training: addnode_id_embeddingto the encoders to also learn the identity of each entity. - Snapshot-level detection (ProGrapher). ProGrapher embeds each time window as a whole with graph2vec (Weisfeiler-Lehman rooted subgraphs of node and edge types, embedded with doc2vec), and a TextRCNN predicts the embedding of each window from the previous ones (
textrcnn.sequence_length): windows far from their prediction are anomalous. Its node scores rank the entities of each window by its key indicators, the rooted subgraphs that explain the deviation the most, so it is evaluated per window as in the paper (tw_evaluation, the default), or per node to compare its key indicators with the other PIDSs (--evaluation.used_method=node_evaluation, optionally with--training.decoder.predict_snapshot_embedding.top_k=4). Its graph2vec model is trained on the train split only; the paper learns the embeddings of all snapshots, test included (--featurization.training_split=all). Its epoch is selected without labels, on the mean prediction error of the validation windows (best_val_score).
The available methods for each column are listed in the reference: Featurization, Encoders, Objectives and Tasks.
Running across families¶
Datasets are described by a schema (node types, edge types and event attributes) rather than by assumptions on a particular dataset, so a system written for one family runs on the other:
pidsmaker orthrus LANL # a PIDS on a network dataset
pidsmaker euler CLEARSCOPE_E3 # a NIDS on a provenance dataset
Two differences between the families limit this:
| On provenance datasets | On network datasets | |
|---|---|---|
| PIDSs | All | Velox, Orthrus, Kairos, MAGIC, OCR-APT and ShadeWatcher. Flash and ThreaTrace predict node types (predict_node_type), which needs at least two node types, and R-Caid the executables of processes (predict_process_tag): network datasets only have hosts. NodLink is not tested on network datasets. |
| NIDSs | Euler and Jbeil as is. Argus, LARES, E-GraphSAGE and Anomal-E use event attributes, which provenance datasets don't have: replace them by the edge type with --batching.edge_features=edge_type. |
All |
The combinations of this table are those run by the tests (tests/test_network_datasets.py). A few useful options when moving across families:
--construction.edge_type=logon_typeuses a categorical attribute of the events as edge type, e.g. the logon type of LANL authentications as the class predicted by Velox'spredict_edge_type.--batching.edge_features=edge_type,edge_attrsgives the event attributes (ports, protocols, logon types...) to a PIDS encoder that reads edge features, such as Orthrus.- Systems keep their evaluation: a PIDS on LANL is evaluated per host (
node_evaluation, where the malicious hosts are the endpoints of malicious events), a NIDS on CLEARSCOPE_E3 per event (edge_evaluation, where the malicious events are those between attack nodes, withmalicious_edge_selection: both_nodes). Switch withevaluation.used_method.
Variants¶
veloxorthruswith the GNN replaced by a single linear layer (training.encoder.used_methods: none) and without TGN neighbor sampling (batching.intra_graph_batching.used_methods: edges). It is the deliberately simple system proposed in Bilot et al..pretrained_<system>- The provenance systems, with node features computed by a pretrained encoder such as SPIDER:
pretrained_velox,pretrained_orthrus,pretrained_kairos,pretrained_magic,pretrained_flash,pretrained_nodlinkandpretrained_threatrace. cybergfm- The CyberGFM baseline: BERT pretrained on random walks, then fine-tuned as a detector with link prediction.
--tunedonOPTC_NET- The defaults of the network configs are those of LANL.
--tunedloads the OpTC settings of LARES (30 min windows, α = 5, β = 30) and Argus (6 min snapshots), fromconfig/tuned_baselines/optc_net/.
Data snooping
Some original configs rely on test data: for example, kairos featurizes nodes using all splits, test included (featurization.training_split: all). PIDSMaker keeps the original configs for reproducibility, except orthrus, which is non-snooped by default for fair comparisons: its word2vec model is trained on the training split only (featurization.training_split: train instead of all), and the k-means clustering after thresholding is disabled. The top of config/orthrus.yml lists the overrides that reproduce the original paper. See Bilot et al. for a detailed analysis.
Results and reproducibility¶
The default configs contain the original hyperparameters of each system. To find better ones on a dataset, use hyperparameter tuning. Systems trained with self-supervision are unstable, PIDSs and NIDSs alike: always evaluate them over several runs.
Comparing NIDSs with published results
- The
max_val_lossthreshold yields almost no true positives on the network datasets: AUC and AP are the meaningful metrics. - On
OPTC_NET, link prediction on validation edges is close to perfect, so label-free epoch selection picks a nearly arbitrary epoch: report results over several epochs and runs. - Euler and Argus evaluate OpTC on another preprocessing and labelling (IP addresses as nodes, all the events of compromised hosts malicious), so their published OpTC results are not comparable with
OPTC_NET.
Adding a system¶
Want to add your system? Follow the tutorial to implement it with existing and new components, then open a pull request.