File and Directory Discovery - MacOS

 Original Source: [Sigma source]
Title: File and Directory Discovery - MacOS
Status: test
Description:Detects usage of system utilities to discover files and directories
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1083/T1083.md
Author: Daniil Yugoslavskiy, oscd.community
Date: 2020-10-19
modified:2022-11-25
Tags:
  • -'attack.discovery'
  • -'attack.t1083'
Logsource:
  • category: process_creation
  • product: macos
Detection:
  select_file_with_asterisk:
    Image: '/usr/bin/file'
    CommandLine|re: '(.){200,}'
  select_recursive_ls:
    Image: '/bin/ls'
    CommandLine|contains: '-R'
  select_find_execution:
    Image: '/usr/bin/find'
  select_mdfind_execution:
    Image: '/usr/bin/mdfind'
  select_tree_execution|endswith:
    Image: '/tree'
  condition:1 of select*
Falsepositives:
  -Legitimate activities
Level: informational