Google Cloud Platform (GCP) Cloud Monitoring PE to Cloud Run Using Uptime Checks Service Agent Authentication
A low-privileged user with only the monitoring.uptimeCheckConfigViewer role could configure a Cloud Monitoring uptime check to authenticate to an arbitrary Cloud Run service using the Monitoring Service Agent's identity, thereby invoking the service without holding the run.routes.invoke permission. This bypassed IAM controls and allowed authenticated calls to Cloud Run endpoints with arbitrary parameters.
Published on tenable.com
Tenable Research has identified and responsibly disclosed a privilege escalation vulnerability in Google Cloud Monitoring. This flaw allowed a low-privileged attacker to bypass Identity and Access Management (IAM) controls and invoke authenticated Cloud Run services despite lacking permissions.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Google Cloud Monitoring includes a feature called Uptime Checks, which periodically probes an HTTP or HTTPS endpoint to confirm that it is reachable and responding. An Uptime Check can be configured to authenticate against its target, and one of the authentication options is Service Agent Authentication, where the request is signed with the identity token of the Monitoring Service Agent.
That agent is a Google-managed service account with the address [redacted]. By default it holds the run.routes.invoke permission, which is exactly the permission needed to call an authenticated Cloud Run endpoint. The design intent is that the agent performs the check on Google's behalf; the question Tenable Research asked was who else can make the agent perform a check, and against which URL.
The finding, as summarised in the advisory, is a privilege escalation in Cloud Monitoring: a low-privileged principal could bypass IAM controls and invoke authenticated Cloud Run services without holding the permission to do so. Tenable rated it High.
Setup
The precondition is a project that contains an authenticated Cloud Run service, plus two principals:
- A privileged principal, used to find or create the authenticated Cloud Run service.
- A low-privileged principal that holds the
monitoring.uptimeCheckConfigViewerrole but does not holdrun.routes.invoke.
The second principal is the attacker in this scenario. The role name says what it grants: the ability to view uptime check configurations. It is described in the advisory as an extremely limited role, and it is not supposed to confer any ability to call Cloud Run.
No special tooling is involved. The proof of concept is carried out entirely through the Google Cloud console in a browser.
Finding it
The observation behind the report is a mismatch between two permissions. The Monitoring Service Agent is granted run.routes.invoke by default, so anything that can cause the agent to issue an authenticated request can reach an authenticated Cloud Run endpoint. Uptime Checks expose Service Agent Authentication as a selectable authentication method, and the creation form, including its Test function, was reachable by a principal whose only relevant role was monitoring.uptimeCheckConfigViewer.
In other words, the party choosing the target URL and the request parameters did not need the permission that the request would ultimately exercise. The agent held run.routes.invoke; the user only needed to be able to configure and test an uptime check. That is why the behaviour looked wrong: an IAM boundary between "may view uptime checks" and "may invoke Cloud Run" was not being enforced at the point where the authenticated request was generated.
Exploitation
The proof of concept is a console walkthrough. Each step below is as given in the advisory.
Step 1: Prepare the target
Find or create an authenticated Cloud Run service in the project, acting as a privileged principal. This establishes the endpoint that the Service Agent will later be made to call.
Step 2: Switch to the low-privileged principal
Authenticate as a principal that has the monitoring.uptimeCheckConfigViewer role but does not have run.routes.invoke permissions. This is the attacker's position for the rest of the walkthrough.
Step 3: Open the uptime check creation form
Browse to the creation page for a new uptime check:
https://console.cloud.google.com/monitoring/uptime/create?project=<your_project>
The URL includes a project query parameter; <your_project> is a placeholder. According to the advisory, the page shows a permission error for a moment and then opens the creation form.
Step 4: Choose the protocol
Under Protocol, choose HTTPS.
Step 5: Set the target
Under Hostname, enter the authenticated Cloud Run service from step 1. This is the endpoint the Service Agent will be pointed at.
Step 6: Adjust the request
Change the request options as necessary. The advisory does not enumerate which options were used; the point is that the request sent to the Cloud Run service is under the attacker's control.
Step 7: Select Service Agent Authentication
Change Authentication Method to Service Agent Authentication. This is the setting that causes the request to be signed with the Monitoring Service Agent's ID token, and therefore to carry the agent's run.routes.invoke permission.
Step 8: Reach the review section
Go to the Review section and insert any title. The title is arbitrary; it exists only to satisfy the form.
Step 9: Test
Click Test. The Cloud Run service is invoked. The invocation is performed with the Service Agent's identity, against the hostname and with the request options supplied by a principal that does not hold run.routes.invoke.
Root cause
The flaw is an authorisation gap in Cloud Monitoring's uptime check feature. The Service Agent Authentication option, and the Test action that exercises it, were available to a principal holding only monitoring.uptimeCheckConfigViewer. Because the resulting request is authenticated as the Monitoring Service Agent, which by default carries run.routes.invoke, the low-privileged user effectively borrowed the agent's permission to call an arbitrary authenticated Cloud Run endpoint.
The existing defence that should have stopped this is IAM itself: the attacker did not hold run.routes.invoke, so no direct call to the Cloud Run service should have succeeded. The gap is that a principal holding only monitoring.uptimeCheckConfigViewer could configure and test Service Agent Authentication. The advisory's fix description says Google added extra permission checks so that the Service Agent authorization feature is only available to users with the correct permissions, and stopped uptime checks from letting users deploy or test Service Agent authentication for arbitrary URLs.
Impact
A principal with the extremely limited monitoring.uptimeCheckConfigViewer role could invoke an authenticated Cloud Run service despite lacking permission to do so, and could do it with arbitrary parameters, using the Monitoring Service Agent's identity. The bypass is of IAM controls: the attacker gains the effect of run.routes.invoke without being granted it.
The scope is bounded by what the agent can reach and by what the targeted Cloud Run endpoint does with the request. The advisory does not go beyond describing the invocation itself.
Fix
Google implemented a fix with two parts, as described in the advisory:
- Cloud Monitoring uptime checks no longer allow users to deploy or test the Service Agent authentication feature for arbitrary URLs.
- Extra permission checks were added so that the Service Agent authorization feature is only available to users with the correct permissions.
No specific action is required from customers, provided they follow Google Cloud's guidelines for creating public uptime checks at https://cloud.google.com/monitoring/uptime-checks.
Disclosure timeline
| Date | Event |
|---|---|
| November 4, 2025 | Tenable reports the finding to Google; Google acknowledges |
| November 24, 2025 | Tenable requests an update |
| December 1, 2025 | Google requests clarification regarding the impact |
| December 2, 2025 | Tenable clarifies the impact and provides an additional PoC |
| December 4, 2025 | Google states it will continue to investigate |
| December 5, 2025 | Google accepts the bug |
| December 16, 2025 | Google awards a bounty |
| December 17, 2025 | Tenable confirms and requests details of the fix once available |
| December 17, 2025 | Google acknowledges |
| January 4, 2026 | Tenable requests an update |
| January 7, 2026 | Google states product teams are still working on a mitigation |
| January 15, 2026 | Tenable gives a heads-up that the disclosure date is approaching |
| January 22, 2026 | Google states the fix is expected before the disclosure date; Tenable acknowledges |
Variants to test
- Other Google-managed agents with default permissions. Look for features where a Google-managed service account performs an action on a user-supplied target. A positive result is a low-privileged principal causing that agent to act against an endpoint the principal could not reach directly.
- Other "test" or "validate" buttons in Cloud console forms. These often execute the real operation with the real identity before any resource is created. A positive result is a test action that produces an authenticated request to an attacker-chosen host while the caller lacks the underlying permission.
- Other authentication methods on uptime checks. The advisory describes Service Agent Authentication specifically; the same question applies to any option that attaches a Google-managed identity to the probe. A positive result is a probe authenticated as an identity whose permissions the configuring user does not hold.
- Transient permission errors in the UI. The creation page showed a permission error and then opened the form. Where a console briefly reports a denial and then renders the form anyway, check whether the subsequent actions are actually authorised server-side. A positive result is a completed action that the initial error said was not permitted.
- Viewer-level roles on monitoring resources. Enumerate roles whose names suggest read-only access to monitoring configuration and check whether any of them can trigger an outbound authenticated request. A positive result is an invocation of a protected endpoint from a principal holding only a viewer role.
What happened, in plain words
Google Cloud is a collection of online services that companies rent from Google to run their software. One of those services, Cloud Monitoring, watches other services to make sure they are alive and answering requests. Part of Cloud Monitoring is a feature called Uptime Checks: a small robot that regularly visits a web address, like a health inspector knocking on a door every minute to check someone is home.
Some web addresses are private: they only answer if the visitor shows a valid pass. Google Cloud has a service for running software that answers web requests, called Cloud Run, and a way to check whether a private address answers, called an Uptime Check with Service Agent Authentication. In that mode, the check does not knock as an anonymous stranger; it knocks carrying a pass belonging to a Google-managed helper identity, the Monitoring Service Agent.
Tenable Research found that a user with almost no rights in the project could borrow that helper's pass. The user was not allowed to call the private Cloud Run address directly, but could still make the helper call it, with whatever address and request details the user chose. That is a privilege escalation: doing something you were not given permission to do, by getting someone more powerful to do it for you. Tenable rated it High.
Google fixed it, and customers who follow Google's guidelines for public uptime checks do not need to do anything.
The pieces involved
Before the steps make sense, here are the parts of the puzzle, explained from zero.
Cloud Run is a Google Cloud service for running a piece of software (a small program that answers web requests) without managing servers. Each such program gets a web address. A Cloud Run service can be configured to accept only requests that carry proof of identity, so that random visitors on the internet cannot call it.
An API is the set of doors a program offers for other programs to talk to. When one program calls another over the network, it sends an HTTP request to a URL, and the other side answers. You can think of an API as a restaurant's service counter: you place an order in a fixed format and get food back, without entering the kitchen.
A token is a short string of characters that proves who you are, like a stamped wristband at an event. You show it with each request, and the door checks the stamp instead of asking for your name and password again. An ID token is a token that says who the bearer is. A service account is an identity that belongs to software rather than to a person, so programs can hold tokens too.
IAM stands for Identity and Access Management. It is Google Cloud's rulebook that says which identity may do which action on which resource. Permissions have names like run.routes.invoke, which literally means "may invoke a route on Cloud Run". Permissions are bundled into roles, and roles are handed to users or service accounts. A role whose name contains Viewer is meant to be read-only.
The Monitoring Service Agent is a service account that Google creates and manages for you. Its address has the form [redacted], where PROJECT_NUMBER is a number identifying your project. By default it is granted the run.routes.invoke permission, so it is allowed to call authenticated Cloud Run endpoints. The design intent is that this agent performs uptime checks on Google's behalf.
The question Tenable asked was simple: who else can make that agent perform a check, and against which address?
Setting up the experiment
The precondition is a Google Cloud project that contains an authenticated Cloud Run service, plus two identities:
- A privileged identity, used to find or create the authenticated Cloud Run service. This is the "victim" side: the protected door.
- A low-privileged identity that holds the
monitoring.uptimeCheckConfigViewerrole but does not holdrun.routes.invoke. This is the attacker.
The second role's name says what it grants: the ability to view uptime check configurations. The advisory calls it an extremely limited role, and it is not supposed to allow calling Cloud Run at all.
No special tools are needed. The whole proof of concept happens in a normal browser, in the Google Cloud console, which is the web dashboard where you click around to manage Google Cloud resources.
Finding it
The observation behind the report is a mismatch between two permissions. The Monitoring Service Agent is granted run.routes.invoke by default, so anything that can make the agent send an authenticated request can reach an authenticated Cloud Run endpoint. Uptime Checks offer Service Agent Authentication as a selectable authentication method, and the creation form, including its Test button, could be reached by a user whose only relevant role was monitoring.uptimeCheckConfigViewer.
Put differently: the person choosing the target address and the request details did not need the permission that the request would ultimately use. The agent held run.routes.invoke; the user only needed to be able to configure and test an uptime check. That is why the behaviour looked wrong. The IAM boundary between "may view uptime checks" and "may invoke Cloud Run" was not being enforced at the point where the authenticated request was generated.
A useful comparison: a hotel guest with a room-viewing key is not supposed to open other guests' doors. If the front desk's master key can be borrowed by anyone who can fill in a form, the lock on the door is irrelevant.
Exploitation, step by step
The proof of concept is a walkthrough of the console. Each step below is as given in the advisory, with the reason behind it.
Step 1: Prepare the target
Find or create an authenticated Cloud Run service in the project, acting as a privileged identity. This establishes the endpoint that the Service Agent will later be made to call. You need a protected door to knock on before you can test whether the knock gets through.
Step 2: Switch to the low-privileged identity
Authenticate as an identity that has the monitoring.uptimeCheckConfigViewer role but does not have run.routes.invoke permissions. This is the attacker's position for the rest of the walkthrough. The point is to prove that the attack works from a position that should be powerless over Cloud Run.
Step 3: Open the uptime check creation form
Browse to the creation page for a new uptime check:
https://console.cloud.google.com/monitoring/uptime/create?project=<your_project>
Line by line: https://console.cloud.google.com is the address of the Google Cloud web console. /monitoring/uptime/create is the page that shows the form for creating a new uptime check. The ?project=<your_project> part is a query parameter, a piece of information appended to the address after the question mark; it tells the console which project the check should be created in. <your_project> is a placeholder in the URL.
According to the advisory, the page shows a permission error for a moment and then opens the creation form.
Step 4: Choose the protocol
Under Protocol, choose HTTPS. HTTPS is the encrypted version of the web's request language, HTTP; choosing it means the check will speak to the target the same way a browser does with a padlock in the address bar.
Step 5: Set the target
Under Hostname, enter the authenticated Cloud Run service from step 1. This is the endpoint the Service Agent will be pointed at. The attacker is choosing the destination of the request, which is the heart of the problem.
Step 6: Adjust the request
Change the request options as necessary. The advisory does not list which options were used; the point is that the request sent to the Cloud Run service is under the attacker's control. If the attacker can shape the request, the attacker can decide what the protected service is asked to do.
Step 7: Select Service Agent Authentication
Change Authentication Method to Service Agent Authentication. This is the setting that causes the request to be signed with the Monitoring Service Agent's ID token, and therefore to carry the agent's run.routes.invoke permission. In everyday terms, this is the moment the attacker stops knocking as themselves and starts knocking with the master key.
Step 8: Reach the review section
Go to the Review section and insert any title. The title is arbitrary; it exists only to satisfy the form. Forms often refuse to continue until every required box is filled, so a throwaway value is enough.
Step 9: Test
Click Test. The Cloud Run service is invoked. The invocation is performed with the Service Agent's identity, against the hostname and with the request options supplied by a user who does not hold run.routes.invoke.
That is the whole attack: no exploit code, no special tool, just a form in a browser and a Test button.
Why it worked
The flaw is an authorisation gap in Cloud Monitoring's uptime check feature. The Service Agent Authentication option, and the Test action that exercises it, were available to a user holding only monitoring.uptimeCheckConfigViewer. Because the resulting request is authenticated as the Monitoring Service Agent, which by default carries run.routes.invoke, the low-privileged user effectively borrowed the agent's permission to call an arbitrary authenticated Cloud Run endpoint.
The defence that should have stopped this is IAM itself: the attacker did not hold run.routes.invoke, so no direct call to the Cloud Run service should have succeeded. The gap is that a user holding only monitoring.uptimeCheckConfigViewer could configure and test Service Agent Authentication. The advisory's fix description says Google added extra permission checks so that the Service Agent authorization feature is only available to users with the correct permissions, and stopped uptime checks from letting users deploy or test Service Agent authentication for arbitrary URLs.
What an attacker could do with it
A user with the extremely limited monitoring.uptimeCheckConfigViewer role could invoke an authenticated Cloud Run service despite lacking permission to do so, and could do it with arbitrary parameters, using the Monitoring Service Agent's identity. The bypass is of IAM controls: the attacker gains the effect of run.routes.invoke without being granted it.
The scope is bounded by what the agent can reach and by what the targeted Cloud Run endpoint does with the request. The advisory does not go beyond describing the invocation itself.
The fix
Google implemented a fix with two parts, as described in the advisory:
- Cloud Monitoring uptime checks no longer allow users to deploy or test the Service Agent authentication feature for arbitrary URLs.
- Extra permission checks were added so that the Service Agent authorization feature is only available to users with the correct permissions.
No specific action is required from customers, provided they follow Google Cloud's guidelines for creating public uptime checks at https://cloud.google.com/monitoring/uptime-checks.
How the disclosure unfolded
A coordinated disclosure is a conversation between the researcher and the vendor: the researcher reports privately, the vendor investigates and fixes, and only then does the public learn the details. Here is how this one went.
| Date | Event |
|---|---|
| November 4, 2025 | Tenable reports the finding to Google; Google acknowledges |
| November 24, 2025 | Tenable requests an update |
| December 1, 2025 | Google requests clarification regarding the impact |
| December 2, 2025 | Tenable clarifies the impact and provides an additional PoC |
| December 4, 2025 | Google states it will continue to investigate |
| December 5, 2025 | Google accepts the bug |
| December 16, 2025 | Google awards a bounty |
| December 17, 2025 | Tenable confirms and requests details of the fix once available |
| December 17, 2025 | Google acknowledges |
| January 4, 2026 | Tenable requests an update |
| January 7, 2026 | Google states product teams are still working on a mitigation |
| January 15, 2026 | Tenable gives a heads-up that the disclosure date is approaching |
| January 22, 2026 | Google states the fix is expected before the disclosure date; Tenable acknowledges |
A bounty is a payment a company makes to a researcher who reports a security problem responsibly, as an incentive to report rather than misuse it.
Where else to look
Tenable listed five directions for further testing. They are written for security researchers, but each one is a question a beginner can follow.
- Other Google-managed agents with default permissions. Look for features where a Google-managed service account performs an action on a target supplied by the user. A positive result is a low-privileged user causing that agent to act against an endpoint the user could not reach directly.
- Other "test" or "validate" buttons in Cloud console forms. These often execute the real operation with the real identity before any resource is created. A positive result is a test action that produces an authenticated request to a host chosen by the attacker while the caller lacks the underlying permission.
- Other authentication methods on uptime checks. The advisory describes Service Agent Authentication specifically; the same question applies to any option that attaches a Google-managed identity to the probe. A positive result is a probe authenticated as an identity whose permissions the configuring user does not hold.
- Transient permission errors in the UI. The creation page showed a permission error and then opened the form. Where a console briefly reports a denial and then renders the form anyway, check whether the subsequent actions are actually authorised on the server side. A positive result is a completed action that the initial error said was not permitted.
- Viewer-level roles on monitoring resources. List roles whose names suggest read-only access to monitoring configuration and check whether any of them can trigger an outbound authenticated request. A positive result is an invocation of a protected endpoint from a user holding only a viewer role.
Glossary
- API: the set of defined ways one program can talk to another over a network, usually by sending requests to URLs.
- Authentication: proving who you are, for example by presenting a token.
- Authorisation: deciding whether an identified party is allowed to perform a particular action.
- Bounty: a payment made by a company to a researcher who reports a security vulnerability responsibly.
- Cloud Monitoring: a Google Cloud service that watches other services and reports on their health.
- Cloud Run: a Google Cloud service for running software that answers web requests, without managing servers.
- Console: the web dashboard where you click around to manage Google Cloud resources.
- Coordinated disclosure: a process where a researcher reports a flaw privately, the vendor fixes it, and details are published afterwards.
- HTTPS: the encrypted version of HTTP, the language browsers and servers use to exchange requests and responses.
- IAM (Identity and Access Management): Google Cloud's rulebook of which identity may perform which action on which resource.
- ID token: a token that states the identity of its bearer.
- Monitoring Service Agent: a Google-managed service account, with an address of the form
[redacted], that performs uptime checks on Google's behalf and by default holdsrun.routes.invoke. - Permission: a named allowance to perform one specific action, such as
run.routes.invoke. - Privilege escalation: gaining the ability to do something you were not granted permission to do, often by getting a more powerful party to act for you.
- Project: a container in Google Cloud that holds resources and identities, identified by a name and a number.
- Proof of concept (PoC): a concrete demonstration that a vulnerability can actually be exploited.
- Query parameter: a piece of information appended to a URL after a question mark, such as
?project=<your_project>. - Role: a bundle of permissions that can be granted to a user or service account; roles with Viewer in the name are meant to be read-only.
run.routes.invoke: the permission to call a route on a Cloud Run service.monitoring.uptimeCheckConfigViewer: a very limited role that allows viewing uptime check configurations.- Service account: an identity that belongs to software rather than a person, so programs can hold tokens.
- Service Agent Authentication: an uptime check option that signs the check's request with the Monitoring Service Agent's ID token.
- Token: a short string that proves an identity, presented with a request instead of a password.
- Uptime Check: a Cloud Monitoring feature that periodically visits a web address to confirm it is reachable and responding.
- Vulnerability: a weakness in software that can be used to make it behave in a way its designers did not intend.