A binary counter turns into an eraser even though its original program remains in place. Pontus Johnson uses Minsky’s universal Turing machine to make an input boundary—and the limits of a security claim—visible.

The machine is supposed to count. Pontus Johnson gives it an unusual input, lets it run, and eventually it starts erasing instead. The counting program is still present. What has changed is which part of the tape the machine treats as the program to execute.
That is the puzzle at the centre of this TALK.CYBER conversation, recorded on 16 June 2021. Johnson, a professor at KTH Royal Institute of Technology, examines a particular implementation of a universal Turing machine presented by Marvin Minsky in 1967. His demonstration strips away much of the machinery around a modern computer so that a familiar security failure can be followed through a small, explicit model.
The result invites a large question: why is it so difficult to build secure systems? Johnson explores that question without claiming to have proved that all computers are inherently insecure. The distinction between an observed mechanism and a proposed explanation becomes one of the most valuable parts of the conversation.
Why investigate a theoretical computer?
Johnson describes the work as a curiosity-driven project outside his main research activities. He wanted to understand insecurity in a simple setting, rather than starting with the many interacting layers of an operating system. At 17:42 — looking for the simplest useful model, he explains why the universal Turing machine seemed an appealing place to ask the question.
A Turing machine reads and writes symbols on a tape and moves its head according to transition rules. Johnson begins with a binary counter to make that model concrete. A universal machine adds another level: it can simulate a machine whose rules are represented on its own tape. The counter’s program, its current condition and its working data therefore appear as different regions with different intended meanings.
Universal computation itself is not the vulnerability. Being able to execute different programs is the point of the model. The security question appears only after defining what an attacker may change. In Johnson’s demonstration, that authority is limited to the input supplied to the simulated counter. He does not grant himself permission simply to replace the original program.
A concise rule accepts an unexpected input
Minsky’s presentation omits many repetitive transitions from the diagram and supplies a general rule for them instead. Johnson explains that this keeps the description manageable, but also makes the machine continue on symbols that the counter’s user was not expected to provide. Some symbols are meant for the universal machine’s internal bookkeeping. Nothing in the input boundary enforces that distinction.
At 34:44 — the implicit transitions, Johnson identifies the behaviour that gives him room to investigate. An unexpected symbol can make the simulated head move in a way that the counter’s own rules would not permit. Initially, the disturbance is small: the machine can recover and continue counting. A strange result alone is not yet a controlled computation.
He then states the attacker’s boundary explicitly at 38:12 — what the attacker is allowed to change. The challenge is to supply data that causes the universal machine to start interpreting an alternative program contained within that data. This turns the vague phrase “hacking a Turing machine” into a precise experiment about authority.
The failed attempt explains the successful one
The first obvious attempt does not work. Johnson places the desired program in the input region, but the counter continues operating on it as data. It does not become an instruction stream merely because its author intended it that way. That failed experiment is important: the attack needs to change the interpreter’s effective configuration, not just put meaningful symbols somewhere on the tape.
The successful construction exploits how the universal machine handles its internal symbols and markers. In the demonstration, its working state passes through an unintended configuration before reaching one that makes sense for the alternative program. A normal cleanup operation helps transform the attacker-supplied representation into the form the machine will execute.
At 51:05 — the alternative program begins running, the outcome becomes visible. The machine is positioned to interpret the erasing program and does not return to the original counter. The eraser is chosen because its effect is easy to see. In the later questions, Johnson distinguishes the simplicity of that example from his claim about the ability to supply an alternative program of arbitrary length.
The demonstration offers a clear conceptual connection with injection and memory-corruption examples: input crosses a boundary between the role it was meant to have and the authority it eventually receives. The specific mechanism belongs to this machine. The comparison helps explain the failure without pretending that every real vulnerability follows exactly the same sequence.
A repair has a scope
Johnson considers several ways of preventing the demonstrated behaviour. One is to validate the input. Another is to replace the broad implicit-transition convention with an explicit set of required transitions. Both make an intended restriction part of the machine’s actual behaviour. They also add machinery or detail to a model valued for its compact explanation of computation.
His account of configuration changes is especially careful. Certain parameter choices stop his exploit, but he does not know whether a different exploit could succeed. The mitigation discussion at 52:36 — protection and its limits therefore separates two achievements: preventing one demonstrated construction and establishing a more general property.
Marc-Oliver Pahl later asks about preventing execution from certain memory regions. Johnson says such a protection would block his example, then considers whether an analogue of return-oriented programming could exist in the model. He had thought about and briefly tried that direction without demonstrating it. The exchange keeps a possible follow-up question separate from the result actually shown.
What the small model reveals—and what it leaves out
After the demonstration, Johnson asks whether recurring insecurity might reflect a propensity towards unintended computation. Complexity, mistakes, the relationship between program and data, and “weird machines” all enter the discussion. At 55:44 — from a result to a hypothesis, he frames the wider idea as speculation. One vulnerable construction cannot establish that secure computation is impossible.
The teaching discussion adds another useful limit. Johnson points out that arbitrary code execution is not identical to unrestricted authority over a system. A browser can intentionally run code within a limited environment. His small demonstration does not yet model the full question of access control. He suggests that a richer teaching model might represent different privileges using separate tapes, while leaving that extension as an idea to investigate.
That qualification, at 1:27:03 — code execution and privilege are different questions, strengthens the educational value. A model becomes useful when readers can see both what it explains and what it omits. Johnson’s machine makes one input boundary unusually visible; the conversation then asks how to teach additional boundaries without losing that clarity. The result is a concrete experiment and a set of better questions about how computers acquire—and restrict—the power to act.
TALK 06 · 16 June 2021 · 1:35:14
Watch the conversation
Pontus Johnson
The YouTube player loads when you select play. You can also watch directly on YouTube.
The people behind the ideas
About Pontus Johnson
At the time of this June 2021 conversation, Pontus Johnson was a professor at KTH Royal Institute of Technology in Stockholm and director of its Center for Cyber Defense and Information Security, a collaboration with the Swedish Armed Forces. His research included architectural models of computer networks and simulation of cyberattacks, and he taught ethical hacking.
The original speaker material records an MSc from Lund Institute of Technology and doctoral and docent qualifications from KTH, where he became a professor in 2009. It also identifies him as a member of the Swedish Royal Academy of Engineering Sciences and a co-founder of foreseeti, a research spin-off developing attack-simulation software. The Turing-machine investigation was introduced as a personal curiosity project alongside that broader work.
KTH
KTH Royal Institute of Technology is a technical and engineering university in Stockholm, Sweden, founded in 1827. Johnson’s institutional context connected research and teaching in software architecture, networked systems and cybersecurity. The original episode material linked his work to the Software Systems Architecture and Security research group within KTH’s network and systems engineering activities.
Roles and affiliations describe the time of this conversation.
Meet all the people of TALK.CYBERThis feature draws on the recorded TALK.CYBER conversation. Timestamp links open the relevant moments in that recording.


