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

They Called My Hashes Forgeable

"Please state your name for the record."

"Raka Wibisono."

"Mr. Wibisono, do you understand you are under oath?"

"Yes."

It was 11:04 p.m. in Bandung and 9:04 a.m. in San Francisco. I sat in a rented conference room above a bank in Dago, because Mari had said a deposition should not happen next to rice-cooker parts. The room had a long table, a bad painting of Mount Tangkuban Perahu, and an air conditioner that cooled one side of me. On the screen in front of me were three squares: a court reporter with her hands poised over a steno machine, Mari at her desk in Oakland with her jaw set, and Dana Whitcomb.

Dana wore a charcoal jacket and no jewelry except a thin watch. She held a pen but did not write. She looked at me the way I look at a function I intend to refactor.

"We have seven hours," she said pleasantly. "I'd like to begin with your own conduct, and then move to the evidence. Is that acceptable?"

"Yes."

For the first three hours she asked me, in order, every wrong thing I had ever done.

I had prepared for this. Mari had made me say them aloud on a call every night for a week, the way a runner repeats a route. *You force-pushed over published history. You did not tell your forks. You shipped GPL code. You did not read a dependency's license. You used another man's code, an unlicensed date-chip library, without permission. You had no written agreement with Ms. Larasati. You published a thread accusing Halcyon of forgery based on author dates. You trusted wall-clock timestamps in your own sync code and lost users' data. Your app has no license file. You did not register any copyright.*

"Yes," I said. "Yes. Yes. Yes, and I've fixed that one. Yes."

I did not argue with any of them. Because each was true, and because there is a power in saying a true thing plainly: it removes the other person's weapon. When she asked, on the force-push, whether I had *concealed* it, I said, "I didn't announce it. I should have. I wrote 'maintenance' in the release notes, which was too small." When she asked whether I understood that I was an "unreliable narrator of my own history," I said, "I'm an unreliable keeper of it. That's why I'm trying to rely on other people's records."

Dana's pen did not move. At one point, one of her associates, off screen, coughed.

By the fourth hour, she had enumerated nineteen errors. It was a good list. She read it back to me with great care and said, "You would agree, Mr. Wibisono, that someone who has made these nineteen mistakes cannot be trusted to be the sole witness to the creation of a software project?"

"I agree," I said. "That's why I'm not the sole witness."

I saw her eyes narrow, a fraction.

"Please answer the question as asked."

"I'd agree that I shouldn't be trusted on my own say-so. I don't ask anyone to. I've given the court a drive that a neutral examiner imaged. I've given her records from GH Archive and Software Heritage. I'd like to be judged on those."

"Move to strike as non-responsive," said Dana.

"Noted," said Mari, calmly.

We broke for twenty minutes. I drank lukewarm tea and stared at the painting. Mount Tangkuban Perahu is a volcano shaped like an overturned boat. In the legend, a man was turned to stone for a terrible mistake. I did not take comfort from this.

At 3:20 p.m. in San Francisco, she moved to the evidence. She did it gently, like a woman closing a hand around a bird.

"Mr. Wibisono, the commit hash you've relied on throughout this case is `9f3c1a7`. Correct?"

"One of several, yes."

"You posted it in an issue comment twenty-five months ago."

"Yes."

"How many characters is that?"

"Seven."

"Seven hexadecimal characters." She said it as if reading a menu. "Each character carries four bits. Seven characters is twenty-eight bits. Is that right?"

"Yes."

"How many possible values does twenty-eight bits represent?"

I did the sum in my head. I knew where she was going and I knew she was right.

"About two hundred and sixty-eight million."

"A modern computer could generate commits until one's hash began with those seven characters in, what, minutes? Seconds?"

"Possibly minutes."

"So a commit with the prefix `9f3c1a7` could have been created *last week* by anyone, including you."

I breathed in. This was the honest point, and I took it.

"Yes. A seven-character prefix is weak evidence by itself. That's why I haven't relied on it by itself."

"But you did rely on it."

"I relied on it as one anchor, and then I looked for stronger ones. The full forty-character hash of that commit appears in GH Archive, in a push event with a server timestamp. It also appears in Software Heritage. A forty-character hash is 160 bits. Brute-forcing a different commit that matches those is not minutes. It's not centuries. It's not anything."

"Mr. Wibisono." She turned a page. "Git uses SHA-1. Is that correct?"

"Git did, by default, at the time. Yes."

"And you're aware that SHA-1 was publicly broken in 2017, by researchers at Google and a Dutch institute? That they produced two different PDF files with the same SHA-1 hash?"

"Yes. The attack was called SHAttered."

"So it is generally accepted that SHA-1 is *insecure.*"

