Posts

Showing posts with the label hash

Oops, No Victims: The Largest Supply Chain Attack Stole 5 Cents

Image
The Biggest NPM Supply Chain Attack What is a Supply Chain Attack? A supply chain attack occurs when attackers target trusted third-party components, such as libraries or registries, instead of attacking users directly. By injecting malicious code at the source, they can spread it to all downstream users. These attacks are dangerous because updates happen automatically in build pipelines, making detection harder. A small modification in a common dependency can silently compromise thousands of projects. Defenses require strong authentication, artifact signing, reproducible builds, and active monitoring of supply chain integrity. Introduction On September 8, 2025, the npm ecosystem faced one of its largest compromises. A maintainer’s account was hijacked, and malicious versions of popular packages were published. Since npm packages are used globally in countless projects, the exposure was immediate and severe. Although the financial damage was limited, the operational dis...

Identicon

Image
The Mystery of Identicons: Turning Data into Unique Visual Avatars Introduction If you’ve ever signed up for a new website and seen a colorful, pixelated avatar appear next to your name — without uploading a profile picture — you’ve probably met an Identicon . Identicons are unique, algorithmically generated images based on a piece of text, usually a username, email, or IP address. They are used for visual identification and uniqueness without revealing personal information. Where Do We See Identicons? GitHub: User avatars when no profile picture is uploaded. WordPress: Default avatars for comments. StackOverflow: Generated icons for users without a custom profile picture. How Do Identicons Work? Hashing the Input – The text (e.g., "kiyotaka ayanokōji") is passed through a hash function like SHA1 or MD5, producing a fixed-length hexadecimal value. Mapping Bits to a Grid – The hash is split into smaller parts, each controlling ...