Hi,
We would like to create custom analyses for firewall monitoring. When users turn off the firewall (System Preferences → Network → Firewall), Jamf Protect should trigger an alert. We have already built a custom analysis for the firewall:
$event.type IN {0, 3, 4} AND$event.path == "/Library/Preferences/com.apple.alf.plist" AND$event.file.contentsAsDict.globalstate != "1"
After the update to macOS 15 Sequoia, the plist file no longer exists, which is why we are trying to create a new custom analysis:
$event.type IN {0, 3, 4} AND$event.path == "/Library/Preferences/com.apple.networkextension.plist"
$event.file.contentsAsDict.com.apple.ALF.ApplicationFirewall.Enabled != "1"
I searched on GitHub https://github.com/jamf/jamfprotect but couldn’t find any relevant information.
The plist file contains several dictionaries, but we are only interested in the firewall section. Unfortunately, the analysis does not work. We suspect that the issue lies in the syntax. Could you please help us build this custom analysis correctly or provide tips on how we can check it via the terminal?
Thank you in advance!