1. A method for outputting a dataset based upon anomaly detection, the method comprising: receiving, using a hardware processor, an input dataset; determining, using the hardware processor, an anomaly detection score by comparing n-grams that each represent a sequence of n bytes in the input dataset with training n-grams, wherein the anomaly detection score is indicative of the presence of anomalous n-grams in the input dataset; and causing, using the hardware processor, the input dataset to be outputted based on the anomaly detection score.