Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

iot-security物联网安全

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

504

周安装

21

GitHub Stars

4

下载量

168
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:iot-security(物联网安全)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/iot-security
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill iot-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill iot-security

简介

用于辅助安全审计、权限检查、凭据风险与认证流程排查。

  • 适合让 Agent 梳理敏感配置、分析鉴权逻辑或生成安全复核清单。
  • 支持常见漏洞识别与依赖风险评估,提升系统安全性。
  • 安装命令:npx skills add https://github.com/alphaonedev/openclaw-graph --skill iot-security。
  • 使用时不能直接采信工具输出,涉及密钥或生产系统时应确认最小权限。

SKILL.md

iot-security

Purpose

This skill secures IoT devices by implementing firmware hardening, encrypted data transport, strong authentication mechanisms, and safe over-the-air (OTA) updates to prevent vulnerabilities and unauthorized access.

When to Use

Use this skill when deploying or managing IoT devices that handle sensitive data, such as smart home systems, industrial sensors, or connected vehicles. Apply it during device provisioning, network setup, or when updating firmware to mitigate risks like man-in-the-middle attacks or firmware tampering.

Key Capabilities

  • Firmware hardening: Applies security patches and obfuscates code using tools like OpenSSL; e.g., enforces code signing with SHA-256 hashes.
  • Encrypted transport: Implements TLS 1.3 for data in transit; supports AES-256 encryption with perfect forward secrecy.
  • Strong authentication: Enforces multi-factor auth (MFA) via JWT tokens; requires API keys stored in env vars like $IOT_API_KEY.
  • Safe OTA updates: Verifies update integrity with digital signatures and performs rollback on failure; uses delta updates to minimize bandwidth.

Usage Patterns

To secure an IoT device, first authenticate using an API key, then apply hardening to firmware, enable encrypted channels, and schedule OTA updates. Pattern: Initialize with auth, configure security settings via CLI or API, test in a sandbox, and monitor for anomalies. For example, chain commands: authenticate, harden, encrypt, then update.

Common Commands/API

Use the OpenClaw CLI for quick tasks or REST APIs for programmatic access. All commands require $IOT_API_KEY for authentication.

  • CLI for firmware hardening: iot-secure harden --firmware /path/to/firmware.bin --key $IOT_API_KEY --sign-algo SHA-256 This command signs and hardens the firmware; output includes a verification hash.
  • API for encrypted transport: Endpoint: POST /api/iot/encrypt-transport Body: {"deviceId": "device123", "protocol": "TLS1.3", "key": "$IOT_API_KEY"} Response: JSON with encryption status; handle with: import requests response = requests.post('https://api.openclaw.io/api/iot/encrypt-transport', json={"deviceId": "device123", "key": os.environ['IOT_API_KEY']}) print(response.json()['status'])
  • CLI for strong authentication: iot-secure auth setup --device-id device123 --mfa true --token $IOT_API_KEY Generates a JWT token for device access.
  • API for safe OTA updates: Endpoint: PUT /api/iot/ota-update Body: {"firmwareUrl": "https://updates.example.com/firmware.bin", "signature": "hex-signature", "key": "$IOT_API_KEY"} Code snippet: ` const fetch = require('node-fetch'); fetch('https://api.openclaw.io/api/iot/ota-update', {method: 'PUT', headers: {'Authorization': Bearer ${process.env.IOT_API_KEY}}, body: JSON.stringify({firmwareUrl: 'https://updates.example.com/firmware.bin'})}).then(res => res.json()); `

Config formats: Use JSON for configurations, e.g.,

{
  "deviceId": "device123",
  "encryption": {"algo": "AES-256", "keySource": "env:IOT_API_KEY"},
  "auth": {"mfaEnabled": true}
}

Integration Notes

Integrate this skill with other IoT tools by exporting configs as JSON files. For AWS IoT or Azure, map $IOT_API_KEY to their respective secrets managers. Use webhooks for real-time updates; e.g., POST to /api/iot/webhook with body containing event data. Ensure compatibility by checking TLS versions; add dependency: install via pip install openclaw-iot and import as from openclaw_iot import SecureIoT. Test integrations in a Docker container with environment variables set, e.g., docker run -e IOT_API_KEY=yourkey image:tag.

Error Handling

Handle errors by checking HTTP status codes or CLI exit codes. For API calls, if status >= 400, parse the JSON error response (e.g., {"error": "Invalid key"}). Use try-except in code:

try:
    response = requests.post(url, headers={'Authorization': f'Bearer {os.environ.get("IOT_API_KEY")}'}))
    response.raise_for_status()
except requests.exceptions.HTTPError as err:
    print(f"Error: {err.response.json()['message']}; Retry with valid key.")

For CLI, capture output: result = subprocess.run(['iot-secure', 'harden', '--firmware', 'file.bin'], capture_output=True); if result.returncode!= 0: log(result.stderr). Common errors: invalid API key (401), firmware mismatch (400); retry with exponential backoff.

Concrete Usage Examples

  1. Hardening firmware for a smart lock: First, set env var: export IOT_API_KEY=your_api_key Run: iot-secure harden --firmware /home/user/smartlock.bin --key $IOT_API_KEY Then, verify: iot-secure verify --firmware /home/user/smartlock.bin --expected-hash abc123 This ensures the firmware is secured before deployment.
  2. Setting up encrypted transport for sensor data: Authenticate: iot-secure auth setup --device-id sensor456 --token $IOT_API_KEY Enable encryption via API: curl -X POST https://api.openclaw.io/api/iot/encrypt-transport -H "Authorization: Bearer $IOT_API_KEY" -d '{"deviceId": "sensor456", "protocol": "TLS1.3"}' Monitor: Use the response to confirm encryption is active, then stream data securely.

Graph Relationships

  • Related to: iot-cluster (parent cluster for IoT skills)
  • Connected via: tags ["iot"] to other skills like iot-device-management
  • Dependencies: requires authentication from auth-service skill
  • Influences: iot-networking for secure transport implementations

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.65%
按下载量换算60

Claude

28.88%
按下载量换算49

Cursor

19.69%
按下载量换算33

Gemini CLI

9.73%
按下载量换算16

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills