SMSMC BlogPortal Login

Your EHR, billing and lab systems are linked by API keys nobody tracks. List them and rotate them

How the integrations between EHR, scheduling, billing and lab systems create hidden attack paths, and the controls that close them, mapped to NIST CSF 2.0.

By Jim Venuto

Where This Fits

NIST CSF 2.0 → PROTECT → PR.PS: Platform Security + IDENTIFY → ID.AM: Asset Management

This post is part of our ongoing series mapping real-world healthcare security challenges to the NIST Cybersecurity Framework 2.0. Beyond governance and risk management, this one dives into the technical seams—the API integrations that connect your clinical systems and create silent trust paths attackers can exploit.

Key Takeaways

  • Every integration between your telehealth systems creates a silent trust path that attackers can exploit
  • API keys and service accounts are the “shared passwords” of the integration world — and most practices don’t track them
  • The exploit surface in healthcare doesn’t live inside any single system; it lives at the seams between them
  • Monitoring API activity is just as important as monitoring user activity — and almost nobody does it
  • A fractional CISO can map your integration risk and build controls without disrupting clinical workflows

Picture a breach where nobody hacks the EHR. Nobody breaches the telehealth platform. The attacker walks through the door between them.

Imagine a multi-location telehealth practice with all the right pieces in place. Its EHR vendor has a clean SOC 2 report. Its telehealth platform is HIPAA-compliant. Its billing vendor passed its most recent audit with flying colors. On paper, the security posture looks solid.

But between the scheduling system and the EHR sits a single API key. It was hardcoded into a configuration file three years ago when the integration was first set up. It has never been rotated. It has never been audited. And it has full read access to the patient database—because the developer who configured it chose the broadest permission scope to “make sure everything worked.”

When the scheduling vendor experiences a breach, that API key is among the credentials exposed. The attacker doesn’t need to break into the EHR. They don’t need to phish a provider. They simply authenticate through the front door of a legitimate integration—and quietly extract 23,000 patient records over a two-week period. The activity looks identical to normal scheduling synchronization.

The Integration Map Nobody Drew

A typical telehealth practice has a web of system-to-system connections that nobody has ever diagrammed. Each arrow below represents an API call. Each API call is a trust boundary. Each trust boundary is a potential attack surface.

EHR ↔ Telehealth Platform

Patient demographics, visit notes, clinical documents. Bidirectional sync runs every 60 seconds. The API key has full read/write access to the patient chart.

Telehealth Platform ↔ Scheduling System

Appointment times, patient contact info, provider availability. Real-time webhook fires on every booking. Service account has access to the entire patient roster.

Scheduling System ↔ EHR

Appointment confirmations, insurance eligibility, patient intake forms. Batch sync runs nightly. Uses a shared credential set up during initial implementation.

EHR ↔ Billing / Clearinghouse

CPT codes, diagnosis codes, patient insurance data, payment info. Claims submitted in real time. API transmits the most financially sensitive data in your practice.

EHR ↔ Lab Systems

Lab orders, results, specimen tracking. HL7/FHIR interface with broad access to clinical data. Often managed by the lab vendor, not your IT team.

EHR ↔ e-Prescribing (eRx)

Medication lists, prescription history, pharmacy routing. NCPDP/SCRIPT standard. Credential management is typically delegated to the eRx vendor.

EHR ↔ Patient Portal

Messages, test results, appointment requests, billing statements. Patient-facing API exposes data to the widest audience—and is the least likely to be monitored.

30%

of breaches involved a third party, double the prior year’s 15% (Verizon 2025 DBIR, all industries)

22%

of breaches began with credential abuse, the most common initial access vector (Verizon 2025 DBIR)

What APIs Actually Are (Without the Jargon)

If you manage or lead a healthcare practice, you don’t need to understand the technical details of APIs. You need to understand what they mean for your risk.

An API—Application Programming Interface—is a doorway between two systems. When your scheduling system books a telehealth appointment, it talks to your EHR through an API. When your billing system submits a claim, it talks to the clearinghouse through an API. When lab results come back, they arrive through an API.

Each of these doorways has a key. Sometimes it’s a literal key (called an API key). Sometimes it’s a username and password. Sometimes it’s a more sophisticated authentication token. But in every case, whoever holds that key can walk through the door.

If the key is stolen, copied, or never changed, anyone can walk through. And unlike a physical door, there’s no security camera watching who comes and goes. Most practices have no visibility into API activity whatsoever. The door opens and closes thousands of times a day—and nobody is watching.

The Five API Risks Your Practice Faces

1. Hardcoded Credentials

The risk: API keys embedded directly in source code, configuration files, or deployment scripts. These credentials were set once during initial integration and have never been changed. They often exist in multiple environments—development, staging, and production—using the same key.

Why it matters: When a vendor is breached or a developer’s laptop is stolen, those hardcoded keys become the attacker’s master key. Because they’re embedded in code rather than managed in a secure vault, they can’t be rotated quickly—changing them means rewriting and redeploying the integration.

