What should a business do if an API key is exposed?

Contain an exposed integration credential, coordinate replacement and investigate potential use without disrupting recovery.

Discuss cybersecurity

Report the exposure promptly

Tell the service owner and security contact through a trusted route if a key appears in a public repository, message or other unintended location. Record where and when it was exposed without copying the secret into incident notes or chat.

Contain the credential

An authorised administrator should promptly revoke or rotate the affected key using the service provider's current process. Coordinate with the integration owner because disabling a credential can interrupt business workflows, but removing text from a file alone does not invalidate it.

Replace and verify dependencies

Identify the applications, scheduled jobs and suppliers using the key. Provide a replacement through an approved secret-management method, update authorised dependencies and test the affected workflow without exposing the new credential.

Investigate potential use

Review available provider activity and access records for the relevant period and permissions. Assess whether business or customer information may have been affected and follow the incident process; the absence of obvious errors is not proof that a key was unused.

Address the exposure source

Remove the secret from the current location and assess whether copies or repository history need coordinated cleanup. GitHub cautions that rewriting history has consequences and that revocation or rotation is the first step; improve storage and review practices to prevent recurrence.

Explore the service

Start a conversation

Let’s make it
work better.

Tell us about your people, systems or premises. We’ll discuss what you need and agree a practical next step.

This opens a draft in your email application. Review your enquiry and send it when you’re ready.