Menu

1 / 2

Endpoint Security on macOS without the entitlement: eslogger and Swift

DEV Community: swift·Mike Vu·11 days ago
#PSecMFkI
#devtoswift#devto#dev#eslogger#events
Long article (1579 words) — no AI summary yet.
Reading 0:00
15s threshold

Endpoint Security is the macOS API that EDR products use to see every process launch, login and permission change. Using it directly requires an entitlement that Apple grants case by case. This post shows how MacSentry , my open-source Mac monitor, gets the same events through /usr/bin/eslogger instead, and what it took to make that fast and quiet: reading JSON Lines without parsing most of them, matching rules against the right program, and not alerting on itself.

eslogger gives you Endpoint Security events without the entitlement

A native Endpoint Security client needs the com.apple.developer.endpoint-security.client entitlement, and Apple's documentation says plainly that you must request it. For a personal tool built from source, that is not realistic.

macOS ships eslogger , a command-line Endpoint Security client that prints events as JSON Lines. MacSentry's helper, macsentry-es , is a root LaunchDaemon that starts eslogger with a list of event names and reads its standard output.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.