Safari extension is getting killed by Safari Browser

I have an extension which was working fine on older Safari version, but it is getting killed after I upgraded the browser to Safari 18 and higher. From the system logs I could see, Safari is sending the KILL signal to my browser

2024-11-12 13:51:01.536167-0600 0x95b672   Default     0x0                  1      0    launchd: [pid/45238/SafariExt [45463]:] signal service: caller = Safari[45238], value = 0x9

2024-11-12 13:51:01.536453-0600 0xfab      Default     0x0                  382    7    WindowServer: (SkyLight) [com.apple.SkyLight:default] [ ConnectionDebug ] Closing conn 0xf955b, PID 45463 in session 257 on console2024-11-12 13:51:01.536474-0600 0x95b674   Default     0x0                  1      0    launchd: [gui/503 [100018]:] service inactive: com.apple.xpc.launchd.unmanaged.SafariExtension.45463

2024-11-12 13:51:01.536479-0600 0x95b674   Default     0x0                  1      0    launchd: [gui/503 [100018]:] removing inactive unmanaged service: com.apple.xpc.launchd.unmanaged.SafariExtension.454632024-11-12 13:51:01.537354-0600 0x95b907   Default     0x0                  354    0    launchservicesd: [com.apple.processmanager:front-35286506] QUITTING: pid=45463 asn=0x-0x176176 foreground=0 wasFront=0

2024-11-12 13:51:01.537375-0600 0x95b672   Default     0x0                  1      0    launchd: [pid/45238/SafariExt [45463]:] exited due to SIGKILL | sent by launchd[1], ran for 342ms

2024-11-12 13:51:01.537380-0600 0x95b672   Default     0x0                  1      0    launchd: [pid/45238/SafariExt [45463]:] service state: exited
2024-11-12 13:51:01.537384-0600 0x95b672   Default     0x0                  1      0    launchd: [pid/45238/SafariExt [45463]:] internal event: EXITED, code = 0
2024-11-12 13:51:01.537385-0600 0x95b672   Default     0x0                  1      0    launchd: [pid/45238/SafariExt [45463]:] job state = exited

Just before this, I see a macOS error

2024-11-12 13:51:06.789342-0600 0x95b74f   Default     0x0                  45238  0    Safari: (Security) [com.apple.securityd:security_exception] MacOS error: -67054

This occurs only in my customer machines but not in my test machines. I have verified the code signing, certificate validity & entitlements are fine.

Hi, we'll need some more information to look into this issue further. Could you please file feedback at http://feedbackassistant.apple.com/ and include both a sysdiagnose and a copy of your extension.

@Systems Engineer I have filed a feedback from my account. Kindly check

Safari extension is getting killed by Safari Browser
 
 
Q