I saw a YaraScanService processing using lots of CPU on my new MacBook after I updated to 10.13.6. When I look in Console/System Reports, I found a diagnostic report about it:
======
Date/Time: 2018-07-13 16:17:34.364829 -0700
OS Version: Mac OS X 10.13.6 (Build 17G65)
Architecture: x86_64
Report Version: 19
Command: YaraScanService
Path: /System/Library/CoreServices/MRT.app/Contents/XPCServices/YaraScanService.xpc/C ontents/MacOS/YaraScanService
Version: 1.0 (1)
Build Version: 1
Project Name: MRTBinaries
Source Version: 43000000000000
Parent: launchd [1]
Responsible: MRT [1397]
PID: 1482
Event: cpu usage
Action taken: none
CPU: 90 seconds cpu time over 157 seconds (57% cpu average), exceeding limit of 50% cpu over 180 seconds
CPU limit: 90s
Limit duration: 180s
CPU used: 90s
===========
It seems clear that it is now a part of CoreServices and they added a check to limit its CPU usage to 90 seconds of CPU in 180 seconds.
Your mileage may vary.
Duration: 156.63s
Steps: 162