Transformers for End-to-End InfoSec Tasks: A Feasibility Study
Not on the map. Why?
Abstract (arXiv)
In this paper, we assess the viability of transformer models in end-to-end InfoSec settings, in which no intermediate feature representations or processing steps occur outside the model. We implement transformer models for two distinct InfoSec data formats - specifically URLs and PE files - in a novel end-to-end approach, and explore a variety of architectural designs, training regimes, and experimental settings to determine the ingredients necessary for performant detection models. We show that in contrast to conventional transformers trained on more standard NLP-related tasks, our URL transformer model requires a different training approach to reach high performance levels. Specifically, we show that 1) pre-training on a massive corpus of unlabeled URL data for an auto-regressive task does not readily transfer to binary classification of malicious or benign URLs, but 2) that using an auxiliary auto-regressive loss improves performance when training from scratch. We introduce a method for mixed objective optimization, which dynamically balances contributions from both loss terms so that neither one of them dominates. We show that this method yields quantitative evaluation metrics comparable to that of several top-performing benchmark classifiers. Unlike URLs, binary executables contain longer and more distributed sequences of information-rich bytes. To accommodate such lengthy byte sequences, we introduce additional context length into the transformer by providing its self-attention layers with an adaptive span similar to Sukhbaatar et al. We demonstrate that this approach performs comparably to well-established malware detection models on benchmark PE file datasets, but also point out the need for further exploration into model improvements in scalability and compute efficiency.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 5 Dec 2022.
Builds on
32 of 51 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,501
- 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,222
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Reformer: The Efficient Transformercited by 1,668
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 372
20 more
- 2018EMBER: An Open Dataset for Training Static PE Malware Machine Learning Modelscited by 165
- 2019Adaptive Attention Span in Transformerscited by 149
- 2017Malware Detection by Eating a Whole EXEcited by 115
- 2020Fast and Three-rious: Speeding Up Weak Supervision with Triplet Methodscited by 98
- 2016MOON: A Mixed Objective Optimization Network for the Recognition of Facial Attributescited by 34
- 2018URLNet: Learning a URL Representation with Deep Learning for Malicious URL Detectioncited by 34
- 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
- 2019Explaining Vulnerabilities of Deep Learning to Adversarial Malware Binariescited by 31
- 2021Are Pre-trained Convolutions Better than Pre-trained Transformers?cited by 27
- 2017eXpose: A Character-Level Convolutional Neural Network with Embeddings For Detecting Malicious URLs, File Paths and Registry Keyscited by 18
- 2017Malicious URL Detection using Machine Learning: A Surveycited by 15
- 2019Activation Analysis of a Byte-Based Deep Neural Network for Malware Classificationcited by 14
- 2019ALOHA: Auxiliary Loss Optimization for Hypothesis Augmentationcited by 9
- 2019KiloGrams: Very Large N-Grams for Malware Classificationcited by 9
- 2016A Survey of Stealth Malware: Attacks, Mitigation Measures, and Steps Toward Autonomous Open World Solutionscited by 8
- 2019Mockingbird: Defending Against Deep-Learning-Based Website Fingerprinting Attacks with Adversarial Tracescited by 8
- 2018MEADE: Towards a Malicious Email Attachment Detection Enginecited by 2
- 2019Automatic Malware Description via Attribute Tagging and Similarity Embeddingcited by 2
- 2016Automated Big Text Security Classificationcited by 1
- 2017Automated U.S Diplomatic Cables Security Classification: Topic Model Pruning vs. Classification Based on Clusterscited by 1
Built on by
Citing papers per year: 2023: 3; 2024: 0; 2025: 1; 2026: 2.
6 papers.
- 2023Recasting Self-Attention with Holographic Reduced Representationscited by 14
- 2023Nebula: Self-Attention for Dynamic Malware Analysiscited by 8
- 2023Web Content Filtering through knowledge distillation of Large Language Modelscited by 7
- 2025Zipf-Gramming: Scaling Byte N-Grams Up to Production Sized Malware Corporacited by 2
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failurecited by 2
- 2026Large Byte Model: Teaching Language Models About Compiled Codecited by 0
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failure27 Jun 2026
- 2026Large Byte Model: Teaching Language Models About Compiled Code1 Jun 2026
- 2025Zipf-Gramming: Scaling Byte N-Grams Up to Production Sized Malware Corpora17 Nov 2025
- 2023Nebula: Self-Attention for Dynamic Malware Analysis19 Sep 2023
- 2023Recasting Self-Attention with Holographic Reduced Representations31 May 2023
- 2023Web Content Filtering through knowledge distillation of Large Language Models8 May 2023