Scan Report
65 /100
github-code-analyzer
Clone and analyze GitHub project code quality using DeepSeek AI
Hardcoded API credentials exposed in source code, undocumented external API communications to ByteDance VolcEngine instead of declared DeepSeek, and shell execution on user-controlled repository URLs.
Do not install this skill
Remove hardcoded API key and use environment variables. Ensure documentation accurately reflects the actual API endpoint and data flows. Consider input validation for repository URLs to prevent command injection.
Attack Chain 5 steps
⬡
Escalation Skill presents as legitimate GitHub code analyzer through SKILL.md
SKILL.md:1⬡
Escalation Executes git clone on user-provided repository URLs
index.js:49⬡
Escalation Reads project structure and code samples from cloned repositories
index.js:63⬡
Escalation Transmits repository data to undisclosed ByteDance VolcEngine API endpoint
index.js:134◉
Impact Hardcoded API key could be extracted and abused by attackers
index.js:7Findings 4 items
| Severity | Finding | Location |
|---|---|---|
| High | Hardcoded API Credential | index.js:7 |
| High | Undeclared External API Communication | index.js:134 |
| Medium | Shell Command Injection Risk | index.js:49 |
| Medium | Missing Permission Declaration | index.js:46 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | WRITE | ✓ Aligned | index.js:49 - fs.rmSync used for cleanup |
| Shell | NONE | WRITE | ✗ Violation | index.js:49 - exec(git clone...) without doc declaration |
| Network | READ | WRITE | ✗ Violation | index.js:134 - POST to external API with repo data |
| Environment | NONE | NONE | — | API key hardcoded instead of env var usage |
1 High 2 findings
High API Key 疑似硬编码凭证
API_KEY = "3ee94c45-6dad-4680-827c-eb3017420dff" index.js:7 Medium External URL 外部 URL
https://ark.cn-beijing.volces.com/api/v3/chat/completions index.js:134 File Tree
2 files · 5.9 KB · 210 lines JavaScript 1f · 147L
Markdown 1f · 63L
├─
index.js
JavaScript
└─
SKILL.md
Markdown
Security Positives
✓ Code has error handling with try-catch blocks
✓ Temporary directories are cleaned up after analysis
✓ Includes timeout protection for git clone (60000ms) and API calls (60000ms)
✓ No evidence of reverse shell, C2 communication, or deliberate data exfiltration to attacker-controlled infrastructure