Periodically getting "shared secret" dialogs and I don't know why

Every couple days or so this dialog pops up:

I think it's likely one of my own automations misbehaving rather than a legitimate security threat, but I don't know how to troubleshoot it. It appears at unexpected times when I don't think I've done anything that might manually trigger a scripting action. I need some help finding the root cause of the message so I can (hopefully) make it stop appearing.

I found this old thread with no responses but I think what it's asking for would be really helpful. Some sort of attribution that links the dialog to the action that triggered it, to provide more visibility into what's going on, would be really nice.

in BTT‘s scripting settings you can define a shared secret that will be requested whenever some script of yours OR some external app tries to call scripting functions inside of BTT. Unfortunately there is no way to know who is triggering it.

If it is triggered inside of BTT, you might see it in the recently used section in BTT

I see, so there's no way to identify the triggering application name or process?

It could also be useful if these dialog-appearing events were logged somewhere with that info if possible, or at least a timestamp so we can better see if it tends to be happening on some sort of schedule.