Important notice: PHP2Shell: CVE-2026-109618/109619 in PHP. Check with our Chrome extension → install free
Systems security · Disinformation · Democracy

Neither tamper-proof, nor rigged.

An offensive security researcher answers, without institutional marketing and without conspiracy theory, the most honest question there is about the Brazilian electronic voting machine: what does the technical evidence actually say about the security of the vote, separating what is documented from what is mere rumor.

Spoiler, for those who only look at the screenshot

In about 30 years of electronic voting in Brazil, there is not a single proven case of an election altered by hacking. This text explains why, and points out where the legitimate technical critique lies, without defending any side.

Guilherme Nocera
~23 min read · Offensive security researcher · Ethical hacker
1996
First election with electronic voting machines
~470 thousand
Voting machines in a national election
Since 2009
Public security tests (TSE)
Opening

It all started with a message, the kind that arrives on the weekend:

Message received
Good morning, Guilherme, hope you're well?
I'd like your professional opinion on the security of the electronic voting machines and the Brazilian electoral process.
Could it be fraud? Or is it secure?
A lot of people saying a lot of things.

“A lot of people saying a lot of things.” That phrase is the perfect diagnosis of the entire debate. It is also the most honest question anyone can ask about the electronic voting machine, and it almost never gets an answer worthy of it.

On one side, the discourse that the machine is inviolable. On the other, the certainty that the election was obviously rigged. Both answers are wrong, and for a similar reason: both are political before they are technical.

This text is the answer I would give to the person who sent me that message, if we had a few hours and a coffee. Nothing about defending a party, a candidate, or an institution. Just engineering: how the system works, what has actually failed in it, what that means and what it does not mean. The thesis is simple and will guide everything: neither inviolable nor rigged. The truth is more interesting than either extreme.

Part I

The terrain and the rules of the game

I
The confusion

Why a lot of people say a lot of things

Before answering whether “it could be fraud,” it is worth understanding why the question became so confused. The noise does not come from a single source · it comes from three, which mix together until it looks like nobody understands anything.

The first is politicization. Starting in 2022, the security of the voting machine stopped being an engineering topic and became a banner. When a technical subject turns into team identity, every flaw found in a test starts being read as “proof” of what the side already wanted to believe, and every defense as a cover-up. Serious technical debate gets buried underneath.

The second is the DEFCONThe world's largest hacker conference, held every year in Las Vegas since 1993. The “Voting Village” is the area where researchers test voting machines. headlines. Every year the world's largest hacker conference shows people breaking into voting machines in minutes, and the news reaches Brazil without the essential footnote: those are American machines, in laboratory conditions. “They hacked the voting machine” is true and an irresistible headline · except it is not the Brazilian machine, and it is not an election.

The third, and the most important, is a conceptual error that contaminates almost every discussion: treating “finding a flaw” and “rigging an election” as the same thing. They are not. And to untie this knot, I need to give you two distinctions. They will appear throughout the entire text, so keep both in mind:

Secrecy

Discovering who someone voted for. Breaking the secrecy of the vote.

An attack here means: someone could, in theory, violate your privacy. It does NOT mean that someone changed your vote.
Integrity

Altering the result. Changing votes, swapping the winner.

An attack here means: the count could be corrupted. This, and only this, is what the word “fraud” describes.

The other distinction is equally simple and equally ignored: a laboratory is not a real election. A researcher holding the machine, with open source code, unlimited time, and full physical access is in a scenario a fraudster on election day would never have. Finding a gap in that laboratory is the goal · that is what the test exists for. Turning it into votes in a contest spread across 5,570 municipalities is a completely different problem, and a much bigger one.

With these two lenses, secrecy × integrity and laboratory × real election, almost every rumor about the voting machine dismantles itself. We will use them the whole time.

II
The machine

How the machine works

You cannot judge the attacks without understanding the target. And the Brazilian machine is simpler, and more closed, than the imagination usually paints it.

It is a direct-recording voting machine, what the jargon calls DREDirect Recording Electronic: a machine that records the vote directly into memory, without a physical receipt the voter can check. This is the category of the Brazilian machine.: you type the number, it records the vote in memory, and that is it. At the end of the day, the machine adds up everything it received and issues the Boletim de Urna (BU) · the polling-station result, printed and digitally signed, which is posted on site and only then transmitted for tallying.

The life cycle, from beginning to end, is more or less this: weeks beforehand, a load media installs the official software for that election on the machine; on the day, it runs the voting; when it closes, it generates the BU; and finally it performs the transmission of the result over a dedicated network, not the open internet.

