LogPr\'ecis: Unleashing Language Models for Automated Shell Log Analysis
Boffa, Matteo, Valentim, Rodolfo Vieira, Vassio, Luca, Giordano, Danilo, Drago, Idilio, Mellia, Marco, Houidi, Zied Ben
–arXiv.org Artificial Intelligence
The collection of security-related logs holds the key to understanding attack behaviors and diagnosing vulnerabilities. Still, their analysis remains a daunting challenge. Recently, Language Models (LMs) have demonstrated unmatched potential in understanding natural and programming languages. The question arises whether and how LMs could be also useful for security experts since their logs contain intrinsically confused and obfuscated information. In this paper, we systematically study how to benefit from the state-of-the-art in LM to automatically analyze text-like Unix shell attack logs. We present a thorough design methodology that leads to LogPr\'ecis. It receives as input raw shell sessions and automatically identifies and assigns the attacker tactic to each portion of the session, i.e., unveiling the sequence of the attacker's goals. We demonstrate LogPr\'ecis capability to support the analysis of two large datasets containing about 400,000 unique Unix shell attacks. LogPr\'ecis reduces them into about 3,000 fingerprints, each grouping sessions with the same sequence of tactics. The abstraction it provides lets the analyst better understand attacks, identify fingerprints, detect novelty, link similar attacks, and track families and mutations. Overall, LogPr\'ecis, released as open source, paves the way for better and more responsive defense against cyberattacks.
arXiv.org Artificial Intelligence
Jul-17-2023
- Country:
- Europe > France (0.04)
- Asia > China (0.04)
- North America > United States
- New York (0.04)
- Massachusetts > Suffolk County
- Boston (0.04)
- Genre:
- Research Report (0.64)
- Instructional Material (0.46)
- Industry:
- Information Technology > Security & Privacy (1.00)
- Government > Military
- Cyberwarfare (0.34)
- Technology:
- Information Technology
- Software (1.00)
- Security & Privacy (1.00)
- Data Science > Data Mining (1.00)
- Artificial Intelligence
- Natural Language
- Large Language Model (0.68)
- Text Processing (0.68)
- Machine Learning > Neural Networks
- Deep Learning (0.68)
- Natural Language
- Information Technology