"It's accepted that SHA-1 is insecure for some purposes. Digital signatures, certificates. That's a different statement from 'any SHA-1 hash can be forged.'"

"Please explain the difference," she said, "for the record."

She was giving me the floor. I recognized it as a trap and also as the only door I had.

"A hash function is supposed to resist three kinds of attack," I said. "The first is a *collision*: finding any two different inputs that produce the same output. The second is a *second preimage*: given one specific input, finding a *different* input with the same output. The third is a *preimage*: given just an output, finding any input that produces it. Those are very different levels of difficulty. For SHA-1, collisions can now be found with a lot of computing. The 2017 attack took thousands of years of computing, added up across many machines, but it was finished. Later work produced collisions with chosen prefixes, which is more dangerous, at a cost of a few tens of thousands of dollars in 2020."

"So collisions are practical."

"Yes. But a collision requires the attacker to craft *both* inputs in advance. It lets someone prepare two documents, show one to a person, and later swap in the other. It doesn't let you take a commit that already exists in a public archive and produce a different one with the same hash. That's second preimage, and nobody has a practical attack on SHA-1 for that. The full cost is around two to the one hundred and sixtieth power."

Dana waited. "Is it possible, Mr. Wibisono, that *you* prepared a colliding pair of commits two years ago?"

"It's possible in principle."

"And then showed one to the world and later substituted the other."

"I'd have had to anticipate this lawsuit before I started writing my first commit, and prepare a set of colliding objects for a repository that was then empty. And two things. First, collision attacks on git objects leave a signature, a block of near-random bytes that the attacker has to include, and git has used a hardened implementation of SHA-1 that detects those signatures since 2017. Dr. Brandt's fsck ran on a copy that detected no such pattern. Second, the object I showed to the world on September first, and the object in the examiner's image, are the same. If I'd swapped, they'd differ. They're identical to the byte."

"Move to strike the last as speculation about Dr. Brandt's methods."

"Withdrawn," said Mari. "He'll rephrase." She looked at me. I nodded.

"Dr. Brandt's report states the objects pass integrity checks and contain no collision indicators," I said. "I'm quoting it."

Dana laid her pen flat on her pad and leaned back.

"You seem very confident in a technology that is, by your own admission, broken."

"I'm confident in an understanding of *how* it's broken. Which is not at all the same as it not working." I felt my voice steadying. "A lock with a known weakness is still a lock, if the weakness isn't the one the thief has. But I agree you shouldn't rely on SHA-1 forever. That's why git has been adding a SHA-256 mode. In my next repository I'll use it."

"Next repository?" said Dana.

I hadn't meant to say that. She did not let it pass.

"You plan to start a new project, Mr. Wibisono?"

"I plan to keep making software."

"With what money?"

"Objection," said Mari. "Relevance."

"Withdrawn." Dana smiled, thinly. "Let us move to Exhibit 31."

We went through another three hours. She asked about Ayu's payments, my backup habits, the Hostly suspension, the stopwatch test on Tallybird's Crowds. She pushed on *consistent with, not proof* and I said, "Yes. That is what I meant." She asked about Ms. Dela Cruz's photograph and I said, "It was sent to me voluntarily." She asked about a hundred small things, and I answered them in the same flat way, and by the sixth hour I noticed that the room had stopped feeling cold.

At 5:51 p.m. San Francisco time, she checked her watch.

"Mr. Wibisono, one last topic. You've testified that you've begun to reproduce your original build, version 1.0. Is that right?"

"I've begun. I can build deterministically today. For the original release, I'm working on it."

"Have you reproduced it?"

"Not yet."

"Thank you. And until you do, the binary posted on that mirror site is just a file, and the source is just a source, and nothing connects them. Is that right?"

"Right now, yes."

"No further questions."

The reporter's hands stopped.

I sat in the conference room, with my shirt stuck to my back, and watched Mari lift a hand to her mouth and exhale into it.

"You were fine," she said, afterward, on a private call. "You were more than fine. Seven hours, nineteen admitted errors, and the judge will read the transcript and see a man who said *yes* eighteen times and *no, and here's why* once."

"She said until I reproduce it, it's just a file."

"She did." Mari paused. "She's right. And she knows you know it. That's her last card. She spent six hours drawing it so she could play it at the end, on the record, so you'd have to do it."

I looked at my hands. They were steady.

"Dr. Brandt's lab still has the image of the drive," I said. "The Time Machine database has the weekly snapshot of my project folder from the week of the first release. The one with `pubspec.lock`."

"You'd need the examiner's permission and her supervision."

"Then ask for it."

"I already did," Mari said. "She said yes on Monday. She's been waiting for you to ask."