Brandon7CC/mac-monitor
Sobre
ProcMon para macOS. Eventos do Endpoint Security (ES), fluxos de rede e verificações do XProtect para pesquisa de segurança e triagem de malware.
Segurança e privacidadeO que você pode fazer
- More on each event: a process's age, the bundle behind a background item, an mmap's protections, what a setmode added, and the driver behind an IOKit open.
- Each Mach-O file or script a process writes, and each script an exec runs, is scanned with the YARA rules in this Mac's XProtect. The close, rename or exec carries the result as yara_scan. Settings > XProtect Rules lists the rules.
- An exec carries where_froms: the URL the script or executable it runs was downloaded from, and the page it was found on.
- File type identification: mmaps, modified closes and renames say what a file is from its content, never its name: a Mach-O, a script, an archive, a disk image. Search event.close.mach_o_type == "MH_EXECUTE" for executables written to disk.
Crescimento medido de estrelas
- em 24 h
- +2
- em 7 dias
- +5
- em 15 dias
- +8
- em 1 mês
- +16
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalWelcome to Mac Monitor

Mac Monitor is an advanced, stand-alone system monitoring tool tailor-made for macOS security research, malware triage, and system troubleshooting. Built on Apple's Endpoint Security (ES) and System Extension APIs, it collects and enriches process, interprocess, memory, XPC and file events, records each process's network flows, and helps you surface only the ones relevant to you.
OBTS v8.0 Presentation
Introducing the Next Generation of Mac Monitor:
Requirements
- Processor: We recommend an
Apple Siliconmachine, butIntelworks too! - System memory:
4GB+is recommended - macOS version:
13.1+(Ventura)
How can I install this thing?
☕️ (Recommended) Homebrew
brew install --cask mac-monitor
📦 Installer package
- Download the latest installer from releases.
Install
- Open
Mac Monitor.appand "Allow" the System Extension when prompted. - Turn on Full Disk Access for
Mac Monitor Security Extensionin System Settings. - 🏎️ Click "Start". Done!
🏢 Managed Macs
- A device management service can allow the Security Extension and Full Disk Access for you with
Profiles/Mac-Monitor.mobileconfig. See Managed Deployment.
Settings > General > Check Now looks for updates.

Install footprint
- App:
/Applications/Mac Monitor.app(com.swiftlydetecting.agent) - Security Extension:
com.swiftlydetecting.agent.securityextension - Command line tool: inside the app, linked to
/usr/local/bin/macmonitorif you install it from Settings - Saved sets:
mutes.jsonandindicators.jsonin/Library/Application Support/com.swiftlydetecting.agent.securityextension/
Uninstall
- From the Finder delete the app and authenticate to remove the System Extension. It's that easy!
- Or run
Mac Monitor.app/Contents/SharedSupport/uninstall.sh, which also removes the saved sets and themacmonitorlink.
Path mutes
Mac Monitor keeps one saved mute set. It survives restarts, applies right away, and is shared with sudo macmonitor.
- Settings > Path Muting shows it. Right click an event to add a mute.
- Import, export or reset it there too. Import reads 2.1 exports, so export your mutes from 2.1 before updating.
- Endpoint Security matches resolved paths: use
/private/tmp/..., not/tmp/....
Command line
macmonitor streams events to a terminal or a pipe while Mac Monitor keeps recording. Install it from Settings > Command Line.
sudo macmonitor stream # Mac Monitor's default events
sudo macmonitor stream exec fork exit # only these events
sudo macmonitor stream all | jq -c . # every event, as JSONL
sudo macmonitor stream exec --for 30s # 30 seconds of execs
sudo macmonitor stream close --every close # every close, not only those of modified files
sudo macmonitor stream new_flow flow_closed # the connections each process opens and closes
sudo macmonitor stream close exec --yara-scan # with what XProtect's rules found in written files and scripts
# an osascript script asking for a password
sudo macmonitor stream exec --target '/osascript$' --predicate '
(event.exec.script_content CONTAINS[c] "display dialog" AND event.exec.script_content CONTAINS[c] "password") OR
(event.exec.command_line CONTAINS[c] "display dialog" AND event.exec.command_line CONTAINS[c] "password")'
sudo macmonitor mute list # the saved mute set
sudo macmonitor indicators list # this Mac's indicators, with each one's severity
sudo macmonitor indicators show 'Property list modified' # every detail of one, by name or ID
sudo macmonitor indicators edit 'Property list modified' --severity medium # change one, keeping its ID
sudo macmonitor stream --indicator 'Property list modified' # events the Security Extension matched to it
macmonitor validate trace.jsonl # check an export against the schema
macmonitor status # versions, what the Security Extension needs, and who is capturing
- Text on a terminal, JSONL when piped: the same records as Export telemetry, an
esloggersuperset. macmonitor help <command>covers every option.

What are some standout features?
- High fidelity ES events, enriched: code signing, quarantine, script content, and the process that really launched each one.
- More on each event: a process's age, the bundle behind a background item, an mmap's protections, what a setmode added, and the driver behind an IOKit open.
- Each Mach-O file or script a process writes, and each script an exec runs, is scanned with the YARA rules in this Mac's XProtect. The close, rename or exec carries the result as
yara_scan. Settings > XProtect Rules lists the rules. - An exec carries
where_froms: the URL the script or executable it runs was downloaded from, and the page it was found on.
- File type identification: mmaps, modified closes and renames say what a file is from its content, never its name: a Mach-O, a script, an archive, a disk image. Search
event.close.mach_o_type == "MH_EXECUTE"for executables written to disk. - Network flows:
new_flowandflow_closedrecords of the connections each process opens and closes, read from the kernel's network statistics, with their hosts, URLs and byte counts.- Settings > General > Enrichment turns flows, URL paths and XProtect scanning on or off.
- Dynamic event subscriptions: change what you subscribe to on the fly to cut down on noise.
- Path muting at the API level:
es_mute_pathandes_mute_path_events, with everyES_MUTE_PATH_TYPE_*.

- Event facts: double click any event for its metadata, script, correlated events, process group and JSON. Right click for filtering, muting and unsubscribing.
- Event correlation: every event a process caused, linked to it, with a summary and indicator cards.
- Process subtree: Event Facts' sidebar shows the process's lineage. Click any process to open its facts.

- Indicators: predicates that point out events worth a look. Change Mac Monitor's own or write your own in Settings > Indicators.
- They run in the Security Extension, so every record and every
macmonitorstream lists what it matched. 48 ship by default, each with a severity and an ATT&CK tactic.
- They run in the Security Extension, so every record and every

- Filtering: hide events by type, process or path without losing them, or drop events while recording.
- Or filter with a predicate in the predicate editor (View > Predicate Editor, ⌥⌘F).

- Export and open traces: export JSON or JSONL, and open Mac Monitor or
esloggertraces (File > Open Trace...). - Event distribution chart: spot noisy events at a glance. Show or hide it with the chart button in the toolbar.

Some other features
- Built for long traces: events go to an on-disk store, and the event tables fetch off the main thread.
- The Security Extension does not process events when a trace isn't running, so it doesn't use resources or battery in the background.
- Mac Monitor ships as a notarized distribution package, so you know what's being installed.
Telemetry schema
Every record Mac Monitor exports, and macmonitor writes, follows a JSON Schema: eslogger's JSON plus Mac Monitor's enrichments, each key marked x-mac-monitor-origin.
- Each release attaches it as
Mac-Monitor.telemetry.schema.json. The repository keeps it inSchema/. - Check a trace with Help > Telemetry Schema... or
macmonitor validate <trace>.

Explore projetos relacionados
Carregando…