Blackhount AI that runs your company while you sleep Saturday, November 14, 2026
Blackhount
Sealed Room guide

How to protect your source code when you outsource development

Agencies, freelancers and offshore teams can ship a lot of work, but most companies hand them far more of their code than any single task needs, for far longer than the work lasts. This guide covers what to settle before work starts, how to scope access, and how to check what comes back.

In short: Settle ownership and confidentiality in the contract, give each outside developer only the code for their current task, keep keys and real customer data out of reach, check every change before it is merged, and end access the day the work ends.

What is actually at risk

In the AI era, your code carries more of your business than ever: the prompts, agent instructions, model settings, evaluation data and business rules that took years to get right. That is the intellectual property an outside team can see when you hand over a repository. The risks come in five forms:

  • Code copied and reused. Your product's logic turning up in another client's product, or in a competitor's.
  • Keys and passwords taken. From the code, from .env files, or from old commits where they were deleted but never removed from history.
  • Customer data exposed. Real data in test databases, sample files or logs that came with the code.
  • Something slipped into a change. A new library you did not ask for, a script that runs on install, or a build setting that sends data somewhere.
  • Access that outlives the contract. Accounts, tokens and copies that are still there months after the last invoice.

Before work starts: settle it in the contract

Most outsourcing problems are cheaper to prevent on paper than to fix later. Make sure the agreement covers:

  1. Who owns the work. Everything written for you belongs to you, including code written by anyone the agency brings in.
  2. Confidentiality. What counts as confidential, and that it covers code, data and anything learned about your product.
  3. Who will see the code. Named people, and your approval before anyone new is added, including subcontractors.
  4. How they work. Two-step sign-in on every account, no copies on personal devices, no pasting your code into outside tools you have not approved.
  5. The end. Return or deletion of every copy when the work ends, confirmed in writing.

Have a lawyer draft or review these terms for your situation.

Scope access per person and per task, not per vendor

Agencies rotate people. The developer who starts your project is often not the one who finishes it, and "the agency has access" quickly becomes "anyone at the agency has access". Two rules keep this under control:

  • Every person signs in as themselves. No shared accounts and no shared passwords, so you always know who did what.
  • Every task gets only what it needs. Git hosts such as GitHub grant access to a whole repository at once, so scoping by task means giving the outside developer a workspace with the task's folders instead of the repository itself.

Keep keys and real data out of reach

  • Give outside developers test keys and sample data that are safe to lose.
  • Keep .env files and production settings out of anything you share.
  • If real keys were ever committed to the repository, assume anyone with the repository has them, and change them.
  • Keep production systems, databases and customer data on your side. Outside developers rarely need them to build a feature.

Check what comes back

Review is where you catch both honest mistakes and anything worse. For every change from an outside developer, look for:

  1. New libraries. Every new dependency is someone else's code running in your product. Ask why it is needed.
  2. Files that run on their own. Build and deploy workflows (such as GitHub Actions files), install scripts, and scheduled jobs can run with your secrets the moment they are merged.
  3. Changes outside the task. A login fix should not touch billing.
  4. Addresses and keys written into the code. Anything that sends data to a server you do not recognize.
  5. Tests changed to pass. A test edited to match broken code instead of the other way round.

When the engagement ends

  • Remove every account the same day: Git host, build tools, cloud, chat.
  • Change any key or password they could have seen.
  • Get written confirmation that copies were deleted, as the contract requires.

Removing someone from a repository does not remove the copies they already made. The surest way to limit what leaves with them is to never hand over the whole repository in the first place. Our offboarding checklist covers the details.

How the Sealed Room fits outsourced work

  • One room per person, per task, with only the folders that task needs, copied from one exact commit, with no history and no keys.
  • Each person signs in as themselves, with a code sent to their email. No GitHub account and nothing to install, which suits offshore teams on their own laptops.
  • Only the internet you allow. Package sites for reading by default; GitHub, GitLab and Bitbucket are never reachable from a room.
  • Review built in. You see every changed line. Files that could run automatically are flagged, and new files are accepted only inside the folders you gave the room.
  • Access ends on time. Each room closes at the time you set, and removing a person signs them out at once.
  • A record of everything, every change and connection, which cannot be edited.

See how the Sealed Room works.

Questions teams ask

Do offshore developers need a VPN or a company laptop?

Not for a Sealed Room. It runs in the browser, and the code stays in the room rather than on their machine.

Can they install the libraries they need?

Yes, from the package sites you allow, such as npm and PyPI, for reading. Everything else on the internet is closed unless you open it.

How long can a room stay open?

You set the time when you open it, up to 8 hours. The developer gets an email 15 minutes before the end so they can hand in their work.

Give the task, keep the repository.

Open a room for one task with only the folders it needs. You review every change before it reaches your GitHub.

Request access