Running a scan

Scan an app behind a sign-in gate

Get a scan through Cloudflare Access, Vercel Deployment Protection, Google IAP, Cloud Run IAM, Azure App Service authentication, or a header check of your own.

A sign-in gate is an identity layer in front of your application, such as Google IAP or Cloudflare Access. It asks every visitor to prove who they are before a request reaches the application at all. Your application's own sign-in comes after it: the test accounts, headers, cookies or Basic auth the testers use once they are in.

A scan can use both. The gate lets every request through to the application, and the test accounts sign in to the application behind it.

Add a gate to a scan

In the New scan form, choose the gate under Sign-in gate. It is a separate choice from the application's extra headers, cookies, Basic auth and test accounts, so setting a gate leaves those as they are. The kinds are:

  • Cloudflare Access
  • Vercel
  • Other headers
  • Google IAP
  • Cloud Run
  • Azure App Service

A gate applies to scans that test a URL you supply: black-box, grey-box, and white-box with a live target URL. A white-box scan where Interopt sets the application up from source runs its own copy with no gate in front, and a code review sends no requests.

Like test accounts, a gate is saved against one asset, and its secrets are encrypted before they are stored.

Cloudflare Access

Cloudflare's own guide: service tokens.

In Cloudflare One, go to Access controls → Service credentials → Service Tokens and select Create Service Token. Name it, choose a Service Token Duration that outlasts the scans you plan, and select Generate token. Copy the Client ID and the Client Secret; Cloudflare shows the secret only once.

Open the Access application in front of the target and add a policy. Set its action to Service Auth, and add an Include rule with the Service Token selector and the token you created. With any other action, Access sends the scan to a sign-in page instead.

In the New scan form, choose Cloudflare Access under Sign-in gate and paste the Client ID and Client Secret. The scan sends them as CF-Access-Client-Id and CF-Access-Client-Secret.

Vercel

Vercel's own guide: Protection Bypass for Automation.

In the Vercel project, go to Settings → Deployment Protection and turn on Protection Bypass for Automation. Add a secret for Interopt and copy it.

In the New scan form, choose Vercel under Sign-in gate and paste the secret. The scan sends it as x-vercel-protection-bypass.

If you regenerate or delete the secret in Vercel, paste the new one into the gate before the next scan.

Other headers

For any gate that checks a fixed header, such as a shared key your proxy or load balancer compares, choose Other headers and add each header name and value. The scan sends them unchanged on every request to the target.

These header names aren't allowed: Host, Content-Length, Transfer-Encoding, Connection, Cookie and Authorization. Put a cookie or an Authorization header the application itself checks under Extra headers or cookies. A gate that asks for a username and password with HTTP Basic authentication has its own option there too.

Google IAP

Google's own guide: programmatic authentication.

Interopt signs the token as your workspace's own Interopt service account, the same one a connected Google Cloud project uses. The form shows its email address. There is no key to create or share.

In the New scan form, choose Google IAP under Sign-in gate and copy the command it shows. It grants the workspace's service account IAP-secured Web App User on the backend service behind the target:

gcloud
gcloud iap web add-iam-policy-binding \
  --resource-type=backend-services \
  --service=SERVICE \
  --member=serviceAccount:EMAIL \
  --role=roles/iap.httpsResourceAccessor

Run it in the project that holds the backend service, with SERVICE replaced by the backend service's name.

Leave the audience empty to use https://<target host>/*, the default IAP checks against. Set one only when IAP protects the target under a different URL.

Requests the testers send with curl carry the token in Proxy-Authorization, which IAP reads before Authorization, so your application's own Authorization header stays free for its test accounts or extra headers. Browsers refuse to send Proxy-Authorization, so the testers' browser sends the token in Authorization. A page that sets its own Authorization header from JavaScript loses it in the browser behind IAP; the testers send those requests with curl instead.

If your organisation restricts which accounts can be granted roles, with the domain restricted sharing constraint iam.allowedPolicyMemberDomains, the grant fails. An organisation policy administrator can allow that one service account through the managed constraint iam.managed.allowedPolicyMembers. If that isn't possible, let the scan through IAP by address instead; see When to allowlist instead.

Cloud Run

For a Cloud Run service that requires authentication through IAM, without IAP in front of it. Google's own guide: service-to-service authentication.

