IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Deletion of Bash Command Line History

edit

Adversaries may attempt to clear the bash command line history in an attempt to evade detection or forensic investigations.

Rule type: query

Rule indices:

  • auditbeat-*
  • logs-endpoint.events.*

Severity: medium

Risk score: 47

Runs every: 5 minutes

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

Maximum alerts per execution: 100

Tags:

  • Elastic
  • Linux

Version: 2 (version history)

Added (Elastic Stack release): 7.9.0

Last modified (Elastic Stack release): 7.9.1

Rule authors: Elastic

Rule license: Elastic License

Rule query

edit
event.category:process AND event.type:(start or process_started) AND
process.name:rm AND
process.args:/\/(home\/.{1,255}|root)\/\.bash_history/

Threat mapping

edit

Framework: MITRE ATT&CKTM

Rule version history

edit
Version 2 (7.9.1 release)
  • Formatting only