summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEnricoGuccii <partyka.003@proton.me>2026-01-10 23:34:59 +0100
committerEnricoGuccii <partyka.003@proton.me>2026-01-10 23:34:59 +0100
commit69770ab1188437f157dc724790f5d5283846891e (patch)
treea94cb220dc25db941fbdb0a8f12015455a3dbd4f /README.md
parent416c7e18c9e465cf044556362321672e5007a52c (diff)
readme update
Diffstat (limited to 'README.md')
-rw-r--r--README.md68
1 files changed, 68 insertions, 0 deletions
diff --git a/README.md b/README.md
index 316a9a2..45cf15f 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,69 @@
# streamml
+
+
+Streamml processes network packets in real-time, feeding them into the Half-Space Trees algorithm (via the River library). When the score exceeds the defined threshold, the application saves an evidentiary PCAP dump containing the relevant packet window.
+
+Note: Currently supports Half-Space Trees, with plans to add more algorithms.
+
+### Prerequisites
+Ensure you have [uv](https://github.com/astral-sh/uv) installed.
+
+### Running
+
+Root privileges are needed for packet sniffing.
+```bash
+sudo uv run -m streamml.app
+```
+
+
+results are stored here:
+LOGS_PATH = XDG_DATA_HOME/streamml/profiles_logs
+PCAP_PATH = XDG_DATA_HOME/streamml/profiles_pcaps
+
+This is how it works:
+
+ +--------------------+
+ | Profile Activation |
+ +---------+----------+
+ |
+ +---------------+---------------+
+ | |
+ +-------v-------+ +-------v---------+
+ | Start Sniffer | | Start Processor |
+ +-------+-------+ +-------+---------+
+ | |
+ +-------v-------+ +-------v-------------+
+ | BPF Filter | | Get Packet from |<------+
+ +-------+-------+ | FIFO | |
+ | +-------+-------------+ |
+ +-------v-------+ | |
+ | Receive Packet| +-------v-------------+ |
+ +-------+-------+ | Add Packet to | |
+ | | Window | |
+ +-------v-------+ +-------+-------------+ |
+ | Add to FIFO | | |
+ +---------------+ +-------v-------------+ No |
+ | End of Window? +-------+
+ +-------+-------------+ |
+ | Yes |
+ +-------v-------------+ |
+ | Calculate Features | |
+ +-------+-------------+ |
+ | |
+ +-------v-------------+ |
+ | HST: score_one + | |
+ | learn_one | |
+ +-------+-------------+ |
+ | |
+ +-------v-------------+ No |
+ | Score > Threshold? +-------+
+ +-------+-------------+
+ | Yes
+ +-------v-------------+
+ | PCAP Save |
+ | Logging |
+ | Alert |
+ +---------------------+
+
+
+![Main Window](images/screen1.png)