BroraSys All articles
IT Infrastructure

The Key Taped Under the Desk: Finding and Rotating the Credentials Nobody Owns

BroraSys
The Key Taped Under the Desk: Finding and Rotating the Credentials Nobody Owns

Photo: Shixart1985, CC BY 2.0, via Wikimedia Commons

Every small business has one. A spreadsheet that pulls a debtor list out of the accounts package each morning, held together by a macro and a connection string pasted into a cell three years ago. A website plugin that talks to the payment provider. A Power Automate flow that drops order confirmations into a shared mailbox. Each of these is a working integration, and each of them is probably carrying a credential in plain sight.

The technical term for this is a hard-coded secret. The practical term is a spare key taped under the desk: it works, everyone who needed it knows where it is, and nobody has ever taken it back.

Where the keys actually hide

Inventory exercises tend to start in the wrong place — the source code repository, which is often the most disciplined part of a small firm's estate. The real finds are elsewhere.

Look in spreadsheets, particularly the ones with a data connection or a macro that opens a session to something. Look in low-code tools: Power Automate, Zapier, Make, Airtable automations, where credentials are typed into a configuration screen and then forgotten. Look at website plugins and theme files, at the .env file someone left on the web server, at scheduled tasks on a server nobody logs into, at the CMS integration settings, at the till or EPOS back office, and at the shared password spreadsheet that still exists despite the password manager licence.

Then look at the humans. The person who built the integration in 2022 may have left in March. Their personal API token may still be the one authenticating your nightly sync, which means a departed employee's credentials are running your finance operation.

An inventory you can trust

Build the register before you change anything. For each secret, capture: the system it authenticates to, the system it sits in, the named owner, the privilege level, when it was created, what breaks if it stops working, and where the credential is stored.

That last column is where the uncomfortable honesty happens. If the answer is 'in the spreadsheet', write it down. The register is a working document, not an audit certificate, and a truthful ugly version beats a tidy fictional one.

Automated scanning helps at the margins. Secret-scanning tools will find obvious patterns in files and repositories, and cloud providers increasingly surface exposed keys. They will not find a token typed into a plugin settings page, and they will not know that the token belongs to a system that closes the month-end ledger. Human inventory still does the heavy lifting.

Rotation is a calendar problem, not a technical one

The reason credentials from 2022 are still in use is rarely ignorance. It is fear. Rotating a key that feeds the finance system risks an outage during the exact window when nobody can afford one.

Treat rotation as a scheduling exercise. Identify the freeze periods first — month-end, quarter-end, the VAT return deadline, payroll cutover, the run-up to the Christmas trading peak. Nothing gets rotated in those windows. Everything else is fair game, and the quieter weeks are usually obvious once you look at the calendar honestly.

For each credential, plan a transition rather than a switch. Many systems allow two active keys at once. Issue the new key, deploy it to the consumer, confirm it works in a test path, then revoke the old one and record the revocation date. Where dual keys are not supported, pick a low-traffic evening, have the owner on the phone, and have the rollback documented before you start.

Least privilege, applied one connection at a time

Hard-coded keys are usually over-privileged because it was easier to grant everything than to work out what the integration actually touched. A reporting sync that reads invoices does not need write access to the sales ledger. A website plugin that creates orders does not need permission to issue refunds.

Go connection by connection and ask what the integration would need if it were built today. Scope keys to specific resources. Use separate credentials per integration so a leak in one place does not compromise the others. Where the provider supports short-lived tokens or OAuth with refresh, prefer them over static keys; a credential that expires in an hour is far less valuable to an attacker than one that expires never. Add IP allowlisting where the integration runs from a fixed office or hosting address.

Monitoring that earns its keep

Rotation without detection only resets the clock. Add three cheap checks. First, alert on authentication failures above a threshold, which will usually be the first sign that a revoked key is still in use somewhere you did not know about. Second, review the provider's usage logs monthly for calls from unexpected addresses or at unexpected hours — a nightly batch that suddenly runs at 2pm is worth a question. Third, and simplest, ask each integration owner quarterly whether the integration is still needed at all. Decommissioned integrations with live credentials are the quietest form of exposure there is.

Under UK GDPR, a confirmed compromise of a credential granting access to personal data is a personal data breach, and the seventy-two-hour reporting clock to the ICO starts when you become aware — not when you finish the investigation. Knowing which systems the key could reach is what makes that decision possible.

A rotation runbook you can defend

Write it down once, and reuse it. Named owner. Systems affected. Freeze period check. New credential issued and scoped. Test path confirmed. Deployment window. Rollback steps. Old credential revoked. Evidence filed. Calendar entry for the next review.

Six months from now, the question will not be whether you rotated keys. It will be whether you can prove it, and whether the person who inherits the integration can follow what you did.

All Articles

Related Articles

One Tab Away from Trouble: Bringing Critical Spreadsheets Under Proper Control

One Tab Away from Trouble: Bringing Critical Spreadsheets Under Proper Control

What the Search Box Already Knows: A SharePoint Permission Review Before Copilot

What the Search Box Already Knows: A SharePoint Permission Review Before Copilot

A Domain Is a Promise: Auditing SPF, DKIM and DMARC Before Enforcement

A Domain Is a Promise: Auditing SPF, DKIM and DMARC Before Enforcement