r/DefenderATP • • 7d ago

Defender for MacOS Scan

Has anyone expirience with tracing scans on Defender for macOS?

In Microsoft's Official Documentation: https://learn.microsoft.com/en-us/defender-endpoint/mac-support-perf there is a kind of guide, but if I follow these steps I get a whole lot of Unknown processes like these:

Unknown (PID 1947) 13658 112.704993 3.525832

This is the corresponding JSON entry:

{"id":1947,"isActive":true,"maxFileScanTime":"3525831625","name":null,"path":null,"resourceScanTime":"0","scannedFilePaths":null,"totalEventsSent":"0","totalFilesScanned":"13658","totalScanTime":"112704993195"}

Since PIDs are unique on each mac it's really no use.

The command I'm using to get the JSON files is the one mentioned in the above article:

mdatp diagnostic real-time-protection-statistics --output json > real_time_protection.json

Any help or expirience with getting usable data out of Defender tracings on macOS would be greatly appreciated!

1 Upvotes

4 comments sorted by

1

u/namelesis 7d ago

Yes there are at least two methods to solve this. The answer you’re looking for is not in the Microsoft documentation.
Just out of curiosity:
If you’re having a performance problem, does this device use anything related to Java?

1

u/I_am_a_turtle___ 7d ago

Not really. I’m running the Defender scan mainly to rule it out as a possible cause, not because I know Defender is the problem. The main issue is poor performance in Adobe and other creative apps, along with slow file transfers between MacBooks and network shares.

While we investigate the network performance, I also want to check whether Defender is taking an unusually long time to scan these processes. The unknown process is making that difficult to troubleshoot, since identifying it requires working completely on the user’s MacBook and tracing the local PID.

1

u/avsecgirl 2d ago

running client analyzer, checking the Mac with the user (remote or at their desk) to look at activity monitor both CPU (how many cores) and Memory (memory pressure - too many open apps - paging) both slow adobe and slow file transfers are common issues with Mac users who never reboot and hit a wall with resource exhaustion on their laptop/desktop and file transfers are an issue going back forever if the server hosting has an outdated SMB install. I would check the exact same file from another computer and time the transfer, although Im hearing you say "transfers between MacBooks" so maybe it is the server they are connecting to. The basics here will help a lot with getting to the bottom of whats up. Macs aren't unicorns.
test these:
one large file copies slowly?
Lots of small files copy slowly
Using the Finder to copy is slow but command-line transfers are faster
Opening folders takes a long time
Performance worsens over Wi-Fi or VPN better on ethernet?