And here is the detail that changes everything: the machine is air-gappedA system physically isolated from external networks: no Wi-Fi, no internet cable, no remote connection during voting. To attack it, you have to be physically at the machine.. During voting it has no internet, accepts no remote connection, and does not “talk” to any server. Forget the movie scene of a hacker breaking in from another country in real time: it does not exist in this model. Any attack requires physical presence at the machine, and that brutally reduces the attack surface before we even discuss cryptography.

Red 128 MB Result Memory (MR) cartridge, manufactured by Diebold
Yellow 512 MB Result Memory (MR) cartridge, manufactured by Diebold
Blue 512 MB Result Memory (MR) cartridge, manufactured by Diebold
Green 512 MB Result Memory (MR) cartridge, manufactured by Diebold
The machine's “media.” The machine records the result on memory cartridges like these · the so-called Result Memory (MR), manufactured by Diebold in 128 MB and 512 MB capacities. Data transport is physical, via removable media, never over the internet. Source: TRE-SC (apps.tre-sc.jus.br).
Technical mode
The boot chain

What prevents someone from simply swapping the machine's software for a tampered version is not a single thing · it is a chain of checks, and the chain only works because each link depends on the previous one:

  • Digital signature at boot: the machine verifies the cryptographic signature of the software before executing it. A program without a valid signature simply does not run.
  • Certified hardware: the official software only runs on authorized hardware, and the reverse is also true. Unsigned software on certified hardware is blocked; official software on uncertified hardware refuses to operate.
  • Lean system: a Linux build prepared without a network stack, without the services that · on a regular computer · would be the obvious entry point.
  • Hardware security module: newer models include an MSE / TPMEmbedded Security Module / Trusted Platform Module: a dedicated chip that stores keys and anchors integrity verification in the hardware itself, out of reach of ordinary software., a dedicated chip that anchors the keys and integrity verification in the silicon itself.

Where is this documented? On the TSE portal, in TSE Resolution No. 23,444/2015 and in the Court's catalog publications. It is no secret · it is public specification, and precisely because it is public, researchers can attack it seriously.

III
The defenses

Defenses: the real ones and the blah blah

The machine has real layers of defense. It also has a catchphrase that does more harm than good. I will be honest item by item, and each line gets a verdict: Real when the protection is solid, With caveats when it exists but deserves an asterisk, and Marketing for what is pure rhetoric.

MechanismWhat it is, and the asteriskVerdict
Air-gap / no internetDuring voting there is no external connection. Eliminates an entire class of remote attack right away.Real
Digital signature
(software, media and BU)
Software, load media, result media and the ballot report are cryptographically signed. Tampering without the key breaks the signature.Real
Verified hardwareThe machine does not execute unsigned software. Swapping the program for your own version hits a wall here.Real
Sealing and chain of custodyPublic sealing and custody ceremonies, witnessed by election inspectors. Procedural protection, not only technical.Real
Inspectable source codeParties and organizations can inspect the code, under conditions: a limited inspection window, a controlled room, a non-disclosure agreement. It is inspectable; it is not “open to anyone at any time.”With caveats
Zeroing proof + parallel votingThe machine prints that it started zeroed; machines drawn by lot vote in a simulated, filmed election on the same day. Good audit, with the caveat (raised by Diego Aranha himself) that it is not verifiable by an ordinary voter without specialized knowledge.With caveats
RDV
(Digital Vote Record)
Shuffled recording of votes for auditing. It has in fact been the source of a secrecy flaw (not an integrity one), as the next section shows.With caveats
“The machine is inviolable”No system is inviolable. Saying so is as bad in engineering as the opposite discourse, and it gives ammunition to those who want to discredit the rest, which is real.Marketing

Notice the pattern: the integrity defenses (signature, verified hardware, air-gap) are the most solid. The caveats concentrate on secrecy and on transparency (how easy it is for an ordinary citizen to verify). Keep that in mind: that is exactly where the legitimate critique of the system lives, and we will come back to it at the end.

Part II

What has already broken

IV
The flaws

The flaws they have already found

This is the densest section, and on purpose · it is the heart of the text. Yes, flaws have been found in the machine. Several. And that is good news, not proof of fraud: it is the system being tested as it should be. What matters is separating what each flaw actually affected. So here is the timeline, split along the two tracks we already know.

Track A · Secrecy flaws (breaking the secret ballot)
2009 · 1st Public Test
Keyboard emanation

