OEEP RFC 0007: Security, Resilience and Protocol Governance
This is the last post in the series. In RFC 0006, we collated results. Now I want to try to break the whole thing.
When I first started thinking about this, I assumed:
Whatever rigging must be done at the level of each party agent's smartphone.
That's only partially true. Attackers can also target credential issuers, physical result sheets, telecom networks, app distribution, repositories, collation algorithms and how results are presented to the public.
The security objective is to make manipulation detectable, attributable, difficult to coordinate and recoverable.
Attack scenarios and mitigations
Fabricated submissions
An agent photographs a forged result sheet, enters false counts, or claims voting took place where it didn't.
A digital signature doesn't solve this. It only authenticates the source of the false submission.
Mitigation: require corroboration from independently affiliated witnesses before treating a result as corroborated (RFC 0006), and preserve the conflicting evidence instead of discarding it.
Sybil attacks
A party issues thousands of credentials to manufacture an apparent majority.
Mitigation: count independent organisations, not accounts; publish issuance commitments before the election; flag unusual issuance patterns; cap any single issuer's influence (RFC 0003).
Fraudulent physical result sheets
If the presiding officer records false figures, every agent photographs the same false form, and the system unanimously preserves a fraudulent result.
This is arguably the biggest limitation of the whole proposal.
Mitigation: support independent vote counts, accredited voter counts, incident reports, and reports from observers who witnessed the count. Even these can't replace physical observation and auditing of ballots.
Deepfakes, image editing and fake GPS
An attacker generates a convincing fake result sheet, edits a photo, changes the device clock or spoofs GPS.
Mitigation: combine several weak signals instead of trusting any single one.
| Signal | What it establishes |
|---|---|
| Device signature | Which registered key signed the submission |
| GPS | Reported location of capture |
| Device attestation | Evidence about app and device integrity |
| Image analysis | Possible inconsistencies or manipulation |
| Repository timestamp | When the evidence was received |
| Other witnesses | Independent corroboration |
| Form serial number | Possible document duplication or mismatch |
Even a hardware-backed signature can't prove the camera was pointed at an authentic piece of paper. AI-based forgery detection should be an advisory signal, never the final authority.
Compromised devices, applications and organisations
Stolen or confiscated phones
Evidence is saved durably right after capture and transmitted as soon as possible. Append-only records (RFC 0002) mean a thief can't quietly alter what was already submitted. Credentials can be revoked, and later submissions from that key flagged.
Compromised issuers
If a party's issuer key is compromised, attackers can mint apparently legitimate credentials.
Mitigation: hardware-protected issuer keys, pre-election credential commitments, threshold approval for critical key changes, short-lived credentials and signed revocation lists. Revocation must not erase historical evidence. If the time of compromise is unknown, affected submissions are flagged for further verification.
Compromised repositories
A repository operator turns malicious, or an admin account is compromised.
Mitigation: replication means other repositories hold independently received copies. Signed receipts and witnessed Merkle checkpoints (RFC 0005) make deletion or rewriting detectable.
Infrastructure attacks and internet shutdowns
Repositories may face DDoS attacks, infrastructure failure, data corruption, or compromised admin accounts.
Direct fan-out from clients already mitigates a lot of this, provided the repositories are genuinely independent. Ideally they span different hosting providers, administrators, storage systems and network providers.
Other protections:
- Rate limiting and asynchronous ingestion via queues.
- Object storage and replicated backups.
- Separate infrastructure for accepting submissions versus serving public dashboards.
For internet shutdowns and poor connectivity, OEEP is offline-first: persistent local outbox, background retries, resumable uploads and optional peer-assisted transport.
Reporter privacy and physical safety
This is the part I worry about most.
If every submission is published with the agent's name, phone number and real-time location, we haven't built a transparency tool. We've built a surveillance platform. In areas with election violence, that can get people hurt.
- Public credentials use pseudonymous agent identifiers. The issuing organisation keeps the identity mapping under appropriate legal safeguards.
- Exact GPS, personal identifiers and other sensitive metadata have restricted visibility. Public verification uses only the minimum information needed.
- Peer relay payloads may need to be encrypted to destination repositories.
- The app must never encourage anyone to resist confiscation or take risks to preserve evidence.
No piece of evidence is worth a person's safety.
Software supply chain security
Imagine the most widely used OEEP app receives a malicious update shortly before the election. That could affect tens of thousands of agents at once, and undermine the very decentralisation we're trying to achieve.
Mitigation:
- Multiple independent client implementations.
- Reproducible builds, so anyone can verify that a published binary matches its source.
- Independently audited releases.
- Versioned schemas.
- A pre-election release freeze for non-critical changes.
A shared reference SDK helps adoption, but it must not be the only implementation.
Resilience guarantees
Here's how the system should behave when things go wrong:
| Failure scenario | Expected outcome |
|---|---|
| INEC's servers unavailable | Independent evidence collection continues |
| Original OEEP developer unavailable | Other clients and repositories continue |
| One repository compromised | Other repositories preserve independently received evidence |
| Most repositories unavailable | Devices retain evidence for later delivery |
| Mobile network unavailable | Offline capture and optional relay |
| Party authentication server unavailable | Previously issued credentials remain verifiable |
| One party's agents are dishonest | Independent witnesses may expose discrepancies |
| One party's issuer key is compromised | Affected credentials flagged; other issuers unaffected |
| An agent's phone is destroyed | Evidence survives if previously replicated |
| Official and observed results differ | Publicly documented discrepancy |
| All local witnesses collude | System cannot reliably establish the truth |
| Evidence is never captured | System cannot recover nonexistent evidence |
No architecture can guarantee the integrity of an election under arbitrary physical and institutional compromise. What we can design is a system that degrades gracefully instead of collapsing.
Protocol versioning and interoperability
- Every message carries a
protocolVersion. - New versions must be able to verify old evidence indefinitely. Evidence from 2027 should still be verifiable in 2037.
- Breaking changes should be rare, announced well in advance, and never made close to an election.
- Extensions (new report types, new signature algorithms) should be negotiable via repository manifests, so old and new clients can coexist.
Governance and organisational independence
The protocol should be maintained by a consortium: civil society organisations, media houses, universities, election specialists and independent technology organisations.
No political party, government agency, technology company or individual developer (including me) should be able to unilaterally change the specification, revoke every participant's access, or shut down the network.
Changes to the spec and to the shared trust directory should go through a transparent, public process.
Reference implementations and conformance testing
If anyone can build an OEEP client or repository, we need a way to know it actually conforms.
- Reference implementations: an offline-first Android app, a credential issuance tool, a reference repository server and a replication worker.
- Conformance test suites: shared test vectors for canonical serialisation, signatures, idempotency, replication and checkpoint consistency. Pass them, and you're interoperable.
None of the underlying technologies should be mandated. A repository in ASP.NET Core and one in Go should both pass.
Deployment, adoption and legal considerations
OEEP must be positioned as an electoral observation and evidence preservation system, not an alternative authority empowered to declare winners.
Before deployment, the Electoral Act, INEC regulations, observer accreditation requirements and data protection obligations need formal legal review.
I'd roll it out in phases:
- Protocol specification: election identifiers, polling unit registry, signed credentials, signed submissions, discovery, idempotency and signed receipts.
- Reference implementations: Android app, credential issuance tool, repository server, replication worker, OCR integration.
- Verification: conflict handling, arithmetic checks, corroboration, a public dashboard and comparison with official results.
- Adversarial testing: simulated elections, malicious submissions, credential compromise, outages, low-connectivity tests and independent security audits.
- Adoption: partner organisations, independent repository deployments, agent registration, training and progressively larger field exercises.
Blockchain integration, advanced AI forgery detection and mesh networking can wait until the core protocol is proven.
A pilot in 100 polling units, with three independently operated repositories and multiple unaffiliated reporting organisations, would teach us far more than an elaborate system that's never been field-tested.
Wrapping up the series
- RFC 0001: Introducing the Open Electoral Evidence Protocol
- RFC 0002: Electoral Evidence Capture and Representation
- RFC 0003: Decentralised Identity, Authentication and Trust
- RFC 0004: Distributed Repository Discovery
- RFC 0005: Evidence Transmission, Replication and Preservation
- RFC 0006: Independent Verification and Electoral Collation
- RFC 0007: Security, Resilience and Protocol Governance (this post)
The hardest part won't be handling millions of API requests. It'll be getting independent organisations to agree on a common standard, establish a credible trust framework, register enough agents, and train them to capture reliable evidence safely.
The goal was never to build a server everyone can trust. It's to build an ecosystem where nobody has to trust any single server, political party, app developer or observer organisation for electoral evidence to survive.
These are drafts, and I'd love for people to poke holes in them, especially if you work in elections, security, civic tech or law. Let me know in the comments below.