# US 2022/0284136 A1 · Apparatus and method for protecting against side-channel attacks during device charging

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284136 A1
- Document ID: US20220284136A1
- Status: Published application
- Kind: A1
- Application number: 17/687,504
- Filed: 2022-03-04
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Texas Tech University System
- Applicants: Texas Tech University System
- Inventors: Argenis Bilbao; Richard Matovu; Abdul Serwadda; Isaac Griswold-Steiner
- Web page: https://patentgrep.com/patent/US20220284136A1

## CPC

- G06F 21/81: by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
- H02J 7/60: including safety or protection arrangements
- G06F 21/554: {involving event detection and direct action}
- G06F 21/85: interconnection devices, e.g. bus-connected or in-line devices
- G06F 2221/034: Test or assess a computer or a system
- H03H 11/46: One-port networks
- H03K 3/84: Generating pulses having a predetermined statistical distribution of a parameter, e.g. random pulse generators
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H02J: ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H03H: IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS (waveguides, resonators, lines or other devices of the waveguide type H01P)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

Two defense mechanisms, a hardware-based and software-based solution, are provided to protect a device during charging. The defenses randomly perturb the current drawn during charging thereby masking the unique patterns of the user's activities. It is shown that the two defenses force each one of the attacks to perform no better than random guessing, thus acting as effective defense mechanisms against all such types of attacks.

## Claims

### Claim 1

A circuit that protects a device from an attack while the device is charging, the circuit comprising:
an input voltage connector;
an output voltage connector coupled to the input voltage connector via a voltage bus;
a variable resistance circuit connected between the voltage bus and a ground bus; and
a processor coupled to the variable resistance circuit, wherein the processor randomly changes a resistance of the variable resistance circuit.

### Claim 2 (depends on 1)

The circuit of claim 1, further comprising a memory integrated into or communicably coupled to the processor.

### Claim 3 (depends on 1)

The circuit of claim 1, wherein the variable resistance circuit comprises a set of resistive circuits, each resistive circuit comprising a resistive element connected in series with a switching element.

### Claim 4 (depends on 3)

The circuit of claim 3, wherein the each resistive element has a different resistance value.

### Claim 5 (depends on 3)

The circuit of claim 3, wherein:
the resistive elements comprise one 10 Ω resistor, two 24 Ω resistors, one 28 Ω resistor, one 30 Ω resistor, one 50 Ω resistor, one 100 Ω resistor, one 150 Ω resistor, one 200 Ω resistor, and one 250 Ω resistor; and
each switching element comprises a MOSFET gate coupled to the processor.

### Claim 6 (depends on 3)

The circuit of claim 3, wherein the processor includes a random number generator that generates a binary number and each bit of the binary number is used to turn on or off the switching element associated with the bit.

### Claim 7 (depends on 1)

The circuit of claim 1, wherein the processor changes the resistance of the variable resistance circuit at a rate of 1 kHz.

### Claim 8 (depends on 1)

The circuit of claim 1, wherein the circuit is integrated into a mobile communications device, a scrambler unit, or a power charging device.

### Claim 9

A method of protecting a device from an attack while the device is charging, the method comprising:
providing a circuit comprising an input voltage connector, an output voltage connector coupled to the input voltage connector via a voltage bus, a variable resistance circuit connected between the voltage bus and a ground bus, and a processor coupled to the variable resistance circuit, wherein the output voltage connector is coupled to a power supply of the device;
connecting the input voltage connector to a power supply to charge the device; and
protecting the device from attacks by randomly changing a resistance of the variable resistance circuit using the processor.

### Claim 10 (depends on 9)

The method of claim 9, wherein the circuit further comprises a memory integrated into or communicably coupled to the processor.

### Claim 11 (depends on 9)

The method of claim 9, wherein the variable resistance circuit comprises a set of resistive circuits, each resistive circuit comprising a resistive element connected in series with a switching element.

### Claim 12 (depends on 11)

The method of claim 11, wherein each resistive element has a different resistance value.

### Claim 13 (depends on 11)

The method of claim 11, wherein:
the resistive elements comprise one 10 Ω resistor, two 24 Ω resistors, one 28 Ω resistor, one 30 Ω resistor, one 50 Ω resistor, one 100 Ω resistor, one 150 Ω resistor, one 200 Ω resistor, and one 250 Ω resistor; and
each switching element comprises a MOSFET gate coupled to the processor.

### Claim 14 (depends on 11)

The method of claim 11, wherein randomly changing the resistance of the variable resistance circuit comprises generating a binary number using a random number generator, wherein each bit of the binary number is used to turn on or off the switching element associated with the bit.

### Claim 15 (depends on 11)

The method of claim 11, wherein the processor changes the resistance of the variable resistance circuit at a rate of 1 kHz.

### Claim 16 (depends on 9)

The method of claim 9, wherein the circuit is integrated into a mobile communications device, a scrambler unit, or a power charging device.

### Claim 17

A method for protecting a device from an attack while the device is charging, the method comprising:
randomly generating an image having a height and a width;
loading the generated image into a memory;
rotating the generated image at a random angle;
unloading the rotated image from the memory; and
repeating the foregoing steps while the device is being charged.

### Claim 18 (depends on 17)

The method of claim 17, further comprising determining the height and the width.

### Claim 19 (depends on 17)

The method of claim 17, further comprising determining the random angle using a rotating matrix.

### Claim 20 (depends on 17)

The method of claim 17, further comprising:
detecting the attack; and
scaling the height and the width up or down depending on the attack.

### Claim 21 (depends on 17)

The method of claim 17, further comprising determining whether the device is being charged.

### Claim 22 (depends on 17)

The method of claim 17, wherein the method is performed by a software application executed by a processor of the device.

### Claim 23 (depends on 22)

The method of claim 22, further comprising loading the software application on the device.

### Claim 24

A device comprising:
one or more input/output interfaces;
a memory;
a power storage unit; and
a processor communicably coupled to the one or more input/output devices, the memory, and the power storage unit, wherein the processor randomly generates an image having a height and a width, loads the generated image in the memory, rotates the generated image at a random angle, unloads the rotated image from the memory, and repeats the foregoing steps while the device is being charged.

### Claim 25 (depends on 24)

The device of claim 24, wherein the processor determines the height and the width.

### Claim 26 (depends on 24)

The device of claim 24, wherein the processor determines the random angle using a rotating matrix.

### Claim 27 (depends on 24)

The device of claim 24, wherein the processor detects the attack, and scales the height and the width up or down depending on the attack.

### Claim 28 (depends on 17)

The method of claim 17, wherein the processor determines whether the power storage unit is being charged.