Forensic expert Sérgio Freitas captured the electromagnetic emanation of the machine's keyboard (in the radio range) and decoded the votes, winning a R$5,000 prize. The critical limitation: it only worked from about 5 to 10 cm away from the device. In a real polling station, with the machine isolated and watched, the attacker would be practically glued to it, in full view of everyone. He himself suggested shielding as the fix.

2012 · Public Test
The RDV and the shared key

Diego Aranha's team (then at UnB) found four vulnerabilities, three of them affecting secrecy. By combining a fragile shuffle of the RDVDigital Vote Record: a file that stores votes in shuffled form, designed for auditing without revealing the order in which they were cast., insecure random number generation, and a cryptographic key shared across all machines, it was possible to reconstruct the order of the votes, breaking secrecy. Fixed afterward, but it was the most serious secrecy flaw ever demonstrated.

Recent · Academia + TRE-PA
TEMPEST: reading the screen from a distance

Recent academic studies (published at SBSeg) demonstrated remote reconstruction of the machine's screen via electromagnetic emanation · an attack in the TEMPESTA family of attacks that capture a device's electromagnetic emanation to spy, at a distance, on what it displays or processes. family, using software-defined radio. In the physical world, the TRE-PA case (2026), an attempt to break secrecy using glasses with a built-in micro-camera, belongs to the same family: spying on the voter's choice. Decisive point: every attack on this track affects only secrecy, and its effectiveness depends on the absence of oversight. None of them touches the count.

Track B · Integrity flaws (the ones that allowed manipulation in tests)
2016 · Public Test
The tampered ballot report in the tabulation system

