NewIntroducing the Teleperson Protocol (TPP), an open draft that helps personal agents work with every company, even on the phone.Read the announcement
All posts

Engineering · Product

Security is the feature patients never see

In healthcare, the best security work is invisible to patients. The principles guiding how we protect a pharmacy's portals and assistant, and the trade-offs behind them.

Teleperson Team · July 2, 2026 · 4 min read

No patient will ever thank us for keeping a token out of browser storage. That's how it should be. In healthcare software, the security work that matters most is the work nobody notices: patients get their refill, staff get through their queue, and private information stays where it belongs.

But invisible doesn't mean free. Every safeguard costs a little friction somewhere, and the real work is deciding where that friction lands. Here are the principles guiding how we're securing a pharmacy's patient portal, its staff portal and its assistant, including a few places where we're honest that we're not there yet.

Put the friction where the exposure is

A patient account sees one person's information. A staff account can see many. Those two shouldn't get the same lock.

Patients sign in to their portal with their last name and date of birth, the same facts a pharmacist would ask for at the counter. That keeps the most common action, checking on your own prescriptions, nearly effortless. The staff portal is where extra steps belong. Staff sign in with a password, and adding a second factor for staff is the direction we're heading. Extra steps are a cost we're willing to put on a small number of trained users. We aren't willing to put them on every patient trying to see whether their medicine has shipped.

The rule we use: when you add friction, ask who is paying for it and what it protects. If the answer is "every patient, to protect something only staff can reach," it's in the wrong place.

Browser storage is not a safe

Web apps hold things in the browser for convenience: sign-in tokens, the last screen you were on, a remembered email. In healthcare, each of those is a small decision about where sensitive data lives.

Our staff portal keeps its sign-in token only for the life of the browser tab, never in long-lived storage. A long-lived copy survives on disk and is readable by any script that gets onto the page. Our general rule follows from that: anything that identifies a patient or grants access should live as briefly as possible, ideally in memory. It should disappear on sign-out or when the page is closed.

We're also honest about where convenience has won so far. The staff portal's "remember me" option has stored more than just an email, and our own code documents that as a risk and points people to a password manager instead. That's exactly the kind of trade-off we're revisiting. A convenience that saves a staff member a few seconds isn't worth a credential sitting readable in a browser.

These choices cost something. A shorter-lived session means signing in again more often. Keeping sensitive state in memory means a reload in the middle of something can send you back to the start. We think an occasional repeated sign-in is better than leaving access lying around.

A rule in the prompt is not a control

The principle we most want other teams building agents to take away is this one.

It's easy to write a policy into an agent's instructions: "never use the caller's phone number to identify them," or "only send texts to the number on the patient's record." The agent will mostly follow it. But instructions describe what the agent should do. The systems behind it decide what can happen. If a backend function still accepts a phone number, or still has a fallback that picks a destination on its own, the policy is only as strong as the model's attention on that call.

So we treat prompt rules as guidance, not security boundaries. If an agent must never do something, the systems it calls shouldn't be able to do it either. If a text needs a destination, the server looks it up from the patient's record. The agent doesn't supply it, and nothing guesses.

The same habit applies to smaller decisions:

PrincipleWhy
Logs record the shape of data (which fields, what type), not the valuesYou can debug a problem without collecting the information you're protecting
Match records on a verified patient ID, never a phone numberFamilies share phones, and phones change hands
Hold internal tools to the same standard as the productA review dashboard can hold the same information as the portal

Security in healthcare isn't a feature on the pricing page, and patients shouldn't have to think about it. Our job is to make the safe path the only path the system allows. Put extra steps on the accounts that can see the most, keep sensitive values out of places that outlive the session, and never let the instructions be the only thing standing between an agent and a mistake.