Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

santad: Add signal auth to tamper resistence. #1360

Merged
merged 5 commits into from
Jun 3, 2024
Merged

santad: Add signal auth to tamper resistence. #1360

merged 5 commits into from
Jun 3, 2024

Conversation

russellhancox
Copy link
Contributor

Root users can currently kill the com.google.santa.daemon process. It will be immediately restarted by sysextd but this opens a very brief window where protection is lost. Hooking ES_EVENT_TYPE_AUTH_SIGNAL and blocking all signals to the santad process prevents this and it doesn't interfere with upgrades.

@russellhancox russellhancox added enhancement santad Work related to the Santa Daemon labels May 28, 2024
@mlw
Copy link
Contributor

mlw commented May 30, 2024

#1235

Root users can currently kill the com.google.santa.daemon process. It
will be immediately restarted by sysextd but this opens a very brief
window where protection is lost. Hooking AUTH_SIGNAL and blocking all
signals to the santad process except those sent by launchd lets us block
this without breaking upgrades, reboots, etc.

This leaves `launchctl kill` and friends as an avenue, so we're also
hooking for exec and blocking executions of launchctl that reference
com.google.santa.daemon except in known safe cases.
@russellhancox russellhancox marked this pull request as ready for review May 31, 2024 19:31
@russellhancox russellhancox requested a review from a team as a code owner May 31, 2024 19:31
@russellhancox russellhancox merged commit a42dd6e into google:main Jun 3, 2024
12 checks passed
@russellhancox russellhancox deleted the tamper-kill branch June 3, 2024 17:41
@mlw mlw added this to the 2024.6 milestone Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement santad Work related to the Santa Daemon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants