Skip to content
Search
paperApril 2026Unreviewed

Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMs

He Yang Yuan, Xin Wang, Kundi Yao, An Ran Chen, Zishuo Ding, Zhenhao Li

Abstract

Logging code plays an important role in software systems by recording key events and behaviors, which are essential for debugging and monitoring. However, insecure logging practices can inadvertently expose sensitive information or enable attacks such as log injection, posing serious threats to system security and privacy. Prior research has examined general defects in logging code, but systematic analysis of logging code security issues remains limited, particularly in leveraging LLMs for detec

Categories

Framework mappings

OWASP Top 10 for LLM Applications
  • LLM02Sensitive Information Disclosure
MITRE ATLAS
  • AML.T0024.000Infer Training Data Membership

Suggested from the entry's categories.

Cite

@misc{yuan2026secure,
  title = {{Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMs}},
  author = {He Yang Yuan and Xin Wang and Kundi Yao and An Ran Chen and Zishuo Ding and Zhenhao Li},
  year = {2026},
  month = apr,
  eprint = {2604.20211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.20211}
}