Back to results

Linux Suspicious GCC Invocation Building Init Shared Object

The following analytic detects compiler usage with flags commonly used to create shared libraries that auto-run initialization functions, which are often associated with local privilege escalation exploits.

Detection logic

Detection requirements

Platform
ContainersLinuxmacOSPREWindows

The rule states no platform. This is derived from the 4 ATT&CK techniques it maps to.

Log source category
sysmon_for_linux_eventid_1

Known benign triggers

  • Legitimate developers may use these GCC flags when building shared libraries that require initialization functions. Filter based on known development environments and trusted users.

Detections can measure how the public catalogue is used — which detections people look for, and which pages bring them here. It sets a cookie that recognises this browser for 180 days. It is never linked to an account and never follows you to other sites. Privacy notice