In the New scan form, choose Cloud Run under Sign-in gate and copy the command it shows. It grants the workspace's Interopt service account roles/run.invoker on the service:

gcloud
gcloud run services add-iam-policy-binding SERVICE \
  --region=REGION \
  --member=serviceAccount:EMAIL \
  --role=roles/run.invoker

Run it in the service's project, with SERVICE and REGION filled in.

When the target is the service's run.app URL, leave the audience empty. On a custom domain, set the audience to the service's run.app URL, or to a custom audience you add to the service:

gcloud
gcloud run services update SERVICE \
  --region=REGION \
  --add-custom-audiences=AUDIENCE

The scan sends the token in X-Serverless-Authorization. Cloud Run checks that header and passes Authorization through to your application.

Azure App Service

For App Service, Azure Functions and Container Apps with App Service authentication and the Microsoft identity provider. Microsoft's own guide: Microsoft Entra authentication.

In Microsoft Entra ID, go to App registrations → New registration and create a registration for Interopt. It needs no redirect URI. Copy its Application (client) ID and the Directory (tenant) ID.

In the new registration, go to Certificates & secrets → Client secrets → New client secret, and copy the secret's Value.

Open the protected app and go to Settings → Authentication, then Edit the Microsoft identity provider. Under Client application requirement, choose Allow requests from specific client applications and add the new registration's client ID under Allowed client applications.

Note the audience: the Application ID URI (api://…) or the client ID of the registration the protected app's authentication uses, not the one you just created. If you use the api:// URI, add it under Allowed token audiences; the client ID is accepted without that.

In the New scan form, choose Azure App Service under Sign-in gate and paste the tenant ID, the new registration's client ID and secret, and the audience.

Interopt gets a token for the registration and exchanges it at the target's /.auth/login/aad, so the exchange comes from the same addresses as the rest of the scan. The scan then sends the session token in X-ZUMO-AUTH, leaving Authorization to your application. When the client secret expires in Entra, add a new one and paste it into the gate.

AWS

An Application Load Balancer with Amazon Cognito or OIDC sign-in has no way for a machine to sign in. Either:

  • Add a listener rule for Interopt's addresses. Add a rule with a source-ip condition listing Interopt's addresses and a host-header condition for the target, whose action forwards to the target group without an authenticate action. Give it a priority ahead of the rule that authenticates. source-ip matches the address that connected to the load balancer, not X-Forwarded-For. See AWS's listener rule conditions.
  • Use test accounts. Create users in the user pool or identity provider and add them as test accounts. The testers sign in through the login page the load balancer redirects to.

API Gateway and Lambda function URLs with IAM authorization need every request signed with AWS credentials, which a browser can't do. Point the scan at a stage or URL without IAM authorization that only Interopt's addresses can reach, such as a REST API stage whose resource policy allows only those addresses.

During the scan

  • Only the target's host gets the gate's token. It goes to the target's exact hostname and no other host: not an API host, not hosts under Other hosts, not any third party the application calls.
  • Expiring tokens are renewed. Google and Azure tokens are short-lived; the scan gets new ones before they expire, for as long as it runs. Cloudflare and Vercel secrets, and other headers, are sent as you entered them.
  • Tokens are masked. Gate tokens and header values are masked in logs, tester transcripts, findings and the request log.
  • A refused gate stops the scan early. Before testing, the scan sends one request through the gate. If Interopt can't get a token, App Service authentication refuses it, IAP or Cloud Run refuses the service account because the role isn't granted, or Cloudflare Access or Vercel answers with its sign-in page, the scan fails with a reason that begins "Couldn't get through the sign-in gate in front of", followed by the host and what to fix. It doesn't go on to test the gate's sign-in page instead of your application.

When to allowlist instead

Let the scan through the gate by address instead, as you would through a WAF, when:

  • the API or another host in scope sits behind the same gate under a different hostname, since the gate's token only goes to the target's host;
  • the gate has no machine sign-in, such as an ALB with Cognito;
  • your organisation policy won't let you grant a role to Interopt's service account.

For Cloudflare Access, that is a Bypass policy on Interopt's addresses; see Let the scan through your WAF. The addresses are listed under Scanner IP addresses. A WAF, bot control or rate limit in front of the application still needs its own allow rule when you use a gate.

On this page