Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

santad: Add signal auth to tamper resistence. #1360

Merged
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

@russellhancox russellhancox force-pushed the tamper-kill branch 4 times, most recently from 0a264bf to aff9bd0 Compare May 30, 2024 19:08
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement santad Work related to the Santa Daemon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants