Slashdot Mirror


Linux-Based E-Voting In Brazil

John Sokol writes "I just heard from a good friend and Linux kernel hacker in Brazil that they have just finished their municipal election with 128 million people using Linux to vote. They voted nationwide for something like 5,000 city mayors. Voting is mandatory in Brazil. The embedded computer they are using once ran VirtuOS (a variant of MS-DOS); it now has its own locally developed, Linux-based distro. These are much nicer, smaller, and cheaper than the systems being deployed here in the US. Here is a Java-required site with a simulated Brazilian voting system. It's very cool; they even show you a picture of the candidate you voted for."

46 of 302 comments (clear)

  1. Science Fiction! by tomtomtom777 · · Score: 4, Funny

    It's very cool; they even show you a picture of the candidate you voted for.

    Wow! Incredible! I never thought something like that would be possible with a computer!

    1. Re:Science Fiction! by Anonymous Coward · · Score: 4, Funny

      Yeah, and I mean typewriters worked for ages without having to use Office software, we could go to the moon with a computer that was slower than a modern calculator, and speaking of voting didn't it work just as well without black people and women interfering?

      I tell ya, things used to be just perfect the way they were, progress just ruins society.

    2. Re:Science Fiction! by Keyper7 · · Score: 4, Interesting

      Brazilian cities were able to know the election results in the same day of voting, before midnight. That's pretty damn efficient.

      Furthermore, as fas as trusting or not trusting goes, voting with pen and paper is not as perfect as one might think.

    3. Re:Science Fiction! by bogado · · Score: 5, Interesting

      It has worked? I am not so sure about that, for an election to work it has to be void of frauds and offer some guaranties to the electors, like anonymity. Election are not a simple problem, in fact is a very hard one.

      The elections on Brazil seem to work fine, in fact many of the "left" parties (Brazil has many political parties) felt their numbers get better after the electronic voting was installed. But the system, as it is now, gives no warranty on how the votes are counted, you have to trust it is working and has not been tampered and as far as I know the code and designs of the voting machines are not open for review by the population.

      I trust that the system work, it has shown consistent numbers with the election day pools and as I said the system has been show to give results that are bad for the current government, that is the one witch could more easily tamper with the election, several times.

      --
      []'s Victor Bogado da Silva Lins

      ^[:wq

    4. Re:Science Fiction! by saibot834 · · Score: 4, Insightful

      I trust that the system work

      That's fine for you, but one principal of a democracy is that the vote is open and transparent. When there's a vote, I can go to the voting place and control that the process works fine. I can verify almost everything important first hand (at least in Germany, where I live). With voting machines, only a few people in the whole world can control the system. Even if the software is free, there are only few people who understand the source code and can verify it. The vote is _not_ transparent.

      Oh, and don't tell me that voting machines are unhackable. Here you can see a voting machine being hacked in 60 sec.

      So, you have vs. .
      I agree, that elections are not a simple problem, but pen&paper is a simple solution and at the moment the best.

    5. Re:Science Fiction! by Ocker3 · · Score: 2, Funny

      the Type of pen and paper ballot you use is more important than the fact that you physically put pen to paper, imho. Can the winged ballot (resulting in the chad problem) really be called pen and paper? You're not writing anything. Blowing our national horn here, but Australia invented the Secret Ballot system (http://en.wikipedia.org/wiki/Secret_ballot) back in the 1800s, and everyone else quickly followed suite. We also have a system of very fiercely independent vote counters, a critical cornerstone of the system, perhaps the USA needs to work on that part? *coughkatherineharriscough*

    6. Re:Science Fiction! by Lumpy · · Score: 4, Funny

      Problem is it's too complicated for american voters. Punching a hole in next to a name was too complicated. typing in a 2-4 digit code? are you MAD??

      Expecting Americans to have that level of ability is ridiculous. It's why Diebold is designing systems that are far easier to use. you go and vote, and it registers the vote they think you should have voted.

      It's far more accurate and eliminates problems.

      --
      Do not look at laser with remaining good eye.
    7. Re:Science Fiction! by Anonymous Coward · · Score: 2, Insightful

      Not sure how this is a troll. It might be too sarcastic, but it points out how nonsensical "if it ain't broke don't fix it" comments are. There are plenty of things that aren't technically broken, but that still could be done a whole lot better.

    8. Re:Science Fiction! by partenon · · Score: 2, Informative

      Even though I don't think that "our" (I'm Brazilian) voting machine could be much better, I don't think that paper+pen works better.

      In the past, when candidate A was part of the government, there used to be a lot of "accidents" with the vehicles carrying the voting papers from locations on which candidate B was known to have a good number of votes.

      --
      ilex paraguariensis for all
    9. Re:Science Fiction! by bogado · · Score: 2, Insightful

      While I agree that our election is far from perfect, I don't think that pen & paper is the best solution. It introduces many more places where it can be frauded, the accounting, false ballots and much more. A unified electronic voting has many advantages and can be made more safe by adding cryptographic receipts, for instance.

      I know that electronic voting can be hacked, but if you raise the bar too high it start to get impractical hacking. Compromising single units can be easy, but if it can be detected later the votes from that machine could be eliminated, so the roms would have to be swapped out after wise also, unless your objective is to create a dos on some ballots.

      I trust the system now because of the results it have shown, not because of the system it self, I know it can be hacked, I don't know what the heck is running there, what I know is that it has been shown by the results.

      --
      []'s Victor Bogado da Silva Lins

      ^[:wq

    10. Re:Science Fiction! by Anonymous Coward · · Score: 5, Funny

      Brazilian cities were able to know the election results in the same day of voting, before midnight. That's pretty damn efficient.

      That's nothing, here on Argentina, we're able to know the election results months before voting. God bless democracy!

    11. Re:Science Fiction! by alexwcovington · · Score: 2, Insightful

      Brazilian cities were able to know the election results in the same day of voting, before midnight.

      You mean:

      Brazilian mayors were able to rig the election results in the same day of voting, before midnight.

      --
      (It's never too late to join the Renaissance)
    12. Re:Science Fiction! by marcosdumay · · Score: 2, Interesting

      "I trust that the system work"

      I trust it to work better than the old paper one, but the eletronic system is getting less trustworth on every election. The first version of it used a small embbebed system, with no OS, then it changed to a closed OS, then it changed to Linux (ok, better than the closed OS). It's system was entirely (hardware and softwre) verified by several specialists choosed by a transparent process, then comes the closed OS, that can't be verified, and suddenly the transparent process changes to the government just choosing someone from ABIN (brazilian inteligence agency - a known problematic body).

      And just to add to the process, when the government finaly agreed to make printers pluggable to the voting machine, and plug some printers randomly, several of them were destroyed and the governemnt refused to count some votes.

    13. Re:Science Fiction! by digitalchinky · · Score: 2, Interesting

      I remember signing on to the electoral roll in Canberra somewhere back in the very early 90's. A few weeks later I received a letter from the commission saying after an investigation I no longer lived where I said I did so they have removed me from their list. I'm thinking I live on a Navy base, I have no hope of being posted anywhere for a few years, so, er, WTF? What investigation?

      I wrote back and asked WTF? They replied to the same Canberra address I enrolled with and said you don't live there any longer, you are no longer enrolled to vote, please update your electoral status at your new address. Thank you. Good day, and we are done here. Do not write back to us.

      Meh. So I never voted for as long as I lived in Canberra.

      A few years later I was posted elsewhere and received yet another letter from Canberra saying I never voted in one of the elections, tut tut tut, and that I would have to choose between a fine ($90 AUD I think) or tick a box that says "I did vote" - I think you can guess which option I chose.

    14. Re:Science Fiction! by TheLink · · Score: 2, Insightful

      With pen and paper the accidents need to be a lot bigger and widespread. You need many accidents.

      With electronic voting, you only need one accident. All you need is for someone to accidentally insert a thumbdrive. Or accidentally press the "demo key sequence".

      It's so much easier to cheat with electonic voting.

      Printing thousands of fake paper votes and moving them into the right locations can be done, but it is a lot more work than cheating with electronic voting.

      Even if the source code is validated, the results can be easily changed. Without a paper trail you can't check.

      If you have a paper trail, you might as well stick to paper and pen.

      --
    15. Re:Science Fiction! by Colin+Smith · · Score: 2, Funny

      an alliance of media groups, former politicians, judges and armed drug dealers and militia.

      Sure sounds like government to me.

       

      --
      Deleted
    16. Re:Science Fiction! by houghi · · Score: 4, Insightful

      I trust a paper more then some bits. Can you abuse it and do forgery? Yes, but with paper it is much harder. Try changing my vote on a piece of paper. Then try changing some bits in a PC. Now tell me which one will be noticed first.

      This is not about if paper is perfect. It is about if it is closer to perfection then a computer and it is.

      The goal is not speed.

      --
      Don't fight for your country, if your country does not fight for you.
    17. Re:Science Fiction! by nekokoneko · · Score: 5, Informative
      What the hell? Citation direly needed! I AM a Brazilian (you insensitive clod). And I can tell you the election is one of the few things I can say work pretty well here in Brazil. Just throwing a bunch of horror stories around seems to work pretty well on our non-informed moderators, though.

      Totally different from the rest of the world.

      Actually, it's pretty similar to the rest of the world. Voters are mostly uninformed on the issues and uninterested in getting informed.

  2. Re:How it's done by srjh · · Score: 3, Informative

    Is like this.

    Oh well, I'm sorry that you Americans will have to put up with your Diebold chosen masters in the next election... hope it doesn't turn out too bad for you.

    From the wiki:

    In 2004, Diebold-Procomp decided to migrate to Linux as a cost reduction measure.

  3. Why? by PinkyDead · · Score: 4, Insightful

    I don't see any of the problems resolved.

    You can still tamper with the system and there is no verifiable audit.

    I don't know that the underlying choice of OS was biggest problem (if I were building it, sure I'd choose Linux) - there are more fundamental process issues that are at fault. Namely, that someone could tamper with the election and no one could (dis)prove it.

    --
    Genesis 1:32 And God typed :wq!
    1. Re: Why? by ThiagoHP · · Score: 4, Insightful

      At least, here in Brazil, the election results always match the exit polls and no serious allegations of tampering were made. We've been using this system for 10 years without any major problems.

      Something that the Americans could learn from the Brazilian system is the simplicity of its use: no touch screen, you just type the number of your candidate in a keyboard that is the same used in telephones and then press a huge green button.

  4. When will we have web based voting by syousef · · Score: 4, Interesting

    We have web based banking. Why not web based voting?

    If anyone thinks I care more about who I vote for than the money in my bank accounts (and my liability for debt) they're disillusional. The politicians are all just different monkeys screeching different things that suit them. In the last election I voted for (mandatory council elections) I didn't know or care about the candidates who'd only shown their faces 2 weeks beforehand. On the ballot I wrote "Fuck them liars all. This form of democrasy a joke". Am I the only one that thinks it's hilarious that we can bank online but not vote online?

    --
    These posts express my own personal views, not those of my employer
    1. Re:When will we have web based voting by meringuoid · · Score: 4, Insightful
      We have web based banking. Why not web based voting?

      Risk of fraud. Under the current system I can't go out and bribe, blackmail or threaten voters, because I have no way of determining whether or not they voted as I asked. 'Vote for X or I break your legs' doesn't work if I cannot find out whether or not any given person actually did vote for X. But while you can take steps to ensure that the polling booth is private, you can't say the same for an internet terminal whose location you do not know and whose configuration you do not control. For all you know the voter's boss is watching him as he votes for the candidate who will restrict workers' rights and remove regulations on abusive bosses.

      The moment there's a way a person can prove who they voted for to a third party, the secret ballot is dead.

      --
      Real Daleks don't climb stairs - they level the building.
    2. Re:When will we have web based voting by Anonymous Coward · · Score: 5, Informative

      Actually, in Estonia, there has been web-based elections a year ago. The national ID card has PKI certificates in it and this cryptographically makes it safe. There's more information on the net, ie
      http://en.wikipedia.org/wiki/Electronic_voting_in_Estonia

    3. Re:When will we have web based voting by Yvanhoe · · Score: 3, Insightful

      The difference is that you trust your bank with your money. You trust they will not steal from you and protect your privacy. You can check that they are not stealing from you.

      If you vote on a third party website, you'll trust it with your votes, and its secrecy but, contrary to banks, you will have no way of checking that your vote is correctly accounted for.

      --
      The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
    4. Re:When will we have web based voting by Isao · · Score: 2, Informative
      Why not web based voting?

      Because banking and voting are different problems. Banking requires accountability (non-repudiation), voting anonymity. There are solutions for both, but anonymous electronic voting that's verifiable while being untraceable is so far unimplemented.

      The flexibility and usefulness of paper voting continues to be underrated in these discussions.

    5. Re:When will we have web based voting by the_one(2) · · Score: 2, Interesting

      that means that the vote isn't anonymous right?

    6. Re:When will we have web based voting by meringuoid · · Score: 2, Informative
      And that's why you would never see entire states move to postal voting only.

      I should bloody well hope not. Immediately after the rules were changed in the UK, so that postal votes were available to anybody who asked for one, without them having to give a good reason why they couldn't vote in person, a great saga of electoral fraud began. Including intimidation campaigns by thugs - of course, entirely without the knowledge of the candidate in question.

      Weaken the secrecy of the ballot, and these crooks will take the opportunity to rig elections.

      --
      Real Daleks don't climb stairs - they level the building.
    7. Re:When will we have web based voting by Yvanhoe · · Score: 3, Informative

      There are three problems that must be tackled by voting syst m :
      1. Anonymity of vote (nobody can tell who I voted for)
      2. No third party of trust (I do not need to trust anyone, especially thos organizing the election)
      3. Trust of count (The votes are correctly counted and totalled)

      There are surprisingly little literature around cryptographic system designed to solve these three problems. All the electronic voting system that I am aware of rely on the revocation of one of these properties.

      --
      The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
  5. Next step is a paper trail by what+about · · Score: 3, Insightful

    This is great

    • Licence money saved (even small ones)
    • No forced obsolescence of machine by "technology enhancements" and upgrades
    • No locking down of SW because some source "trade secrets" or "company secrets"
    • Possibly produced localy and therefore good for the economy. (I do not think we should buy everything from china)

    I do really miss a paper trail, that is needed in case there are doubts of "fraud", we do not want such doubts, do we ?

  6. Re:How it's done by calmofthestorm · · Score: 4, Insightful

    Crappy software running on linux is just as easy to rig...

    the problem with Diebold is political not technical

    --
    93rd rule of Slashdot: No matter how obvious my sarcasm is, my comment will be taken seriously by someone.
  7. Voting, mandatory?! by Antony-Kyre · · Score: 2, Insightful

    How un-American. Oh wait...

  8. Re:Another slow news day? by Exanon · · Score: 3, Interesting

    I believe it is of interest due to the US election coming up soon, the use of voting machines with closed source on those machines and the tampering discussion.

    Now, of course you could modify a linux machine as well, but with a potential army of hackers the security risks are handled much like the security in Linux: Assuming that for every one hacker that is malicious there is usually one or at least two that spot a problem and bring it to light.

  9. Re:How it's done by Anonymous Coward · · Score: 3, Informative

    Sorry, but mostly machines are built by Diebold who bought Procomp in Brazil.
    http://en.wikipedia.org/wiki/Premier_Election_Solutions
    http://www.samurai.com.br/urnaeletronica/ue2004/view

  10. Re:Another slow news day? by jellomizer · · Score: 2, Informative

    say CP/M still controlling a nuclear reactor , now THAT would be interesting.
    Why... It is probably more common then you think. In the US Nuclear Plants are aging and the Liberal Hippies will not fund to keep them up to date, as Nuclear is Bad OK. It is actually quite common to see old computers running Nuclear systems. As they have work for decades and there is no reason to risk a new system that may have problems.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  11. IT is a trap ! by Yvanhoe · · Score: 3, Interesting

    Open sourcing the software changes nothing to the fact that it is impossible to check how the votes are tallied. It just takes two bytes change in the binary to reverse the results of an election. In a world where the task of counting votes can be done by a machine small enough to fit into a smart card, you'll never be sure that the code published is the code running if you don't want to trust the officials organizing the vote.

    This is a step back from paper ballots.

    --
    The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
    1. Re:IT is a trap ! by arielCo · · Score: 2, Interesting

      That (the issue of trust) is exactly what happened in Venezuela not long ago - besides the government refusing to make the code available for inspection, when the opposition cried foul and insisted in auditing random machines+boxes, the government was adamant about using the random sample generator provided by... ahem... the government. I really won't say that there was a fraud, but trust was seriously undermined from there on.
      Please don't ask me for a quotation, this is not Wikipedia. Go Google.

      --
      This post contains no rudeness or derision of any kind. All arguments are friendly. Terms and exclusions may apply.
  12. Re:Great! by agoliveira · · Score: 5, Informative

    Now where is the link to the source code and how can I verify that it is the code that was really running on the machines?

    As a matter of fact, contrary to what Wikipedia says, the source code *is* available. The Ministério PÃblico (something like the public prosecutor in US), the OAB - Ordem dos Advogados do Brasil, an organ that congregates all lawyers in the country and any of the political parties can have access not only to the source code but to the compilation, digital signing and installation process. They also can run simulations and test the system for security and fraud and request any ballot to be audited. The whole software and data is also available for 2 years after the election. During the election days, representatives of any party can stay at any polling station to be sure that the election is not being rigged in this point. Personally, I think our system is quite secure and would require a major conspiracy involving basically everyone.

    --
    Scientia est Potentia
  13. Void Vote by Tuqui · · Score: 2, Interesting

    You can vote blank or null vote with that machine. That's good, but I really
    want to write %#%@%$!! in the ballot sometimes.

  14. Re:Great! by rwiggers · · Score: 2, Informative

    Wrong, much harder than paper based.
    Tampering the elections on a paper based election was really the rule here in small cities. That's pretty easy. One VERY simple method used carbon paper so that the vote for each one would be copied and could be delivered to the candidate as "proof of voting" to retrieve some bucks from him.
    Another problem recurrent here in the times of paper: illiterate people vote here. When they had to write down the name of the candidate, it was a nightmare to decipher the vote. It is pretty easy for them to copy some numbers, and they can verify the vote with the pic.

  15. In defence of the US by PinkyDead · · Score: 5, Interesting

    Looking at this here:
    http://en.wikipedia.org/wiki/Elections_in_Brazil

    About half way down it lists the result of the 2006 election : couple of points on that:
    (1) There are a lot of parties (~30)
    (2) They have low overall control within the parliament (15% max)
    (3) The socialists are on top
    E-voting or no, if the socialists were to rig the election (a) it would be obvious that they did it, (b) they would have to go all out to make any kind of difference, (c) they are unlikely to have the corporate influence necessary to pull it off and (d) there isn't much you get for it.

    In the US, on the other hand, there is effectively two parties each with ca. 50% of the electorate each, so rigging the election is (a) worthwhile and (b) easy to get away with. On top of that the Republicans are very good friends with the people that make the machines, and finally, you get to be 'leader of the free world' and all your buddies get rich.

    Means, motive and opportunity - right there. The interface is the least of their worries.

    --
    Genesis 1:32 And God typed :wq!
  16. I'll bite by Wooky_linuxer · · Score: 2, Interesting

    First, mobile phone cameras, or any other, were forbidden in the ballot - though from my experience this was only enforced in areas where there were a reasonable possibility of people selling votes or being coerced to vote, such as in Rio de Janeiro.

    Second, no one said the process was unhackable. It is just much harder to hack than a paper and pen election. It is auditable by anyone with sufficient technical expertise, and that is good enough for mosrt people who care.

    And finally, shut up and at least do some research on it before calling others idiots. The voter types a fucking NUMBER, not the candidate's name. A picture appears so even people who can't read can check if they are voting right (I concede tha some elder people do take quite a long time to vote).

    --
    Where is that guy who'd die defending what I had to say when I need him?
  17. Review of the voting machine by a poll worker by davide+marney · · Score: 4, Interesting

    I work at the polls here in Virginia, and we have an electronic voting machine. Here's my review of the Brazilian device compared to ours:

    • No touch screen on the Brazilian box, just a key pad. This is a great feature. Touch screens are not that easy for elderly people to use. They are unfamiliar with the concept, and, worse, tend to lean on the screen for support, causing the mouse pointer to jump all over the place. Simpler would be better, and a keypad is much more universally recognized.
       
    • 20 hour battery life on the Brazilian box. Having a battery that can last for the entire voting period means that even in the event of a complete power failure, the vote can go on. A great feature. We have battery back-up on our machines, but they last only 2-3 hours.
       
    • The Brazilian box looks much more rugged that our machines. I bet they could take a drop onto the floor. Our machines are not bad for PCs, but there's no way they would survive a fall.
       
    • Lower cost. The Brazilian box costs $1000; ours cost $5000. Lower cost means more machines.
       
    • I couldn't tell how the ballot is entered on the machine, but it doesn't look like they use a PC Card to load the ballot each time, the ballot is loaded just once, and then voters vote. I've never liked using the card readers; if they get misaligned, you have to swipe the cards "just so". If a swipe fails, the vote has to be voided. If the swipe failure causes a hardware lock, the machine has to be rebooted. If the machine gets rebooted too many times, we have to take it out of circulation. A lot of potential trouble caused by a simple I/O device! Better to be without it.
       
    • Neither the Brazilian box nor mine is truly auditable. Ours at least has a paper tally report that gets printed at the end, so one could trace the tally on the flash drives to a tape. But there's no way to do a human recount on either machine. I have some heartburn over this, but with good voter registration controls, there are cross-checks that can be done to lower the security profile considerably. For example, we keep a paper tally of the number of voters, and each hour we cross-check the paper tally against the machines. If the machines show a different headcount than the paper, we investigate immediately. In my experience, the fault has so far always been on the human, paper side (but I'm relatively new at this.)

    In any event, I think SL geeks are obvious choices to volunteer to be Officers of Election. We know the vulnerabilities of the technology, and have the necessary attention to detail to appreciate the kinds of auditing checks that need to be done to run a fair and open election.

    --
    "We receive as friendly that which agrees with, we resist with dislike that which opposes us" - Faraday
  18. Re:How it's done by marcosdumay · · Score: 3, Informative

    All the IP is owned by the Brazilian Government. Diebold is just the assembler with the lowest price.

    Not that it makes the machine secure, it is just slightly better than the US situation.

  19. About the Brazilian voting system... by Brazilian+Joe · · Score: 4, Informative

    Some people who work during the elections are volunteers. while others are drafted by the Superior Electoral Tribunal. You can still not go there and do your job as long as you have a strong justification (like not being in the city you vote on the day of election). There is no voting 'in transit' i.e. voting in another city, or in any other 'electoral college' besides your own.

    As a compensation, you get a 'lunch ticket' and a letter which entitles you a 1-day off so you can compensate your day working on the Sunday election (just give the letter to your employer, he cannot refuse you the day off, it's part of the electoral law)

    By 5:00 PM, no one else can vote. If there is a line, people are given numbers ad only those with numbers in line can cast their votes.

    once the last voters finish, the voting system is set to 'closed', meaning no more votes can be computed. at least three paper trails are generated, for three of the people in charge of the voting table. Any one can go there and ask for an extra paper trail, such as me and you. usually, a few people ask for additional paper trails on behalf of their own parties. You can check the paper trail gainst the voters registered for that college, to see if there are any irregularities.

    Potentially, a parallel vote counting can be set up, completely contolled by the population, just using the paper trails generated at the end of the election.

    The president of the table then takes the machine to the Electoral Tribunal and there they pick up the internal data and do the vote counting.

    IMO it's reasonably resistent to tampering, and allow for parallel counting, which makes it resistent to frauds. Yeah, being open source would help for sure, and setting up a country-wide parallel vote counting would be very hard, but it is possible.

    I believe the U.S. should just license our technology and be happy with it ;-)

  20. true facts about this system... by drpaulo · · Score: 2, Interesting

    Some patients of mine work with the elections in Brazil. Being a slashdot guy for a while I am always asking them questions about the voting system. What I have learned: # the code is available in advance for the parties OPEN SOURCE (only not online) # the software/firmware is loaded on the machines in front of the parties # the machine has no open slots for the outside world # it is sealed tamper free with a special seal that solf destroys once openned. # the is a hash code to ensure the validity of the files # only the vote is recorded, there is no way on knowing who voted on who. # the order of the votes on the files is radomly changed every new vote cheers,