Security

How Hasala protects your data, what its design can and can't defend against, and how to report a security problem to security@hasala.app.

Last updated Beta

How Hasala keeps your data safe

Hasala is an experimental beta: features change often, things can break, and data can be lost or reset (see An experimental beta).

This is a plain summary of Hasala’s security design during the beta. It describes what the design protects, and also what it doesn’t. The details may change as Hasala develops.

Bank emails and texts are read on your iPhone

Hasala connects to your Gmail or Outlook with read-only access, from your iPhone. Your iPhone asks your mailbox only for messages from your banks’ alert addresses, so the rest of your inbox is never downloaded. Your iPhone checks each message before it uses it. If Hasala can’t be confident that a message really came from your bank, for example because it’s in Spam or Junk Email, it waits in your review. Mail that turns out not to be from a bank at all is set aside. How Hasala decides may change as we learn how each bank sends its mail. The access tokens live in your iPhone’s Keychain and are never sent to our server. Raw bank emails are not stored in your Hasala data and are never sent to us.

If you use bank texts instead of email, an automation you make in Apple’s Shortcuts app hands each text you receive that contains a full stop, as bank payment texts usually do, to Hasala on your iPhone. Hasala reads it there, keeps only the details of texts that look like payments, and drops every other text at once without storing it. No text is sent to our server or anyone else. A bank text files a payment by itself when Hasala’s rules for that bank read it, or when Hasala’s two readers agree on its amount, currency and direction. At the time of writing, Hasala has rules for texts from Dubai Islamic Bank (DIB) and Emirates NBD; a payment text from any other bank is read by the two readers. Hasala doesn’t check the sender name or the card, because a text’s sender name can be faked and iOS may show a faked text in your bank’s own thread. So someone who sends you a text worded like your bank’s can add a payment that files itself. Any other payment text, and any text you paste, waits for you in Review. If you see a payment you don’t recognise, check it against your bank’s app and archive it in Hasala. See Bank texts.

Sorting happens on your iPhone

Hasala sorts transactions on your iPhone. By default it works in this order:

  1. your own rules;
  2. a built-in list of UAE merchants; and
  3. if it’s still unsure, your review. If you sorted another payment from that merchant yourself, the category you picked most recently is suggested there. Refunds have their own pick, and a payment you split isn’t a pick.

A rule you make with Always use it also re-files that merchant’s other payments, except the ones you sorted yourself and a few it leaves alone, such as split payments and transfers. That happens on your iPhone too, and the changes are sealed before they sync.

When Cloud suggestions are off, Apple’s on-device model doesn’t sort your payments, and nothing is sent to an AI service. Cloud suggestions are optional and off by default. If Apple Intelligence is on, Search can use Apple’s on-device model to understand a question; that runs on your iPhone and sends nothing.

If you turn on Cloud suggestions, the order becomes: your rules, the built-in list, your last pick for that merchant (a suggestion), then, for a merchant you haven’t sorted yourself (a refund or a split payment doesn’t count), a suggestion from the Hasala service on Cloudflare, then Apple’s on-device model for merchant names written in Latin letters, and then your review. Hasala asks about the merchants waiting in your review by itself, one name per request, and only while Hasala is open on screen. When you leave the app, no new request starts, though requests already sent can finish. A suggestion leaves the transaction in your review unless you also turn on Sort automatically and the answer is confident enough. Apple’s model doesn’t file a transaction by itself. See our Privacy Policy for what is sent.

Your data is sealed before it syncs

Your transactions, amounts, merchants, categories, budgets, bills and rules are encrypted on your iPhone before they leave it. Our server can’t read them. In other words, they’re end-to-end encrypted: each change is sealed on your iPhone with authenticated encryption, and only your devices hold the keys.

  • The server checks that every upload is sealed and refuses anything that isn’t.
  • Each change is chained to the one before it. Your devices can tell if a sealed change was altered, moved or inserted by someone without your keys. If that happens, they set it aside and warn you.
  • The keys are created on your iPhone and kept in its Keychain, on that device only. They aren’t included in iCloud or computer backups. Our server keeps only sealed copies, which your passkey or your recovery phrase opens.

Some data is not sealed. Our server can read your email address and name, and the account details listed in our Privacy Policy.

Signing in and unlocking are separate

  • Signing in proves who you are to our server. You can use Face ID with a passkey (recommended) or your email and password.
  • Unlocking opens your sealed data on a device. Only two things can do that: your passkey, or your 12-word recovery phrase.

