Demystifying Behavior-Based Malware Detection at Endpoints. Kaya, Y., Chen, Y., Saha, S., Pierazzi, F., Cavallaro, L., Wagner, D., & Dumitras, T. In May, 2024. arXiv:2405.06124 [cs.CR] version: 1
Paper doi abstract bibtex Machine learning is widely used for malware detection in practice. Prior behavior-based detectors most commonly rely on traces of programs executed in controlled sandboxes. However, sandbox traces are unavailable to the last line of defense offered by security vendors: malware detection at endpoints. A detector at endpoints consumes the traces of programs running on real-world hosts, as sandbox analysis might introduce intolerable delays. Despite their success in the sandboxes, research hints at potential challenges for ML methods at endpoints, e.g., highly variable malware behaviors. Nonetheless, the impact of these challenges on existing approaches and how their excellent sandbox performance translates to the endpoint scenario remain unquantified. We present the first measurement study of the performance of ML-based malware detectors at real-world endpoints. Leveraging a dataset of sandbox traces and a dataset of in-the-wild program traces; we evaluate two scenarios where the endpoint detector was trained on (i) sandbox traces (convenient and accessible); and (ii) endpoint traces (less accessible due to needing to collect telemetry data). This allows us to identify a wide gap between prior methods' sandbox-based detection performance–over 90%–and endpoint performances–below 20% and 50% in (i) and (ii), respectively. We pinpoint and characterize the challenges contributing to this gap, such as label noise, behavior variability, or sandbox evasion. To close this gap, we propose that yield a relative improvement of 5-30% over the baselines. Our evidence suggests that applying detectors trained on sandbox data to endpoint detection – scenario (i) – is challenging. The most promising direction is training detectors on endpoint data – scenario (ii) – which marks a departure from widespread practice. We implement a leaderboard for realistic detector evaluations to promote research.
@inproceedings{kaya_demystifying_2024,
title = {Demystifying {Behavior}-{Based} {Malware} {Detection} at {Endpoints}},
url = {http://arxiv.org/abs/2405.06124},
doi = {10.48550/arXiv.2405.06124},
abstract = {Machine learning is widely used for malware detection in practice. Prior behavior-based detectors most commonly rely on traces of programs executed in controlled sandboxes. However, sandbox traces are unavailable to the last line of defense offered by security vendors: malware detection at endpoints. A detector at endpoints consumes the traces of programs running on real-world hosts, as sandbox analysis might introduce intolerable delays. Despite their success in the sandboxes, research hints at potential challenges for ML methods at endpoints, e.g., highly variable malware behaviors. Nonetheless, the impact of these challenges on existing approaches and how their excellent sandbox performance translates to the endpoint scenario remain unquantified. We present the first measurement study of the performance of ML-based malware detectors at real-world endpoints. Leveraging a dataset of sandbox traces and a dataset of in-the-wild program traces; we evaluate two scenarios where the endpoint detector was trained on (i) sandbox traces (convenient and accessible); and (ii) endpoint traces (less accessible due to needing to collect telemetry data). This allows us to identify a wide gap between prior methods' sandbox-based detection performance--over 90\%--and endpoint performances--below 20\% and 50\% in (i) and (ii), respectively. We pinpoint and characterize the challenges contributing to this gap, such as label noise, behavior variability, or sandbox evasion. To close this gap, we propose that yield a relative improvement of 5-30\% over the baselines. Our evidence suggests that applying detectors trained on sandbox data to endpoint detection -- scenario (i) -- is challenging. The most promising direction is training detectors on endpoint data -- scenario (ii) -- which marks a departure from widespread practice. We implement a leaderboard for realistic detector evaluations to promote research.},
urldate = {2026-05-14},
author = {Kaya, Yigitcan and Chen, Yizheng and Saha, Shoumik and Pierazzi, Fabio and Cavallaro, Lorenzo and Wagner, David and Dumitras, Tudor},
month = may,
year = {2024},
note = {arXiv:2405.06124 [cs.CR]
version: 1},
keywords = {Computer Science - Cryptography and Security},
}
Downloads: 0
{"_id":"aKdJSTDESJqXxXN7v","bibbaseid":"kaya-chen-saha-pierazzi-cavallaro-wagner-dumitras-demystifyingbehaviorbasedmalwaredetectionatendpoints-2024","author_short":["Kaya, Y.","Chen, Y.","Saha, S.","Pierazzi, F.","Cavallaro, L.","Wagner, D.","Dumitras, T."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Demystifying Behavior-Based Malware Detection at Endpoints","url":"http://arxiv.org/abs/2405.06124","doi":"10.48550/arXiv.2405.06124","abstract":"Machine learning is widely used for malware detection in practice. Prior behavior-based detectors most commonly rely on traces of programs executed in controlled sandboxes. However, sandbox traces are unavailable to the last line of defense offered by security vendors: malware detection at endpoints. A detector at endpoints consumes the traces of programs running on real-world hosts, as sandbox analysis might introduce intolerable delays. Despite their success in the sandboxes, research hints at potential challenges for ML methods at endpoints, e.g., highly variable malware behaviors. Nonetheless, the impact of these challenges on existing approaches and how their excellent sandbox performance translates to the endpoint scenario remain unquantified. We present the first measurement study of the performance of ML-based malware detectors at real-world endpoints. Leveraging a dataset of sandbox traces and a dataset of in-the-wild program traces; we evaluate two scenarios where the endpoint detector was trained on (i) sandbox traces (convenient and accessible); and (ii) endpoint traces (less accessible due to needing to collect telemetry data). This allows us to identify a wide gap between prior methods' sandbox-based detection performance–over 90%–and endpoint performances–below 20% and 50% in (i) and (ii), respectively. We pinpoint and characterize the challenges contributing to this gap, such as label noise, behavior variability, or sandbox evasion. To close this gap, we propose that yield a relative improvement of 5-30% over the baselines. Our evidence suggests that applying detectors trained on sandbox data to endpoint detection – scenario (i) – is challenging. The most promising direction is training detectors on endpoint data – scenario (ii) – which marks a departure from widespread practice. We implement a leaderboard for realistic detector evaluations to promote research.","urldate":"2026-05-14","author":[{"propositions":[],"lastnames":["Kaya"],"firstnames":["Yigitcan"],"suffixes":[]},{"propositions":[],"lastnames":["Chen"],"firstnames":["Yizheng"],"suffixes":[]},{"propositions":[],"lastnames":["Saha"],"firstnames":["Shoumik"],"suffixes":[]},{"propositions":[],"lastnames":["Pierazzi"],"firstnames":["Fabio"],"suffixes":[]},{"propositions":[],"lastnames":["Cavallaro"],"firstnames":["Lorenzo"],"suffixes":[]},{"propositions":[],"lastnames":["Wagner"],"firstnames":["David"],"suffixes":[]},{"propositions":[],"lastnames":["Dumitras"],"firstnames":["Tudor"],"suffixes":[]}],"month":"May","year":"2024","note":"arXiv:2405.06124 [cs.CR] version: 1","keywords":"Computer Science - Cryptography and Security","bibtex":"@inproceedings{kaya_demystifying_2024,\n\ttitle = {Demystifying {Behavior}-{Based} {Malware} {Detection} at {Endpoints}},\n\turl = {http://arxiv.org/abs/2405.06124},\n\tdoi = {10.48550/arXiv.2405.06124},\n\tabstract = {Machine learning is widely used for malware detection in practice. Prior behavior-based detectors most commonly rely on traces of programs executed in controlled sandboxes. However, sandbox traces are unavailable to the last line of defense offered by security vendors: malware detection at endpoints. A detector at endpoints consumes the traces of programs running on real-world hosts, as sandbox analysis might introduce intolerable delays. Despite their success in the sandboxes, research hints at potential challenges for ML methods at endpoints, e.g., highly variable malware behaviors. Nonetheless, the impact of these challenges on existing approaches and how their excellent sandbox performance translates to the endpoint scenario remain unquantified. We present the first measurement study of the performance of ML-based malware detectors at real-world endpoints. Leveraging a dataset of sandbox traces and a dataset of in-the-wild program traces; we evaluate two scenarios where the endpoint detector was trained on (i) sandbox traces (convenient and accessible); and (ii) endpoint traces (less accessible due to needing to collect telemetry data). This allows us to identify a wide gap between prior methods' sandbox-based detection performance--over 90\\%--and endpoint performances--below 20\\% and 50\\% in (i) and (ii), respectively. We pinpoint and characterize the challenges contributing to this gap, such as label noise, behavior variability, or sandbox evasion. To close this gap, we propose that yield a relative improvement of 5-30\\% over the baselines. Our evidence suggests that applying detectors trained on sandbox data to endpoint detection -- scenario (i) -- is challenging. The most promising direction is training detectors on endpoint data -- scenario (ii) -- which marks a departure from widespread practice. We implement a leaderboard for realistic detector evaluations to promote research.},\n\turldate = {2026-05-14},\n\tauthor = {Kaya, Yigitcan and Chen, Yizheng and Saha, Shoumik and Pierazzi, Fabio and Cavallaro, Lorenzo and Wagner, David and Dumitras, Tudor},\n\tmonth = may,\n\tyear = {2024},\n\tnote = {arXiv:2405.06124 [cs.CR]\nversion: 1},\n\tkeywords = {Computer Science - Cryptography and Security},\n}\n\n\n\n","author_short":["Kaya, Y.","Chen, Y.","Saha, S.","Pierazzi, F.","Cavallaro, L.","Wagner, D.","Dumitras, T."],"key":"kaya_demystifying_2024","id":"kaya_demystifying_2024","bibbaseid":"kaya-chen-saha-pierazzi-cavallaro-wagner-dumitras-demystifyingbehaviorbasedmalwaredetectionatendpoints-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2405.06124"},"keyword":["Computer Science - Cryptography and Security"],"metadata":{"authorlinks":{}},"downloads":0},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero-group/dcambrid/5266609","dataSources":["e4qi3jRmPhPzc7C9a"],"keywords":["computer science - cryptography and security"],"search_terms":["demystifying","behavior","based","malware","detection","endpoints","kaya","chen","saha","pierazzi","cavallaro","wagner","dumitras"],"title":"Demystifying Behavior-Based Malware Detection at Endpoints","year":2024}