Automated Representation Learning for Threat Detection

20 concepts19 papers1 proposal

Traditional cybersecurity relies on a cat-and-mouse game of signature generation. When a new threat emerges—whether it is a piece of malware, a deceptive advertisement, or a malicious network intrusion—human experts analyze the threat, identify its defining characteristics, and write a rule to catch it.

However, this expert-driven approach faces a severe scalability bottleneck. Manually engineering features or writing static detection rules (such as YARA rules or specific hashtag blacklists) is labor-intensive, requires rare domain expertise, and struggles to keep pace with the sheer volume of modern threats. More importantly, static features are fragile. As shown by Sanossian et al. in Malware classification with recurrent networks, attackers can easily evade hand-crafted rules by shuffling code or modifying superficial file characteristics without altering the underlying malicious behavior.

To break this bottleneck, a major research direction has emerged: automated representation learning. Instead of relying on human experts to define what a threat looks like, researchers are leveraging deep learning to automatically extract invariant, structural features directly from raw data modalities.

Treating Security Data as Raw Modalities

The core insight of this paradigm shift is that security artifacts—executables, execution logs, network traffic, and social media interactions—can be treated as standard data modalities like text, images, or graphs. By mapping raw security data into these formats, deep learning architectures can autonomously discover complex, non-linear relationships that humans cannot easily formalize.

Security as Language

One approach treats sequential security data as a natural language. For instance, Sanossian et al. treat sequences of system API calls as a language, using Recurrent Neural Networks (RNNs) to capture the behavioral syntax of an executing program. Similarly, in Neurlux: Dynamic Malware Analysis Without Feature Engineering, Jindal et al. treat raw dynamic analysis sandbox reports as text documents, using a combination of Convolutional Neural Networks (CNNs) and Bidirectional LSTMs (BiLSTMs) to parse behavior without manual feature extraction. For web security, Li et al. demonstrate in An LSTM based cross-site scripting attack detection scheme for Cloud Computing environments that attention-based memory networks can independently identify the characteristics of obfuscated Cross-Site Scripting (XSS) payloads by treating the scripts as raw text sequences.

Security as Vision

Another powerful abstraction is visualizing binary files or threats as images. In Lightweight Classification of IoT Malware based on Image Recognition, Vargas et al. map raw malware binaries directly to grayscale images, allowing a shallow CNN to classify threats based on visual patterns without any code disassembly. This visual approach generalizes across domains: Huang et al. combine call metadata with a CNN that visually analyzes ad screenshots in Data-Driven and Deep Learning Methodology for Deceptive Advertising and Phone Scams Detection. To build a more comprehensive defense, Meng et al. introduce LensDroid in Detecting Android Malware by Visualizing App Behaviors from Multiple Complementary Views, which fuses multiple visual perspectives—including API relationships and raw binary layouts—into an attention-based network that resists performance degradation over time.

Security as Graphs and Raw Bytes

When threats are defined by coordination rather than isolated files, data can be modeled as a network graph. In BotRGCN: Twitter Bot Detection with Relational Graph Convolutional Networks, Feng et al. use Relational Graph Convolutional Networks (R-GCNs) to model user relationships, bypassing static feature sets to catch bots trying to hide within human communities.

Ultimately, models can learn from the lowest level of abstraction possible: raw bytes. As demonstrated by Krcál et al. in Deep Convolutional Malware Classifiers Can Learn from Raw Executables and Labels Only, a deep CNN trained on millions of raw executables can match the performance of traditional systems built on years of human engineering.

Why It Works: Learning Latent Invariants

To understand why automated representation learning outperforms manual feature engineering, we must look at how deep learning models organize information internally.

Human-engineered rules usually look for explicit, literal indicators—such as a specific string, a particular domain name, or a exact sequence of instructions. Attackers easily defeat these rules via obfuscation, packing, or inserting "dead code" (instructions that execute but do nothing) to disrupt the expected sequence.

Deep learning models bypass this vulnerability by mapping raw inputs into a continuous, lower-dimensional latent space. During training, the network learns to ignore superficial surface-level variations and instead clusters inputs based on their underlying semantic behavior.

[Raw Binary Data] ───► [Deep Neural Network] ───► [Latent Space Representation]
                                                            │
       ┌────────────────────────────────────────────────────┴───────────────────────────────────────────────────┐
       ▼                                                                                                        ▼
[Benign Cluster]                                                                                       [Malicious Cluster]
(Shared structural geometry,                                                                           (Shared behavioral geometry,
 invariant to code shuffling)                                                                          invariant to obfuscation)

This mechanism is made explicit in works like Maximal Divergence Sequential Autoencoder for Binary Software Vulnerability Detection. Here, Le et al. design an autoencoder that mathematically forces the latent representations of "vulnerable" and "clean" code to be as far apart as possible. Because the model is forced to maximize this divergence, it learns to identify the core geometric structure of a vulnerability rather than relying on superficial code patterns.

Similarly, by incorporating attention mechanisms—as seen in the ACNN framework proposed by Ma et al. in How to Make Attention Mechanisms More Practical in Malware Classification—the network learns exactly which parts of a raw byte sequence or assembly instruction stream map to malicious intent, effectively ignoring the noise injected by attackers to evade detection.

Harmonizing Human Labor and Automation

Moving away from manual feature engineering does not mean discarding human expertise entirely; rather, it changes how that expertise is utilized.

Instead of forcing analysts to manually update rules for every new threat variant, automated systems can ingest existing human knowledge and scale it. For example, in Living off the Analyst: Harvesting Features from Yara Rules for Malware Detection, Lu et al. present a method that automatically breaks down complex, human-written YARA rules into smaller "sub-signatures" to use as high-performing machine learning features. This approach turns manual analyst labor into automated model boosts without increasing the operational workload.

Furthermore, removing the manual feature engineering bottleneck democratizes threat analysis. As noted by Le et al. in Deep learning at the shallow end: Malware classification for non-domain experts, systems that process raw data in seconds without requiring reverse-engineering skills allow general forensic investigators to handle massive backlogs of suspicious files independently. By shifting the burden of feature extraction from human experts to deep learning architectures, the security industry can build defenses that are scalable, resilient to adversarial evasion, and adaptable to an evolving threat landscape.

Key Foundational Work

Malware classification with recurrent networks (2015) — contributed 1 concept elements to this direction.
Data-Driven and Deep Learning Methodology for Deceptive Advertising and Phone Scams Detection (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_manual_feature_engineering_bottleneck_ma_ffa4eda0,
  title = {manual feature engineering bottleneck (manual feature engineering overhead)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/manual-feature-engineering-bottleneck-manual-feature-engineering-overhead/rdr_ffa4eda0f9d54f8ab8b754383ee2174a},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_manual_feature_engineering_bottleneck_ma_ffa4eda0_v1,
  title = {manual feature engineering bottleneck (manual feature engineering overhead)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/manual-feature-engineering-bottleneck-manual-feature-engineering-overhead/rdr_ffa4eda0f9d54f8ab8b754383ee2174a/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake