TL;DR
AppMine is an unsupervised learning framework designed to detect web application vulnerabilities by monitoring system call sequences within Docker containers. By leveraging Long Short-Term Memory (LSTM) networks to capture the temporal "rhythm" of legitimate application behavior, it can identify sophisticated exploits—including the one behind the infamous Equifax breach—without ever needing to see attack data during training.
What Problem Does This Paper Address?
Web applications are the frontline of modern cyberattacks, yet protecting them has become increasingly complex as they move into containerized environments like Docker. Traditional defenses (like anti-virus or web proxies) often struggle with the ephemeral and isolated nature of containers.
Furthermore, most existing security tools rely on "signatures" of known attacks or heavy-duty static/dynamic analysis, both of which struggle to catch "zero-day" (unknown) vulnerabilities. The authors tackle the challenge of building a lightweight, host-based intrusion detection system that can distinguish between normal user activity and malicious exploits in real-time, specifically for containerized workloads.
Methods
The authors introduce AppMine, which operates on a simple but powerful premise: an application's "normal" behavior manifests as a predictable sequence of system calls.
- Data Collection: They use
Sysdigto capture system calls directly from the Docker container. - Feature Engineering: System calls are grouped into frequency vectors over 1-second windows. To make the model more sensitive, they apply TF-IDF (Term Frequency-Inverse Document Frequency) weighting. This ensures that rare, potentially critical system calls carry more weight than common, "noisy" ones.
- The Model: While they tested traditional models like Principal Component Analysis (PCA) and One-Class SVM (OCSVM), the star of the show is a Long Short-Term Memory (LSTM) recurrent neural network. The LSTM is trained exclusively on legitimate traffic to predict the next sequence of system calls. If the actual observed calls deviate significantly from the prediction, an anomaly is flagged.
- Unsupervised Learning: Crucially, AppMine doesn't need "attack" data to learn. It only needs to see what a healthy application looks like.
Datasets
Because high-quality, labeled system call data for modern web apps is scarce, the authors built their own testbed:
- Applications: Apache Struts (two variants), Drupal, WordPress (with three different plugins), and ProFTPD.
- Legitimate Workload: They developed a tool called Interactor using Selenium. Unlike basic web crawlers, Interactor simulates human-like behavior (clicking, form filling, random delays) to create a realistic baseline.
- Attack Data: They recreated seven real-world exploits using the Metasploit Framework, including the CVE-2017-5638 exploit used in the Equifax breach.
- Scale: They collected between 300 and 360 minutes of data for each application/vulnerability pair.
Key Insights and Ideas
- Temporal Context is King: The biggest "aha moment" is that while a single second of an attack might look like normal activity, the sequence of events over 15 seconds is highly distinct. This is why the LSTM (which remembers sequences) vastly outperformed PCA and OCSVM (which look at snapshots).
- The Power of TF-IDF in Security: Borrowing TF-IDF from the world of search engines was a clever move. It allowed the model to ignore the "background noise" of common system calls and focus on the specific, rare calls that often characterize an exploit.
- Containerization as a Security Feature: By monitoring at the container level, the authors reduced "noise" from the host OS and other applications, allowing them to create much cleaner behavioral "profiles" for specific enterprise apps.
Key Results
AppMine's LSTM model consistently outperformed traditional anomaly detection methods:
- Apache Struts (Equifax Exploit): The LSTM achieved an AUC of 0.97, compared to 0.81 for PCA and 0.83 for OCSVM.
- General Performance: Across all tested applications and 15 different attack scripts, the LSTM maintained an AUC between 0.75 and 0.97.
- Detection Capability: The model was able to detect post-exploitation activities—like an attacker gathering network info or dumping password hashes—with very low false-positive rates.
Limitations and Future Work
The authors acknowledge several areas for growth:
- Non-Deterministic Behavior: Some applications have highly variable behavior that is difficult to model perfectly, which can lead to false positives.
- Production Scaling: The current evaluation was performed in a controlled testbed. The authors note that testing in "wild" cloud environments with thousands of concurrent users is a necessary next step.
- Overhead: While designed to be lightweight, full-blown system call monitoring does introduce some performance and privacy considerations that need to be managed in a production setting.
Summary updated