He Cloned My App, Then Sued Me for Stealing ItChapter 19

Not an Attack, Just n Squared

Tallybird fell over on a Friday at 11:40 a.m. Pacific, and by 11:52 Jett Calloway had decided whose fault it was.

> We are under coordinated attack. Thousands of fake accounts, hammering our servers on purpose. We know where it's coming from. Some people can't win in court so they try to win by sabotage. We will not be bullied.

It was 1:52 a.m. in Bandung. I was awake because I was always awake now. I read the post standing at the kitchen counter, and then I read the replies, which arrived faster than I could scroll.

*Patungan fanboys.* *Raka's army.* *Find them.* A screenshot of Marites's profile, the Manila nurse who had sent me the red screen, with her workplace circled. A message to Fajar from a stranger that said, in English, *we know where you live.*

I had never organized an army. I had a mailing list of nine thousand people who wanted a bill-splitting app and a legal-fund page that had raised eleven thousand dollars. But I knew what it felt like to be told, on a stage, what you had done.

I did not answer the post. I did what Mari had taught me. I asked what the evidence was.

Here is what I could see from outside, without touching anything that was not mine to touch.

Halcyon runs a public status page, the kind most companies keep, with colored dots next to the names of its services. At 11:02 a.m., it had begun listing **Expense writes: Degraded performance.** The word next to *Reads* said **Operational.** Reads stayed green all day. Writes did not recover.

I made a note and then a second one: Thursday morning, 10:24 a.m., Tallybird had launched a headline feature called *Crowds.* I had seen the banner: *Groups up to 500! Weddings, festivals, whole offices.* The promotional video showed a wedding in a garden, two hundred guests, one big happy ledger.

Thirty-eight minutes after that launch, the writes began to slow.

I know what a denial-of-service attack looks like from the outside, because I had been through a small one once, in my first year. An attacker sends an enormous number of requests, usually cheap ones, to overwhelm a service. The result is that *everything* gets slow: the home page, the login, reads, writes, the status page itself. The load is broad and shallow. Many requests, each trivial.

What Tallybird's page described was narrow and deep. Writes only. Starting thirty-eight minutes after a feature that invited large groups. Not an attack shape. A *workload* shape.

There is an old idea in computer science that explains the difference, and it is the third one in this story that I was lucky to understand.

When you measure how long a program takes, you do not care about the exact seconds. You care about how the time *grows* as the input grows. If the time doubles when the input doubles, the program is linear. If it quadruples when the input doubles, it is quadratic: time grows with the square of n. Computer scientists write the first as O(n) and the second as O(n²). On small inputs they look alike. On large inputs they are different universes. A linear program handling 500 people takes fifty times as long as one handling 10. A quadratic one takes *twenty-five hundred* times as long.

I did not have access to their servers. But I had something Tallybird gave to anyone: a free account.

At 2:30 a.m., I set up four groups in Tallybird using throwaway accounts that Fajar and I had made, in the ordinary way that any user would make them, one by one, using the app as it was designed. I did not use any special tool. I did not send anything abnormal. I added members to each group and then added a single expense, and I timed, with a stopwatch on my phone, how long the app took to say *Saved.*

Group of 10: **0.21 seconds.**

Group of 20: **0.83 seconds.**

Group of 40: **3.3 seconds.**

Group of 80: **13.2 seconds.**

I wrote the four numbers in a column, then the ratios beside them. 0.83 divided by 0.21 is a little under four. 3.3 divided by 0.83 is a little under four. 13.2 divided by 3.3 is exactly four.

Each time the group doubled, the time quadrupled.

I drew the curve on graph paper by hand and extended it. A group of 160 would take around fifty-three seconds. A group of 500, the promised wedding, five hundred divided by ten is fifty, fifty squared is twenty-five hundred, times two-tenths of a second: **about eight and three-quarter minutes.** For one expense.

A single guest adding a single taxi fare to the wedding ledger would hold a server worker for almost nine minutes. A hundred guests tapping *add* at roughly the same time would hold a hundred workers. And any pool of workers is finite.

