Compliance

Phase 1, Phase 2, then keep it running

A fixed-price gap analysis, remediation through to your audit, and upkeep after it. All in a workspace you keep.

All compliance
Security

Find it before a buyer does

Testing, assessments and security leadership, run by the researcher who found the Mirai botnet kill switch.

All security
Industries

Prove you are secure

To the people you sell to, raise from or answer to.

All industries
Resources

Learn the space

Original research, free tools and plain-language guides, from a published security researcher.

Read the blog
Guides

How to Offboard Contractor Engineers Without Leaving Access Behind

On this page, 6 sections
  1. Why contractors are the bigger offboarding risk
  2. Set contractors up to be removable
  3. The contractor offboarding checklist
  4. When a contractor leaves on bad terms
  5. The gaps that usually turn up
  6. Common questions

To offboard contractor engineers securely, remove their access to every system on their last day, not only email. That means suspending their company identity account, removing them from the cloud project, source control and deployment pipeline, revoking any keys or tokens they created, rotating shared secrets they could see, and recording each step on a leaver checklist so you can prove it happened.

Contractor offboarding is where small companies leak access. Employees leave through an HR process that at least triggers someone to turn off email. Contractors often just stop invoicing. Their accounts stay active, their personal GitHub account keeps write access, and the API key they generated in month two keeps working for years. This guide covers how to set up contractors so they are easy to remove, and the checklist to run when they go.

Why contractors are the bigger offboarding risk

In our engagement as fractional CISO for an early-stage aviation marketplace, most of the engineering was done by contractors rather than employees. Offboarding was the single biggest security risk at the company. The reasons are common to most startups that build this way:

  • Contractors rotate faster than employees, so there are more departures to get right.
  • They often start on personal accounts, which the company cannot disable.
  • They are frequently given broad access to get going quickly, and it is never narrowed.
  • Nobody owns their departure. There is no exit interview, no equipment return and no HR ticket.
  • They work on their own devices, so company data can sit on a laptop you do not manage.

The access a contractor leaves behind is one of the most common ways small companies are compromised, whether through the contractor themselves or through their account being taken over later.

Set contractors up to be removable

Clean offboarding starts at onboarding. Three decisions make every later departure a short job.

Company accounts, never personal ones

Give every contractor a company identity account in Google Workspace or Microsoft 365, with multi-factor authentication enforced. Use that account for every system that supports single sign-on. When the account is suspended, everything that relies on it stops at once. Personal Gmail addresses added to shared drives or the cloud console cannot be switched off by you.

Access by role, not by person

Grant permissions to groups that represent a job, such as backend engineers or infrastructure, and add contractors to the group. When they leave, removing them from the group removes the access. Permissions granted directly to an individual are the ones that get missed. In the aviation engagement, Google Cloud access was granted by role for exactly this reason.

A written leaver checklist from day one

Write down every system a contractor can touch while you are giving them access. That list becomes the offboarding checklist. If you add a system later, add it to the list at the same moment.

Free weekly email

Get The Compliance Brief every Tuesday

One email a week from Jacob Masse: the security and compliance stories that changed something that week, and what each one means if you sell software to enterprise buyers. Five stories, a take on each, five minutes to read.

Free. Unsubscribe in one click, and replies reach Jacob directly. Read the latest issue or browse the archive.

The contractor offboarding checklist

Run this on the contractor's last working day. Same day matters: in the aviation engagement, when a contractor's engagement ended, access ended the same day.

1. Identity provider

  • Suspend the account rather than deleting it straight away, so files and logs are preserved.
  • Sign the user out of all active sessions and reset sign-in cookies.
  • Revoke OAuth tokens for third-party apps the user authorized, and remove any app passwords.
  • Remove registered security keys and recovery options.
  • Transfer ownership of their documents and shared files to a named employee before eventual deletion.
  • Remove them from groups and shared mailboxes, and check for mail forwarding rules they set up.

Our article on invalidating user sessions explains why suspending an account does not always end existing sessions on its own.

