Detections · What MacVigil reads to decide

Source code and build tools: git hooks, build scripts and registry tokens on a Mac

A developer’s Mac holds valuable things: source code, signing keys, and tokens that can publish packages other people install. Malware aimed at developers hides in the places build tools run on their own, such as git hooks and Xcode build phases, and looks for the tokens that publish code.

Updated November 25, 2026 · 13 detections in this category

In short

Names of the tools that build and publish software: repositories and their hooks, build projects, compilers, package registries, test runners. Code editors and build tools carry many.

MacVigil has 13 detections in this category. It reads the file to find them and never runs it.

What it is

Build tools run code as part of their normal work. Git runs hooks on commits and checkouts, Xcode runs build phase scripts, package managers run install and test scripts, and code editors activate extensions when a project opens. Each is a place where a project or a package can carry a command that runs on your Mac without you launching anything.

Developers also keep tokens for code hosts, package registries and cloud services in configuration files and environment variables. In the wrong hands, those tokens push code to a repository or publish a poisoned version of a package, which then reaches everyone who installs it.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it. In scripts and project files it notes the names of build tools: repository hooks, build phase settings, compilers, package registries, publication commands, test runners and the variables that hold build tokens. Each is recorded for information as a lexical indicator: it establishes no execution or use on its own, and none of them makes a file dangerous.

Where a project declares a command a build tool will run, such as an Xcode build phase script, that script is also read as a script in its own right, and what it does is judged under the other categories.

When it is normal

This is the everyday vocabulary of software development. Code editors, Xcode, package managers, continuous integration scripts and countless open source projects contain all of these words. Finding them in a developer tool or a project folder is expected; finding them in a document reader or a game is not.

How to check your Mac

Know what a file does before you open it

MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.

Download free for Mac

More: all detection categories · what MacVigil detects · the blog