扫描报告
70 /100
gitlab
GitLab operations including creating and cloning repositories, listing projects, managing issues, merge requests, branches, commits, and pipelines.
Skill contains hardcoded GitLab API token and undocumented script that uses subprocess with curl, creating significant credential exposure and exfiltration risk.
不要安装此技能
Remove hardcoded credentials from fetch_repos.py, declare all scripts in SKILL.md, and audit all subprocess calls for hidden network behavior.
攻击链 3 步
◎
入口 fetch_repos.py contains hardcoded GitLab token for git.littaro.cn
scripts/fetch_repos.py:7⬡
提权 Undocumented subprocess with curl executes API calls using hardcoded token
scripts/fetch_repos.py:14◉
影响 Credential exposure through hardcoded PAT allows unauthorized repository access
scripts/fetch_repos.py:7安全发现 4 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 严重 | Hardcoded GitLab API Token | scripts/fetch_repos.py:7 |
| 高危 | Undocumented Script with Subprocess | scripts/fetch_repos.py:14 |
| 高危 | Disabled SSL Verification | scripts/fetch_repos.py:15 |
| 中危 | Data Exfiltration Risk | scripts/fetch_repos.py:7 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ | READ | ✓ 一致 | SKILL.md states read access only |
| 网络访问 | READ | READ | ✓ 一致 | SKILL.md documents API operations |
| 命令执行 | NONE | WRITE | ✗ 越权 | fetch_repos.py:14-18 uses subprocess.run() |
1 严重 9 项发现
严重 API 密钥 硬编码 API 密钥
glpat-UEfWfdCYx9e46BQnW5nz scripts/fetch_repos.py:7 中危 外部 URL 外部 URL
https://gitlab.example.com SKILL.md:16 中危 外部 URL 外部 URL
https://gitlab.example.com/username/my-project SKILL.md:61 中危 外部 URL 外部 URL
https://gitlab.example.com/username/my-project.git SKILL.md:62 中危 外部 URL 外部 URL
https://gitlab.example.com/group/project SKILL.md:85 中危 外部 URL 外部 URL
https://oauth2:TOKEN@host/project.git SKILL.md:92 中危 外部 URL 外部 URL
https://gitlab.example.com/group/project-name SKILL.md:116 中危 外部 URL 外部 URL
https://git.littaro.cn scripts/fetch_repos.py:8 中危 外部 URL 外部 URL
https://host/group/project scripts/gitlab_api.py:112 目录结构
6 文件 · 42.5 KB · 1177 行 Python 3f · 794L
Markdown 1f · 326L
JSON 2f · 57L
├─
▾
evals
│ └─
evals.json
JSON
├─
▾
scripts
│ ├─
config.json
⚠
JSON
│ ├─
fetch_repos.py
Python
│ ├─
gitlab_api.py
Python
│ └─
list_repos.py
Python
└─
SKILL.md
Markdown
安全亮点
✓ gitlab_api.py uses config.json for credentials (proper credential handling)
✓ list_repos.py reads credentials from config.json only
✓ SKILL.md documents proper config.json usage for user credentials
✓ Skill functionality (GitLab operations) is legitimate and documented