AWS IoT Device Defender library - FreeRTOS

AWS IoT Device Defender library

Note

The content on this page may not be up-to-date. Please refer to the FreeRTOS.org library page for the latest update.

Introduction

You can use the AWS IoT Device Defender library to send security metrics from your IoT devices to AWS IoT Device Defender. You can use AWS IoT Device Defender to continuously monitor these security metrics from devices for deviations from what you have defined as appropriate behavior for each device. If something doesn't look right, AWS IoT Device Defender sends out an alert so that you can take action to fix the issue. Interactions with AWS IoT Device Defender use MQTT, a lightweight publish-subscribe protocol. This library provides an API to compose and recognize the MQTT topic strings used by AWS IoT Device Defender.

For more information, see AWS IoT Device Defender in the AWS IoT Developer Guide.

The library is written in C and designed to be compliant with ISO C90 and MISRA C:2012. The library has no dependencies on any additional libraries other than the standard C library. It also doesn't have any platform dependencies, such as threading or synchronization. It can be used with any MQTT library and any JSON or CBOR library. The library has proofs showing safe memory use and no heap allocation, making it suitable for IoT microcontrollers, but also fully portable to other platforms.

The AWS IoT Device Defender library can be freely used and is distributed under the MIT open source license.

Code Size of AWS IoT Device Defender (example generated with GCC for ARM Cortex-M)
File With -O1 Optimization With -Os Optimization
defender.c 1.1K 0.6K
Total estimates 1.1K 0.6K