Linux Syslog Buffer Overflow Exploit Attempt Keywords

Alerts on Linux syslog entries containing known buffer overflow/stack-smashing attempt keyword patterns.

FreeReviewedSigma · High · v3
Product
linux
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2017-03-01
Updated
2026-07-31
title: Linux Syslog Buffer Overflow Exploit Attempt Keywords
id: 5377fc6a-829a-48d4-9366-7362c373ca22
status: test
description: This rule flags Linux log entries that contain specific text patterns associated with buffer overflow or stack-based code execution attempts. Such strings can indicate exploitation attempts like stack smashing or known exploit artifacts, which may precede memory corruption leading to process compromise. It relies on keyword matches in Unix system log sources to surface these patterns.
references:
  - https://github.com/ossec/ossec-hids/blob/1ecffb1b884607cb12e619f9ab3c04f530801083/etc/rules/attack_rules.xml
  - https://docs.oracle.com/cd/E19683-01/816-4883/6mb2joatd/index.html
  - https://www.giac.org/paper/gcih/266/review-ftp-protocol-cyber-defense-initiative/102802
  - https://blu.org/mhonarc/discuss/2001/04/msg00285.php
  - https://rapid7.com/blog/post/2019/02/19/stack-based-buffer-overflow-attacks-what-you-need-to-know/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/builtin/lnx_buffer_overflows.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2017-03-01
modified: 2025-03-17
tags:
  - attack.t1068
  - attack.privilege-escalation
logsource:
  product: linux
detection:
  keywords:
    - attempt to execute code on stack by
    - 0bin0sh1
    - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    - stack smashing detected
  condition: keywords
falsepositives:
  - Base64 encoded data in log entries
level: high
license: DRL-1.1
related:
  - id: 18b042f0-2ecd-4b6e-9f8d-aa7a7e7de781
    type: derived