Analyzer.sh mostly relies on heuristic rules: regular expressions, pattern matchers and decoders that try to identify an exploit condition or an indicator of malicious activity within a specific file. This is very helpful as when one matches, there is clear deterministic reasoning around why the rule flagged, and you can validate by reviewing where it triggered whether it is indeed an exploit condition, or a false positive.
However, it is also quite prone to false negatives, and can sometimes not identify an exploit that intentionally works around a specific rule. As a result, Analyzer.sh augments these detections with two gradient-boosted decision tree machine learning models: Nyx, which runs on every PDF file in the corpus, and Oneiroi, which runs on modern Office files (OOXML).
These classifiers work in conjunction with the heuristic rules. A trigger of the classifier can render a file’s verdict suspicious, but never malicious on its own.
We first rolled out an experimental version of Nyx on May 16th, 2026. It was built on top of 60 simple features of PDF bytes and structure, such as keyword counts (/JavaScript, /OpenAction, /XFA, /Launch), filter counts, structural counts, body entropy and bytes after %%EOF. While it had some value, it also became one of our most common false positives – mostly on heavily scripted government forms, including tax forms. These can look a lot like exploit PDFs structurally: they contain JavaScript, form fields and streams. It was built on a combination of 290,962 malicious PDF files from our existing malware corpus, and 36,241 benign PDFs collected from the public internet.
The model worked reasonably well, but was mostly trained on 2008-2013 generation memory corruption exploits, rather than the malicious documents you’d see most of today: phishing and search engine poisoning.
In the new Nyx classifiers, rolled out in October and early November, we addressed this gap by essentially splitting the classifier into two modules:
- Nyx (CVEs and memory corruption): trained on 45,976 CVE-exploiting PDF files and 40,282 benign files. It expanded our feature set to 251 instead of 60, adding more information on document structure, text, link counts and popular-domain lookups.
- Nyx (all untrustworthy files): trained on 71,940 untrustworthy PDF files, including CVE/exploits, phishing and search engine poisoning; and 51,153 clean files. This model came first, in October. It uses 271 features: the same 251 as the CVE-focused Nyx, plus 20 form-script features that describe how JavaScript and XFA forms are built. The CVE-focused Nyx, released in November, re-uses its features without the form-script ones. At the tail-end, we identified some false positives in form/script features, and trained further on those to reduce false positives.
In addition, we also rolled out a classifier for the modern OOXML Office format. This classifier, called Oneiroi, was trained on 1,728 CVE-exploiting files, against 4,405 malicious Office files that do not exploit a CVE and about 23,400 benign Office files collected from the public internet, part of which we kept aside for testing.
For all three models, we downloaded benign files from the Common Crawl dataset. Common Crawl cuts off very large files (at 5 MB in the crawls we used), so the newer models leave those truncated files out of training.
For false positive assessment, we also crawled a smaller number of benign files from a variety of web sites.
During tests, the new Nyx models were a solid upgrade from the original: the original Nyx hit a 0.25% false positive rate on a set of 30,866 confirmed-benign PDF files we collected from the internet. It did particularly worse on government PDFs with large JavaScript presence. In our production use from May through October, it was also the largest driver of false positives. And, due to its training data, it did not catch malicious PDFs that did not exploit (mostly) memory corruption vulnerabilities.
The upgraded Nyx (all untrustworthy files) does a lot better: out of 30,861 hard benign PDFs, at a cut-off of 0.5, it flags 0.12% false positives, and at a cut-off of 0.9, it had a 0.04% false positive rate. The highest driver of false positives originally were AcroForm JavaScript, encryption, digital signatures and extremely small files with missing metadata, but we addressed these by improving coverage in our training data of these features. At this point, tiny PDFs with missing data, and files encrypted with an empty password are the dominant remaining false positives during our testing.
Nyx CVE had a 0.026% false positive rate, tested on 30,963 benign PDFs at a cut-off of 0.9. Its strongest signal is a low “text characters per page”, as exploit PDFs tend to contain less text than regular PDF files, so we expect near-empty or image-only benign PDFs to be its most likely false positives.
For the Oneiroi model, performance is less strong given the lower volume of training data we used, so this is an area where we’ll continue to experiment. Having less overall CVE information, we also selected less features: information such as embedded objects, relationships, compression ratios are dominant. Our first attempt at Oneiroi had 2 false positives out of 4,459 benign test files, at a cut-off of 0.9. The drivers behind these false positives were link-heavy business workbooks, and simple VBA tutorials that exercised a lot of features. We corrected this by adding about five thousand training files to our benign data set. A re-test showed 0 false positives out of 5,941 test files; but we believe this data set is too insignificant to really rely on the model yet.
We’re using these models in the Analyzer in a few ways: first of all they are an additional contributor to the overall score. As mentioned before, they don’t convict as malicious by themselves, but they provide additional context to the other heuristics. Second, they are a driver behind investigations of malicious, but otherwise unidentified files. When a file is received that is otherwise not triggering any indications of malicious behavior, but it is identified by the classifiers, it is a trigger to increase an internal value which we call the “unknown exploit score” (UES). Files with a high UES are flagged for manual review and are looked at independently to see if we may be missing coverage for an existing CVE, or perhaps even a new zero-day.