Outsourcing HIPAA andPCI Work toan Offshore Team
Outsourcing HIPAA and PCI work offshore: what the BAA chain must cover, how to keep your developers out of PCI scope, and what DORA adds for EU firms.
No regulation says your engineers must sit in your country
If someone has told you that regulated workloads cannot be built offshore, check who told you. Neither HIPAA nor PCI DSS restricts where the code is written. HHS defines a business associate functionally, as a person performing functions on behalf of a covered entity that involve creating, receiving, maintaining, or transmitting protected health information. Location is not part of that test, and HHS's own examples include an IT contractor providing support either in person or remotely. PCI DSS is a scoping standard rather than a map, and its scoping guidance says entities that outsource their payment environments or payment operations to third parties remain responsible.
The restriction that actually blocks these deals lives elsewhere: in a hospital system's vendor terms, a payer agreement, an enterprise MSA with a personnel-location clause, or a cyber insurance policy. Read what you have already signed before ruling out a partner on regulatory grounds. If you are an EU financial entity, the binding rules are in DORA rather than in either standard, covered in its own section below.
That leaves two narrower questions: whether your contract chain reaches the individual at the keyboard, and whether that individual needs to be inside the regulated boundary at all. The second is an architecture problem, and it decides your cost.
HIPAA: the BAA chain has to reach the person writing the code
A subcontractor that creates, receives, maintains, or transmits PHI on behalf of another business associate is itself a business associate, per the definition at 45 CFR 160.103. HHS states the flow-down duty directly: a business associate must establish a BAA with its subcontractor before disclosing PHI to that subcontractor, and all such downstream subcontractors are also business associates, contractually responsible for complying with the terms of their BAAs. HHS cites 45 CFR 164.502(e)(1)(ii) and 164.308(b)(2).
One detail catches buyers out. HHS also says, citing 45 CFR 164.502(e)(1)(i), that a covered entity is not required to establish a BAA directly with a subcontractor of its business associate. That is a convenience in law and a blind spot in practice: if your vendor subcontracts part of the build, you hold no contract with the people doing it. Ask for the subprocessor list and the agreements flowing down to each. A vendor who cannot produce that chain on request does not have it. The BAA's required elements sit at 45 CFR 164.504(e), with security incident reporting added at 45 CFR 164.314(a)(2)(i).
Two things worth being blunt about. Business associates carry direct liability, which HHS describes as being directly liable under the HIPAA Rules and subject to civil and, in some cases, criminal penalties, including for failing to safeguard electronic PHI. And there is no such thing as HIPAA certification: HHS runs no certification programme, and its sample provisions page notes that even its own sample language is not required for compliance. A HIPAA compliant badge is marketing. Ask instead for the signed BAA, the security risk analysis, and the name of the person accountable for the Security Rule.
PCI DSS: the job is keeping developers out of scope
Work from v4.0.1, published June 2024: v4.0 retired on 31 December 2024 and v3.2.1 on 31 March 2024, so a vendor still describing controls in v3.2.1 terms has not looked at this recently. Scope is then the whole game. The standard covers system components, people, and processes that could impact the security of cardholder data, including components that do not store, process or transmit it but have unrestricted connectivity to the cardholder data environment.
It is explicit that all bespoke and custom software which stores, processes, or transmits account data is in scope, and that entities using software vendors to develop such software are responsible for ensuring those vendors develop it according to Requirement 6. Outsourcing does not put developers outside the standard, and their repositories and build tooling may be in scope too.
The way out is segmentation done properly. Segmentation of the CDE from the rest of the network is not itself a requirement, but to be considered out of scope a system component must be properly segmented from the CDE. Two traps follow: encryption alone is generally insufficient to render cardholder data out of scope, and encrypted data stays in scope for any entity that also holds the decryption key. Tokenisation helps only if the vault and keys sit inside your boundary and the development environment is isolated from both.
Requirement 12.8 is your side of it: keep a list of third-party service providers with which account data is shared, hold written agreements in which they acknowledge responsibility for the security of account data, run due diligence before engagement, monitor each provider's compliance status at least once every 12 months, and record which requirements each party manages or shares. Two lines from the standard's own guidance are worth repeating to anyone selling you comfort: Requirement 12.8 does not specify that the customer's TPSPs must be PCI DSS compliant, and use of a PCI DSS compliant TPSP does not make a customer PCI DSS compliant.
In the EU, DORA turns the contract into a regulated artefact
If you are one of the entity types listed in Article 2 of Regulation (EU) 2022/2554, the Digital Operational Resilience Act has applied since 17 January 2025 and your outsourcing contract has mandated content. Article 30(2) requires every arrangement with an ICT third-party service provider to describe the services fully, state whether subcontracting of a service supporting a critical or important function is permitted and on what conditions, name the regions or countries where the work happens and where data is processed and stored, require advance notice of changes to those locations, and set termination rights with minimum notice periods.
For services supporting a critical or important function, Article 30(3) adds quantitative and qualitative performance targets, tested contingency plans, participation in your threat-led penetration testing under Articles 26 and 27, unrestricted rights of access, inspection and audit by you and by the competent authority, and an exit strategy with what the regulation calls a mandatory adequate transition period. Article 28 adds a register of information on all ICT contractual arrangements, reported at least yearly to your competent authority. Read as a buyer, that is a filter: a partner who will not name the countries where work happens, grant audit rights, or commit to a transition period is not a candidate.
Design it so compliance is a scope question, not a trust question
Contracts allocate blame; architecture prevents the incident. The cheapest control is arranging things so the offshore team never needs regulated data. That starts with non-production environments: no production PHI or account data in development, staging or test, and no exceptions for debugging. Generate synthetic fixtures from the schema with the same cardinality and the same awkward edge cases, and answer any request for a production extract from inside your boundary with a redacted row and a failing test.
Where live access is genuinely needed, make it an event rather than a standing permission: time-bound, approved by a named person, tied to a named individual rather than a shared account, delivered through a jump host so regulated data never lands on a laptop, and logged well enough to answer who read which record and when. In multi-tenant SaaS the same controls do double duty, through row-level security keyed to the tenant and a connection path that cannot query across tenants.
AI features need the same discipline one layer out, and this is where the newest mistakes are. A model provider is a subcontractor: if a prompt can carry PHI or account data, the BAA or DPA chain has to reach that provider, and zero data retention is a term you negotiate rather than a default you assume. Prompt logs, retrieval indexes, trace spans and eval sets become copies of regulated data, carrying the same retention, access and deletion duties as the database you were careful about. In agentic systems the boundary to enforce is the tool call: redact at the tool interface, and build eval sets from synthetic or de-identified cases.
Three checks that settle it faster than a questionnaire
Check 1, evidence instead of badges. A SOC 2 report is an attestation issued by a CPA firm against the AICPA's Trust Services Criteria, not a certification, and a Type 2 covers a period while a Type 1 covers a point in time. What matters is the scope, the period, the listed exceptions, and how the vendor's own subcontractors were treated. ISO/IEC 27001 is a real certification, but read the certificate's scope statement, which sometimes covers a head office rather than a delivery team.
Check 2, the incident rehearsal. Ask them to walk through the last security incident they handled: how it was detected, who was notified within how many hours, and what changed afterwards. Then check that the notification window they just described matches the one in the contract in front of you.
Check 3, do not lean on local law. Nepal, where we are based, enacted the Individual Privacy Act in 2018 as its first privacy-specific legislation; Nepali legal commentary differs on how far implementing rules and a competent authority have developed since, and it is not a GDPR equivalent. There is no European Commission adequacy decision covering Nepal, nor any South Asian country, so EU personal data moves under an Article 46 transfer tool, in practice the standard contractual clauses plus a transfer impact assessment. Your protection is the contract and the architecture, not the vendor's home statute.
Working with Darvi Labs
Darvi Labs is a software engineering company based in Dhumbarahi, Kathmandu, working with product and engineering teams in the US, UK, EU, Australia and the Gulf. Our work is scalable web application architecture and agentic AI engineering, and both run into this question regularly: how to keep a delivery team productive while regulated data stays inside a boundary the team never needs to enter.
If you are weighing whether a regulated workload can be built offshore, the useful first conversation is about scope rather than rates: which parts of the system genuinely touch PHI or account data, and which environments can run entirely on synthetic data. You can see the kind of work we take on through the portfolio page, more engineering and outsourcing write-ups on the blogs page, and reach the team through the contact page. None of the above is legal advice, and the sources worth relying on are the primary ones named here.
Thinking through a similar decision?
Send us the constraint, the workflow, or the decision that keeps resurfacing. We can help clarify what should change first.
Start a conversation→Keep the decision trail moving.
Three more short reads from DarviLab work across product, systems, and operating constraints.
Nepal's Software Talent Pool: Size, Shape and Limits
Nepal's software talent pool, in figures: how big it really is, where the engineers are trained, what the employability gap means, and who keeps leaving.
Streaming LLM Responses: Proxies, Timeouts, Resumption
Streaming LLM responses breaks in the proxy layer, not the model: response buffering, the four idle-timeout clocks, and what resumption really costs you.
Zero-Downtime Postgres Schema Migrations Under Load
Zero-downtime Postgres schema migrations: how the ACCESS EXCLUSIVE lock queue stalls reads, why lock_timeout and retries fix it, when expand-contract pays.