text code block:file where host.os.type == "macos" and event.action == "open" and file.path like "/Library/Preferences/SystemConfiguration/preferences.plist" and (process.name like~ ("python*", "osascript", "perl", "ruby", "node") or process.executable like ("/Users/Shared/*", "/tmp/*", "/private/tmp/*", "/var/tmp/*", "/private/var/tmp/*")) and not Effective_process.executable like "/Applications/Docker.app/Contents/MacOS/Docker"
Install detection rules in Elastic Security
Detect System and Network Configuration Check in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).