[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-a-valid-zip-file-also-boots-as-an-operating-system":10,"sections":41},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":30,"tags":31,"sources":36,"feedback":40,"feedback_at":22,"cost_usd":40,"total_tokens":40},13193,"a-valid-zip-file-also-boots-as-an-operating-system","A Valid ZIP File Also Boots as an Operating System","Developer Goliath built one file that unzips normally, boots through Multiboot loaders, and starts from a floppy on a standard PC BIOS.","One file now works as a ZIP archive, a Multiboot operating system image, and a floppy disk that boots on a standard PC.\n\nDavid Oberhollenzer, who goes by Goliath, built it and described the work in a blog post that covers the byte-level details. You can unpack the file like any other ZIP. You can also boot it with GRUB, QEMU, or any other loader that follows the Multiboot standard (a common way for bootloaders to hand off to an OS image), even if the file has been written to different media. Or you can write it to a floppy and boot it straight from the BIOS, the firmware that starts a PC, with no modification.\n\nThe trick starts with how ZIP is laid out. Unlike most file types, a ZIP keeps its directory at the end. Before that, each stored file begins with \"PK\", the bytes 03 04, some metadata, and then the contents. Any file can be stored uncompressed, and Goliath put the bootloader in the first one, ZIPHEAD.COM.\n\nMultiboot was the easy part, Goliath said. An image needs the value 0x1BADB002 within its first 8 KiB, followed by some flags and a checksum. After that, the loader's job takes over.\n\nThe BIOS route took more work. A BIOS reads a disk's first 512 bytes, checks that they end in 0x55AA, and runs the code from the first byte. Placing that marker at position 510 was simple. The problem is that the first bytes of a ZIP are a header, not code. The first four happen to be instructions that only push a value onto the stack. Goliath then adjusted the metadata values after them so the modification time bytes act as a jump further into the data. Finding bytes that are safe instructions, do useful setup work, and still form a valid ZIP header is much harder than it sounds, according to the write-up.\n\nThe design holds together because each reader looks somewhere different. ZIP tools go to the end for the directory, Multiboot loaders scan the first 8 KiB, and the BIOS checks a single 512-byte sector. Only the opening bytes are claimed by both the BIOS and the ZIP format, and that is where the effort went.","[\"zip\",\"bios\",\"hacking\",\"operating-systems\"]","2026-11-16T10:00:00.000Z","2026-11-16T10:32:01.424Z","2026-11-16T10:32:54.751Z","published",null,[24],{"id":25,"reviewer":26,"round":27,"reason":28,"status":29},"editor-r1","editor",1,"Remove the editing-note sentence 'nothing in the source suggests otherwise', which refers to the source and shouldn't appear in published copy. Also cut or properly support the closing analysis, since the claims that ZIP readers 'skip whatever they do not need' and that file-type checks need more care are the writer's own and are not in the source. Add a link or attribution to Goliath's blog post so readers can check the technical details.","resolved","software",[32,33,34,35],"zip","bios","hacking","operating-systems",[37],{"name":38,"url":39},"Tom's Hardware","https:\u002F\u002Fwww.tomshardware.com\u002Fsoftware\u002Foperating-systems\u002Fdeveloper-creates-a-100-percent-valid-zip-file-that-doubles-as-a-bios-bootable-operating-system-hiding-bios-boot-flags-inside-uncompressed-files-and-turning-file-headers-into-cpu-instructions",0,{"sections":42},[43,48,53,58,63,68,73,78,82,87,92,97,102,107],{"name":44,"slug":45,"count":46,"latest_published_at":47},"AI","ai",7165,"2026-11-16T14:00:00.000Z",{"name":49,"slug":50,"count":51,"latest_published_at":52},"Security","security",1141,"2026-11-15T17:15:13.000Z",{"name":54,"slug":55,"count":56,"latest_published_at":57},"Deals","deals",682,"2026-11-16T14:45:47.000Z",{"name":59,"slug":60,"count":61,"latest_published_at":62},"Policy","policy",631,"2026-11-16T09:43:00.000Z",{"name":64,"slug":65,"count":66,"latest_published_at":67},"Consumer Tech","consumer-tech",384,"2026-11-16T14:33:02.000Z",{"name":69,"slug":70,"count":71,"latest_published_at":72},"Hardware","hardware",347,"2026-11-16T13:28:40.000Z",{"name":74,"slug":75,"count":76,"latest_published_at":77},"Science","science",236,"2026-11-14T20:54:14.000Z",{"name":79,"slug":30,"count":80,"latest_published_at":81},"Software",179,"2026-11-16T10:35:16.000Z",{"name":83,"slug":84,"count":85,"latest_published_at":86},"Startups","startups",162,"2026-11-13T17:32:35.000Z",{"name":88,"slug":89,"count":90,"latest_published_at":91},"General","general",131,"2026-11-16T11:14:41.000Z",{"name":93,"slug":94,"count":95,"latest_published_at":96},"Dev Tools","dev-tools",127,"2026-11-11T19:00:44.000Z",{"name":98,"slug":99,"count":100,"latest_published_at":101},"Gaming","gaming",113,"2026-11-16T11:47:03.000Z",{"name":103,"slug":104,"count":105,"latest_published_at":106},"Reviews","reviews",38,"2026-10-20T12:00:00.000Z",{"name":108,"slug":109,"count":110,"latest_published_at":111},"How-To","how-to",10,"2026-11-14T23:45:00.000Z"]