Sigma rule: Buffer Overflow Attempts
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ae253fb6ec19, updated 2025-03-17T00:00:00.000Z.
Rule
- Title
- Buffer Overflow Attempts
- Status
- test
- Level
- high
- Author
- Florian Roth (Nextron Systems)
- Date
- 2017-03-01
- Modified
- 2025-03-17
- File
- rules/linux/builtin/lnx_buffer_overflows.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects buffer overflow attempts in Unix system log files
Log source
- product
- linux
Detection
keywords:
- 'attempt to execute code on stack by'
- '0bin0sh1'
# - 'rpc.statd[\d+]: gethostbyname error for' # it's an expensive regex and produces questionable results
- 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' # this can cause false positives in Base64 encoded data
- 'stack smashing detected'
condition: keywordsFalse positives (as the rule lists them)
- Base64 encoded data in log entries
Tags
- attack.t1068
- attack.privilege-escalation
MITRE ATT&CK ids this rule names
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/
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/builtin/lnx_buffer_overflows.yml
Sources and licences
SigmaHQ
"Buffer Overflow Attempts" by Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/builtin/lnx_buffer_overflows.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Buffer Overflow Attempts",
entity page, dataset version ref-ae253fb6ec19, updated 2025-03-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/18b042f0-2ecd-4b6e-9f8d-aa7a7e7de781 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 18b042f0-2ecd-4b6e-9f8d-aa7a7e7de781, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.