LogPrécis: Unleashing Language Models for Automated Malicious Log Analysis

Matteo Boffa, Rodolfo Vieira Valentim, Luca Vassio, Danilo Giordano, Idilio Drago +2 more
7/17/2023
37 citations
cs.CRcs.AIcs.NI

Official code: SmartData-Polito/logprecis (6 stars, Jupyter Notebook, last commit 2024-08-06).

Abstract

The collection of security-related logs holds the key to understanding attack behaviors and diagnosing vulnerabilities. Still, their analysis remains a daunting challenge.

Show full abstract

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écis. 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écis capability to support the analysis of two large datasets containing about 400,000 unique Unix shell attacks. LogPrécis 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écis, released as open source, paves the way for better and more responsive defense against cyberattacks.

View on arXivView PDF

Code Implementations(1)

LogPrecis

64Jupyter Notebook, PythonJul 2, 20232 years ago

Similar Papers

Cite this paper

@article{boffa2023logprcis,
  title  = {LogPrécis: Unleashing Language Models for Automated Malicious Log Analysis},
  author = {Matteo Boffa and Rodolfo Vieira Valentim and Luca Vassio and Danilo Giordano and Idilio Drago and Marco Mellia and Zied Ben Houidi},
  year   = {2023},
  eprint = {2307.08309},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08309v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.08309.svg)](https://codeofpaper.com/paper/2307.08309)

Discussion