/* After testing, I found that these Kauth interfaces are not really removed, and Kemon still works. But I think this release note means that the door to the macOS kernel is closing. (08/28/2019) */
What is Kemon?
Kemon is an open source Pre and Post callback-based framework for macOS kernel monitoring [1]. With the power of Kemon, we can easily implement XPC/IPC communication monitoring [2], Mandatory Access Control (MAC) policy filtering, network traffic and kernel extension firewall, etc. In general, from an attacker's perspective, this framework can help achieve more powerful Rootkit. From the perspective of defense, Kemon can help construct more granular monitoring capabilities.
I also implemented several kernel fuzzers [3] [6] based on this framework, which helped me find many kernel vulnerabilities, such as:
Graphics related kernel extensions:
CVE-2017-7155, CVE-2017-7163, CVE-2017-13883 [9], CVE-2018-4350, CVE-2018-4396, CVE-2018-4418 [10], CVE-2019-8807 [11], CVE-2022-22631 [21], etc.
Mandatory Access Control (MAC) policy monitoring, etc.
In addition, Kemon project can also extend the Pre and Post callback-based monitoring interfaces for any macOS kernel function.
Getting Started
How to build the Kemon kernel extension
Please use Xcode project or makefile to build the Kemon kext driver
How to use the Kemon kernel extension
Please turn off macOS System Integrity Protection (SIP) check if you don't have a valid kernel certificate
Use the command "sudo chown -R root:wheel kemon.kext" to change the owner of the Kemon kernel extension
Use the command "sudo kextload kemon.kext" to install the Kemon kernel extension
Use the command "sudo kextunload kemon.kext" to uninstall the Kemon kernel extension
Contributing
Welcome to contribute by creating issues or sending pull requests. See Contributing Guide for guidelines.
License
Kemon is licensed under the Apache License 2.0. See the LICENSE file.
请发表评论