A password never unlocks data. If you sign in with a password on a new iPhone, Hasala asks for your 12 words to unlock your data.

Your recovery phrase is made on your iPhone. Our server keeps a sealed copy it can’t open, so that if you have a passkey you can view your 12 words again in Hasala, after Face ID. We email you each time they’re shown, and that email has a Freeze link. If you sign in with a password only, they can’t be shown again. Password reset is not in the beta. If you can’t get in at all, use “Can’t get in at all?” on the sign-in screen. We can’t reset your recovery phrase, and we can’t unlock your data for you.

Sensitive actions need a fresh check

Some actions need you to confirm it’s you again, and they are tied to that exact action. These are connecting or disconnecting your email, adding or removing a passkey, removing a device, viewing or changing your recovery phrase, setting, changing or removing your password, changing your email address, signing out everywhere, freezing or unfreezing your account, and deleting your account. Some of these are not in the beta app yet. With a passkey, the check is Face ID. If you sign in with a password only, it’s your password, entered on an iPhone already added to your account, which also checks your Face ID or passcode; a password alone, or a code from your email alone, is never enough. Viewing your recovery phrase, and setting or removing a password, need a passkey. Adding a device is different: a new iPhone joins your account only after you unlock your account on it with your passkey or your 12 words, so a password alone can’t add one. We email you when someone signs in on a new device, when a passkey is added and when a device is removed.

Freezing your account

When someone signs in to your account on a new device, uses your recovery phrase, or views your recovery phrase, we email you. If it wasn’t you, the Freeze my account link in that email signs everyone out. After that, a password sign-in still works, but only for a limited session. Password reset and recovery are refused until you confirm it’s you with a passkey, or with your password on one of your iPhones, and unfreeze. The beta app doesn’t have a freeze button yet, so the link in the email is the way to freeze; you can unfreeze in the app, under Profile › Sign-in & security. If we froze your account, only we can lift it; email security@hasala.app. Freezing deletes nothing, and the freeze page never asks for a password, a code or your 12 words.

Push signals carry no content

Our server wakes Hasala on your iPhone with a silent, empty signal through Apple. Transaction notifications would be written on your iPhone, but the beta app doesn’t show them yet. We plan for them not to show amounts or merchants on the Lock Screen by default.

The notices that tell our server about new mail carry no content either. If you connect Outlook, each notice from Microsoft identifies your connection by a random code made for it, not by your address. Our server stores just a hash of that code and uses it to find which iPhone to wake. The notice also names the new message by an ID; our server discards that part without reading, storing or logging it.

The server and its network

  • During the beta, our server is a computer run by the developer. It accepts no direct connections from the internet. Cloudflare is the network provider in front of it and forwards requests to it through an outbound-only tunnel.
  • Encryption in transit ends at Cloudflare. Cloudflare can see requests and the sealed data, but it can’t open the sealed data.
  • The server’s logs don’t record email addresses, IP addresses, tokens or request contents. They can hold your account’s internal ID when a request fails or is refused, and for some security actions, such as removing a passkey.
  • The database accepts only local connections. The service runs with restricted permissions.
  • Backups are encrypted, and the keys to open them are not kept on the server. Backups are kept for 30 days.
  • Administration happens only over a private, authenticated connection. Our admin tool for the waitlist and invites is reachable only from our own devices over a private network (Tailscale), never from the internet.

What the design doesn’t protect against

