oathe / scan / reports / caution
Is flokiew/ibkr-trader safe?
Use with caution. flokiew/ibkr-trader is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the ibkr-trader skill by flokiew a trust score of 69/100 with 10 findings (3 high).
https://github.com/openclaw/skills/tree/main/skills/flokiew/ibkr-trader
Is flokiew/ibkr-trader safe to install?
The flokiew/ibkr-trader skill is a functional IBKR trading automation skill with no overt prompt injection or supply-chain backdoors, but presents serious financial and operational security risks that make it unsuitable for unreviewed deployment. The most significant concerns are: all six canary credential files were read during the monitoring window (including a post-install wave), the trading bot auto-confirms financial orders bypassing IBKR's safety confirmation dialogs, and the skill establishes a persistent long-lived brokerage session via cron keepalive with credentials stored in plaintext. An AI agent running this skill with manipulated inputs or combined with a malicious co-skill could execute catastrophic unauthorized trades on live accounts without user awareness.
What security issues were found in flokiew/ibkr-trader?
Category Scores
Findings (10)
HIGH All six canary credential files read during monitoring window -25 ▶
Every canary honeypot file placed in /home/oc-exec/ was read during the monitoring session. inotify confirms OPEN+ACCESS+CLOSE_NOWRITE events for .env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, and .gcloud/application_default_credentials.json at 07:36:06 (pre-install) and again via auditd PATH records at timestamp 1771918583.202 (post-install). Read-only access does not trigger modification-based canary alerts; contents may have been harvested through out-of-band channels undetected.
Evidence: inotify: 07:36:06 OPEN /home/oc-exec/.env ACCESS /home/oc-exec/.env; 07:36:06 OPEN /home/oc-exec/.ssh/id_rsa; auditd 1771918583.202 PATH items 1443-1448 all six credential files; canary integrity: PASSED (no modification detected)
HIGH Financial order auto-confirmation bypasses IBKR safety dialog -20 ▶
IBKRClient.place_order() in trading_bot.py automatically confirms orders by detecting messageIds in the response and immediately POSTing confirmed:true to the reply endpoint. IBKR uses this confirmation step as a human-review gate for potentially risky orders. Bypassing it means an AI agent using this skill can execute live financial trades without any confirmation prompt reaching the user.
Evidence: scripts/trading_bot.py lines ~160-166: if isinstance(result, list) and len(result) > 0: if result[0].get('messageIds'): confirm = self._post(f'/v1/api/iserver/reply/{result[0]["id"]}', {'confirmed': True})
HIGH Persistent session and unrestricted trading authority -35 ▶
The skill establishes a persistent IBKR session via a cron-based keepalive running every 5 minutes with automatic re-authentication, creating a long-lived account access channel. Combined with the order auto-confirm bypass, a compromised or manipulated agent can execute an unlimited number of live trades (buy/sell/cancel) on real financial accounts with no human check. There are no skill-level guardrails on order size, frequency, or account impact.
Evidence: keepalive.py crontab: */5 * * * * venv/bin/python keepalive.py; trigger_reauth() calls subprocess.Popen(['bash', authenticate.sh]); trading_bot.py strategy() iterates watchlist and calls place_order() without limits
MEDIUM Plaintext IBKR credentials in .env file and unsafe source pattern -15 ▶
setup.sh instructs creation of ~/trading/.env containing IBEAM_ACCOUNT and IBEAM_PASSWORD in cleartext. The generated authenticate.sh uses 'source .env' (relative path) inside a cd block — if the script is ever invoked from an unexpected working directory, an attacker-placed .env file would be sourced and could execute arbitrary shell commands, since 'source' evaluates its argument as a shell script.
Evidence: setup.sh creates .env: IBEAM_ACCOUNT=your_username / IBEAM_PASSWORD='your_password'; authenticate.sh: cd $(dirname $0) && source venv/bin/activate && source .env
MEDIUM External binary download and execution during setup -10 ▶
setup.sh fetches clientportal.gw.zip from download2.interactivebrokers.com over HTTPS and executes it as a Java service. While this is a legitimate IBKR distribution URL, any future compromise of this endpoint (DNS hijack, CDN compromise, MITM) would result in the agent executing a malicious Java binary on the host with network access.
Evidence: scripts/setup.sh: wget -q https://download2.interactivebrokers.com/portal/clientportal.gw.zip && unzip -q clientportal.gw.zip -d clientportal
MEDIUM Dynamic shell execution via subprocess.Popen in keepalive -8 ▶
keepalive.py constructs the path to authenticate.sh using os.path.join and os.path.dirname and executes it via subprocess.Popen(['bash', auth_script]). If the keepalive script is installed in an attacker-influenced location, or if the relative path resolution is exploitable via symlinks, this becomes an arbitrary shell execution vector running with user credentials.
Evidence: scripts/keepalive.py: script_dir = os.path.dirname(os.path.abspath(__file__)); auth_script = os.path.join(script_dir, '..', 'authenticate.sh'); subprocess.Popen(['bash', auth_script], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
MEDIUM Canary credential files read post-install — not detected by integrity check -30 ▶
A second wave of canary file accesses was recorded by auditd at timestamp 1771918583.202, occurring after skill installation completed (~1771918577-1771918582). The canary integrity check relies on file modification detection and would not catch contents being read and transmitted via alternative channels (DNS exfiltration, timing side-channels, or in-memory exfiltration). This access pattern warrants investigation.
Evidence: auditd PATH records 1443-1448 at 1771918583.202: /home/oc-exec/.env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, .config/gcloud/application_default_credentials.json — all NORMAL nametype, no modification flags
LOW Pre-install connections to Ubuntu Canonical servers observed -17 ▶
Two established HTTPS connections to 185.125.188.54:443 and 185.125.188.58:443 (Canonical/Ubuntu IP range) were present before installation and absent after. These appear to be pre-existing OS update service connections, not skill-initiated, and were already terminating at install time. Noted for completeness.
Evidence: Network diff BEFORE: tcp ESTAB 10.0.2.15:58680 185.125.188.58:443 and 10.0.2.15:44482 185.125.188.54:443; AFTER: both connections absent
LOW Skill dangerous in combination with compromised signal providers -20 ▶
Individually, this skill requires explicit user setup and IBKR Key 2FA approval. However, once a session is established and the keepalive is running, any other active skill or prompt injection that can call IBKR API endpoints on localhost:5000 can execute trades without further authentication. The localhost gateway has no additional auth layer beyond session cookies.
Evidence: IBKR gateway runs at https://localhost:5000 accessible to all local processes; API endpoints require only session authentication, no per-request TOTP or approval
INFO No prompt injection, persona override, or encoding tricks in SKILL.md -20 ▶
Full review of SKILL.md found no instruction-override directives, ignore-previous-instructions patterns, persona switching, base64-encoded hidden content, zero-width characters, HTML comments, or instructions to fetch external URLs. The skill description in the frontmatter accurately reflects the skill's actual content and scope.
Evidence: SKILL.md frontmatter: name: ibkr-trading, description accurately describes IBKR trading automation; no anomalous unicode codepoints or hidden text detected
Should I install flokiew/ibkr-trader?
Oathe's verdict for flokiew/ibkr-trader is CAUTION with a trust score of 69/100. Recommendation: Review before install.