Where do you put the block threshold?

A toy block classifier with the made-up curves from the chart below. Slide the cutoff and watch which mistake it trades for which.

Threshold0.50
precision-
recall-
F1-

Precision is the share of blocked commands that were really malicious. Recall is the share of malicious commands that got blocked. Raise the threshold and fewer benign commands get blocked, but more malicious ones slip through.