Show HN: Steal My Bitcoin
Show HN: Steal My Bitcoin is a provocative demo that flips the usual security narrative on its head. The author posts a tiny web app that deliberately exposes a private key, then watches the community scramble to extract value before the funds disappear. For developers, the exercise is a reminder that even the most trivial mistake—leaving a secret in plain sight—can have immediate, real‑world consequences.
The code behind the demo is surprisingly simple: a static HTML page that embeds a raw Bitcoin address and its corresponding private key, plus a tiny JavaScript timer that updates the balance in real time via a public API. The author deliberately avoids any obfuscation, making the vulnerability obvious and the lesson crystal clear. Reading the source reveals how easy it is to expose secrets when you treat them as just another string literal.
What makes this experiment valuable for programmers is the way it forces us to think about threat modeling from the attacker’s perspective. Instead of asking “how can I protect my keys?”, the project asks “what happens if I publish them by accident?” It encourages a habit of scanning codebases for hard‑coded credentials, using tools like git‑secrets or truffle‑hog, and integrating automated scans into CI pipelines before anything ever lands in production.
Finally, the community reaction—quickly forking the repo, adding rate‑limiting, or even writing bots that auto‑sweep leaked funds—shows how the open‑source ecosystem can both expose and mitigate risks. The experiment isn’t just a stunt; it’s a live case study in responsible disclosure, rapid response, and the importance of treating cryptographic material with the same rigor you’d apply to any other critical asset.
Source: Show HN: Steal My Bitcoin