Block list is cleared on update? #334
-
I noticed that my santa block lists were not in effect a month or so ago. So, I wrote a script to add them back. I just updated to the latest release and ran the script and it reported my items were not blocked and blocked them. Is this a known issue or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
pmarkowsky
Apr 1, 2025
Replies: 1 comment 4 replies
-
Could you describe more about what your script is doing? Also could you elaborate on what you mean by your Santa block lists? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok so looking at your script this line
sudo santactl rule --block --path "$app" --message "$app"
will create a SHA256 (BINARY) rule for the bundle.This means that any time the binary is updated e.g. as part of an OS update your rule will no longer match as the SHA256 value will have changed. If you just want to block all versions you should try blocking on a more stable identifier like Signing ID.
You can do this by adding the
--signingid
flag to your line above e.g.sudo santactl rule --block --signingid --path "$app" --message "$app"