Hi All,
I'm studying the new AUTH event ES_EVENT_TYPE_AUTH_IOKIT_OPEN introduced in the EndpointSecurity framework on macOS 11.
The event is called correctly when someone tries to open a new IO device, for instance, any USB device.
If the endpoint answers ES_AUTH_RESULT_DENY then the device is correctly stopped.
In message->event I see an event of type es_event_iokit_open_t
Unfortunately, the header says:
My question is: How can I get info about the device? for instance:
Thanks
I'm studying the new AUTH event ES_EVENT_TYPE_AUTH_IOKIT_OPEN introduced in the EndpointSecurity framework on macOS 11.
The event is called correctly when someone tries to open a new IO device, for instance, any USB device.
If the endpoint answers ES_AUTH_RESULT_DENY then the device is correctly stopped.
In message->event I see an event of type es_event_iokit_open_t
Code Block /** * @brief Open a connection to an I/O Kit IOService * * @field user_client_type A constant specifying the type of connection to be * created, interpreted only by the IOService's family. * This field corresponds to the type argument to IOServiceOpen(). * @field user_client_class Meta class name of the user client instance. * * This event is fired when a process calls IOServiceOpen() in order to open * a communications channel with an I/O Kit driver. The event does not * correspond to driver <-> device communication and is neither providing * visibility nor access control into devices being attached. */ typedef struct { uint32_t user_client_type; es_string_token_t user_client_class; uint8_t reserved[64]; } es_event_iokit_open_t;
Unfortunately, the header says:
Code Block The event does not * correspond to driver <-> device communication and is neither providing * visibility nor access control into devices being attached.
My question is: How can I get info about the device? for instance:
Name
Vendor
Type
etc...
Thanks