Abstract

Security teams often need to review large numbers of alerts, so language models may offer a way to help analysts make sense of security logs. This study tested how a locally run model, Qwen3:4b, classified benign and malicious log samples and whether misleading text inside a log could affect its decisions.

The experiment used 110 synthetic, labeled samples: 52 benign and 58 malicious. I compared a basic prompt with a prompt that included security operations guidance. The basic prompt achieved 86.36% accuracy, while the SOC-aware prompt achieved 85.45%. Both had 100% precision on this dataset, but they missed 15 and 16 malicious samples, respectively. I then added misleading text to 30 malicious samples. The model classified all 30 as benign under both the basic and defensive prompts. Of those, 24 had been correctly identified as malicious before the text was added.

These results point to a possible risk when models analyze attacker-influenced log text. However, the study used one model, a small synthetic dataset, and no length-matched neutral-text control. The findings therefore apply only to this tested setup. They support keeping human analysts involved and treating model output as assistance, not as the sole basis for dismissing an alert.

Faculty Advisor/Mentor

Ralph Watson-Quartey

Document Type

Paper

Disciplines

Artificial Intelligence and Robotics | Cybersecurity | Programming Languages and Compilers

DOI

10.25776/fs9x-kd65

Publication Date

12-2-2026

Upload File

wf_yes

Share

COinS
 

Evaluating a Local Language Model for SOC Security Log Triage: Classification Performance and Adversarial Log Injection

Security teams often need to review large numbers of alerts, so language models may offer a way to help analysts make sense of security logs. This study tested how a locally run model, Qwen3:4b, classified benign and malicious log samples and whether misleading text inside a log could affect its decisions.

The experiment used 110 synthetic, labeled samples: 52 benign and 58 malicious. I compared a basic prompt with a prompt that included security operations guidance. The basic prompt achieved 86.36% accuracy, while the SOC-aware prompt achieved 85.45%. Both had 100% precision on this dataset, but they missed 15 and 16 malicious samples, respectively. I then added misleading text to 30 malicious samples. The model classified all 30 as benign under both the basic and defensive prompts. Of those, 24 had been correctly identified as malicious before the text was added.

These results point to a possible risk when models analyze attacker-influenced log text. However, the study used one model, a small synthetic dataset, and no length-matched neutral-text control. The findings therefore apply only to this tested setup. They support keeping human analysts involved and treating model output as assistance, not as the sole basis for dismissing an alert.