Skip to content

FAQ & troubleshooting

Answers to the questions that come up most often. Can't find yours? Ask on Discord or open an issue.

Installation

Do I need a database server?

No. PIDSMaker installs with pip, and reads its datasets from Parquet files with DuckDB, in the Python process.

pip refuses to install PIDSMaker, or can't find torch==2.1.2.

Check the version of Python: PIDSMaker needs Python 3.9 to 3.11, as PyTorch 2.1.2 has no wheels for Python 3.12 and later. Create the environment with conda create -n pids python=3.11.

Which datasets should I start with?

For provenance-based detection, CADETS_E3, THEIA_E3 and CLEARSCOPE_E3. They are small (0.5 to 1.3 GB), quick to process, and the most used in papers. For network detection, LANL. E5 datasets and TRACE_E3 are much larger: see the sizes in the installation guide.

A dataset download stopped halfway.

Run the same pidsmaker download command again: downloads resume where they stopped. A run whose dataset is incomplete also downloads the missing files.

A run doesn't find a dataset I downloaded, or downloads it again.

The run looks for datasets in another folder than the one you downloaded them to. Both use --datasets_dir, else $PIDSMAKER_DATASETS_DIR, else ~/.cache/pidsmaker/datasets: set PIDSMAKER_DATASETS_DIR once, e.g. in your ~/.bashrc, rather than passing --datasets_dir to some commands only. See Where files are stored.

The embedding visualizer fails with address already in use on port 5000.

Another program uses this port, e.g. AirPlay Receiver on macOS. Start the embedding visualizer on another port with --port.

A run is killed (Killed, exit code 137) on a laptop.

The run ran out of memory: runs on provenance datasets can take more than 15 GB of RAM (see macOS). Graph construction uses less memory with fewer processes, e.g. --num_workers=2.

Running experiments

I don't have a GPU.

PIDSMaker falls back to the CPU automatically, with a warning. You can also force it with --cpu. Expect much longer training times on large datasets.

A system fails on a dataset of the other family.
  • Flash and ThreaTrace predict node types (predict_node_type), which needs at least two node types, and R-Caid predicts the executables of processes (predict_process_tag): they can't run on network datasets, which only have hosts.
  • Argus, LARES, E-GraphSAGE and Anomal-E use the attributes of events, which provenance datasets don't have: add --batching.edge_features=edge_type.

See Running across families.

I changed the code, but the task is skipped.

Tasks are cached under a hash of their arguments, not of the code. After changing the code of a task, re-run it with --force_restart=TASK (e.g. --force_restart=training). See Forcing a restart.

Where are the outputs of my runs?

In the artifact folder: $PIDSMAKER_ARTIFACT_DIR if it is set, else /home/artifacts/ if this folder exists, else artifacts/ in the folder where you started the run. Use --artifact_dir to change it for a run. See Where files are stored.

My disk is full.

Each run caches the outputs of every task, which can exceed 15 GB per run on E3 datasets. Point PIDSMAKER_ARTIFACT_DIR to a large disk, and delete the folders of old experiments. Runs started with --restart_from_scratch delete their outputs automatically at the end.

Can I run several experiments in parallel?

Yes. With simple architectures, 3 to 4 runs fit on a single A100 GPU without major overhead. Start each of them with --background, which runs it detached from the terminal, with its own log file. Avoid starting several runs with the same early tasks at the same time: they would write to the same folder. See Caching of tasks.

The GPU runs out of memory.

Reduce the size of the graphs or batches (e.g. construction.time_window_size, or the batching arguments in Batching & sampling), or the embedding sizes (training.node_hid_dim, training.node_out_dim).

I don't want to use Weights & Biases.

Run pidsmaker SYSTEM DATASET without --wandb: metrics are printed in the logs.

Results

I get very different results from one run to the next, or from the papers.

This is expected: self-supervised detectors, PIDSs and NIDSs alike, are unstable, and small changes of seed or hyperparameters change their results a lot. Run each configuration several times with --experiment=run_n_times and report the mean and standard deviation; see Instability. Also check that you use the same ground truth as the paper you compare with.

Which configuration should I use to compare with an existing system?

Mind data snooping: orthrus and velox don't use test data during training, but some other configs keep the original settings of their system, which do. See Systems. For network systems, also read Comparing NIDSs with published results.

Features

predict_edge_supervised complains that attack embeddings are missing.

The attack labels are embedded by the feat_inference task. If it was already run with the same settings (e.g. by pretrained_velox), it is skipped: add --force_restart=feat_inference. See Supervised fine-tuning.

Llama pretrained encoders fail to download.

Llama models are gated on Hugging Face: accept the license on the model page, then run huggingface-cli login where PIDSMaker runs.

The embedding visualizer page doesn't load on localhost.

If 127.0.0.1 works but localhost doesn't, the server listens on IPv4 only while localhost resolves to IPv6. Start it with --host ::. See Embedding visualizer.

Community

How do I cite PIDSMaker?

See Citing PIDSMaker on the home page.

How can I add my system to PIDSMaker?

Follow the tutorial, then the contribution guide. We are happy to help on Discord.