Skip to content

On-Privilege scanning module is a threat hunting tool for macOS Endpoint using EndpointSecurity Framework

License

Notifications You must be signed in to change notification settings

Will03/onPrivilege

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onPrivilege Module

Synopsis

On-Privilege scanning module is a threat hunting tool for macOS Endpoint using EndpointSecurity Framework

Motivation

One of the most dangous actions of malware is escape the privilege management of an infected host to execute more malicious behaviors. recent malware such as XCSSET.2020, MacMa.2021, dazzlespy.2022, CloudMensis.2022 all attempt to LPE on MacOS users. onPrivilege module continually monitors the system for events that may connect to privilege escalation attack. Specifically it watches for process rooting, bypass TCC, by SIP events.

To detect LPE on MacOS, this module does the following:

  • Process rooting detection
  • TCC.db file protection
  • Legacy APP detection
  • Special entitlement file tracking

This is a prove-of-concept project, please always running in virtual machine.

Dependence

brew install expect

build

mkdir ./build
cd ./build
cmake ..
make

Usage

sudo ./OPApplication

Todo

  • XPC service tracing
  • TCC.db manipulate
  • root privilege detect
  • Protected folder collecting
  • File attribute qurantine clear

Reference

Related Tools

About

On-Privilege scanning module is a threat hunting tool for macOS Endpoint using EndpointSecurity Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published