Scan Report
5 /100
network-device-scanner
扫描局域网内活跃设备及其开放端口,返回格式化Markdown表格
标准的局域网设备扫描工具,代码实现清晰,无恶意行为,仅存在轻微文档缺陷(未明确声明subprocess调用)
Safe to install
可安全使用。建议补充SKILL.md中allowed-tools声明以消除歧义。
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | 文档未声明subprocess工具调用 | scripts/scan.py:64 |
| Low | 网络扫描范围硬编码 | scripts/scan.py:15 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | scan.py:51 读取/proc/net/arp |
| Network | READ | READ | ✓ Aligned | scan.py:142-143 TCP端口扫描socket.connect_ex |
| Shell | NONE | WRITE | ✓ Aligned | scan.py:64-93 subprocess调用arp/fping/nmap/ping |
File Tree
4 files · 17.0 KB · 585 lines Python 1f · 294L
JavaScript 1f · 224L
Markdown 1f · 61L
Text 1f · 6L
├─
▾
scripts
│ ├─
scan.cjs
JavaScript
│ └─
scan.py
Python
├─
result.txt
Text
└─
SKILL.md
Markdown
Security Positives
✓ 纯Python/Node.js实现,无混淆无base64,无eval/动态代码执行
✓ 无凭证收割、无环境变量遍历、无数据外传
✓ 无访问~/.ssh、~/.aws、.env等敏感路径
✓ 无远程脚本执行、无C2通信、无反向shell
✓ 代码结构清晰,功能与文档描述一致
✓ TCP端口扫描使用标准socket API,无危险网络行为