How objective-see/lulu works
LuLu is a macOS firewall. Its principal workflow is to observe a network-flow event, evaluate it against rules and policy, and present an alert when user action is needed; the user’s choice can then become a rule managed through the app. The tree also shows preferences, profiles, lists, onboarding, updates, and self-defense capabilities. Most implementation files are headers and were not sampled, so only the shown component responsibilities are represented; dashed links indicate unverified runtime wiring.
Main entry points: Rules.h Rule evaluation · FilterDataProvider.h Network flow filter · main.h Daemon startup · RulesWindowController.h Rule management
Components 27
User application
- App coordination
LuLu/App/AppDelegate.h - Flow alerts
LuLu/App/AlertWindowController.h - Rule management
LuLu/App/RulesWindowController.h - Add or edit rule
LuLu/App/AddRuleWindowController.h - Preferences and profiles
LuLu/App/PrefsWindowController.h - Setup onboarding
LuLu/App/WelcomeWindowController.h - Update prompts
LuLu/App/UpdateWindowController.h - Daemon client
LuLu/App/XPCDaemonClient.h
Firewall daemon
- Daemon startup
LuLu/Extension/main.h - Network flow filter
LuLu/Extension/FilterDataProvider.h - Rule evaluation
LuLu/Extension/Rules.h - Process inspection
LuLu/Extension/procInfo.h - Binary metadata
LuLu/Extension/Binary.h - Alert dispatch
LuLu/Extension/Alerts.h - User alert client
LuLu/Extension/XPCUserClient.h - Daemon XPC service
LuLu/Extension/XPCListener.h - Block and allow lists
LuLu/Extension/BlockOrAllowList.h - Gray list
LuLu/Extension/GrayList.h - Profile policy
LuLu/Extension/Profiles.h - Daemon preferences
LuLu/Extension/Preferences.h - Self defense
LuLu/Extension/SelfDefense.h
Shared domain
- Rule model
LuLu/Shared/Rule.h - Shared configuration
LuLu/Shared/consts.h - System utilities
LuLu/Shared/utilities.h
Other components
- Mac user
- Rules and preferences
- Network flow
Connections 26
- Network flow → Network flow filter: signals flow
- Daemon startup → Network flow filter: initializes
- Network flow filter → Rule evaluation: checks policy
- Network flow filter → Process inspection: inspects process
- Process inspection → Binary metadata: builds metadata
- Rule evaluation → Rule model: evaluates rules
- Network flow filter → Alert dispatch: requests alert
- Alert dispatch → User alert client: dispatches alert
- User alert client → Flow alerts: delivers alert
- Mac user → Flow alerts: responds to prompt
- Flow alerts → Daemon client: submits choice
- App coordination → Daemon client: uses daemon client
- Daemon client → Daemon XPC service: communicates
- Mac user → Rule management: manages rules
- Rule management → Add or edit rule: opens editor
LuLu/App/RulesWindowController.h - Mac user → Preferences and profiles: configures firewall
- Mac user → Setup onboarding: completes setup
- Mac user → Update prompts: reviews update
- Rule evaluation → Block and allow lists: consults lists
- Rule evaluation → Gray list: consults gray list
- Rule evaluation → Profile policy: uses profile policy
- Daemon startup → Daemon preferences: loads preferences
- Daemon startup → Self defense: manages protection
- Rule management → Rule model: displays rules
LuLu/App/RulesWindowController.h - Rule evaluation → Rules and preferences: persists policy
- Daemon preferences → Rules and preferences: persists settings