OS Architecture Discovery Via Grep

 Original Source: [Sigma source]
Title: OS Architecture Discovery Via Grep
Status: test
Description:Detects the use of grep to identify information about the operating system architecture. Often combined beforehand with the execution of "uname" or "cat /proc/cpuinfo"
References:
  -https://blogs.jpcert.or.jp/en/2023/05/gobrat.html
  -https://jstnk9.github.io/jstnk9/research/GobRAT-Malware/
  -https://www.virustotal.com/gui/file/60bcd645450e4c846238cf0e7226dc40c84c96eba99f6b2cffcd0ab4a391c8b3/detection
  -https://www.virustotal.com/gui/file/3e44c807a25a56f4068b5b8186eee5002eed6f26d665a8b791c472ad154585d1/detection
Author: Joseliyo Sanchez, @Joseliyo_Jstnk
Date: 2023-06-02
modified:None
Tags:
  • -'attack.discovery'
  • -'attack.t1082'
Logsource:
  • category: process_creation
  • product: linux
Detection:
  selection_process:
    Image|endswith: '/grep'
  selection_architecture:
    CommandLine|endswith:
      -'aarch64'
      -'arm'
      -'i386'
      -'i686'
      -'mips'
      -'x86_64'

  condition:all of selection_*
Falsepositives:
  -Unknown
Level: low