An investigator altered a Boletim de Urna and fed it into the Sistema de Apuração (the contingency mechanism triggered when a machine's result is lost), generating a valid but tampered BU. The target was the contingency system, not normal voting; still, it was an integrity issue, and it was taken seriously.

2017 · Public Test
Custom code running on the machine

The most cited case. Aranha's team chained vulnerabilities and managed to inject their own code into the machine's programs before loading, besides obtaining keys to the file system, logs, and the RDV. It was the strongest demonstration that integrity could be reached · in a laboratory scenario, with privileged access. Everything was forwarded for fixing.

2021 · 6th edition (for 2022)
Five of twenty-nine plans passed

Of the 29 test plans, five got past some barrier: a fake keyboard and panel reading votes, unshuffling the BU, breaking the transmission-line barrier, audio-jack eavesdropping, and breaching the transmission by gaining entry to the TSE network. None altered a real result; all became fixes for the next election.

2025 · 8th edition (for 2026)
What they tried this time, and how it went

In the edition held December 1-5, 2025, the plans aimed high: compromising integrity via signing keys to inject code, bypassing the hardware TPM, inserting malicious load media to alter data, and manipulating votes in the voting software, plus analyzing the MSE. Official result: no attack succeeded in altering votes or results. Disinformation outlets later distorted this, as the fact-checks showed.

Technical mode · Box 1
The 2017 code injection, chained

What makes 2017 technically impressive is not a single flaw, but the chaining: isolated vulnerabilities, each one small, were linked in sequence until they allowed executing custom code before the software was loaded onto the machine. It is the classic pattern of a serious exploit: there is no “silver bullet,” only a chain of weak links. The defensive lesson is the same: fixing any single link breaks the entire chain, and that is what the TSE did in the following editions.

Technical mode · Box 2
van Eck / TEMPEST, and why it is only secrecy

Every electronic device emits electromagnetic radiation while operating. van Eck phreakingAn espionage technique that captures a monitor's or keyboard's electromagnetic emanation to reconstruct, at a distance, what is being displayed or typed, without touching the device. captures that emanation and reconstructs, at a distance, what the screen shows or what the keyboard types. Applied to the voting machine, it allows spying on a specific voter's choice.

Why does this never become fraud? Because it is a read attack, not a write attack. It observes a vote being cast; it does not change the vote, does not alter the total, does not touch the BU. In the worst case, it violates the privacy of whoever is in the booth at that moment · one-on-one, at short range, at risk of being caught. It is exactly the kind of attack the secrecy × integrity distinction exists to classify correctly.

And the flaws nobody has documented yet?

Fair question, and the honest answer is: there are certainly things not yet found. The Public Test is time-limited (a few days) and does not cover everything. Researchers work with privileged access (source code, physical machine, time) that a real attacker on election day does not have. So yes, there is room for what is still to be discovered.

Except · and this “except” is the entire point · that is not proof of fraud. It is literally how security research works on any system on the planet: find, fix, retest, repeat. A system where researchers find and report flaws is a system being audited, not a system being rigged. The alarm should ring at the silence, not at the noise.

Part III

The tests and the world outside

V
The test

Brazil invites hackers

There is something here that few people know about, and that changes the entire framing: the Brazilian state itself calls people in to attack the machine. Officially, in a regulated and public way.

It is called the Public Security Test of the Electoral Systems (TPS), the “Voting Machine Test,” held by the TSE. Legal basis: TSE Resolution No. 23,444/2015. It has been held since 2009 in Brasília, usually in the year before an election.

The format is serious. The “investigators,” individuals or groups, first do a source code inspection, then submit test plans, carry out their attacks over about five days, and finally there is a Confirmation Test, which verifies whether a fix for a found flaw actually solved the problem. And it is not the TSE grading itself: the evaluation commission includes outsiders, such as the MPF (Federal Prosecution Service), OAB (Brazilian Bar Association), Federal Police, Congress, the Brazilian Computer Society (SBC), and Confea.

Call to the community

If you are in the field, you can join the next one.

The TPS is open to Brazilian citizens over 18, individually or in a group, with one registration per CPF (tax ID), made through the Public Call notice on the official TSE page. If you research security and spend your day complaining that “nobody lets us audit,” here is the door standing open, with source code in hand and everything. It is the best place in the country to turn skepticism into evidence.

Official TSE page announcing the notice for the 2025 Public Security Test of the Electoral Systems, with a photo of the UE2022 model electronic voting machine
The official entry point. The TSE publishes the Public Security Test notice each cycle. This is the TPS 2025 page, aimed at the 2026 General Elections, with the UE2022 machine model. Source: TSE (tse.jus.br).
VI
Las Vegas

DEFCON: what it proves and what it doesn't

Every time the Voting Village shows up in the news, someone sends me the link asking “see? they hacked the machine in minutes!” So let's take a close look at what that event really is.

The Voting Village (or Voting Machine Hacking Village) has existed since DEF CON 25The 25th edition of DEF CON, the world's largest hacker conference, in 2017. That is when the area dedicated to testing voting machines was born., in 2017, in Las Vegas, co-founded by Harri Hursti. Every year, researchers take machines apart and expose sometimes embarrassing flaws. The emblematic case is the AVS WinVote: broken into over Wi-Fi in minutes, with remote vote swapping, default administrator passwords, and locks that opened in seconds.

Impressive · and here comes the footnote the headlines cut. First: these are American machines (Diebold, Dominion, ES&S, the WinVote itself), not the Brazilian one. Second: the WinVote was already decertified in Virginia since 2014/2015, meaning they attacked an obsolete machine, retired for being insecure. Third, and most important: these are laboratory conditions, with unrestricted physical access and plenty of time. The organizers themselves say that is not systematic research and that the simulated election does not represent a real one.

Voting Village participants at DEF CON examine a U.S. voting device, the AutoMARK ballot marker by ES&S
Laboratory, not election. Participants examine a U.S. voting device (the AutoMARK ballot marker by ES&S) at DEF CON's Voting Village. These are U.S. machines, tested under controlled conditions · not the Brazilian voting machine. Source: WIRED.

The honest conclusion is not “DEFCON is a lie.” It is the opposite: DEFCON is immensely valuable, and it was DEFCON that helped the U.S. return to the auditable paper ballot. But a DEFCON headline does not mean a Brazilian election is defraudable. These are two different machines, two different threat models, two different countries. Transplanting the conclusion from one to the other is the conceptual error of Section I in action.

VII
AI

And artificial intelligence?

This is the 2026 question, and I work exactly on this, so let me be direct and get the hype out of the way. AI does not take down the voting machine. It does not take down the air-gap, does not forge the digital signature, does not solve the physical distribution of hundreds of thousands of machines.

The reason is that the bottleneck of electoral fraud has never been understanding the flaw (the flaws in the previous sections are public · anyone can read the papers). The bottleneck is logistics: executing the attack at scale, across thousands of isolated and guarded machines, without being detected by the chain of custody and the audit. AI is great at solving knowledge problems. The problem here is physical and organizational, and in that it does not help the fraudster.

Where AI really changes the game is in three other places, and only one of them is a genuine risk:

Technical mode · deep-tempest
When deep learning meets the side-channel

The defensive and academic side first: AI accelerates source code auditing in the TPS, because scanning millions of lines for suspicious patterns is exactly the kind of task where models help the researcher (and the election inspector). And there is deep-tempest: neural networks reconstructing a screen's image from electromagnetic emanation with far more clarity than classical methods, with open-source tools like gr-tempest. Note the track again: this supercharges a secrecy attack, never an integrity one.

And the third, the one that actually matters: disinformation at scale. The most real and most underestimated attack vector against an election today does not aim at the machine · it aims at you. Automatic generation of convincing rumors, fake videos, out-of-context clips distributed at mass, each one tuned to the right fear. It attacks the electoral process through trust, not through the machine. You do not need to change a single vote to ruin an election · you only need to convince half the country that it was stolen. That is the risk from 2024 onward, and it is curious that it is precisely the least discussed.

Part IV

The verdict

VIII
The answer

So: fraud or secure?

After all this, the answer to the person who asked me is this, straight: the system is robust exactly where it matters most · counting the votes correctly. In about thirty years of electronic voting in Brazil, there is not a single proven case of an election altered by hacking of the machine.

This is not my faith · it is the weight of the evidence. What circulates as “proof of fraud,” when you look closely, always falls into one of two buckets: either it is an out-of-context clip (a video of a 2012 flaw repackaged as if it were from yesterday), or it is a test flaw already fixed, presented as if it had happened in a real election. The fact-checking agencies (Aos Fatos, Lupa) documented this case by case · including the 29 plans of one test in which none altered votes, which turned into a “they hacked the machine” headline.

Except · and I would be dishonest if I stopped here · there is a legitimate critique, and it is not “it was stolen.” It is auditability and transparency. Today it is difficult for an ordinary citizen, alone, to verify the count end to end without trusting specialists and institutions. That is where the serious debate about a verifiable physical record (the so-called “printed vote”) comes from · defended by people like Diego Aranha himself and discussed by researchers like Jeroen van de Graaf. The honest framing of this agenda is “make the system easier to audit”, not “there is a theft.” Confusing the two things is what poisons the debate.

“
The thesis, in one sentence

“100% secure” and “obviously rigged” are both wrong. And, almost always, for a political reason, not a technical one.

The voting machine is neither a miracle nor a scam. It is an engineering system: strong where it needs to be, fallible like everything, audited more openly than almost any election in the world, and improvable where transparency is concerned. Anyone who sells you either extreme is selling you politics, not security.

IX
Action

How to supervise it yourself

The best answer to “a lot of people saying a lot of things” is not to pick who to believe · it is to become someone who verifies. You do not need permission for that. You can:

Be a party poll worker on election day and follow the opening and closing of the polling station. Follow the parallel voting, which is public. Join the TPS (Section V) and attack the machine with the code in hand. Read the source code during inspection windows. And in everyday life, check rumors with fact-checking agencies before sharing, because, as we saw, the most real vector of 2026 is disinformation · and sharing without checking makes you part of the attack without realizing it.

Technical mode · Myths × Facts
Six clichés, dismantled
Myth

“The machine connects to the internet and can be broken into remotely.”

Fact

It is air-gapped: no internet during voting. Remote attack does not exist in this model; any attack requires physical presence at the machine.

Myth

“They found a flaw in the test, therefore there was fraud.”

Fact

Finding and fixing a flaw in a test is the goal of the test. A laboratory flaw is not an altered election. It is the silence that would be suspicious, not the noise.

Myth

“They can read the machine's screen from meters away.”

Fact

That is a secrecy attack (van Eck), not an integrity one, and it is conditioned on a very short distance and the absence of oversight. It does not change a single vote.

Myth

“They hacked machines at DEFCON, so ours will fall too.”

Fact

Those were American machines, sometimes decertified, in a lab. Different machine, different country, different threat model. Conclusions do not transplant.

Myth

“The machine is inviolable; hacking it is impossible.”

Fact

No system is inviolable. That phrase is bad marketing, and it gives ammunition to those who want to discredit the defenses that are real and solid.

Myth

“Nothing can be audited; it is all a black box.”

Fact

There is inspectable code, zeroing proof, parallel voting, and the TPS. The fair critique is that it could be easier to audit · not that it cannot be audited.

In the end, this is what I wanted to answer: not “trust me,” but “take the tools and check for yourself.” Skepticism is healthy. Skepticism that becomes action is citizenship. Skepticism that becomes certainty without evidence is just the same old rumor, with your signature under it.

The truth about the voting machine is more
interesting than either extreme.

// Ready to act?

Let's protect what is yours.

Fast response, total confidentiality and field execution. No fluff.

Cookies and privacy

NecessaryAlways on
Metrics