No design is perfect. These are the limits we know about and accept during the beta.

  • Metadata. Our server and Cloudflare can see when you sync, roughly how much data you store, your IP address, and when something changes in your Gmail or a new message arrives in your Outlook. Because your iPhone uploads soon after a bank alert or a bank text arrives, they can also tell roughly when, and how often, you get them. They can’t see what the mail or text says or what your transactions are.
  • Your mailbox address. Google sends your Gmail address to our server each time something changes in your Gmail. With Outlook, our server sees your address only once, when you connect. We keep only a keyed hash: of your Gmail address, and for Outlook of Microsoft’s identifier for your account (of your address on a connection made before 31 October 2026). The server still sees your address briefly.
  • Outlook access you’ve given us. Microsoft doesn’t let an app withdraw its own permission. When you disconnect Outlook, Hasala deletes its tokens from your iPhone, but the permission stays in your Microsoft account until you remove it at account.live.com/consent/Manage.
  • Your recovery phrase is your account. Anyone who has your 12 words and can sign in, or can get a code from your email, can read your data and add devices. Making a new phrase stops the old words from working with our server (our encrypted backups keep the old recovery data for up to 30 days), but it can’t take back what someone already got with them. If you think someone has seen your words, the fix is to create a new account.
  • Your Apple Account. Your passkey syncs through iCloud Keychain. Someone who can sign in to your Apple Account and knows one of your device passcodes can get into Hasala as you. Keep two-factor authentication on.
  • An unlocked iPhone. Anyone who can unlock your iPhone can open Hasala. App lock hides Hasala until you unlock it with Face ID, Touch ID or your passcode. It doesn’t change how your data is encrypted.
  • A compromised server. A server we no longer control can’t read your sealed data. But it could stop or delay sync, or send fake notification text. That is why Hasala will never ask for your recovery phrase, your password or a code in a notification, an email, a phone call or on a website.
  • Your password. If you use one, your iPhone sends our server a scrambled form of it, never the password itself. Our server and Cloudflare see that scrambled form when you sign in. Someone holding it could sign in as you, though never unlock your data, or try to guess your password from it, which is slow by design. A passkey avoids this, which is why we recommend one.
  • Cloud suggestions. If you turn them on, the merchant names Hasala sends go to Cloudflare’s AI service through a Hasala service on Cloudflare, so Cloudflare sees them, with your IP address. They carry no account or device identifier, the service stores nothing, and AI Gateway keeps only totals, but a merchant name still says where someone paid. Because Hasala asks about many waiting merchants by itself, Cloudflare could see a run of requests from one connection. They’re off by default (see our Privacy Policy).
  • The beta server itself. The beta runs on hardware operated by the developer. A small number of trusted people have administrative access to it; because your financial data is end-to-end encrypted on your iPhone, they can’t read it. What’s stored there is sealed data plus the account details in our Privacy Policy, which they can see. The server’s disks aren’t encrypted at rest yet. We plan to add this before a public launch.

Reporting a vulnerability

If you think you’ve found a security problem in Hasala, please tell us. We appreciate it.

How to report

Email security@hasala.app with:

  • what you found and where;
  • steps to reproduce it, or a proof of concept;
  • what an attacker could do with it; and
  • how you’d like to be credited, if at all.

If your report contains something sensitive, such as a working exploit, you can say so in a first email without the details, and we’ll agree with you how to send them.

Please don’t put details of an unfixed vulnerability in TestFlight feedback, public issues or social media.

What to expect

Hasala is a small project and an experimental beta, so timings vary, and we can’t promise a reply time. We aim to:

  • confirm we received your report;
  • keep you updated while we investigate and fix it;
  • fix serious issues as quickly as we reasonably can, and agree a disclosure date with you; and
  • credit you once the issue is fixed, if you’d like that.

There is no paid bug bounty during the beta.

Scope

In scope

  • The Hasala iPhone app (TestFlight beta builds).
  • Our API at api.hasala.app.
  • The website at hasala.app, including the invite links and the files that let the app sign in with passkeys.
  • Hasala’s source code at github.com/salehtl/hasala.
  • Design problems, such as a way for our server, Cloudflare or another party to read or change sealed data, or to sign in without your passkey, password or recovery phrase.

Out of scope

  • Services run by Cloudflare, Google, Microsoft or Apple. Please report problems with those to them.
  • Attacks that need physical access to an unlocked iPhone, or a jailbroken iPhone, unless they break a protection we describe above.
  • Limits already listed in What the design doesn’t protect against, unless you find a way to make them worse.
  • Denial of service, load testing or spam.
  • Social engineering or phishing of testers, the developer or providers.
  • Physical attacks on our server or its location.
  • Missing security headers, email-authentication settings or best-practice issues with no clear way to exploit them.
  • Reports produced only by automated scanners, without a working proof.

Safe harbour

If you act in good faith and follow this policy, we will:

  • consider your research authorised;
  • not take legal action against you, or report you to law enforcement, for it; and
  • work with you to understand and fix the problem.

Acting in good faith means that you:

  • only test against your own account, or accounts you have permission to use;
  • don’t access, change or delete other people’s data. If you reach someone else’s data by accident, stop, don’t keep it, and tell us;
  • don’t disrupt the service or degrade it for others;
  • don’t use or share what you find beyond what’s needed to show the problem; and
  • give us reasonable time to fix the issue before telling anyone else.

This safe harbour covers only claims we control. It can’t bind Cloudflare, Google, Microsoft, Apple or any authority.

Contact