How common: In small-practice integrations, hardcoded credentials are common. Most small practices lack the technical infrastructure for secure credential management.

2. Over-Permissioned Access

The risk: An integration that only needs to read appointment times has full access to patient records. A billing connection that only needs to submit claims can also modify patient demographics. Permissions are set to “all access” because it was easier during setup.

Why it matters: If that credential is compromised, the attacker inherits every permission the integration has—not just what it actually uses. A scheduling API key with full EHR access turns a scheduling breach into a patient data breach.

How common: Many healthcare integrations are configured with broader scope than they need. Developers choose “admin” access because scoping permissions requires documentation that doesn’t exist and testing that takes time nobody has.

3. Unmonitored Activity

The risk: Nobody watches API calls. There is no alerting on unusual volume, unusual timing, or unusual data access patterns. A bulk extraction of 50,000 patient records through an API looks identical to a normal nightly synchronization.

Why it matters: Without API monitoring, you have no way to detect a breach in progress. The scheduling vendor breach in our opening scenario went undetected for two weeks—not because the logs didn’t exist, but because nobody was looking at them.

How common: Few small practices have any visibility into API-level activity. They monitor user logins and maybe failed authentication attempts, but API traffic flows completely unwatched.

4. Vendor-to-Vendor Dependencies

The risk: Your telehealth vendor uses a sub-processor for transcription. Your billing vendor uses a third-party clearinghouse. Your lab interface routes through an intermediary. Each of these hops creates another trust boundary—and their API security is now your problem.

Why it matters: Your BAA (Business Associate Agreement) is with your direct vendor. But the data flows through systems you’ve never evaluated, managed by teams you’ve never met, secured by controls you’ve never verified. HIPAA requires your business associate to sign its own agreements with those subcontractors, but if a sub-processor is breached, your patients’ data is still exposed and your practice still has to deal with the consequences.

How common: Nearly every healthcare vendor relies on sub-processors. Most practices don’t know who these sub-processors are, let alone what security controls they maintain.

5. Shadow Integrations

The risk: Staff-configured Zapier automations that copy patient appointment data to a Google Sheet. IFTTT workflows that send visit notifications to a personal Slack channel. A billing coordinator’s custom Python script that pulls reports from the EHR API using credentials stored in a plain text file on their desktop.

Why it matters: These integrations move PHI through channels that IT has never reviewed, approved, or even knows about. They bypass every security control, every audit log, and every BAA in your organization. And they’re created by well-meaning staff trying to do their jobs more efficiently.

How common: If your practice has more than five employees and uses cloud-based systems, you almost certainly have shadow integrations. Most practices discover them only after a breach.

Integrations create convenience. They also create trust paths. Every trust path you don’t monitor is a path an attacker can walk.

Securing Your Integration Boundaries

The good news: you don’t need to rip out your integrations or rebuild your technology stack. You need to apply the same security discipline to your API connections that you already apply (or should apply) to your user accounts. Here are the five controls that matter most.

Control 1: API Key Rotation (90-Day Maximum Lifecycle)

What to do: Every API key and service account credential in your environment should be rotated on a 90-day cycle at maximum. Treat API keys like passwords—because that’s exactly what they are.

How to start: Inventory every API key in your environment. Document where each key is stored, which systems it connects, and when it was last changed. Then establish a rotation schedule. For high-sensitivity integrations (EHR, billing), consider 30-day rotation.

The standard: NIST CSF 2.0 PR.AA-01 covers identities and credentials for services as well as users. NIST SP 800-63B, which is about human authenticators, no longer recommends forced periodic password changes, so the case for rotating machine keys rests on something else: they are long-lived, rarely monitored and often copied. Where a platform supports short-lived OAuth tokens, prefer them, and rotate any key immediately when a vendor reports a breach.

Control 2: Least-Privilege Scopes

What to do: Audit every integration’s permission scope. If an integration only reads appointment data, it should only have read access to appointment data—not full access to the patient chart, not write access to demographics, not admin access to the system.

How to start: For each integration, document what data it actually needs and what access it actually has. Close the gap. Most EHR and telehealth platforms support granular API scoping—the settings just haven’t been configured.

The standard: ID.AM asset management requires understanding what each system can access. PR.AA-05 requires access permissions that follow least privilege—for machines, not just humans.

Control 3: API Activity Monitoring

What to do: Implement logging and alerting on API activity. At minimum, you should be alerted on: unusual call volume (10x normal), calls outside business hours, access to data sets that the integration doesn’t normally touch, and any failed authentication attempts.

How to start: Most platforms generate API logs by default—they’re just not being reviewed. Start by routing API logs to your existing SIEM or log management platform. If you don’t have one, even a basic log aggregation tool provides visibility you don’t have today.

The standard: NIST CSF 2.0 DE.CM (Continuous Monitoring) calls for monitoring networks, network services and computing environments for potentially adverse events (DE.CM-01, DE.CM-09). API traffic falls squarely within that.

