lockout chip

term

hackingsecurity

Kept in this browser · My desk

A chip or check in a console that refuses cartridges or discs the maker has not licensed, by waiting for a secret answer from the cartridge; the ancestor of the signed code and secure boot of later consoles.

Nintendo's 10NES put a master chip in the North American NES and a slave chip in every licensed cartridge. Sega's Genesis III looked for the bytes S-E-G-A and displayed a licence message. Both were reverse engineered and both ended in United States appeals courts in 1992, which held reverse engineering for compatibility to be fair use.

What it is. A lockout chip is a security component that makes a console refuse software its maker has not licensed. Its classic form is a pair of identical microcontrollers, one in the console acting as the lock and one in every licensed cartridge acting as the key, which must keep agreeing for the game to run. It enforced a business model (the maker decided who could publish, and how much), and it doubled as region lock, because each market got its own variant.

The 10NES. In the words of the Federal Circuit (Atari Games v. Nintendo, 10 September 1992), Nintendo wrote a program, the 10NES, into a "master chip" or lock in the Nintendo Entertainment System (NES) console and a "slave chip" or key in every authorized cartridge; the console waits for a coded message from the cartridge's chip and refuses the game without it. The NESdev Wiki, which calls the part the CIC (Checking Integrated Circuit, the name in Nintendo's patents), gives the circuit: lock and key are the same integrated circuit wired differently, a LOCK/KEY pin pulled to +5 volts in the console and grounded in the cartridge, each chip's output wired to the other's input, both on a 4 MHz clock. After power-on or reset the lock resets and initializes the key; if the answer is wrong, it holds the processor and picture processing unit in reset with a 1 Hz square wave. The Japanese Famicom and the top-loading NES have no CIC at all.

Region lock. The CIC came in regional variants for the 72-pin cartridges: 3193 and 6113 for the National Television System Committee (NTSC) markets, 3195 and 3197 for the two Phase Alternating Line (PAL) groups, PAL-B and PAL-A, 3196 for Asia and 3198 for the FamicomBox, so that a cartridge from one market would not unlock a console from another and out-of-region imports were blocked.

How the 10NES was beaten. Atari Games began in 1986: it monitored the chips, could not break the code by watching the master and slave talk, then peeled their layers chemically to read the code under a microscope. In December 1987 it became a Nintendo licensee; in early 1988 its attorney obtained the program from the Copyright Office under a false statement that Atari was already a defendant in a pending case, and Atari wrote its own Rabbit program, on a faster processor that needed pauses to mimic the original. The Federal Circuit held the reverse engineering fair use but not the copying from the Copyright Office copy, and upheld the preliminary injunction: the Rabbit reproduced features unnecessary to unlocking, such as the key's shutdown on an erroneous message and instructions Nintendo had deleted from its own chip in 1987, and Atari's unclean hands, the court found, would likely bar its copyright misuse defence. Other unlicensed makers (Camerica, Color Dreams, AVE, AGCI) used a charge pump whose negative five-volt pulses froze the lock; later consoles added diodes on the data pins but not on the reset pins, and in late 2006 the Rabbit itself was fully reverse engineered and cloned on an off-the-shelf microcontroller (NESdev).

The trademark check. Sega's Trademark Security System (TMSS) made a trademark message the price of compatibility. The Genesis III, sold in the United States from September 1991, searched the game program for four bytes spelling S-E-G-A at a set location and, finding them, displayed "PRODUCED BY OR UNDER LICENSE FROM SEGA ENTERPRISES LTD" for about three seconds; Sega's stated motive was counterfeiters in Taiwan who blanked its trademark display. Accolade had found the code in every Sega game with no visible function and copied the four bytes into its own games; the Ninth Circuit, deciding on 20 October 1992, held the disassembly fair use and refused Sega a preliminary injunction, since a functional feature cannot be monopolized through a trademark when no other method of access is known or readily available.

The Game Boy's version. Nintendo's handheld used the same idea in software. Its boot ROM (the read-only memory the console starts from) draws the Nintendo logo from the cartridge header (bytes $0104 to $0133), compares it with its own copy and locks itself up if they differ; the Game Boy Color and later models check only the top half. A header checksum at $014D is verified the same way (Pan Docs).

After the chip. Later consoles lock with digital signatures and boot ROMs, a chain of trust that starts in ROM on the processor die, as the fail0verflow team's table at the 27th Chaos Communication Congress (27C3) showed for the Xbox, the Wii, the Xbox 360 and the PlayStation 3. The PlayStation 3's signatures fell to a reused random number in 2010: on 29 December the team showed that Sony's Elliptic Curve Digital Signature Algorithm (ECDSA) code used the same value m for every signature, and from two signatures that share m anyone can compute m and the private key k, and so "sign things". The Switch's boot ROM fell to Fusée Gelée in 2018, catalogued in the National Vulnerability Database (NVD) under the Common Vulnerabilities and Exposures (CVE) identifier CVE-2018-6242, published on 1 May 2018: a buffer overflow in the Recovery Mode (RCM) boot ROM of NVIDIA Tegra processors released before 2016, open to anyone with physical access to the Universal Serial Bus (USB) port who can force a reboot into RCM, scored 6.8 under version 3.0 of the Common Vulnerability Scoring System (CVSS). A flaw in mask ROM cannot be patched in consoles already sold.

The law. The two 1992 appeals made reverse engineering for compatibility a fair use in the United States. The Digital Millennium Copyright Act (DMCA) added 17 U.S.C. 1201 (United States Code) on 28 October 1998: it forbids circumventing a technological measure that effectively controls access to a work and trafficking in circumvention devices, but its subsection (f) lets the lawful user of a program circumvent for the sole purpose of making an independently created program interoperable. In Brazil, article 107 of Lei 9.610/1998 makes whoever alters, suppresses or disables technical devices introduced to avoid or restrict copying liable for damages.

Brazil. The Atari 2600 clones of 1983 to 1984 met no lock; the 1989 NES clones copied the cartridge pinout: Dynacom's Dynavision 2, presented in April 1989, took the American NES's 72-pin cartridges (Virgens, Universidade Federal de Uberlândia, 2019).

Neighbours. The ROM cartridge that carried the key, the modchip and the console jailbreak that defeat its successors, secure boot and ECDSA signatures, the cryptographic forms of the same lock, and the DMCA that turned breaking it into a legal question.

Also known as: lockout, 10NES, TMSS, trademark security system, regional lockout, chip de trava, trava regional

Sources

← Back to L Back to the glossary