An outside firm can build your AI system while your documents stay on your servers. Its engineers work through accounts and machines you control.
An outside firm can build and run an AI system on documents that must not leave your company. The documents stay on your servers, and the firm's engineers reach them through accounts you issue and can switch off, from machines you control. They build on sample documents your team has approved and work with real documents only on your servers. To find a firm that can work this way, ask how its engineers reached a past client's documents and what the firm deleted at the end.
The short answer: give each outside engineer a named account and a work machine your company controls, where copying files out is blocked. Agree in writing who has access, from which country and with which tools, and what happens to every copy at the end. Check before the first day that no file can get out, and on each person's last day that their access is gone.
Read next
Yes. Where the language model runs is a separate decision, covered in the closed-perimeter article linked above. This article is about the people who build the system and what they can see and copy. A model on your own servers protects little if an engineer saves a folder of real documents to a laptop to test a prompt (the instructions the model follows).
Under EU data protection law, even reading personal data counts as processing. Article 4(2) of the GDPR defines processing as any operation performed on personal data, and its list includes “consultation”, that is, looking at the data. A firm whose engineers need that access to do the work is usually your processor, the GDPR's word for a company that handles personal data on your behalf. Article 28 requires a contract or another binding legal act with a processor.
If the firm is based outside the European Economic Area, its remote access is a transfer of the data abroad, even if the data only appears on a screen. The European Data Protection Board, which brings together the EU's data protection authorities, says so in its Guidelines 05/2021.
A transfer needs a legal ground under Chapter V of the GDPR. One is an adequacy decision, by which the European Commission finds that the firm's country protects personal data well enough. Another is the standard contractual clauses, ready-made contract terms the Commission adopted on 4 June 2021. Before relying on them, the parties assess the laws of the firm's country, as the Board's Recommendations 01/2020 describe.
In the United States, the Federal Trade Commission's Safeguards Rule covers financial institutions the FTC oversees, such as mortgage lenders and payday lenders. They must take reasonable steps to pick service providers that can protect customer information, write those protections into the contract and check the providers from time to time. They must also use multi-factor sign-in for “any individual accessing any information system”, unless their security lead approves reasonably equivalent or more secure controls in writing. Ask your counsel which of these rules apply to you before anyone outside gets access.
Give them access the way you give it to staff, with tighter limits:
Before the first engineer starts, ask someone on your side to get a document off the work machine by every route they can think of. Close every route that works, and repeat the test after each change to the setup.
Much of the work does not need real documents. Most of the code, from reading incoming files to the screen where reviewers check answers, can be built on approved samples. Good samples are published documents of the same type and made-up ones generated on your servers from your own templates.
Real documents are needed for two jobs. One is the acceptance set: real documents labelled with the correct answers, which the system is scored against before each release. The other is adjusting the system on the cases the samples miss. Both happen on your servers, by people approved to see real documents.
Removing names does not always make a document anonymous, because an account number or a date and amount can still point to one person. Recital 26 of the GDPR says that pseudonymised data, where names are replaced but extra information could still link the data to a person, counts as personal data. So keep such samples on your servers until your data protection officer confirms they are anonymous.
A running system makes copies of its own, in logs and in the search index, and the article on AI pilots linked above lists them. Copies made by people while building are easier to miss:
Treat the search index like the documents. It stores each passage as an embedding, a list of numbers that captures its meaning, and many setups keep the passage text next to it. Research shows text can be rebuilt from the numbers alone.
At the EMNLP conference in 2023, Morris and colleagues rebuilt 92% of 32-token passages exactly (a token is a word or part of one). They worked from embeddings made by one open model and could query that model repeatedly. Exact recovery was lower for a commercial model and for longer passages. The same method recovered 89% of full names from a set of clinical notes.
Put it in writing that your documents and anything made from them, such as the search index or the acceptance set, stay on your systems.
Only the tools on a short list you agree with the firm for the machines that can reach your documents. To build the list, ask which AI coding assistants and online tools its engineers use every day. For each one, ask whether it sends the code it sees, or text pasted into it, to an outside provider.
If the team wants an AI coding assistant, connect it to a model inside your perimeter, the network and systems your company controls. Otherwise, install it only on machines that never see documents. The list goes into the contract, and adding a tool needs your approval.
For EU personal data, Article 28 of the GDPR lists what the contract must contain. Among other things, the firm acts only on your documented instructions, and everyone with access must keep the data confidential. The firm takes the security measures Article 32 requires, allows your audits, and brings in no other processor without your written permission in advance. When the service ends, the firm deletes or returns the data, as you choose, and deletes existing copies, unless EU or member state law requires it to keep them.
Projects like this need a few terms on top:
This is not legal advice, and your counsel drafts the terms for your jurisdiction.
Access should end on the day the work does. The US standards agency NIST covers outside staff, including firms that develop systems, in control PS-7 of its security catalogue, SP 800-53. The control asks you to make the firm report, within a time you set, when anyone holding your logins or access rights moves to other work or leaves.
On the last day, your team disables the accounts and virtual desktops and collects any managed laptops. Change any passwords and keys the outside engineers knew on the same day, and get the firm's written confirmation of which copies it deleted and that none remain. Run the same steps when one engineer leaves a project that carries on.
Ask each firm on your shortlist for written answers, and compare them side by side:
The one language model project amBrain describes in public is this: “We have taken an LLM integration to production inside a client's FinTech perimeter: extracting and normalising unstructured broker and venue notices — corporate actions, instrument and margin changes — into structured records the trading system consumes.”
This article is not a case study. The client is not named. The article does not claim that amBrain's engineers worked inside that client's systems or that the project used any of the setups above. It gives no prices or timelines.
amBrain has been building software since 2019. On ownership, amBrain's line is: “The client keeps full ownership of the product and the code, except our reusable components.” Ask amBrain for the list of those components by name before you sign, as you would ask any other firm.
Before you bring in an outside team for an AI system on restricted documents, put the questions above to every firm on your list.
Bring your current architecture and the failure mode that worries you, and we will go through it together in half an hour.