本文へ移動
cccskills
無料GitHub で公開

security-updates

Secure boot and firmware update workflows for Zephyr RTOS. Covers MCUboot integration, production image signing, DFU protocols (MCUmgr), fail-safe rollback mechanisms, and mbedTLS crypto basics. Trigger when implementing over-the-air (OTA) updates, securing the boot process, or managing cryptographic keys.

インストール方法を見る

含まれるファイル(9)

  • SKILL.md3.4 KB
  • assets/mcuboot_prj_fragment.conf287 B
  • references/crypto_basics.md1.7 KB
  • references/dfu_protocols.md1.8 KB
  • references/image_signing.md1.6 KB
  • references/mcuboot_integration.md2.1 KB
  • references/rollback_protection.md1.8 KB
  • scripts/mcuboot_version_guard.py1.5 KB
  • skill-meta.yaml623 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Zephyr Security & Updates

Build production-ready, secure embedded systems using Zephyr's modular security stack and MCUboot bootloader.

Core Workflows

1. MCUboot Integration

Set up the secure bootloader and define fail-safe flash partitions.

2. Image Signing

Ensure firmware integrity with production-grade digital signatures.

3. DFU Protocols

Transport updates securely using MCUmgr or cloud-based OTA.

4. Rollback Protection

Implement atomic swaps and image confirmation to prevent bricking devices.

5. Crypto Basics

Implement secure storage and cryptographic operations using mbedTLS.

Quick Start (Kconfig for Secure Boot)

# Enable MCUboot support in application
CONFIG_BOOTLOADER_MCUBOOT=y
# Build with MCUboot using Sysbuild
west build -b nucleo_f401re --sysbuild samples/basic/blinky

Professional Patterns (Security-First)

  • Production Keys: Never use default MCUboot keys. Provision unique keys during manufacturing.
  • Heartbeat Confirmation: Only confirm a new image after the application has successfully connected to its cloud backend.
  • Version Integrity: Enable version monotonicity to prevent accidental or malicious firmware downgrades.

Automation Tools

Examples & Templates

Validation Checklist

  • Signed image verifies at boot and unsigned/tampered image is rejected.
  • DFU flow completes end-to-end and boots into the new slot.
  • Rollback behavior triggers correctly when image confirmation is withheld.
  • Key handling and version policy prevent downgrade and test-key usage in production configs.

Resources

  • References:
    • mcuboot_integration.md: Partition layouts and setup.
    • image_signing.md: Key management and imgtool usage.
    • dfu_protocols.md: MCUmgr commands and cloud OTA.
    • rollback_protection.md: Swap mechanisms and confirmation code.
    • crypto_basics.md: mbedTLS and secure storage.
  • Scripts:
    • mcuboot_version_guard.py: Version monotonicity checker for release gates.
  • Assets:
    • mcuboot_prj_fragment.conf: Secure-update config baseline.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Custom board bringup for Zephyr RTOS using Hardware Model v2 (HWMv2). Covers directory structure, board.yml metadata, core configuration files (Kconfig, defconfig, CMake), and revision management. Trigger when creating new board definitions or porting Zephyr to custom hardware.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

Build system management for Zephyr RTOS. Covers West workspace initialization, manifest management, Sysbuild multi-image builds, Kconfig symbols, and CMake integration. Trigger when setting up workspaces, configuring builds, or troubleshooting build-time errors.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

Bluetooth Low Energy (BLE) integration for Zephyr RTOS. Covers GATT Services/Characteristics, GAP advertising, connection parameters, power optimization strategies, and the professional Send-When-Idle design pattern. Trigger when adding BLE connectivity, optimizing battery life for wireless devices, or implementing custom GATT profiles.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

IP networking fundamentals for Zephyr RTOS. Covers IoT protocol selection (LwM2M, CoAP, MQTT), IP stack configuration and trimming (IPv4/IPv6, UDP/TCP), and professional SDK integration as Zephyr modules using West manifests. Trigger when building cloud-connected applications, optimizing network memory usage, or integrating external cloud SDKs.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

USB and CAN connectivity for Zephyr RTOS. Covers USB device stack configuration (CDC ACM, HID, MSC), CAN controller integration, and professional USB-to-CAN adapter patterns including buffering and protocol packetization. Trigger when adding USB interfaces, implementing CAN bus communication, or building hardware diagnostic tools.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

Devicetree management for Zephyr RTOS. Covers syntax, bindings, overlays, Hardware Model v2 (HWMv2), and advanced node/property deletion patterns. Trigger when defining hardware topology, creating overlays, or mapping pins and peripherals.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

beriberikix のスキルをすべて見る

このスキルの問題を報告する