Skip to the content
2 layers52.5 × 44.3 mmPmod2, the printed circuit board in 3D

cheap and terrible voltage glitcher hardware/software

Size
52.5 × 44.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
44
Nets
36
Pads
177
Tracks, vias
446, 37
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
27 Dec 2019
Updated
1 Jan 2020

Overview

Pmod2 is an open-source printed circuit board by noopwafel, from the noopwafel/iceglitch repository on GitHub. It is a 2-layer board of 52.5 × 44.3 mm with 44 parts on 36 nets, routed with 446 tracks and 37 vias.

It is built around the L272M, MAX4232AKA and MCP4822-E/P, with the THS4631DDA, MAX4619CPE+ and TS5A63157DCK among its other parts. Its parts include 13 capacitors, 9 ICs, 8 resistors, 7 connectors and 3 inductors.

Main components

6

README

README.md

iceGLITCH

iceGLITCH is a cheap, fun and terrible voltage glitcher!

You can use it to inject faults in the voltage line of targets, making them do weird things.

You can control both the normal and glitch voltage levels, and if you squint and sort of wave your hands a lot, then you can pretend you get ~200ps of resolution for the glitch length (time that the voltage is changed from normal to glitch level). Accuracy, on the other hand, is left as an exercise for the reader..

Many people played with this at the 'Hardware Slackers' assembly at 36C3! We're still recovering and will update the repository once we've gotten a few days of good sleep.

This is what a typical setup looks like:

Image of iceGLITCH setup

And this is an example of what a real-world attack looks like (from our 36C3 assembly):

Game controller glitch setup

Hardware

You can solder a good-enough (fun!) version of this glitcher using protoboard, but nowadays we use a PCB version (see the 'pcb' directory). You can solder several different combinations of components to get different glitcher designs, some of which make more sense than others; however, we guarantee that all combinations will be both terrible and fun.

You can use it with any ICE40HX FPGA board with a PMOD connector; we're using the cheap (~22eur) 'iCEstick'.

Also it turns out you don't have to solder it nicely, it'll work fine anyway:

Image of badly-soldered rev2 board

Code

The 'TOE' directory contains code for some example targets.

The FPGA code (to be built using the open source yosys/nextpnr toolchain) is in the 'fpga' directory. We can't write verilog, there are no test cases, it is all terrible. We are sorry, our code is bad and we should feel bad. But it works :D

The (python) scripts are in the 'scripts' directory, including scripts to attack the example targets.

History/Context

We built a horrible, horrible 5eur "oscilloscope" for our 35C3 side channel analysis workshop: the HorrorScope. This glitcher is our attempt to build a similar cheap-and-cheerful workshop platform for voltage glitching.

Some of our friends used it at the HITB CyberWeek in October 2019, and we "released" it at 36C3 in December 2019.

Thanks to everyone who helped inspire or test our hacks, and thanks to @nedos in particular for making us realize we could just use a cheap analog switch rather than overcomplicating things!

Parts

44
QtyValueFootprintReferences
13CCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13
8RResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1, R2, R3, R4, R5, R7, Rld1, Rld2
40Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderRfb1, Rfb2, Rfb3, Rfb4
4Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ3, J4, J6, J7
2LInductor_SMD:L_1210_3225Metric_Pad1.42x2.65mm_HandSolderL1, L2
2triggerPackage_TO_SOT_SMD:SOT-23-6U5, U6
1AP2210N-4.0Package_TO_SOT_SMD:TSOT-23U8
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ5
1Ferrite_Bead_SmallInductor_SMD:L_0805_2012Metric_Pad1.15x1.40mm_HandSolderL3
1L272MPackage_DIP:DIP-8_W7.62mm_LongPadsU1
1MAX4232Package_TO_SOT_SMD:SOT-23-8U7
1MAX4619Package_DIP:DIP-16_W7.62mm_LongPadsU2
1MCP4822Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1PMODConnector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_VerticalJ2
1THS4631DDAPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU9
1TS5A63157Package_TO_SOT_SMD:SOT-23-6U4
1USB_B_Microcustom:USB_Micro-B_Amphenol_haxJ1

Similar boards

  • 4 layers120.6 × 72.4 mmBoard main, the printed circuit board in 3D

    Board main

    analogdevicesinc/education_tools

    Tools for education related platforms

    53 parts45
  • 6 layers140.8 × 81.3 mmGlitcher, the printed circuit board in 3D

    Glitcher

    CreateRemoteThread/glitcher

    glitcher

    101 parts2
  • 2 layers76.2 × 49.5 mmDS projekt, the printed circuit board in 3D

    DS projekt

    OipRDDinoSaric/Controlling-analogue-switches-on-a-PIC-microcontroller

    Designing and soldering a PCB. Programming a PIC microcontroller using MP LAB X-IDE.

    34 parts
  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers111.3 × 106.4 mmSuper Sixteen v1, the printed circuit board in 3D

    Super Sixteen v1

    matthewcieplak/super-sixteen

    Code and schematics for the Super Sixteen Eurorack sequencer

    141 parts171
  • 2 layers83.8 × 72.4 mmVoice board, the printed circuit board in 3D

    Voice board

    Windfisch/analog-synth

    A low-cost semimodular analog synthesizer

    131 parts31GPL-3.0
  • 2 layers120 × 102.5 mmApeks, the printed circuit board in 3D

    Apeks

    MiguelDeTrool/Apeks

    12-bit through-hole adaptation of Mutable Instruments Peaks

    74 parts19MIT
  • 2 layers50 × 142.5 mmTriggerbox, the printed circuit board in 3D

    Triggerbox

    strawlab/triggerbox

    camera triggering for synchronized multi-camera setups

    19 parts19Apache-2.0

Questions

How big is the Pmod2 PCB?

It measures 52.5 × 44.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pmod2 use?

44 parts, built around the L272M, MAX4232AKA, MCP4822-E/P and THS4631DDA. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Pmod2 KiCad files?

From the noopwafel/iceglitch repository on GitHub, at the commit this page was made from: the board is pcb/pmod2/pmod2.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pmod2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask noopwafel before reusing the design.