Setuid Bit Set via chmodedit

An adversary may add the setuid bit to a file or directory in order to run a file with the privileges of the owning user. An adversary can take advantage of this to either do a shell escape or exploit a vulnerability in an application with the setuid bit to get code running in a different user’s context. Additionally, adversaries can use this mechanism on their own malware to make sure they’re able to execute in elevated contexts in the future.

Rule type: query

Rule indices:

  • auditbeat-*

Severity: low

Risk score: 21

Runs every: 5 minutes

Searches indices from: now-6m (Date Math format, see also Additional look-back time)

Maximum signals per execution: 33


  • Elastic
  • Linux

Version: 1

Added (Elastic Stack release): 7.8.0

Rule queryedit

event.action:(executed OR process_started) AND AND
process.args:(u+s OR /4[0-9]{3}/) AND NOT

Threat mappingedit