Credential Access
High
- Category
- Privilege Escalation
- Content
# 方式一:环境变量(推荐) export JUHE_WEATHER_KEY=你的AppKey # 方式二:.env 文件 echo "JUHE_WEATHER_KEY=你的AppKey" > scripts/.env # 方式三:命令行传入
- Confidence
- 88% confidence
- Finding
- The documentation recommends writing the API key to `scripts/.env` and also passing it on the command line. Storing secrets in a project subdirectory increases the risk of accidental inclusion in source control or exposure to other tooling, and CLI arguments can be visible in shell history, process listings, logs, or telemetry.
