These example rules use the same YAML format as internal/detect/rules/default_rules.yaml.
Use them with:
./logira run --rules ./examples/rules/quickstart.yaml -- <command...>Contains three safe demo rules:
XE900: matches an exec command containinglogira-demo-markerXF900: matches writes to/tmp/logira-demo-note.txtXN900: matches networksendactivity (works reliably for the curl demo)
./logira run --rules ./examples/rules/quickstart.yaml -- \
bash -lc 'echo logira-demo-marker'./logira run --rules ./examples/rules/quickstart.yaml -- \
bash -lc 'echo hi > /tmp/logira-demo-note.txt'Terminal 1:
python3 -m http.server 8000Terminal 2:
./logira run --rules ./examples/rules/quickstart.yaml -- \
bash -lc 'curl -s http://127.0.0.1:8000 >/dev/null'Then inspect detections:
./logira explain last
./logira query last --type detectionNote:
For localhost requests, some kernels/environments may emit send/recv events without a matching connect detection event or destination metadata. The sample rule intentionally matches op: send to stay easy to demo.