Ensure that Cloud Functions are configured to allow only internal traffic or traffic from Cloud Load Balancer.
You can secure your google cloud functions by implementing network based access control.
Ensure that your Google Cloud functions do not allow external traffic from the internet.