Download the scorecards and offline verifier
Check the two second-opinion recordings
I wanted to know whether a second local model could catch false alarms while keeping the exact attack flows the first model had flagged. You can check every decision from both recordings with Python 3.12. From the repository root, run this command in PowerShell.
py -3.12 -B tools/verify_flow_second_opinions.py
On a system with Python 3.12 on the path, you can use python3 in place of py -3.12. The verifier reads two bundled CSV files offline. It checks their SHA-256 hashes, applies the rule to each pair of saved verdicts, compares the result with the recorded decision and checks the two sets of attack IDs. It prints the results and the IDs of flows sent to review. You can run it without a Vault, Ollama, model weights or third-party Python packages.
Read the results
| Recording | Attack flows flagged before and after, out of 80 | Benign flows flagged before and after, out of 80 | Second opinions |
|---|---|---|---|
| Muhstik (capture 3-1) | 64 → 64, same IDs | 57 → 52 | 121 |
| Mirai (capture 35-1) | 79 → 79, same IDs | 80 → 80 | 159 |
Only a first-model malicious verdict goes to the second model. If its answer is explicitly benign, the case moves to uncertain for human review. A second answer of malicious or uncertain keeps the original flag. A failed second delivery would also keep the flag. Every requested second opinion in these two recordings completed.
On Muhstik I picked that rule after inspecting answers. The second model called five benign connections benign and was uncertain about two real attacks. Keeping the original flag on uncertainty preserved both detections. For Mirai I fixed the rule before inference and saved each final decision before scoring it. The second model agreed on all 159 flags, including all 80 false alarms. The one attack that the first model marked uncertain stayed uncertain.
Look up a decision
Open the Muhstik rows or Mirai rows. In PowerShell, this lists the five changes on Muhstik. Changing the filename to mirai35.csv returns no changed rows.
Import-Csv flow-study-evidence/muhstik.csv |
Where-Object { $_.parent -ne $_.after_review } |
Select-Object case_id, publisher_label, parent, second, after_review
Each case ID identifies a selected source row, even when two rows produce the same model input. The source offset counts bytes from the start of the original v1 labeled Zeek log. The row hash covers that original line including its line ending. The publisher supplied the benign or malicious label. The saved app reports supplied the two model verdicts. not_requested means the first model did not flag the flow. For Muhstik, after_review is the retrospective rule replay. For Mirai it is the decision saved during the run.
I deliberately sampled 80 benign and 80 malicious flows from each historical recording and kept the labels out of the model requests. These counts describe those samples. In Mirai, all 80 benign flows and nine attack flows shared the same protocol, destination port and connection state (TCP, port 23, S0). You can inspect those fields in the CSV. The model also received other flow and recent-traffic fields. Stratosphere Laboratory, IoT-23 dataset · Original dataset record
Which models produced the answers?
I used the Qwen3.5-4B text backbone and trained rank-16 QLoRA adapters with alpha 16 and seed 17. The second model continued from the first adapter on examples chosen to improve coverage. Both checkpoints already existed before the second-opinion tests.
| Training detail | First model | Second model |
|---|---|---|
| Training examples | 1,457 | 512 |
| Optimizer updates | 183 | 64 |
| Learning rate | 0.0002 | 0.00002 |
| Saved adapter SHA-256 | 61377b4e49479a7e31335b4f976baf72e74bdc6d96e238d0c397d586c75dee21 |
1c26516e7377985264c8dce50f193b3b293d678f71a897cfccea477e431d6461 |
| Merged F16 GGUF SHA-256 | 2b8c91b674ab9b09a5b2d5c64b27e2d487d600e4424634eb6459d2b6e2160139 |
2d58a99d6ff859ed57249458a3270342937361895989b0f5a6894920edb9dfc6 |
The isolated app used the same flow schema for both F16 exports, Vulkan acceleration, a 16,384-token context, a 640-token response cap, temperature 0, seed 17 and top-k 1. The public files let you reproduce scoring from the saved answers. Generating those answers again requires the research app, its full inputs and the two model exports. The optional reporter in the Windows quickstart serves a different purpose.
Selected and annotated flow records from IoT-23: A labeled dataset with malicious and benign IoT network traffic by Sebastian Garcia, Agustin Parmisano and Maria Jose Erquiaga, Stratosphere Laboratory. Source dataset · CC BY 4.0. The export retains selected fields and labels, omits endpoint identities and adds model verdicts and review decisions.