Detectionmediumtest

Suspicious Execution via macOS Script Editor

Detects when the macOS Script Editor utility spawns an unusual child process.

Open in Detection LabConvert ruleBuild Package
Tim Rauch, Elastic SecurityCreated 2022-10-21Updated 2022-12-286e4dcdd1-e48b-42f7-b2d8-3b413fc58cb4macos
Log Source
macOSProcess Creation
ProductmacOS← raw: macos
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_parent:
        ParentImage|endswith: '/Script Editor'
    selection_img:
        - Image|endswith:
              - '/curl'
              - '/bash'
              - '/sh'
              - '/zsh'
              - '/dash'
              - '/fish'
              - '/osascript'
              - '/mktemp'
              - '/chmod'
              - '/php'
              - '/nohup'
              - '/openssl'
              - '/plutil'
              - '/PlistBuddy'
              - '/xattr'
              - '/sqlite'
              - '/funzip'
              - '/popen'
        - Image|contains:
              - 'python'
              - 'perl'
    condition: all of selection_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
6e4dcdd1-e48b-42f7-b2d8-3b413fc58cb4
Status
test
Level
medium
Type
Detection
Created
2022-10-21
Modified
2022-12-28
Path
rules/macos/process_creation/proc_creation_macos_susp_execution_macos_script_editor.yml
Raw Tags
attack.defense-impairmentattack.t1566attack.t1566.002attack.initial-accessattack.t1059attack.t1059.002attack.t1204attack.t1204.001attack.executionattack.persistenceattack.t1553
View on GitHub