Electoral fraud , election manipulation , or vote rigging is illegal interference with the process of an election , whether by increasing the vote share of the favored candidate, depressing the vote share of the rival candidates, or both. What constitutes electoral fraud varies from country to country.
Many kinds of election fraud are outlawed in electoral legislation, but others are in violation of general laws, such as those banning assault , harassment or libel . Although technically the term 'electoral fraud' covers only those acts which are illegal, the term is sometimes used to describe acts which are legal, but considered morally unacceptable, outside the spirit of an election or in violation of the principles of democracy. Show elections , in which there is only one candidate, are sometimes classified as electoral fraud, although they may comply with the law and are presented more as referendums.
In national elections, successful electoral fraud can have the effect of a coup d'état or corruption of democracy . In a narrow election , a small amount of fraud may be enough to change the result. Even if the outcome is not affected, revelation of fraud can have a damaging effect, if not punished, as it can reduce voters' confidence in democracy .
A list of threats to voting systems, or electoral fraud methods considered as sabotage, is kept by the National Institute of Standards and Technology  and is considered sabotage of the highest degree.
Electoral fraud can occur in advance of voting if the composition of the electorate is altered. The legality of this type of manipulation varies across jurisdictions. Deliberate manipulation of election outcomes is widely considered a violation of the principles of democracy. 
Manipulation of demography
In many cases it is possible for authorities to artificially control the composition of an electorate in order to produce a foregone result. One way of doing this is to move a large number of voters into the electorate prior to an election, for example by temporarily assigning them land or lodging them in flophouses .  Many countries prevent this with rules stipulating that a voter must have lived in an electoral district for a minimum period (for example, six months) in order to be eligible to vote there. However, such laws can also be used for demographic manipulation as they tend to disenfranchise those with no fixed address, such as the homeless, travelers, Roma , students (studying full-time away from home), and some casual workers.
Another strategy is to permanently move people into an electoral district, usually through public housing . If people eligible for public housing are likely to vote for a particular party, then they can either be concentrated into one area, thus making their votes count for less, or moved into marginal electorates , where they may tip the balance towards their preferred party. One notable example of this occurred in the City of Westminster in England under Shirley Porter . 
Immigration law may also be used to manipulate electoral demography. For instance, Malaysia gave citizenship to immigrants from the neighboring Philippines and Indonesia , together with suffrage, in order for a political party to "dominate" the state of Sabah ; this controversial process was known as Project IC . 
A method of manipulating primary contests and other elections of party leaders is related to this. People who support one party may temporarily join another party (or vote in a crossover way, when permitted) in order to elect a weak candidate for that party's leadership. The goal ultimately is defeat of the weak candidate in the general election by the leader of the party that the voter truly supports.
The composition of an electorate may also be altered by disenfranchising some classes of people, rendering them unable to vote. In some cases, states have passed provisions that raised general barriers to voter registration, such as poll taxes, literacy and comprehension tests, and recordkeeping requirements, which in practice were applied against minority populations to discriminatory effect. From the turn of the century into the late 1960s, most African Americans in the southern states of the former Confederacy were disenfranchised by such measures. Corrupt election officials may misuse voting regulations such as a literacy test or requirement for proof of identity or address in such a way as to make it difficult or impossible for their targets to cast a vote. If such practices discriminate against a religious or ethnic group, they may so distort the political process that the political order becomes grossly unrepresentative, as in the post- Reconstruction or Jim Crow era until the Voting Rights Act of 1965 .
Groups may also be disenfranchised by rules which make it impractical or impossible for them to cast a vote. For example, requiring people to vote within their electorate may disenfranchise serving military personnel, prison inmates, students, hospital patients or anyone else who cannot return to their homes. Polling can be set for inconvenient days, such as midweek or on holy days of religious groups: for example on the Sabbath or other holy days of a religious group whose teachings determine that voting is a prohibited on such a day. Communities may also be effectively disenfranchised if polling places are situated in areas perceived by voters as unsafe, or are not provided within reasonable proximity (rural communities are especially vulnerable to this).
In some cases voters may be invalidly disenfranchised, which is true electoral fraud. For example, a legitimate voter may be “accidentally” removed from the electoral roll, making it difficult or impossible for the person to vote.
In the Canadian federal election of 1917, during the Great War , the Union government passed the Military Voters Act and the Wartime Elections Act . The Military Voters Act permitted any active military personnel to vote by party only and allowed that party to decide in which electoral district to place that vote. It also enfranchised those women who were directly related or married to an active soldier. These groups were believed to be disproportionately in favor of the Union government, as that party was campaigning in favor of conscription. The Wartime Elections Act, conversely, disenfranchised particular ethnic groups assumed to be disproportionately in favor of the opposition Liberal Party.
Division of opposition support
Stanford University professor Beatriz Magaloni described a model governing the behavior of autocratic regimes. She proposed that ruling parties can maintain political control under a democratic system without actively manipulating votes or coercing the electorate. Under the right conditions, the democratic system is maneuvered into an equilibrious state in which divided opposition parties act as unwitting accomplices to single-party rule. This permits the ruling regime to abstain from illegal electoral fraud. 
Voter intimidation involves putting undue pressure on a voter or group of voters so that they will vote a particular way, or not at all. Absentee and other remote voting can be more open to some forms of intimidation as the voter does not have the protection and privacy of the polling location. Intimidation can take a range of forms including verbal, physical, or coercion. This was so common that in 1887, a Kansas Supreme Court in New Perspectives on Election Fraud in The Gilded Age said “[…] physical retaliation constituted only a slight disturbance and would not vitiate an election.”
- Violence or the threat of violence : In its simplest form, voters from a particular demographic or known to support a particular party or candidate are directly threatened by supporters of another party or candidate or by those hired by them. In other cases, supporters of a particular party make it known that if a particular village or neighborhood is found to have voted the 'wrong' way, reprisals will be made against that community. Another method is to make a general threat of violence, for example a bomb threat which has the effect of closing a particular polling place, thus making it difficult for people in that area to vote.  One notable example of outright violence was the 1984 Rajneeshee bioterror attack , where followers of Bhagwan Shree Rajneesh deliberately contaminated salad bars in The Dalles, Oregon , in an attempt to weaken political opposition during county elections.
- Attacks on polling places : Polling places in an area known to support a particular party or candidate may be targeted for vandalism, destruction or threats, thus making it difficult or impossible for people in that area to vote.
- Legal threats : In this case voters will be made to believe, accurately or otherwise, that they are not legally entitled to vote, or that they are legally obliged to vote a particular way. Voters who are not confident about their entitlement to vote may also be intimidated by real or implied authority figures who suggest that those who vote when they are not entitled to will be imprisoned, deported or otherwise punished.  For example, in 2004, in Wisconsin and elsewhere voters allegedly received flyers that said, "If you already voted in any election this year, you can’t vote in the Presidential Election", implying that those who had voted in earlier primary elections were ineligible to vote. Also, "If anybody in your family has ever been found guilty of anything you can’t vote in the Presidential Election." Finally, "If you violate any of these laws, you can get 10 years in prison and your children will be taken away from you."  Another method, allegedly used in Cook County, Illinois in 2004, is to falsely tell particular people that they are not eligible to vote. 
- Coercion : The demographic that controlled the voting ballot would try to persuade others to follow them. By singling out those who were against the majority, people would attempt to switch the voters decision. Their argument could be that since the majority sides with a certain candidate, they should admit defeat and join the winning side. If this didn't work, this led to the threatening of violence seen countless times during elections. Coercion, electoral intimidation was seen in the Navy. In 1885 William C. Whitney started an investigation that involved the men in the Navy. As said by Whitney "the vote of the yard was practically coerced and controlled by the foremen. This instance shows how even in the Navy there were still instances of people going to great lengths for the desired elective to win.
In some parts of the United States in the mid- and late 19th century, members of competing parties would vie sometimes openly and other times with much greater secrecy to buy and sell votes. The voter would be compensated with cash or the covering of one’s house/tax payment. Since this was an act of electoral fraud, the party would go to secretive means to keep the practice going, but only evolved into this once there were repercussions for their actions. As said earlier some politicians publicly tried to sway the people to vote for them. Mostly done in town hall meeting or large gatherings to persuade numerous people to side with them. This open discussion of voting buying led to poor results for some. As written on May 15, 1886 in an article in the New York Times, said"[...] politicians of the town of Milton, Ny are exercised over alleged bribery and vote-buying at the town meeting." To keep the practice of vote buying secret, parties would "open a vote buying-shop, complete with clerks and a manager." The shops kept the secrecy of the buying by the parties and kept those who wanted to make claims of unfair play out of the operation. There would also be runners, who would go out into the public and find floating voters and bargain with them to vote for their side.
As people were being bought, the main focus of this was the market of vote buying. At the beginning of voting for candidates the market opened for business. Mark Wahlgren Summers writes that "On that day the market for votes opened at five dollars, with a brisk demand and strong upward tendency." At the beginning of an election most voters would receive five dollars, but as the election process continued people could obtain as much as fifty dollars for their vote. The dictation of the prices fluctuated since this was a market, but as the election dwindled to the end voters could receive these high payments. As Business Report, in New York in 1888 dispatched information to the public, this only helped those who were floating voters have better chances of receiving greater compensation for their vote since they knew what was a reasonable offer. Furthermore, this complicated the discussion between the runner and the floating voter. Runners were bargaining to get the cheapest prices, while voters desired to receive the highest payment they could. In all vote buying led to changes in the polls as Senator George Edmunds remarked in 1889, "divisions of parties in several of the states have been so close that the purchase of a comparatively small number of votes could easily turn the scale."
In England, documentation and stories of vote buying and vote selling are also well known. The most famous episodes of vote buying came in 18th century England, when two or more rich aristocrats spent whatever money it took to win. The notorious "Spendthrift election" came in Northamptonshire in 1768, when three earls spent over ₤100,000 each to win a seat. 
Voters may be given money or other rewards for voting in a particular way, or not voting. In some jurisdictions, the offer or giving of other rewards is referred to as "electoral treating".  Electoral treating remains legal in some jurisdictions, such as in the Seneca Nation of Indians . 
People may distribute false or misleading information in order to affect the outcome of an election. For example, in the Chilean presidential election of 1970 , the U.S. government's Central Intelligence Agency used "black propaganda"—materials purporting to be from various political parties—to sow discord between members of a coalition between socialists and communists. 
Another use of disinformation is to give voters incorrect information about the time or place of polling, thus causing them to miss their chance to vote. As part of the 2011 Canadian federal election voter suppression scandal , Elections Canada traced fraudulent phone calls, telling voters that their polling stations had been moved, to a telecommunications company that worked with the Conservative Party. 
Misleading or confusing ballot papers
Ballot papers may be used to discourage votes for a particular party or candidate, using design or other features which confuse voters into voting for a different candidate. For example, in the 2000 U.S. presidential election , Florida's butterfly ballot paper was criticized as poorly designed, leading some voters to vote for the wrong candidate. The ballot was designed by a Democrat; that party was assessed as the most harmed by voter errors because of this design.  Poor or misleading design is not usually illegal and therefore not technically election fraud, but can subvert the principles of democracy.
Sweden has a system with separate ballots used for each party, to reduce confusion among candidates. But ballots from Sweden Democrats have been mixed with ballots from the larger Swedish Social Democratic Party , which used a very similar font for the party name written on the top of the ballot.
Another method of confusing people into voting for a different candidate than intended is to run candidates or create political parties with similar names or symbols as an existing candidate or party. The goal is to mislead voters into voting for the false candidate or party to influence the results.  Such tactics may be particularly effective when a large proportion of voters have limited literacy in the language used on the ballot. Again, such tactics are usually not illegal but often work against the principles of democracy.
Another way of possible electoral confusion, is multiple variations of voting by different electoral systems . This may cause ballots to be counted as invalid, if the wrong system is used. For instance, if a voter puts a first-past-the-post cross in a numbered single transferable vote ballot paper, it is invalidated.
For example, in Scotland and other parts of the United Kingdom, up to four different voting systems and types of ballots maybe be used, based on the jurisdictional level of elections for candidates. Local elections are determined by single transferable votes ; Scottish parliamentary elections by the additional member system ; national elections for the UK Parliament by first-past-the-post ; and elections to the European Parliament by a party list system .
Ballot stuffing , or "ballot-box stuffing", is the illegal practice of one person submitting multiple ballots during a vote in which only one ballot per person is permitted. The name originates from the earliest days of this practice, in which people actually did stuff more than one ballot in a ballot box at the same time. An instance of this was in Baltimore. John Dugan gathered hoodlums from the jail in Baltimore and proceeded to the town of Clarksville to stuff the ballot box. Mr. Dugan in New Perspectives on Election Fraud in the Gilded Age, confessed " filed past the poll. Each dropped in his ballot. Then we kept going around in a circle, each of us putting a ballot in every time round, until we had polled several hundred votes." The actions done by the group of men, affected the ballot of the town of Clarksville. And only added to the fraud associated with voting during the 19th century.
Another ballot stuffing that was possible with one version of the California-based Sequoia touchscreen voting machine . It has a yellow button on the back side which, when pressed, allows repeated voting. But, by design, pressing the button triggers two audible beeps, which could trigger election observers to intervene to invalidate such illegal voting. 
Misrecording of votes
Many elections feature multiple opportunities for unscrupulous officials or 'helpers' to record an elector's vote differently from their intentions. Voters who require assistance to cast their votes are particularly vulnerable to having their votes stolen in this way. For example, a blind person or one who cannot read the language of the ballot paper may be told that they have voted for one party when in fact they have been led to vote for another. This is similar to the misuse of proxy votes; however in this case the voter will be under the impression that they have voted with the assistance of the other person, rather than having the other person voting on their behalf.
Where votes are recorded through electronic or mechanical means, the voting machinery may be altered so that a vote intended for one candidate is recorded for another.
Misuse of proxy votes
Proxy voting is particularly vulnerable to election fraud, due to the amount of trust placed in the person who casts the vote. In several countries there have been allegations of retirement home residents being asked to fill out 'absentee voter' forms. When the forms are signed and gathered, they are secretly rewritten as applications for proxy votes, naming party activists or their friends and relatives as the proxies. These people, unknown to the voter, cast the vote for the party of their choice. This trick relies on elderly care home residents typically being absent-minded, or suffering from dementia . In the United Kingdom , this is known as 'granny farming.' The law was changed to prevent a single voter from acting as a proxy for more than two non-family members. It was intended to reduce the ability of one person to commit fraud.
Destruction or invalidation of ballots
One of the simplest methods of electoral fraud is to destroy ballots for the 'wrong' candidate or party. This is unusual in the 21st century in functioning democracies, as it is difficult to do without notice. But, in a very close election it might be possible to destroy a very small number of ballot papers without detection, thereby changing the overall result. Blatant destruction of ballot papers can render an election invalid and force it to be re-run. If a party can improve its vote on the re-run election, it can benefit from such destruction as long as it is not linked to it.
Another method is to make it appear that the voter has spoiled his or her ballot, thus rendering it invalid. Typically this would be done by adding another mark to the paper, making it appear that the voter has voted for more candidates than entitled, for instance. It would be difficult to do this to a large number of paper ballots without detection.
Tampering with electronic voting machines
All voting systems face threats of some form of electoral fraud. The types of threats that affect voting machines vary.  Research at Argonne National Laboratories revealed that a single individual with physical access to a machine, such as a Diebold Accuvote TS, can install inexpensive, readily-available electronic components to manipulate its functions.  
Other examples include:
- Tampering with the software of a voting machine to add malicious code altering vote totals or favor any candidate. In any way even by the products making company.
- Tampering with the hardware of the voting machine to alter vote totals or favor any candidate. 
- Some of these machines require a smartcard to activate the machine and vote. However, a fraudulent smart card could attempt to gain access to vote multiple times  or be pre-loaded with negative votes to favor one candidate over another, as has been demonstrated.
- Abusing the administrative access to the machine by election officials might also allow individuals to vote multiple times.
- Election results that are sent directly over the internet from a county count center to the state count center can be vulnerable to a man-in-the-middle attack , where they are diverted to an intermediate web site where the man in the middle flips the votes in favor of a certain candidate and then immediately forwards them on to the state count center. All votes sent over the internet violate chain of custody and hence should be avoided by driving or flying memory cards in locked metal containers from county count centers to the state count center. For purposes of getting quick preliminary statewide results on election night, encrypted votes can be sent over the internet, but final official results should be tabulated the next day only after the actual memory cards arrive in secure metal containers and are counted. 
Some commentators, such as former Federal Election Commission member Hans von Spakovsky , have claimed that voter impersonation fraud, in which one person votes by impersonating another, eligible voter, is widespread, but documentation has been scarce and prosecutions rare. Numerous others, such as Professor Larry Sabato , and a variety of studies have shown this to be "relatively rare".  Since 2013, when the US Supreme Court ruled that a provision of the Voting Rights Act was no longer enforceable, several states have passed voter ID laws , ostensibly to counter the alleged fraud. But many experts counter that voter ID laws are not very effective against some forms of impersonation. These ID laws have been challenged by minority groups that were disadvantaged by the changes. By August 2016, four federal court rulings overturned laws or parts of such laws because they placed undue burdens on minority populations, including African Americans and Native Americans.  In each case: Texas, North Carolina, Wisconsin, and North Dakota, and may adversely affect minority voters. The states are required to accept alternatives for the November 2016 elections. These cases are expected to reach the US Supreme Court for hearings.
In particularly corrupt regimes, the voting process may be nothing more than a sham, as officials would simply announce whatever results they want, sometimes without even bothering to count the votes. Such practices tend to draw international condemnation, but voters typically have little recourse, as there would seldom be any ways to remove the "winner" from power, short of a revolution.
Vote fraud in legislature
Vote fraud can also take place in legislatures. Some of the forms used in national elections can also be used in parliaments, particularly intimidation and vote-buying. Because of the much smaller number of voters, however, election fraud in legislatures is qualitatively different in many ways. Fewer people are needed to 'swing' the election, and therefore specific people can be targeted in ways impractical on a larger scale. For example, Adolf Hitler achieved his dictatorial powers due to the Enabling Act of 1933 . He attempted to achieve the necessary two-thirds majority to pass the Act by arresting members of the opposition, though this turned out to be unnecessary to attain the needed majority. Later, the Reichstag was packed with Nazi party members who voted for the Act's renewal.
In many legislatures, voting is public, in contrast to the secret ballot used in most modern public elections. This may make their elections more vulnerable to some forms of fraud, since a politician can be pressured by others who will know how he or she has voted. However, it may also protect against bribery and blackmail, since the public and media will be aware if a politician votes in an unexpected way. Since voters and parties are entitled to pressure politicians to vote a particular way, the line between legitimate and fraudulent pressure is not always clear.
As in public elections, proxy votes are particularly prone to fraud. In some systems, parties may vote on behalf of any member who is not present in parliament. This protects those members from missing out on voting if prevented from attending parliament, but it also allows their party to prevent them from voting against its wishes. In some legislatures, proxy voting is not allowed, but politicians may rig voting buttons or otherwise illegally cast "ghost votes" while absent. 
The two main strategies for the prevention of electoral fraud in society are: 1) Deterrence through consistent and effective prosecution; and 2) Cultivation of mores that discourage corruption. The two main fraud prevention tactics can be summarized as secrecy and openness. The secret ballot prevents many kinds of intimidation and vote selling, while transparency at all other levels of the electoral process prevents and allows detection of most interference.
The patterns of conventional behavior in a society, or mores , are an effective means for preventing electoral fraud and corruption in general. A good example is Sweden , where the culture has a strong tendency toward positive values, resulting in a low incidence of political corruption.  Until recently Canada had a similar reputation. The In and Out scandal of 2008 and the Robocall scandal of 2011 has tarnished Canada's electoral integrity.
An advantage of cultivating positive mores as a prevention strategy is that it is effective across all electoral systems and devices. A disadvantage is that it makes other prevention and detection efforts more difficult to implement because members of society generally have more trust and less of a sense for fraudulent methods .
The secret ballot , in which only the voter knows how they have voted, is believed by many to be a crucial part of ensuring free and fair elections through preventing voter intimidation or retribution.  Others argue that the secret ballot enables election fraud (because it makes it harder to verify that votes have been counted correctly)   and that it discourages voter participation. Although the secret ballot was sometimes practiced in ancient Greece and was a part of the Constitution of the Year III of 1795, it only became common in the nineteenth century. Secret balloting appears to have been first implemented in the former British colony —now an Australian state —of Tasmania on 7 February 1856. By the turn of the century the practice had spread to most Western democracies.
In the United States, the popularity of the Australian ballot grew as reformers in the late 19th century sought to reduce the problems of election fraud. Groups such as the Greenbackers, Nationalist, and more fought for those who yearned to vote, but were exiled for their safety. George Walthew, Greenback, helped initiate one of the first secret ballots in America in Michigan in 1885. Even George Walthew had a predecessor in John Seitz, Greenback, who campaigned a bill to " preserve the purity of elections" in 1879 after the discovery of Ohio's electoral fraud in congressional elections.
The efforts of many helped accomplish this and led to the spread of other secret ballots all across the country. As mentioned on February 18, 1890 in the Galveston News “The Australian ballot has come to stay. It protects the independence of the voter and largely puts a stop to vote buying.” Before this, it was common for candidates to intimidate or bribe voters, as they would always know who had voted which way.
Most methods of preventing electoral fraud involve making the election process completely transparent to all voters, from nomination of candidates through casting of the votes and tabulation.  A key feature in ensuring the integrity of any part of the electoral process is a strict chain of custody .
To prevent fraud in central tabulation, there has to be a public list of the results from every single polling place. This is the only way for voters to prove that the results they witnessed in their election office are correctly incorporated into the totals.
End-to-end auditable voting systems provide voters with a receipt to allow them to verify their vote was cast correctly, and an audit mechanism to verify that the results were tabulated correctly and all votes were cast by valid voters. However, the ballot receipt does not permit voters to prove to others how they voted, since this would open the door towards forced voting and blackmail. End-to-end systems include Punchscan and Scantegrity , the latter being an add-on to optical scan systems instead of a replacement.
In many cases, election observers are used to help prevent fraud and assure voters that the election is fair. International observers (bilateral and multilateral) may be invited to observe the elections (examples include election observation by the Organization for Security and Cooperation in Europe (OSCE), European Union election observation missions, observation missions of the Commonwealth of Independent States (CIS), as well as international observation organized by NGOs, such as CIS-EMO , European Network of Election Monitoring Organizations (ENEMO), etc.). Some countries also invite foreign observers (i.e. bi-lateral observation, as opposed to multi-lateral observation by international observers).
In addition, national legislatures of countries often permit domestic observation. Domestic election observers can be either partisan (i.e. representing interests of one or a group of election contestants) or non-partisan (usually done by civil society groups). Legislations of different countries permit various forms and extents of international and domestic election observation.
Election observation is also prescribed by various international legal instruments. For example, paragraph 8 of the 1990 Copenhagen Document states that "The [OSCE] participating States consider that the presence of observers, both foreign and domestic, can enhance the electoral process for States in which elections are taking place. They therefore invite observers from any other CSCE participating States and any appropriate private institutions and organizations who may wish to do so to observe the course of their national election proceedings, to the extent permitted by law. They will also endeavor to facilitate similar access for election proceedings held below the national level. Such observers will undertake not to interfere in the electoral proceedings".
Various forms of statistics can be indicators for election fraud, e.g. exit polls which diverge from the final results. Well-conducted exit polls serve as a deterrent to electoral fraud. However, exit polls are still notoriously imprecise. For instance, in the Czech Republic, some voters are afraid or ashamed to admit that they voted for the Communist Party (exit polls in 2002 gave the Communist party 2–3 percentage points less than the actual result).
When elections are marred by ballot-box stuffing (e.g., the Armenian presidential elections of 1996 and 1998), the affected polling stations will show abnormally high voter turnouts with results favoring a single candidate. By graphing the number of votes against turnout percentage (i.e., aggregating polling stations results within a given turnout range), the divergence from bell-curve distribution gives an indication of the extent of the fraud. Stuffing votes in favor of a single candidate affects votes vs. turnout distributions for that candidate and other candidates differently; this difference could be used to quantitatively assess the amount of votes stuffed. Also, these distributions sometimes exhibit spikes at round-number turnout percentage values.    High numbers of invalid ballots, overvoting or undervoting are other potential indicators.
In the United States one such case was in Pennsylvania where Bill Stinson won an election based on fraudulent absentee ballots. The courts ruled that his opponent be seated in the state Senate as a result.
In the Philippines , former President Gloria Macapagal-Arroyo was arrested in 2011 following the filing of criminal charges against her for electoral sabotage, in connection with the Philippine general election, 2007 . She was accused of conspiring with election officials to ensure the victory of her party's senatorial slate in the province of Maguindanao , through the tampering of election returns. 
Voting machine integrity
One method for verifying voting machine accuracy is Parallel Testing, the process of using an independent set of results compared against the original machine results. Parallel testing can be done prior to or during an election. During an election, one form of parallel testing is the VVPAT . Voter-verified paper audit trail (VVPAT) or verified paper record (VPR) is a method of providing feedback to voters using a ballotless voting system. A VVPAT is intended as an independent verification system for voting machines designed to allow voters to verify that their vote was cast correctly, to detect possible election fraud or malfunction, and to provide a means to audit the stored electronic results. This method is only effective if statistically significant numbers of voters verify that their intended vote matches both the electronic and paper votes.
On election day, a statistically significant number of voting machines can be randomly selected from polling locations and used for testing. This can be used to detect potential fraud or malfunction unless manipulated software would only start to cheat after a certain event like a voter pressing a special key combination (Or a machine might cheat only if someone doesn't perform the combination, which requires more insider access but fewer voters).
Another form of testing is Logic & Accuracy Testing (L&A), pre-election testing of voting machines using test votes to determine if they are functioning correctly.
Another method to insure the integrity of electronic voting machines is independent software verification and certification .  Once software is certified, code signing can insure the software certified is identical to that which is used on election day. Some argue certification would be more effective if voting machine software was publicly available or open source .
Certification and testing processes conducted publicly and with oversight from interested parties can promote transparency in the election process. The integrity of those conducting testing can be questioned.
One method that people have argued would help prevent these machines from being tampered with would be for the companies that produce the machines to share the source code, which displays and captures the ballots, with computer scientists. This would allow external sources to make sure that the machines are working correctly. 
Notable United States legislation
Help America Vote Act
The Help America Vote Act (), or HAVA , is a United States federal law enacted on October 29, 2002.  It was drafted (at least in part) in reaction to the controversy surrounding the 2000 U.S. presidential election , the goals of HAVA are:  to replace punchcard and lever-based voting systems ; create the Election Assistance Commission to assist in the administration of Federal elections; and establish minimum election administration standards.
Voting Rights Act of 1965
This was the most important federal legislation of the 20th century to protect voting rights, especially of ethnic and language minorities who had been disenfranchised for decades by states' constitutions and practices. Initially it was particularly important for enforcing the constitutional right of African Americans in the South to vote, where millions of people had been mostly disenfranchised since the turn of the 20th century and excluded from politics. The law has also protected other ethnicities, such as Hispanics, Asians, Native Americans, and language minorities in other states, who have been discriminated against at various times, especially in the process of voter registration and electoral practices.
Civil Rights Act of 1964
The Civil Rights Act of 1964 (, 78 Stat. , enacted July 2, 1964) was a landmark piece of legislation in the United States that outlawed major forms of discrimination against African Americans and other minorities.
- Administrative resource
- American Center for Voting Rights
- Branch stacking
- Caging list
- Electoral integrity
- Florida Central Voter File (purging controversy)
- Foreign electoral intervention
- List of controversial elections
- List of UK Parliamentary election petitions
- Notable instances of ballot box stuffing
- Political corruption
- Postal voting
- Show election
- Smear campaign
- Voter suppression
- Carousel voting
- Bulgarian train
- Lehoucq, Fabrice. "Electoral fraud: Causes, types, and consequences." Annual review of political science (2003) 6#1 pp. 233–56.
- Schaffer, Frederic Charles. The hidden costs of clean election reform (Cornell University Press, 2008)
- McGrath, Amy. The Forging of Votes , Tower House Publications, Kensington, NSW (1994)
- McGrath, Amy. Frauding of Elections , Tower House Publications and H.S. Chapman Society, Brighton-le Sands, NSW (2003)
- McGrath, Amy. ( The Frauding of Votes , Tower House Publications, Kensington, NSW 1996)
- Perry, Peter John. Political Corruption in Australia: A Very Wicked Place? (Ashgate Pub Limited, 2001)
- Atkinson, Michael M., and Gerald Bierling. "Politicians, the public and political ethics: Worlds apart." Canadian Journal of Political Science (2005) 38#4: 1003.
- Ebhardt, Christian. "In Search of a Political Office: Railway Directors and Electoral Corruption in Britain and France, 1820-1870." Journal of Modern European History (2013) 11#1 pp. 72–87.
- Anderson, Margaret Lavinia. Practicing Democracy: Elections and Political Culture in Imperial Germany (2000)
- Ziblatt, Daniel. "Shaping Democratic Practice and the Causes of Electoral Fraud: The Case of Nineteenth-Century Germany." American Political Science Review (2009) 103#1 pp. 1–21.
- Gash, Norman. Politics in the Age of Peel: A Study in the Technique of Parliamentary Representation 1830–1850 (1953)
- O'Gorman, Frank. Voters, Patrons and Parties: The Unreformed Electoral System of Hanoverian England, 1734–1832 (Oxford, 1989).
- Harling, Philip. "Rethinking "Old Corruption," Past & Present (1995) No. 147 pp. 127–58 
- Namier, Lewis Bernstein. The structure of politics at the accession of George III (London: Macmillan, 1957)
- O'Leary, Cornelius. The elimination of corrupt practices in British elections, 1868–1911 (Clarendon Press, 1962)
- Hartlyn, Jonathan, and Arturo Valenzuela, "Democracy in Latin America since 1930," in Leslie Bethell, ed. Latin America: Politics and Society since 1930 (1998), 3–66.
- Molina, Iván and Fabrice Lehoucq. "Political Competition and Electoral Fraud: A Latin American Case Study," Journal of Interdisciplinary History (1999) 30#2 pp. 199–234 
- Posada-Carbó, Eduardo. "Electoral Juggling: A Comparative History of the Corruption of Suffrage in Latin America, 1830–1930." Journal of Latin American Studies (2000). pp. 611–44.
- Ricci, Paolo. "‘Beheading’, Rule Manipulation and Fraud: The Approval of Election Results in Brazil, 1894–1930." Journal of Latin American Studies (2012) 44#3 pp. 495–521.
- Silva, Marcos Fernandes da. "The political economy of corruption in Brazil." Revista de Administração de Empresas (1999) 39#3 pp. 26–41.
- Meyersson, Erik. "Is Something Rotten In Ankara’s Mayoral Election? A Very Preliminary Statistical Analysis" (2014) 
- Meyersson, Erik. "Trouble in Turkey’s Elections" (2014) 
- Meyersson, Erik. "Capital Fraud in Turkey? Evidence from Citizen Initiatives" (2014) 
- Argersinger, Peter H. "New perspectives on election fraud in the Gilded Age." Political Science Quarterly (1985) 100#4 pp. 669–87 
- Campbell, Tracy. Deliver the Vote: A History of Election Fraud, An American Political Tradition, 1742 2004 (Basic Books, 2005)
- Fackler, Tim, and Tse-min Lin. "Political corruption and presidential elections, 1929–1992." Journal of Politics 57 (1995): 971–93. 
- Mayfield, Loomis. "Voting Fraud in Early Twentieth-Century Pittsburgh," Journal of Interdisciplinary History (1993) 29#1 59–84 
- Morris Jr., Roy. Fraud of the Century: Rutherford B. Hayes, Samuel Tilden, and the Stolen Election of 1876 (2007) 
- Summers, Mark Wahlgren. The Era of Good Stealings (1993), covers corruption 1868–1877
- Sydnor, Charles. Gentlemen Freeholders: Political Practices in Washington's Virginia (1952), 18th century