Technical feasibility — Restricting PIV RSA signing to a specific signed macOS application

Hello,

I'm developing BenStrukt, a macOS application that uses RSA-2048 signatures to authorize individual operations through a local IPC protocol.

We are evaluating the YubiKey 5C NFC using an RSA private key generated on-device in PIV slot 9C, configured with PIN Policy Always and Touch Policy Always.

Our critical security requirement is not only that the RSA private key must be non-exportable, but also that only our specifically signed macOS application can initiate authorized signing operations.

According to Apple's documentation, external token items are exposed through kSecAttrAccessGroupToken, which is accessible by default without a specific keychain access-group entitlement.

Could you clarify whether there is a documented, supported mechanism to enforce application-specific authorization for PIV private-key operations on macOS?

In particular, can a second application running under the same macOS user obtain a reference to the key and request a signature when the correct PIN and physical touch are supplied?

Would CryptoTokenKit, a custom token extension, code-signing requirements, or another supported mechanism prevent this, including access through alternative smart-card interfaces such as PC/SC?

If application-specific isolation is not supported, could you explicitly confirm this limitation?

We need to establish these guarantees before purchasing hardware or modifying our existing signing architecture.

Thank you for your technical guidance.

Oliver Ben
Founder — BenStrukt