Difference between revisions of "Man-in-the-Middle"

From Securitypatterns
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 26: Line 26:
  
 
==Example==
 
==Example==
 +
 +
[[File:Man-in-the-middle.png|600px]]
 +
 +
 +
[[Category:Security_by_Default]]
 +
[[Category:Encryption]]

Latest revision as of 18:23, 1 March 2020

Problem

Attacker relays messages from device to receiver, in order to make them believe that they are talking directly to each other.

Introduction

An attacker intercepts the communication between the IoT device and a connected system. The attacker poses as the original sender. Attackers trick the recipient into thinking that they are still getting a legitimate message while the attacker is manipulating the message.

Detailed description

The Internet of Things is often built on sensor – actor architecture, where device data is sourcing the control process of connected systems. Intercepting and manipulating data by a man-in-the-middle is a dangerous scenario on attacking senor-actor systems. Also, the data manipulation is a threat for machine learning, where attackers can manipulate the data feed for the learning procedures to force machine learning networks on false decision making.

Solution

To prevent man-in-the-middle attack in IoT, the device communication should be based on three principles:

  • Strong encrypted communication between devices and connected services
  • Trusted identification (e.g. by digital certificates) to create and provide IDs for communication endpoints
  • Authentication of valid endpoints on establishing a communication

Implementation

IoT device manufacturers and developers should always have identity, encryption and authentication in mind when developing and shipping devices to market. For identity Digital Certificates can be installed on every device. However, on high scaling volumes of devices the management of digital certificates can become a huge challenge. Authentication and encryption is often part of specific IoT Network protocols. At its best the authentication is based on certificated keys and/or tokens.

Consequence:

  • A trusted ID will prevent devices from establishing connections to unauthorized parties
  • Authentication will prevent devices from communicating with unauthorized parties.
  • Encrypted communication prevents from attackers intercepting communication data and gain information to take over the communication and/or manipulating data.

Example

Man-in-the-middle.png