Scan Report
10 /100
Facebook Publisher Skill
Facebook Graph API 工作流工具,用于自动化发布页面帖子和管理令牌
合法的 Facebook Graph API 发布工具,代码功能与文档声明一致,无恶意行为。存在轻微文件写入风险但有合理解释。
Safe to install
建议将 fb_tokens_output.json 添加到 .gitignore 确保不泄露令牌文件。
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | 文件写入行为未在文档中声明 Doc Mismatch | agents/fb_token_helper.py:134 |
| Low | 加载多个 API 密钥环境变量 Sensitive Access | config.py:1 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✓ Aligned | agents/fb_token_helper.py:134 |
| Network | READ | READ | ✓ Aligned | 仅调用 Facebook Graph API |
3 findings
Medium External URL 外部 URL
https://www.facebook.com/ agents/fb_publisher_agent.py:107 Medium External URL 外部 URL
https://developers.facebook.com/tools/explorer[/link agents/fb_token_helper.py:81 Medium External URL 外部 URL
https://graph.facebook.com/ config.py:27 File Tree
5 files · 21.6 KB · 587 lines Python 4f · 481L
Markdown 1f · 106L
├─
▾
agents
│ ├─
fb_publisher_agent.py
Python
│ └─
fb_token_helper.py
⚠
Python
├─
config.py
Python
├─
SKILL.md
Markdown
└─
test_fb_connection.py
Python
Dependencies 3 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | * | pip | No | 无版本锁定但为标准库 |
python-dotenv | * | pip | No | 无版本锁定 |
rich | * | pip | No | 无版本锁定 |
Security Positives
✓ 代码结构清晰,注释完整(越南语注释辅助理解)
✓ 仅调用 Facebook Graph API (graph.facebook.com),无其他外部网络请求
✓ 实现了重试机制和指数退避,符合生产环境最佳实践
✓ 无 shell 执行、无 base64 编码、无混淆代码
✓ 凭证仅用于内存中构造 API 请求,无外传行为
✓ SKILL.md 权限声明准确,与实际代码行为一致