Dev.to Security 🔐 Cybersecurity 👁 0 📖 5 min read

What Is Running in the Background of Your Mac?

Why I built Daemon Inspector, what it found on my own Mac, and what the App Sandbox taught me along the way. What Is Running in the Background of Your Mac?Every Mac runs dozens of programs you never started. Some belong

Why I built Daemon Inspector, what it found on my own Mac, and what the App Sandbox taught me along the way.

What Is Running in the Background of Your Mac?Every Mac runs dozens of programs you never started. Some belong to macOS. Many were installed by apps: updaters, sync helpers, license checkers, menu bar companions. And some belong to apps you deleted months ago.

macOS calls them launch agents, launch daemons and login items. They live in a handful of folders, start at login or at startup, restart themselves when they quit, and wake up on schedules. They are not visible in the Dock. Most people never see them.

System Settings does show a list under General → Login Items & Extensions. But it rarely tells you what an entry actually is, who installed it, or whether the program behind it still exists. You get a name and a switch.

I wanted answers instead of switches. So I built Daemon Inspector.

Three questions for every itemDaemon Inspector lists every agent, daemon and login item on your Mac and answers three questions for each one:

Who owns it? It matches every item to its app, to Homebrew, or to the developer who signed its program. Items are grouped by owner, so you see at a glance which app installed what.

Is it still needed? If the program an item would start no longer exists, it is a leftover: the app was deleted, but its background service stayed behind. Leftovers are listed first.

How do I remove it properly? Every item comes with a plain-language explanation and the cleanest way to turn it off. Usually that is a setting in the owning app or in Login Items. Where Terminal is needed, Daemon Inspector shows the exact commands to copy.

On top sits one status color: green when every item has a known, signed owner, orange when there are leftovers or unknown owners, red when an unsigned or leftover item is running right now.

What it found on my own MacI expected my Mac to be clean. It mostly was, but not entirely.

Two empty files from 2024. Google had left two launch agent files in my Library, 181 bytes each, containing nothing. They start nothing and do no harm, but they had been sitting there for two and a half years. Daemon Inspector now lists such files in a separate group called Empty files, so they never trigger a false alarm. I deleted them, and the list updated on its own while the app was open.

An “unknown” daemon that turned out to be mine. One item, running with root privileges, showed up as Unknown owner. It was my own server software, installed by hand into /usr/local, years ago. No app, no bundle, nothing to match it to. Daemon Inspector now recognizes programs signed with your own developer certificate and marks them as yours.

MySQL without an app. The MySQL daemon has no app in /Applications. Its owner is a preference pane in System Settings. Daemon Inspector now looks there too.

None of this was dramatic. But each item raised the same question: what is this, and do I still need it? That question is exactly what the app is for.

Read-only on purposeDaemon Inspector does not stop, disable or delete anything by itself. It explains and leads you to the right place. That was a deliberate decision.

Background services belong to other apps. Removing one behind an app’s back can break updates, licenses or sync. The right way is usually to turn off the option in the app itself. When that is not possible, you should know exactly what a command does before you run it. So Daemon Inspector shows the commands instead of hiding them behind a button.

What the App Sandbox taught meApps in the Mac App Store run in the App Sandbox. That is good for users, and it shaped this app in ways I did not expect.

Full Disk Access is not a master key. Your own launch agents live in ~/Library/LaunchAgents. The sandbox blocks that folder. I assumed Full Disk Access would open it, as it does for other protected folders. It does not. With Full Disk Access granted, the app could read the Trash, but ~/Library/LaunchAgents stayed closed. The sandbox and privacy permissions are two separate locks, and Full Disk Access only opens one of them. This makes sense: that folder is where malware likes to install itself.

launchd knows more than the file system. macOS's service manager, launchd, will tell a sandboxed app about every agent it has loaded: the file, the program, its arguments, whether it is running. So the App Store version lists your loaded agents without any permission at all.

One click for the rest. Agents that are not loaded, such as leftovers, are invisible to launchd. For those, the app asks you once to choose the folder in a standard Open dialog. macOS treats your choice as permission, and Daemon Inspector remembers it.

The result: no scary permission prompts, nothing to switch on in System Settings, and complete results after one click.

Small things that matter- Status dots, not switches. Green for running, blue for loaded and waiting, an empty circle for not loaded, a grey minus for disabled. They show state; they are deliberately not controls.

  • New items. While the app is open, it watches the relevant folders. Anything that appears gets a New badge.
  • Apple’s own services are hidden by default and can be shown in a separate group. They never affect the status color.
  • Private by design. No account, no network connections, no analytics. Everything stays on your Mac. Who it is forIf you have ever wondered why your fan spins up at login, what that unfamiliar entry in Login Items is, or whether an app you deleted really is gone, Daemon Inspector gives you the answer in plain language.

If you are a developer, it is a quick way to see what Homebrew, your tools and your own experiments have left running.

Daemon Inspector is one of the Beaver Tools: small, focused Mac utilities that do one thing well. It requires macOS 13 or later and is coming to the Mac App Store.

C. Ahrweiler builds Mac utilities under the Beaver Tools name.

More Beaver Tools: *https://beavertools.app/
Download im AppStore: *https://apps.apple.com/us/app/daemon-inspector/id6823531484

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.