A security audit can identify defects in a smart contract. But it is an examination of a particular version under particular assumptions, not proof that the entire product is risk-free.
What an audit covers
Reviewers analyse code for vulnerabilities. Scope, duration, methodology and the audited commit determine what a report actually covers. Later changes can introduce new defects.
Risks outside the code
A protocol may depend on oracles, administrative keys, bridges, web interfaces or external contracts. Even correctly implemented code can cause losses under unexpected economic conditions.
Questions before use
- Which version was reviewed, and were findings resolved?
- Who can upgrade or pause the contract?
- How are data sources and dependencies protected?
- What happens during extreme market movements?
An audit is a useful component of a security process. Continuous testing, transparent architecture and careful permission management provide a fuller picture.
What was actually reviewed?
An audit normally covers a particular scope: a version of the source code, selected contracts and specified assumptions. If a new version is deployed afterwards, its risk profile can change. Even if every identified issue has been resolved, other faults may exist.
A contract's environment also matters. A lending protocol may take a price from an external data source. If that source delivers incorrect information or becomes unavailable, the application may be affected even though the contract faithfully executes its programmed rules.
Security includes operations
A contract may have administrative powers allowing parameters to be changed or software upgraded. It matters who controls those powers, what delays or approvals apply and whether changes can be observed publicly. A technically correct program can still implement a very risky economic strategy.
Security assessment therefore considers not only audit reports but also dependencies, actual permissions and the handling of changes. The word audited describes a process with a limited scope, not a general guarantee for every future situation.
Sources and further reading
These links lead to original documents and further reading.