For comparison, I ran the same test against Patungan, which uses the sorted-list approach. Groups of 10, 20, 40, 80 took 0.011, 0.012, 0.014, 0.016 seconds. The time hardly moved. It was O(n log n) and it showed.

I did not know what exactly Tallybird's server was doing inside those eight minutes. A guess: someone had written the balance update so that, for every new expense, it recomputed the debts between every pair of members from the start. n members, n people each might owe, n times n. A fine solution for a prototype with five roommates. A catastrophe for a wedding.

I did not say that. I said what I could measure.

I posted at 5:05 a.m.

> **What I can and can't say about Tallybird's outage.** I can't see Halcyon's servers. I can only measure the app as a user. Here's what I measured, using four normal groups made with ordinary accounts and a stopwatch: time to save one expense grows 4x each time group size doubles (0.21s, 0.83s, 3.3s, 13.2s for 10, 20, 40, 80 members). That's quadratic scaling. Extrapolated to the 500-person Crowds they launched yesterday, one expense would hold a server for about 9 minutes. Their own status page shows reads fine and writes degraded, beginning 38 minutes after Crowds went live. That pattern is consistent with overload from heavy requests, not with a flood of cheap ones. **Consistent with, not proof.** I haven't seen their logs. I'm also not asking anyone to attack anything. If you're reading this and you made an account to test, please stop. Don't hammer their servers. You'd muddy exactly the thing we're trying to see.

I added the stopwatch method and the numbers so that anyone could redo it with a handful of test accounts, once, politely.

I said *consistent with, not proof* twice. I had learned.

Reaction came after dawn. Engineers ran the same four groups from São Paulo, Warsaw, Seoul. The numbers came out within ten percent of mine. A professor wrote a one-line reply: *Textbook O(n²). Someone has a nested loop over the member list inside a loop over the member list.* A site reliability engineer for a large payments company wrote a longer one: *A DDoS wouldn't spare reads. This looks like self-inflicted load amplification. I've seen it three times in my career. I caused one of them.*

At 8 a.m., Halcyon's status page changed again. *Crowds temporarily limited to 50 members while we investigate.* At noon: *Root cause: inefficient balance calculation under high concurrency. A fix is rolling out.*

They had said *inefficient balance calculation.* Not *attack.*

I will not pretend I didn't feel triumph. I felt it in my chest, bright and brief. But Jett's original post was still up, with its forty thousand likes, and it was the original that people had read. Corrections do not travel like accusations. A woman I did not know sent a message that read, *Someone found my home address and put it on a forum. I'm a nurse. I've never used your app in my life.*

I called Mari, hard, from the office, and said: "People are being harassed because of what he said."

"I know," Mari said. "I'm going to write a letter."

She wrote it that afternoon. It was two pages. It documented Jett's post, the status page, my measurements, and three examples of harassment that followed. It said that Halcyon's public statement about a "coordinated attack," made with no evidence and since contradicted by Halcyon's own root-cause note, had foreseeably caused harassment of private individuals, and demanded that it be corrected. She sent it to Dana, and to the judge's chambers, as a courtesy copy.

Jett removed the post at 4:15 p.m.

No apology. No replacement. The tweet simply ceased to exist, and, with a click, so did the forty thousand likes. Mari saved the capture first, with the date and URL, of course, on a clock that was not his.

"Rule one of this work," she told me that night, with a note of grim satisfaction. "The person who deletes the post is the person who knew."

I slept four hours. At 7:30 a.m. on Sunday, my phone rang.

"They want to settle," Mari said.

I sat up. "Who?"

"Dana. And the person behind her. They sent a term sheet at midnight Pacific. It's... unusually generous. And unusually carefully written. I've read it three times. I'll send it. Read it today. Don't call me until you've read all four pages."

I opened the email.

It was a single PDF. *CONFIDENTIAL SETTLEMENT PROPOSAL.* Four pages. The first number was on page one, in bold.

**$60,000.**

Under it, a line:

*In consideration of which Defendant shall: (a) permanently cease distribution of the application Patungan under that name; (b) execute a mutual non-disclosure agreement...*

I read the rest slowly, and then I did what I had never done in my life before this month. I read it twice more.