> For the complete documentation index, see [llms.txt](https://scriptingxss.gitbook.io/embedded-appsec-best-practices/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scriptingxss.gitbook.io/embedded-appsec-best-practices/preface.md).

# What are Embedded Systems?

The term embedded or embedded systems can be interpreted in several ways depending on your background, knowledge, and exposure to embedded technology. For the purpose of this document,  firmware is defined as the software layer between the underlying hardware and the operating system (OS). The main purpose of firmware is to initialize and abstract enough hardware so operating systems drivers and components can further configure the hardware according to its functionality. In addition to firmware, embedded systems can be defined as having the characteristics described below.&#x20;

## Hardware:

* Limited resources&#x20;
  * 16KB - 1GB RAM&#x20;
  * 32MB - 4GB Flash storage
* System-on-chip (SoC)&#x20;
* System-on-module (SoM)
* Microcontroller (MCU)

## **Bootloaders:**

* Das U-boot
* RedBoot
* CoreBoot
* Grub
* Little Kernel
* and more

## Common CPU architectures:

* Word lengths from 8-bit, 16-bit, 32-bit, and 64-bit
* ARM&#x20;
* MIPS&#x20;
* AVR
* PowerPC
* x86

## Common operating system platforms:

* Embedded Linux
  * OpenWrt variants
* Android
* Ubuntu Core
* RTOS (Microkernel)
  * FreeRTOS
  * Mbed OS
  * QNX
  * AUTOSAR
  * INTEGRITY
* BareMetal
* Windows&#x20;
  * Windows Compact 2016
  * Windows Compact 7
  * Windows 10 IoT

## Commonly used programming languages:

* Assembly
* C / C++ &#x20;
* Python
* Classic ASP
* PHP
* Perl
* Lua
* Golang (Go)
* Rust

## Lifespan:

* Sometimes immortal 😉
  * \*Some flash chips use a disclaimer of 20 years data retention\*
* "Trustworthy" systems
* Vehicles \~7-15 years


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://scriptingxss.gitbook.io/embedded-appsec-best-practices/preface.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
