This Wired article gives a nice demonstration of Schneier's law which says that anybody can create a security system that they themselves cannot break. This particular security system is for scratch-lottery cards which the makers say are secure because they have been independently vetted by outside experts. But just because your experts can't break the system doesn't mean that nobody can, and if somebody breaks it then you can guarantee that the "bad guys" are going to be exploiting it even if the man on the street doesn't.
The weakness in this system stems from the need to control payouts. The lottery company can't just randomly allocate numbers to tickets and hope that they haven't produced too many winners. They have to carefully allocate winners in the right proportions to ensure not only that they don't bankrupt themselves but also that they make a healthy profit along the way.
The tickets are clearly mass-produced, which means there must be some computer program that lays down the numbers. Of course, it would be really nice if the computer could just spit out random digits. But that’s not possible, since the lottery corporation needs to control the number of winning tickets. The game can’t be truly random. Instead, it has to generate the illusion of randomness while actually being carefully determined
The nice thing about the breaks discussed in the linked article are that they achieved through inspection of the ticket only. The information given on the face of the ticket is enough to confirm whether or not the ticket is a winner or not.
The trick itself is ridiculously simple. (Srivastava would later teach it to his 8-year-old daughter.) Each ticket contained eight tic-tac-toe boards, and each space on those boards—72 in all—contained an exposed number from 1 to 39. As a result, some of these numbers were repeated multiple times. Perhaps the number 17 was repeated three times, and the number 38 was repeated twice. And a few numbers appeared only once on the entire card. Srivastava’s startling insight was that he could separate the winning tickets from the losing tickets by looking at the number of times each of the digits occurred on the tic-tac-toe boards. In other words, he didn’t look at the ticket as a sequence of 72 random digits. Instead, he categorized each number according to its frequency, counting how many times a given number showed up on a given ticket. “The numbers themselves couldn’t have been more meaningless,” he says. “But whether or not they were repeated told me nearly everything I needed to know.” Srivastava was looking for singletons, numbers that appear only a single time on the visible tic-tac-toe boards. He realized that the singletons were almost always repeated under the latex coating. If three singletons appeared in a row on one of the eight boards, that ticket was probably a winner.
What is most telling in this story is the reaction from the Ontario Lottery and Gaming Corporation; pull then game then claim that there was a design flaw, that it was a limited flaw that only affected this one game, carry on as normal. Meanwhile, other games had flaws and those who knew about them were able to exploit them as the office of the Ombudsman recognised:
..at least $100 million in prizes had been paid out to so-called “insiders” (i.e., lottery ticket retailers and staff of the Ontario Lottery and Gaming Corporation, or OLG) – some of it to “fraudsters.
This is behaviour seen time and again in other so-called secure systems. For example, with so-called phantom withdrawals and flaws in Chip & Pin, and other supposedly secure systems, where, at least publically, the onus has been on the victim to prove that they are not at fault.
Another interesting aspect is that the payout statistics from the plundered games demonstrate that there is a break because the people exploiting the break don't buy tickets that they know will only pay out the face value of the ticket, i.e. there is no point buying a two dollar ticket that only pays back two dollars as that is wasting your own time. Therefore plundered games are going to have a higher than expected proportion of higher value payouts.
While there were far too few $2 break-even winners redeemed, there were far too many $4, $6, $10, and $20 winners. In fact, the majority of scratch games with baited hooks in Washington and Virginia displayed this same irregularity. It’s as if people had a knack for buying only tickets that paid out more than they cost.
The final thought that I have is that although the numbers on many of these tickets are the hook to get the player to buy them there is no reason why they couldn't also be covered with latex so that the tickets couldn't be pre-inspected for winners. There would be more to scratch off, but I have a suspicion that that is part of the game for many scratch card devotees. Perhaps these games haven't been fixed for two reasons, firstly, security protocols are hard to get right, and secondly, perhaps given the organised crime/money laundering angle, a large enough group of people have a vested interest in being able to pick a winner?