Scan Report
25 /100
ai-content-pipeline
AI内容管道:爬取文章→Gemini改写→DALL-E生成图片→Facebook自动发帖
功能正常的Facebook自动发帖工具,但.env文件包含真实凭证存在信息泄露风险。
Safe to install
立即从代码库移除.env文件,确保其被.gitignore排除;添加凭证轮换机制。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| High | .env文件包含真实凭证 Credential Theft | .env:1 |
| Medium | 依赖包无版本锁定 Supply Chain | requirements.txt:1 |
| Low | filesystem权限超出声明 Doc Mismatch | agents/image_agent.py:54 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Network | READ | READ | ✓ Aligned | SKILL.md:env声明了APIFY_API_TOKEN等网络凭证 |
| Filesystem | READ | WRITE | ✗ Violation | agents/image_agent.py:54 将图片写入output/images/目录 |
| Environment | READ | READ | ✓ Aligned | config.py通过dotenv读取环境变量 |
1 High 12 findings
High IP Address 硬编码 IP 地址
131.0.0.0 agents/crawler_agent.py:27 Medium External URL 外部 URL
https://dantri.com.vn/... README.md:53 Medium External URL 外部 URL
https://www.facebook.com/... README.md:56 Medium External URL 外部 URL
https://vnexpress.net/... SKILL.md:54 Medium External URL 外部 URL
https://dantri.com.vn/suc-manh-so/cong-nghe-ai-tao-sinh-dang-thay-doi-nganh-truyen-thong-nhu-the-nao-20240101000000000.h... agents/crawler_agent.py:204 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://dantri.com.vn/example agents/writer_agent.py:156 Medium External URL 外部 URL
https://graph.facebook.com/ config.py:33 Medium External URL 外部 URL
https://dantri.com.vn/some-article.htm main.py:310 Medium External URL 外部 URL
https://graph.facebook.com skills/facebook/references/graph-api-overview.md:4 Medium External URL 外部 URL
https://graph.facebook.com/vXX.X skills/facebook/references/graph-api-overview.md:5 File Tree
24 files · 80.5 KB · 2010 lines Python 12f · 1522L
Markdown 8f · 381L
Text 2f · 68L
Other 1f · 27L
Ignore 1f · 12L
├─
▾
agents
│ ├─
__init__.py
Python
│ ├─
crawler_agent.py
Python
│ ├─
fb_publisher_agent.py
Python
│ ├─
fb_token_helper.py
⚠
Python
│ ├─
image_agent.py
Python
│ └─
writer_agent.py
Python
├─
▾
skills
│ └─
▾
facebook
│ └─
▾
references
│ ├─
comments-moderation.md
Markdown
│ ├─
graph-api-overview.md
Markdown
│ ├─
http-request-templates.md
Markdown
│ ├─
page-posting.md
Markdown
│ ├─
permissions-and-tokens.md
⚠
Markdown
│ └─
webhooks.md
Markdown
├─
.env
⚠
├─
.gitignore
Ignore
├─
config.py
Python
├─
main.py
Python
├─
models.py
Python
├─
output_log.txt
Text
├─
README.md
Markdown
├─
requirements.txt
Text
├─
sitecustomize.py
Python
├─
SKILL.md
Markdown
├─
test_fb_connection.py
Python
└─
utils.py
Python
Dependencies 4 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | >=2.31.0 | pip | No | 无版本锁定 |
google-genai | >=1.0.0 | pip | No | 无版本锁定 |
openai | >=1.30.0 | pip | No | 无版本锁定 |
openclaw | >=2026.3.0 | pip | No | 第三方包,无版本锁定,存在供应链风险 |
Security Positives
✓ 代码结构清晰,模块化设计良好
✓ 文档与实际功能基本一致
✓ 未发现恶意代码、混淆或隐蔽的数据外泄行为
✓ 正确使用官方Facebook Graph API