扫描报告
15 /100
workswith-claw
智能家居中间件 - Home Assistant integration for semantic device control, habit learning, and smart automation
Workswith Claw is a legitimate smart home middleware that integrates with Home Assistant API. No malicious behavior detected; minor documentation gaps regarding optional LLM API calls.
可以安装
This skill is safe to use. Consider documenting the optional LLM API integration in SKILL.md and removing hardcoded fallback URLs.
安全发现 3 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | LLM API integration not documented 文档欺骗 | src/services/llm_enhancer.py:14 |
| 低危 | Hardcoded example URLs in source code 文档欺骗 | src/api/routes/devices.py:15 |
| 低危 | CORS wildcard configuration 敏感访问 | src/main.py:29 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 网络访问 | READ | READ | ✓ 一致 | src/services/ha_client.py:63-72 |
| 文件系统 | WRITE | WRITE | ✓ 一致 | src/api/routes/apply.py:99 - writes to ~/.homeassistant/automations/ |
| 环境变量 | READ | READ | ✓ 一致 | src/services/ha_client.py:17-18 - reads HA_URL, HA_TOKEN |
| 数据库 | WRITE | WRITE | ✓ 一致 | src/storage/database.py - local SQLite storage |
10 项发现
中危 外部 URL 外部 URL
https://img.shields.io/github/stars/workswith/claw?style=flat README.md:5 中危 外部 URL 外部 URL
https://img.shields.io/github/license/workswith/claw README.md:6 中危 外部 URL 外部 URL
http://192.168.x.x:8123 README.md:103 中危 外部 URL 外部 URL
https://www.home-assistant.io/installation/raspberry-pi README.md:191 中危 外部 URL 外部 URL
https://www.home-assistant.io/ README.md:270 中危 外部 URL 外部 URL
http://192.168.1.x:8123 _meta.json:10 中危 外部 URL 外部 URL
http://192.168.31.27:8123 src/api/routes/apply.py:153 中危 外部 URL 外部 URL
http://homeassistant.local:8123 src/api/routes/intent.py:22 中危 外部 URL 外部 URL
https://api.minimax.chat/v1/text/chatcompletion_v2 src/services/llm_enhancer.py:103 中危 外部 URL 外部 URL
http://192.168.1.1:8123 tests/test_ha_client.py:52 目录结构
44 文件 · 146.0 KB · 4276 行 Python 37f · 2836L
HTML 1f · 818L
Markdown 2f · 469L
YAML 2f · 113L
Text 1f · 27L
JSON 1f · 13L
├─
▾
config
│ └─
scenes.yaml
YAML
├─
▾
src
│ ├─
▾
api
│ │ ├─
▾
routes
│ │ │ ├─
__init__.py
Python
│ │ │ ├─
apply.py
Python
│ │ │ ├─
dashboard.py
Python
│ │ │ ├─
devices.py
Python
│ │ │ ├─
health.py
Python
│ │ │ ├─
insights_v2.py
Python
│ │ │ ├─
insights.py
Python
│ │ │ ├─
intent.py
Python
│ │ │ ├─
scenes.py
Python
│ │ │ ├─
semantic.py
Python
│ │ │ └─
suggestions.py
Python
│ │ └─
__init__.py
Python
│ ├─
▾
core
│ │ ├─
__init__.py
Python
│ │ └─
auth.py
Python
│ ├─
▾
models
│ │ ├─
__init__.py
Python
│ │ ├─
habit.py
Python
│ │ ├─
intent.py
Python
│ │ └─
scene.py
Python
│ ├─
▾
services
│ │ ├─
__init__.py
Python
│ │ ├─
data_collector.py
Python
│ │ ├─
ha_client.py
Python
│ │ ├─
habit_analyzer.py
Python
│ │ ├─
intent_parser.py
Python
│ │ ├─
llm_enhancer.py
Python
│ │ ├─
openclaw_client.py
Python
│ │ ├─
scene_engine.py
Python
│ │ ├─
suggestion_engine.py
Python
│ │ └─
task_orchestrator.py
Python
│ ├─
▾
storage
│ │ ├─
__init__.py
Python
│ │ └─
database.py
Python
│ ├─
__init__.py
Python
│ └─
main.py
Python
├─
▾
static
│ └─
dashboard.html
HTML
├─
▾
tests
│ ├─
__init__.py
Python
│ ├─
test_ha_client.py
Python
│ ├─
test_habit_analyzer.py
Python
│ ├─
test_intent_parser.py
Python
│ └─
test_scene_engine.py
Python
├─
_meta.json
JSON
├─
docker-compose.yml
YAML
├─
README.md
Markdown
├─
requirements.txt
Text
└─
SKILL.md
Markdown
依赖分析 6 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
fastapi | 0.109.0 | pip | 否 | Version pinned |
uvicorn | 0.27.0 | pip | 否 | Version pinned |
aiohttp | 3.9.3 | pip | 否 | Version pinned |
aiosqlite | 0.19.0 | pip | 否 | Version pinned |
pydantic | 2.5.3 | pip | 否 | Version pinned |
pyyaml | 6.0.1 | pip | 否 | Version pinned |
安全亮点
✓ All dependencies have pinned versions in requirements.txt
✓ No obfuscated code (base64, eval, exec) found
✓ No credential harvesting beyond HA API token (which is user-configured)
✓ No reverse shell, C2, or data exfiltration patterns detected
✓ File writes are restricted to user-designated directories (~/.homeassistant/automations/)
✓ No supply chain vulnerabilities detected
✓ Core functionality (HA integration, local storage) properly documented in SKILL.md
✓ SQL injection protection via parameterized queries in database.py
✓ Singleton pattern used for HAClient to prevent credential duplication