Suspicious BPFtrace Unsafe Option Use (via process_creation)

This rule detects the use of the unsafe bpftrace option

SigmamediumLinuxv1
sigma
title: Suspicious BPFtrace Unsafe Option Use (via process_creation)
id: 55219b8a-b157-5f5c-b88b-7488bc1a4340
status: stable
description: This rule detects the use of the unsafe bpftrace option
references:
    - https://attack.mitre.org/techniques/T1059/004/
    - https://embracethered.com/blog/posts/2021/offensive-bpf-bpftrace/
    - https://bpftrace.org/
author: Huntrule Team
date: 2026-07-13
tags:
    - attack.execution
    - attack.t1059.004
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: 'bpftrace'
        CommandLine|contains: '--unsafe'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.