Control 4: Vendor Dependency Mapping

What to do: For every vendor integration, document the complete data flow—including sub-processors. Know where your data goes after it leaves your system. Require vendors to disclose their sub-processors and provide evidence of their security controls.

How to start: Send every integration vendor a simple questionnaire: Who are your sub-processors? What data do they access? What security certifications do they hold? What happens to our data if your contract with them ends? Add sub-processor disclosure requirements to your BAAs.

The standard: NIST CSF 2.0 GV.SC (Supply Chain Risk Management) and ID.AM (Asset Management) both require visibility into third-party data flows and dependency chains.

Control 5: Shadow Integration Elimination

What to do: Conduct a shadow integration audit. Identify every unauthorized automation, script, or third-party connector that moves patient data outside of approved channels. Then either bring them under management or shut them down.

How to start: Ask your staff directly: “Are you using any tools, automations, or workarounds to move data between systems?” Frame it as an improvement initiative, not a disciplinary exercise. You need honesty, not silence. Then establish a simple approval process for new integrations.

The standard: ID.AM requires a complete inventory of data flows. Shadow integrations are, by definition, undocumented data flows that create unmanaged risk.

Integration Risk Register

Use this template, filled in here with an illustrative example, to document and assess every API integration in your practice. Each row represents a trust boundary that should be actively managed, monitored, and reviewed on a quarterly basis.

IntegrationSystems ConnectedData SensitivityAuth MethodScope / PermissionsMonitoringVendor AssuranceRisk Score
EHR ↔ TelehealthEHR ↔ telehealth platformPHI (full chart)API KeyRead/Write — full patient recordNoneBAA onlyHIGH
EHR ↔ LabEHR ↔ reference labPHI (clinical)HL7/FHIR TokenRead/Write — orders & resultsVendor-managedBAA + SOC 2MEDIUM
Scheduling ↔ EHRScheduling tool ↔ EHRPII + insuranceAPI KeyRead/Write — patient rosterNoneBAA onlyHIGH
Billing ↔ ClearinghouseEHR/PM ↔ clearinghousePHI + financialSFTP + API KeyRead/Write — claims & eligibilityBasic loggingBAA + HITRUSTMEDIUM
eRx ↔ PharmacyEHR ↔ e-prescribing networkPHI (medications)NCPDP/SCRIPTWrite — prescriptionsVendor-managedBAA + certifiedMEDIUM
Portal ↔ EHRPatient portal ↔ EHRPHI (patient-facing)OAuth 2.0Read — results, messages, billingAudit logBAA onlyMEDIUM
Telehealth ↔ SchedulingTelehealth ↔ Scheduling vendorPII (contact info)Webhook + API KeyRead/Write — appointmentsNoneBAA onlyHIGH
Shadow / ZapierAny ↔ Google Sheets/SlackUnknown (likely PHI)OAuth / personalUnknown — unauditedNoneNo BAACRITICAL

Scoring guidance: Rate each integration as CRITICAL, HIGH, MEDIUM, or LOW based on: data sensitivity, authentication strength, permission scope, monitoring coverage, and vendor assurance level. Any integration with “None” for monitoring and broad permissions is HIGH or CRITICAL by default.

Integration Security Self-Assessment

Can you produce a complete list of every API integration in your practice—including the authentication method and permission scope for each one?

Do you have a documented schedule for rotating API keys and service account credentials? Has it been followed?

Are you monitoring API call volumes and patterns for anomalies, or does API traffic flow completely unwatched?

Do you know every sub-processor that handles your patient data downstream of your primary vendors?

Have you conducted a shadow integration audit—asking staff directly about unauthorized automations or workarounds?

If a vendor notified you today that their systems were compromised, could you identify within one hour which API keys to revoke and which data may have been exposed?

If you answered “no” to more than two of these questions, your integration boundaries are a significant and unmanaged risk. The good news: these are solvable problems that don’t require tearing out your technology stack.

References

National Institute of Standards and Technology. (2024). Cybersecurity Framework 2.0. U.S. Department of Commerce. https://www.nist.gov/cyberframework

U.S. Department of Health and Human Services, 405(d) Program. (2023). Health Industry Cybersecurity Practices (HICP): Managing Threats and Protecting Patients (2023 edition). https://405d.hhs.gov/

U.S. Department of Health and Human Services, Office for Civil Rights. (2025). Breach Portal: Notice to the Secretary of HHS Breach of Unsecured Protected Health Information. https://ocrportal.hhs.gov/ocr/breach/breach_report.jsf

Secure Your Integration Boundaries

The breach won’t come through the front door. It will come through the API connection nobody is watching. Map your risk before an attacker does. Your practice owns the integration inventory and the decisions about which connections to keep; your IT provider rotates keys and routes logs; your vendors disclose their sub-processors and secure their own platforms.

Want to talk it through?

Book a free 30-minute call with Security Medic Consulting.