A small team cannot defend the way it used to, because attackers no longer work the way they used to. Hubble moves money: apps, banks and companies buy and give gift cards through our API, our SDK and our portals, and a gift card code is as good as cash. This post sets out the principles our team works by, why we hold each one and what each one costs. We leave out on purpose how any control works, what we watch and what any person or tool can reach.
Why defence is harder now
Defence is harder because the cost of an attack attempt has fallen close to zero. The UK’s National Cyber Security Centre judges that AI will almost certainly make parts of intrusion more effective and efficient, raising the frequency and intensity of threats, and that the time between a flaw’s disclosure and its exploitation, already days, will shrink further. Anthropic reported a campaign in which AI did 80 to 90 percent of the work, with people stepping in at only a few decision points.
When a try costs nothing, every company is tried, every day, small ones included. A company that moves money is tried more, because the reward is direct. A gift card code also cannot be taken back once it is out, which we wrote about in fraud on a product that cannot be taken back. A mistake is paid for in full, and at once.
Against that, a small team runs out of attention long before it runs out of ideas. A false alarm costs as much attention as a real one, and a defence made of exceptions grows faster than anyone can read it. Most of what follows is about spending attention well: on what has been shown, on whole classes of problem, and on what would cost the most if it broke.
Prove a finding before you grade it
Our most serious grade goes only to what has been shown, never to what could not be ruled out. A strange value in a request, or a check that seems to be missing, is a reason to look. It is not proof. Before anything is called a hole, someone reads the whole path it would take, including its defaults and its tests, and says what they read.
We sort what we find into three kinds: shown, likely, and not yet proven. Anything short of shown names the one check that would settle it. Then we rank by the path an attacker could really take and what it would get them, and we group repeats of one cause into a single item. We also keep apart a defect that makes something fail and a flaw that lets someone in. Both matter, but they need different people and a different pace.
This is slower than raising every suspicion. It is also what keeps the top grade meaningful, so that when it is used, people drop what they are doing.
Fix the class, not the case
A patch closes one instance, and the belief that allowed it is usually true in other places too. So for each finding we ask what belief made it possible, and write that down as a rule that would have stopped it anywhere. Then we check every system against the rule, not only the one where the problem was found.
We hold our own tools to the same standard: when one misses a problem or raises a false alarm, we change it with a general principle, never a special case. A hundred rules for a hundred cases is a defence nobody can read.
The cost is real. Fixing a class takes longer than a patch, and it often touches systems nobody had complained about. We pay it because the next member of the family is usually already there.
Keep one short list of rules, ordered by cost
Our rules live on one short list, ordered by what a break would cost, with money first, because a break there is the most expensive and the hardest to undo. A short list can be walked from top to bottom. A long one becomes a document nobody reads.
Each rule is a property that must always be true, written in plain words, with a check that shows whether it holds. “Money moves only when it should.” “One stolen key cannot take everything.” “Every privileged action has a name on it.” “No one person changes something critical alone.” “A break stays small.” The rule says what must be true, and the check decides. A new rule goes on the list only when a gap is shown that no rule already covers.
| Principle | The question it answers |
|---|---|
| Prove before you grade | Is this a hole, or only something we could not rule out? |
| Fix the class | Where else is the same belief true? |
| The owner decides | Does this layer lean on a layer in front of it? |
| Assume a stolen credential | If someone else held this login today, what could they read? |
| Check the check | Did this check run, and could it have found anything? |
| People decide | Was this authorised, and was it expected? |
Let the layer that owns a decision make it
Every decision belongs to one layer, and that layer makes it itself. A filter in front of an application sees how a request is written. Only the application knows what the request means. If the application assumes the filter caught something, every blind spot of the filter becomes the application’s.
So no layer is allowed to be the only one, and each is built as if the layer in front of it had already failed. An identity a caller sends is something to check, never something to believe. Being inside the network is never, on its own, a reason to trust a caller.
This means some checks run twice. That is cheaper than finding out later which layer everyone was relying on.
Assume a credential is already stolen
When you design any login, key or role, ask what it could read and change if someone else held it today. That answer, not the role’s name, is its real reach. A role called read-only proves nothing until you have looked at what it is allowed to do, and a key’s description is a claim to be tested.
The habits follow from that question. Give each person and each workload its own identity, with only the access its job needs. Avoid standing admin rights, so that power is granted for a task and ends with it. Rotate secrets on a schedule, as a habit. Keep secrets out of addresses, logs and chat.
Then assume someone is already in, and ask what would make the data worth little to them. A sensitive value encrypted inside the application stays unreadable, in every copy and backup, to anyone without the key. Put one person’s name on every privileged action, because a shared login turns “who did this” into a question nobody can answer. Decide in advance what you would need to know after the fact, including who read what, since a record of changes alone cannot tell you what was read.
All of this adds friction. Before you take access away, ask how the person uses it and check what it really unlocks. Otherwise you break someone’s work and teach them to route around you.
Treat your own tools as attack surface
Anything with power over production is worth attacking, and that includes the tools you defend with. A tool that reads widely to look for trouble is, from an attacker’s side, a reader in a very good position. Give it its own narrow login, read-only wherever it can be, and check what that login can really do rather than what its description says.
Staff tools deserve the same suspicion, because they are trusted and powerful. Assume an attacker can list everything you run by name, so a tool’s safety can never rest on nobody knowing it exists.
Keep your defensive tools simple. Complexity in a tool meant to catch problems is itself a warning sign, because nobody can review what nobody can follow. The code you did not write needs the same care: pin every dependency to an exact version, and let a new release age before you take it.
Count a clean result only when the check ran
A check that found nothing is good news only if it is known to have run and could have found something. An empty answer from a query that failed quietly looks exactly like an empty answer from one that worked. So before you call anything clean, confirm the check finished and covered the whole range you asked about. Every report should say what it did not check.
A stored setting is a claim too. A configuration file is not proof that the live system matches it, and a routine change can quietly undo a protection, so check the live state after a change. Any exception to a rule should carry its reason and an end, because an exception that never expires becomes a hole nobody remembers making.
Build security into the feature
Security review is part of building a feature, not a stage after it. The cheapest moment to decide who may call something, what it may return and what happens if it is called twice is before it exists. We wrote about the last of those in never keep money without a code, never issue a code twice.
A good review traces the whole feature and every boundary it crosses, not only the lines that changed, because flaws tend to live where two correct parts meet. Start from the rule that every endpoint needs a login unless it sits on a reviewed list of public ones. Make defaults fail closed. Give code and hand-run changes to production data the same second pair of eyes. Each slows a release a little, and costs far less than the review that follows a failure.
How a small team decides what to do first
Order the work by what a break would cost, with money first, and then by how strong the evidence is. A small fix for something that keeps coming back moves up the list even when each instance is minor.
| When you choose between | Prefer | Because |
|---|---|---|
| Patching one case, or a rule for the class | The rule | The next case is usually already there |
| Spotting a misuse, or making it impossible | Making it impossible | Spotting needs someone reading at the right moment |
| Keeping attackers out, or making data useless to them | Both, but the second lasts | Every wall is eventually passed |
| Blocking broadly, or checking real traffic first | Checking first | A defence that hurts real customers gets switched off |
How you tell people matters as much. When you report a finding, say what is wrong in plain words first, before any label or number. When you write to a partner, say what you saw and what they need to do, and leave out your guesses.
Where AI helps, and what people keep deciding
AI makes both sides faster, and it does not change who decides. In the campaign Anthropic described, machines did most of the work and people stepped in at a few decision points. Defence can take the same shape with the roles reversed: machines do the reading and the explaining, and people make the decisions.
If you use AI to help defend, ask it to work out why something happened before it asks anyone, and to bring people only the questions a machine cannot answer: was this authorised, and was this expected? People keep deciding what a finding means, which risks to accept, who gets access and what changes in production. Be wary of giving any tool the power to act alone. We describe how our engineers work alongside AI in how we work with AI agents every day.
What we would tell another team
These are the principles we would hand to another small team.
- Prove a finding before you grade it, so your top grade keeps its meaning.
- Turn every finding into a rule, and test the rule against every system.
- Keep one short list of rules, ordered by what a break would cost.
- Let the layer that owns a decision make it, and build each layer as if the one in front had failed.
- Design every credential as if it were already stolen, and make stolen data worth little.
- Treat your own tools as targets, and keep them simple.
- Count a clean result only when you know the check ran.
- Keep the deciding with people.
For how partners connect to us, read the API docs. If you would like to work on problems like this, see careers at Hubble.