T09 · Insecure Skill Coding Practices
- Location
scripts/fetch_vehiclelimit.py:78- Finding
API Credential Transmitted in URL Query String
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a straightforward TianAPI vehicle-restriction lookup tool, with credential-handling caveats but no evidence of hidden or unrelated behavior.
Install only if you are comfortable giving the skill a TianAPI key for vehicle-limit lookups. Prefer setting TIANAPI_VEHICLELIMIT_KEY in a protected environment or secret manager, avoid passing real keys on the command line, keep any scripts/.env file private, and use a dedicated TianAPI key with usage limits if possible.
scripts/fetch_vehiclelimit.py:78API Credential Transmitted in URL Query String
SKILL.md:29Documentation Encourages API Key Exposure Through Command Arguments and Unprotected Files
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Env Config:
export TIANAPI_VEHICLELIMIT_KEY=your_api_key
# 或在脚本同级目录创建 .env 文件: TIANAPI_VEHICLELIMIT_KEY=your_api_key
"""
import os
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Env Config:
export TIANAPI_VEHICLELIMIT_KEY=your_api_key
# 或在脚本同级目录创建 .env 文件: TIANAPI_VEHICLELIMIT_KEY=your_api_key
"""
import os
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Env Config:
export TIANAPI_VEHICLELIMIT_KEY=your_api_key
# 或在脚本同级目录创建 .env 文件: TIANAPI_VEHICLELIMIT_KEY=your_api_key
"""
import os
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Env Config:
export TIANAPI_VEHICLELIMIT_KEY=your_api_key
# 或在脚本同级目录创建 .env 文件: TIANAPI_VEHICLELIMIT_KEY=your_api_key
"""
import os
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Env Config:
export TIANAPI_VEHICLELIMIT_KEY=your_api_key
# 或在脚本同级目录创建 .env 文件: TIANAPI_VEHICLELIMIT_KEY=your_api_key
"""
import os
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Env Config:
export TIANAPI_VEHICLELIMIT_KEY=your_api_key
# 或在脚本同级目录创建 .env 文件: TIANAPI_VEHICLELIMIT_KEY=your_api_key
"""
import os
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
if env_val: return env_val
# 2. .env 文件
env_file = Path(__file__).parent / ".env"
if env_file.exists():
try:
content = env_file.read_text(encoding="utf-8")
The skill documents and implies use of environment variables, local files (.env), and outbound network access, but it does not declare any explicit tool scope such as permissions or allowed-tools. This creates an authorization gap where an agent may invoke capabilities broader than users or platform policy expect, increasing the risk of unintended secret access and network use.
The documentation shows the API key embedded directly in URL query strings and command-line arguments without any warning about exposure. Secrets passed this way can leak via shell history, process listings, logs, browser history, proxy logs, or telemetry, making credential compromise much more likely.
No suspicious patterns detected.