A security audit of a crypto trading bot built in China should be organized around three surfaces rather than a general code review: the exchange keys the bot uses, the servers and host environment that run it, and the access accounts held by the vendor and the buyer. The verdict a buyer reaches depends on what each surface shows: narrow key scope with controlled storage, a host in a known region with revocable access, and named accounts with audit logging that records who changed what. A polished dashboard or a working demo does not answer any of these questions. This article walks the three surfaces, the artifacts to inspect on each, and how audit findings feed the total cost of ownership rather than being treated as a one-time checklist. Crypto trading may be restricted or prohibited in some jurisdictions; local legal advice should be obtained before deployment. The audit guidance below is technical information, not investment advice, and states no profit, yield, or return figure.
The three surfaces the audit must cover
The key surface covers every secret that grants access to a venue account: production keys, staging keys, test keys, and any third-party service credentials the bot uses. The server surface covers the host machine or container, its operating system, network exposure, hosting region, and the secrets stored on it. The access surface covers the human and service accounts that can reach the host, the repository, the secrets store, and the venue account. These three surfaces interact: a broad key on an exposed server, reached by a shared vendor account, compounds across all three, and the audit should trace the path from secret to exposure rather than checking each in isolation.
The audit should produce written records: a key inventory with scope and binding, a server inventory with region and access list, an access list with account owners and revocation paths, and a log sample showing recorded actions. These records matter after handover because a later reviewer, a replacement vendor, or an incident response can rely on them instead of reconstructing the environment from memory. An audit that leaves no record is only a walkthrough, and it cannot support a later ownership decision.
Keys: scope, storage, and rotation evidence
Scope review starts on the venue’s own key-management page rather than from a vendor screenshot. Each active key should be listed with its read and trade toggles, any transfer permission, withdrawal status, IP or geographic binding, creation date, and last-used address. The production bot key should carry trade-only scope with withdrawal disabled; any transfer toggle should match a documented rebalancing need. Staging and production keys must be distinct, and any key used in a public demo should be listed as revoked. The permission models behind these checks are compared in API permission models in China-built trading bots.
Storage review checks where the secret lives in the deployment: environment variables supplied by the host, a secrets manager, or an encrypted configuration with restricted permissions are acceptable; a secret committed in the repository, pasted into chat history, duplicated across server images, or written into a log line is a finding. The audit should also check whether secrets appear in application logs, error reports, or backup snapshots. Rotation evidence matters too: the audit should confirm a replacement key can be issued with the same narrow scope, injected into the secret store, and deployed, after which the original is revoked. A rotation that has never been practiced cannot be relied on in a real incident. The custody rules governing the account side of this surface are set out in custody rules for China-built crypto bots.
Servers: region, exposure, and host hygiene
First establish where the host actually runs. The audit should name the hosting provider, the region or datacenter, and whether the account belongs to the buyer or the vendor. The region matters for venue access rules, data placement, and latency to the target venues; an unnamed or mismatched region means the buyer cannot confirm any of those. If the bot runs in the buyer’s own cloud account, the audit should review the IAM policies that grant access; if it runs on the vendor’s host, the buyer is depending on the vendor’s host security, and that dependency should be stated in the engagement record.
Network exposure review checks which ports are open, whether the host accepts inbound connections except where the design requires it, and whether management access is restricted to known source addresses. The audit should note whether the host receives automatic security updates, whether dependencies are pinned to reviewed versions, and whether the bot process runs with limited privileges rather than as the host’s administrative user. A host that runs the bot with full administrative access, accepts wide inbound traffic, or stores its own backups in an unverified location is a finding that should be fixed before live exposure grows.
Host hygiene also covers restart and recovery. The audit should confirm what happens after a reboot or process crash: whether the bot restarts automatically, whether state is reloaded from durable storage, and whether the dead-man alert fires if the process stops. A single-machine deployment with no restart policy is an availability risk, even when the keys and access are otherwise clean. Where the bot routes across several venues, each venue’s connection state should be checked after recovery, and open orders reconciled against the venue record before new orders resume.
Access: named accounts, logging, and revocation
The access list should name every account that can reach the host, the repository, the secrets store, or the venue: vendor engineers, agency contacts, buyer administrators, and any service accounts used for deployment or monitoring. Shared logins, anonymous accounts, and credentials passed around in chat should be flagged as findings; access should tie to named identities so each action can be attributed. The audit should confirm that accounts can be revoked individually, and that leaving the engagement removes each person’s access rather than rotating one shared password.
Audit logging review checks what the system records: who accessed the host, who changed a configuration parameter, who rotated a key, and when configuration limits were altered. The logs should retain enough detail to reconstruct an incident, and they should be stored where the vendor cannot silently alter them. The audit should sample actual log entries rather than accepting a description of what logging exists. Buyer-facing alerts should reach the buyer’s own channel; a bot whose only monitoring lives on the vendor’s panel leaves the buyer blind when the vendor’s staff are offline.
Evidence a buyer can collect without reading code
Buyers do not need to review source line by line to run a useful audit. Most of the evidence sits in account consoles and records that the buyer can access once given operator or read-only status. The venue’s key-management page lists every active key, its scope toggles, and its binding; the hosting account’s IAM console lists who can reach the host; the repository’s access list shows who can read or write code. Collecting these screenshots and inventories before the audit session lets the buyer verify the vendor’s description against the actual accounts, rather than listening to an account of the environment.
A second evidence set comes from live behavior during the staging or small-live stage. Watch what the bot logs when an order fills, cancels, or reconnects after a forced drop; check whether the log entry carries timestamp, order identifier, and state, and whether it matches the venue record. Check whether the alert actually reaches the buyer’s channel when the watchdog fires. These observations test whether the audit controls exist in operation, not only in design. A written runbook for restart, rollback, and secret rotation should be in the repository or the handover record; if it is absent, that is itself an access and recovery finding.
The audit session itself should be attended by someone who can answer questions about the deployment, not only a sales contact. Vendors sometimes send a demo presenter who cannot explain server access or key storage; in that case the buyer should reschedule with the engineering owner, because security answers from a non-engineering contact carry no evidence value. After the session, findings should be written up with the observed state, the required remediation, and the owner for each item, and the remediated items should be re-verified before the audit record closes.
How audit findings feed total cost of ownership
Security findings should be priced into the engagement rather than absorbed silently. A finding that requires separating shared credentials, moving the host to the buyer’s account, implementing secrets management, or adding audit logging carries engineering work that belongs in the build estimate; a finding deferred until after launch usually costs more to remediate. The total cost of ownership view compares the build quote against these required remediations, ongoing host and maintenance costs, and any later migration away from the vendor’s environment. The full separation of bot fees from venue fees is modeled in full cost model for China-built trading bots, and the audit findings belong in that same cost picture rather than in a separate security appendix.
An audit that returns clean should still set a repeating check: key scope and active-key list, host access list, and log sample reviewed periodically, with fresh review triggered by scope changes, personnel changes on the vendor side, or any incident. Where local law restricts the activity being audited, the audit follows that boundary; a compliant technical setup cannot cure a deployment prohibited locally. The material above describes how a security audit is organized and what it should produce; it does not advise trading, and it makes no claim about how any bot will perform under live market conditions.
Leave a Reply