oathe / scan / reports / caution
Is kyya/balance-checker safe?
Use with caution. kyya/balance-checker is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the balance-checker skill by kyya a trust score of 79/100 with 8 findings, none critical or high.
https://github.com/openclaw/skills/tree/main/skills/kyya/balance-checker
Is kyya/balance-checker safe to install?
The balance-checker skill is a legitimate Chinese-language tool for querying AI API service balances across DeepSeek, Moonshot/Kimi, and Volcengine. Its code is transparent, matches its stated purpose, and shows no prompt injection, obfuscation, or unauthorized exfiltration. The primary risks are inherent to its design: it transmits user API credentials to external provider endpoints, reads the full OpenClaw config file (not just the needed keys), installs a third-party PyPI package without version pinning, and its setup script is broken due to references to non-existent files.
What security issues were found in kyya/balance-checker?
Category Scores
Findings (8)
MEDIUM Full config file read beyond declared credential scope -20 ▶
query_balance.py reads the entire ~/.openclaw/openclaw.json configuration file to retrieve Volcengine credentials. This config file may contain all user environment variables including other API keys, tokens, and secrets. While the code only extracts VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY, the full file is parsed into memory as a Python dict, making all contents available to the running process.
Evidence: query_balance.py: with open(config_path, 'r', encoding='utf-8') as f: config = json.load(f) — entire config parsed before key extraction
MEDIUM API credentials transmitted to external provider endpoints -15 ▶
The skill sends user API keys (DEEPSEEK_API_KEY, MOONSHOT_API_KEY, VOLCENGINE_ACCESS_KEY/SECRET_KEY) over HTTPS to their respective provider APIs. While this is the skill's declared and intended purpose, users should understand that executing this skill transmits credentials externally. A compromised provider endpoint or MITM attack could capture keys.
Evidence: check_balance.sh: curl -s 'https://api.deepseek.com/user/balance' -H 'Authorization: Bearer $DEEPSEEK_API_KEY'; curl -s 'https://api.moonshot.cn/v1/users/me/balance' -H 'Authorization: Bearer $MOONSHOT_API_KEY'
MEDIUM Third-party PyPI package installation with supply chain risk -18 ▶
setup_volcengine.sh installs volcengine-python-sdk from PyPI using pip. This introduces a supply chain dependency on a third-party package. If the PyPI package is compromised or typosquatted, arbitrary code could execute during installation. The package name corresponds to a legitimate Volcengine SDK but was not verified against a hash or pinned version.
Evidence: setup_volcengine.sh: pip install volcengine-python-sdk (no version pin, no hash verification)
LOW Setup script references non-existent files causing guaranteed failure -12 ▶
setup_volcengine.sh runs chmod +x on volcengine_balance.sh and setup.sh, neither of which exists in the repository. The script uses set -e, so it will exit with an error after installing the SDK. Users will see a failed installation and may be unable to use Volcengine balance queries without manual intervention.
Evidence: setup_volcengine.sh lines: 'chmod +x volcengine_balance.sh' and 'chmod +x setup.sh' — neither file present in repo (only check_balance.sh, query_balance.py, setup_volcengine.sh, SKILL.md, README.md)
LOW Skill enumerates configured AI API providers on activation -20 ▶
When triggered, the skill reveals which AI API providers the user has configured by checking for the presence of specific environment variables. An attacker who could cause this skill to run (or chain it with another skill) would learn which API services the user subscribes to and whether those services are active, enabling targeted credential theft attempts.
Evidence: check_balance.sh: Outputs service status for each provider only if API key is set, otherwise outputs 'API Key 未设置' — effectively enumerates provider configuration
LOW Broad trigger keywords may activate in non-targeted contexts -8 ▶
The skill triggers on generic terms like '余额多少' (how much balance) and '还有多少额度' (how much quota remains) which are common in general financial or subscription discussions. An agent handling billing questions or bank-related queries could unintentionally trigger this skill, potentially leaking that the user has API accounts with specific providers.
Evidence: SKILL.md trigger list: '查余额', '还有多少额度', '余额多少', '看看余额', 'API 余额'
INFO Canary file accesses attributed to audit harness, not skill 0 ▶
Filesystem monitoring detected accesses to canary files (.env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, gcloud credentials) at timestamp 1771902766, which is approximately 6 seconds BEFORE the git clone began at 1771902772. A second access batch at 1771902790 occurred after install completion. Both batches are consistent with the oathe audit harness performing pre/post-install baseline checks. No skill code references these paths.
Evidence: inotify: 03:12:46 ACCESS /home/oc-exec/.env (before install); auditd 1771902766.608 vs git clone start 1771902772; canary integrity check confirms all files intact
INFO Clone behavior clean — only expected GitHub connections 0 ▶
Network monitoring shows only connections to 140.82.121.4:443 (GitHub) during the clone phase. No unexpected outbound connections, no DNS exfiltration, no background processes established. Connection diff shows no new listening ports or persistent connections after install.
Evidence: auditd SOCKADDR 140.82.121.4:443 from git-remote-http; connection diff shows identical listening state before/after install
Should I install kyya/balance-checker?
Oathe's verdict for kyya/balance-checker is CAUTION with a trust score of 79/100. Recommendation: Install with caution.