2. Cloud project

  • Remove the contractor from every group that grants cloud access.
  • Search for any IAM bindings granted directly to their account and remove them.
  • List service account keys they created and delete or rotate them. Keys outlive the person.
  • Remove SSH keys they added to instances or project metadata.
  • Check for resources they created that are still running, such as test instances or public storage buckets.

3. Source control and CI/CD

  • Remove them from the organization, not only from individual repositories.
  • Revoke personal access tokens and deploy keys tied to their account.
  • Review CI/CD secrets they could read and rotate any that granted production access.
  • Check for webhooks or integrations they connected.

Our guide on securing your GitHub organization covers SSO enforcement, which removes most of this work for future departures.

4. Shared secrets

Any secret the contractor could see should be treated as known outside the company: database passwords, third-party API keys, signing keys, and anything stored in a shared password vault folder. Rotate the ones that grant meaningful access. If you cannot tell which secrets they could see, that is a sign your secrets need to move into a managed store with access logging. See secrets management for startups.

5. Everything else

  • SaaS tools without single sign-on: project tracker, error monitoring, analytics, design tools, support desk.
  • Domain registrar, DNS provider and app store accounts, if they had any role there.
  • Payment processor and other vendor dashboards.
  • Shared chat channels with customers or partners.
  • VPN profiles or network access, if you have them.

6. Data on their devices

You usually cannot wipe a contractor's personal laptop, so rely on the contract. It should require the contractor to return or destroy company data at the end of the engagement and to confirm in writing that they have done so. Ask for that confirmation as part of the checklist.

7. Record it

Write down the date, who ran the checklist and what was done for each item. That record is what a buyer's security questionnaire or a future audit will ask for. An access review every quarter then catches anything the checklist missed; our article on running an access review covers how.

When a contractor leaves on bad terms

Do the identity and source control steps before the conversation, not after. Suspend the account, end sessions and remove repository access at the moment the engagement ends, then rotate shared secrets the same day. Review recent activity in audit logs for unusual downloads, sharing changes or new keys. If anything looks wrong, treat it as an incident and follow your response plan.

The gaps that usually turn up

  • A contractor's personal email still has access to a shared drive folder or the cloud console.
  • A service account key created for local testing is still valid long after the person left.
  • CI/CD secrets were never rotated because nobody knew who had seen them.
  • A SaaS tool outside single sign-on still has an active login.
  • Someone was removed from a repository but not from the organization, so they keep access to everything else.

Each of these is cheap to prevent and expensive to discover later.

Common questions

How quickly should contractor access be removed?

On the last day of the engagement. Same-day removal is what buyers and auditors expect, and it is achievable when contractors use company accounts and access is granted through groups. A delay of weeks is common at startups and is exactly the window an attacker uses.

Should contractors get company email accounts?

Yes. A company account lets you enforce multi-factor authentication, see sign-in activity and remove everything in one action. The licence cost is small compared with the risk of access tied to a personal account you cannot control.

Should we delete a departed contractor's account?

Suspend it first, transfer ownership of their files, and keep it suspended long enough to cover any investigation or handover. Delete it afterwards under your normal retention practice. Deleting immediately can destroy files and logs you may need.

What should a contractor agreement say about security?

At minimum: use of company accounts, protection of credentials, no copying of company data to unmanaged locations, prompt reporting of suspected compromise, and return or destruction of company data at the end of the engagement with written confirmation.

If your product is built by contractors and you are not sure who still has access to what, book a free call. We will help you find the loose ends and set up offboarding that holds.

Building with contractors and no security staff? Our fractional CISO service starts from $2,500 a month.

See the fractional CISO serviceOr book a free call

Before you go

Want the rest of this by email?

If this was useful, I send a few short notes on security and compliance. Unsubscribe in one click, and replies reach me directly.

From Jacob Masse, Principal of TrazTech: the files by email, then a few short notes over the next month. No spam, unsubscribe in one click.