I occasionally receive this permissions message in MacOS 10.15.5:
“bash“ wants access to control “System Events“. Allowing control will provide access to documents and data in “System Events“, and to perform actions within that app.
Googling around, PCrisk implies that this could be a virus/adware. That'd be surprising - I'm pretty careful about what I install.
Is there any way to determine which application is attempting to execute a bash command?