CodeCheck
[!IMPORTANT]
- CodeCheck by CommBank is published by Commonwealth Bank of Australia (CBA)
as a one-time open-source release for businesses to evaluate, adapt and use
at their own risk. CBA will not actively maintain, update or provide support
for this repository.
- CodeCheck is based on an approach used within CBA, but it is not the same
as, and does not represent, the systems, tools or controls CBA uses
internally. It is not financial, investment, legal, tax or model-performance
advice and must not be relied upon as such.
- CodeCheck is available from CBA free of charge. To use it, you need a
supported AI coding agent. Your use of that agent, including how it
processes your code, is subject to the coding agent provider's own terms,
policies and safeguards, and you are responsible for any costs the provider
charges.
- CodeCheck uses AI to help identify potential security vulnerabilities, but
may not identify every vulnerability and may flag code that is not
vulnerable. It does not replace your own security testing, tools or
expertise. All findings should be reviewed by a qualified engineer before
any action is taken. You must only use CodeCheck on code you own or are
authorised to review, and must not use it for any unlawful or malicious
purpose. CodeCheck should only be run within an appropriately restricted
development environment. You remain responsible for the security of your
software and for how you use CodeCheck.
- CodeCheck is provided "as is", without warranty of any kind, under the
applicable licence. To the maximum extent permitted by law, CBA excludes
liability arising from or in connection with CodeCheck or its use.
CodeCheck is a Claude Code and Codex plugin that runs an LLM (AI) powered static
security review of source code. Use it to find candidate vulnerabilities in
open-source software or code you own. You can give it a source tree, branch,
commit or pull request, and it returns you suspected findings inside your coding
agent. Each finding includes the data flow from source to sink, the verdict of
an independent reviewer sub-agent and a CVSS 4.0 vector.
To ensure CBA can consistently benchmark new AI powered security capabilities an
internal vulnerability evaluation framework was developed. Over the past 6
months we have consistently benchmarked similar capabilities using this
framework. Our CodeCheck harness configured for CBA’s environment consistently
outperformed similar capabilities, generally identifying 10-15% more
vulnerabilities in a single run.
Prerequisites
- Claude Code or Codex.
- A local clone of this repository, or of your fork.
- An isolated runtime environment to run reviews in. See
Run CodeCheck in a sandbox.
- Authorisation to review the code. A review sends the code to your model
provider.
- Model access whose safeguards permit security review. See
Model provider safeguards.
IMPORTANT: Model provider safeguards
Model providers apply safeguards to cyber security work, and a review can
trigger them even when it is authorised. Triggering a safeguard can decline a
request, end a response early or route it to a less capable model. Repeated
flags can lead to warnings or account restrictions.
Before you run CodeCheck:
- Ensure that your review falls within your provider's usage policy.
- Find out which safeguards apply to you. They vary by model, plan and platform.
- If safeguards interrupt your reviews, apply to your provider's security
verification program, where one exists (terms vary by provider and platform).
- Treat code covered by a declined or cut-short sub-agent as not reviewed. The
report may not say a sub-agent was declined.
Install the CodeCheck plugin
This repository is also a plugin marketplace named cba-codecheck. Add your
clone as a local marketplace, then install the codecheck plugin from it.
Claude Code:
claude plugin marketplace add /path/to/clone
claude plugin install codecheck@cba-codecheck
Codex:
codex plugin marketplace add /path/to/clone
codex plugin add codecheck@cba-codecheck
Run a review
-
Start a new Claude Code or Codex session in the repository you want to
review.
-
Ask for a review in plain language. For example:
- "Run a security review of ./src"
- "Scan ./api for SQL injection"
- "Review the changes on this branch for vulnerabilities"
To invoke the skill directly, run /codecheck:codecheck ./src in Claude Code
or $codecheck ./src in Codex.