A Dwolla application is identified by an API key and an API secret. Together they let a client request an access token and then call the Dwolla API on behalf of your account: create customers, attach bank funding sources, and initiate ACH transfers. A leaked key on its own is not enough to move money, but the key and secret often leak in the same file, and then the holder can act on your account. Rotate the credentials first, then check the transfers and customers.
Check your GitHub account for leaked secrets — free
- Provider
- Dwolla
- Severity
- High
- Impact
- Payments and customer data
- Checked live by LeakWatch
- No
What a Dwolla API key looks like
The Dwolla key is a long alphanumeric string, 50 characters in the format this rule targets, issued with a separate secret of the same kind:
XXXXXXXX… Dwolla application key (masked, 50 letters and digits)
XXXXXXXX… Dwolla application secret (masked, same style)
They usually appear as DWOLLA_KEY and DWOLLA_SECRET, or as the key and secret options when a Dwolla client library is initialised with an environment of sandbox or production. Keys exist per environment: a sandbox key works only against the test API, a production key against real accounts. The key and secret are exchanged for a short-lived access token, so a captured access token is a separate and lesser problem. Always treat the key and the secret as a pair.
How Dwolla API keys get leaked
- Client configuration in the repository. An initialisation block with the key and secret written in the source, committed with the first version of the integration.
- Environment files.
DWOLLA_KEYandDWOLLA_SECRETin a.envfile or a Docker compose file. - Example code copied from tutorials. A sample copied into a project, with real credentials replacing the placeholders and then committed.
- Continuous integration. Credentials stored in a public pipeline definition or printed by a debug step.
- Mobile and front-end bundles. An app that calls Dwolla directly instead of going through a back end ships the credentials to every user.
What to do in the first hour
- Find the application in Dwolla. Sign in to the Dwolla dashboard and open the list of applications for the right environment, then match the leaked key to the application.
- Rotate the credentials. Look for the way to generate a new key and secret, or to create a new application, and retire the exposed one. Do this before other cleanup. Dwolla’s documentation and support can confirm the options for your account type.
- Deploy the new values to your application or secret store and test with a small call in the sandbox before production.
- Audit transfers. Review the transfers, mass payments and funding sources created since the exposure. Look for transfers to funding sources you do not recognize, and for recent changes to bank account details.
- Review customers and webhooks. Check customers created recently and the webhook subscriptions of the application. Remove subscriptions pointing at addresses you do not control.
- Contact Dwolla if money moved. ACH transfers can sometimes be cancelled while still pending, so speed matters. Ask Dwolla support what can be reversed.
- Clean up the code and look for other secrets next to the key. See I accidentally pushed an API key to GitHub.
Not sure what else leaked from the same repository? Run a free scan.
Revoke it at Dwolla
Dwolla application credentials are managed from the applications page of your Dwolla dashboard, after you sign in with an account allowed to manage the application. A person has not confirmed the exact menu wording for this guide, whether the existing secret can be regenerated in place, or whether the old pair stops working at once, and the interface can change. Look for the section where application keys and secrets are listed, and follow the Dwolla documentation. If you cannot rotate the credentials yourself, contact Dwolla support and say that the key is exposed.
How LeakWatch detects it
The rule is called Dwolla API Key. It needs the word dwolla in the text, followed within about 40 characters by a value of exactly 50 characters made of letters, digits and dashes, delimited on both sides by word boundaries. The match is case-insensitive. A 50-character string with no dwolla word shortly before it is not reported, and neither is a value of another length. Because the pattern is loose, long identifiers near the word can produce a false alert, so check the match before acting. The severity is high. This type is not checked live: LeakWatch does not send any request to Dwolla with the value it found.
LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.
FAQ
Is the API key alone dangerous?
It identifies your application and is half of the credential pair. The risk becomes serious when the secret leaked too. Rotate both, because you cannot be sure the secret was not exposed.
Can the attacker move money through ACH?
With a valid key and secret, they can request an access token and initiate transfers between funding sources the application can reach. That is why you should audit transfers at once.
Does a sandbox key matter?
A sandbox key reaches only the test environment, with no real money. Replace it later, and treat a production key as the urgent case.