Smart Contract Audit Engagement Letter
SMART CONTRACT AUDIT ENGAGEMENT LETTER
Engagement Date: [__/__/____]
Engagement Number: [________________________________]
PARTIES AND RECITALS
AUDITOR:
Firm Name: [________________________________] (the "Auditor")
Address: [________________________________]
Email: [________________________________]
Website: [________________________________]
Lead Auditor: [________________________________]
Auditor Qualifications: [________________________________]
CLIENT:
Company / Protocol Name: [________________________________] (the "Client")
Address: [________________________________]
Email: [________________________________]
Technical Contact: [________________________________]
Project Name: [________________________________]
Project Website: [________________________________]
RECITALS
WHEREAS, Client has developed or is developing smart contract(s) deployed or intended for deployment on one or more blockchain networks; and
WHEREAS, Client desires to engage Auditor to perform an independent security audit of such smart contract(s) to identify potential vulnerabilities, coding errors, and deviations from industry best practices; and
WHEREAS, Auditor possesses the expertise, tools, and methodologies necessary to perform such security audit services; and
WHEREAS, the Parties wish to establish the terms and conditions governing the engagement;
NOW, THEREFORE, in consideration of the mutual covenants herein, the Parties agree as follows:
1. DEFINITIONS
1.1 "Audit" means the security review, analysis, and assessment of the Smart Contracts performed by Auditor under this Engagement Letter.
1.2 "Audit Report" means the written deliverable produced by Auditor summarizing the methodology, findings, severity classifications, and recommendations resulting from the Audit.
1.3 "Blockchain" means a distributed, immutable ledger technology, including but not limited to Ethereum, Polygon, Arbitrum, Optimism, Solana, Avalanche, Base, and other Layer 1 or Layer 2 networks.
1.4 "Code Freeze" means the period during which Client agrees not to modify the Smart Contracts under Audit, commencing on the date specified in the Audit Schedule.
1.5 "Confidential Information" means all non-public information disclosed by either Party, including source code, audit findings, business information, technical documentation, and the terms of this Engagement Letter.
1.6 "Critical Vulnerability" means a vulnerability that, if exploited, could result in total loss of funds, complete protocol compromise, permanent denial of service, or irreversible state corruption.
1.7 "DeFi" (Decentralized Finance) means financial protocols and applications built on blockchain technology that operate without traditional intermediaries.
1.8 "Deliverables" means the Audit Report, any supplemental reports, and other written materials produced by Auditor under this Engagement Letter.
1.9 "Findings" means the individual security issues, vulnerabilities, best practice deviations, and informational observations identified during the Audit.
1.10 "Gas" means the unit of computational effort required to execute operations on an EVM-compatible blockchain.
1.11 "Oracle" means a service or mechanism that provides external data to smart contracts on-chain.
1.12 "Protocol" means the decentralized application, platform, or system of which the Smart Contracts are a component.
1.13 "Severity Level" means the classification assigned to a Finding based on its potential impact and likelihood, as defined in Exhibit B.
1.14 "Smart Contract" means self-executing code deployed on a Blockchain that automatically enforces the terms of an agreement or protocol logic when predefined conditions are met.
1.15 "Vulnerability" means a weakness, flaw, or defect in a Smart Contract that could be exploited to cause unintended behavior, loss of funds, unauthorized access, or other adverse outcomes.
2. SCOPE OF AUDIT SERVICES
2.1 Smart Contracts in Scope
| # | Contract Name | File Path | Blockchain | Language | Est. LOC |
|---|---|---|---|---|---|
| 1 | [________________________________] | [________________________________] | [________________________________] | [________________________________] | [____] |
| 2 | [________________________________] | [________________________________] | [________________________________] | [________________________________] | [____] |
| 3 | [________________________________] | [________________________________] | [________________________________] | [________________________________] | [____] |
| 4 | [________________________________] | [________________________________] | [________________________________] | [________________________________] | [____] |
Repository: [________________________________]
Commit Hash: [________________________________]
Branch: [________________________________]
Total Estimated Lines of Code: [________________________________]
2.2 Audit Services — Select All Applicable
Review Type:
☐ Full Security Audit — Comprehensive review of all code, logic, and vulnerabilities
☐ Focused / Targeted Audit — Review of specific areas identified in Exhibit A
☐ Differential Audit — Review of changes from previous audit (Commit: [________________________________])
☐ Pre-Deployment Review — Final review before mainnet deployment
☐ Incident Response Audit — Emergency review following security incident on [__/__/____]
☐ Re-Audit — Verification of remediation from prior audit dated [__/__/____]
Services Included:
☐ Manual Code Review
- Line-by-line source code analysis
- Business logic validation
- State machine and control flow analysis
- Access control and permission review
☐ Automated Analysis
- Static analysis (e.g., Slither, Aderyn, Solhint)
- Symbolic execution (e.g., Mythril, Manticore)
- Fuzzing (e.g., Echidna, Foundry fuzz tests)
- Property-based testing
☐ Formal Verification
- Mathematical proof of correctness for critical properties
- Tools: [________________________________]
☐ Economic / Tokenomics Review
- Token distribution mechanics
- Incentive structure analysis
- Flash loan attack vector assessment
- MEV (Maximal Extractable Value) risk analysis
☐ Gas Optimization Review
- Storage pattern optimization
- Computation efficiency analysis
- Batch operation assessment
☐ Access Control Review
- Role-based permission analysis
- Admin privilege and multisig review
- Upgrade authority assessment
- Emergency function review
☐ Oracle Integration Review
- Price feed manipulation risk
- Staleness and heartbeat checks
- Fallback mechanism review
- Multi-oracle comparison analysis
3. AUDIT METHODOLOGY
3.1 Approach
Auditor shall conduct the Audit using a combination of manual review and automated analysis, following industry-recognized security frameworks including:
(a) OWASP Smart Contract Top 10: 2026 — systematic assessment against the ten most critical smart contract vulnerabilities as published by the Open Web Application Security Project;
(b) SWC Registry (Smart Contract Weakness Classification) — identification and classification of vulnerabilities using the standardized SWC identifiers;
(c) OWASP Smart Contract Security Verification Standard (SCSVS) — verification against the comprehensive checklist of security requirements; and
(d) NIST Cybersecurity Framework — general cybersecurity risk assessment principles as applicable to software systems.
3.2 Phases
The Audit shall proceed through the following phases:
Phase 1 — Onboarding and Scoping
- Kickoff meeting with Client technical team
- Architecture and documentation review
- Threat model development
- Confirmation of scope and success criteria
Phase 2 — Analysis
- Automated tool execution and result triage
- Line-by-line manual code review
- Vulnerability identification and exploitation analysis
- Cross-contract interaction and integration analysis
Phase 3 — Reporting
- Finding documentation with severity classification
- Proof-of-concept development for critical/high findings
- Preliminary findings report delivery
- Client review and feedback period
Phase 4 — Remediation Verification (if elected)
- Review of Client's code changes addressing Findings
- Verification that remediations do not introduce new vulnerabilities
- Updated Audit Report with remediation status
4. DELIVERABLES
4.1 Audit Report
The Final Audit Report shall include:
(a) Executive summary accessible to non-technical stakeholders;
(b) Detailed scope and methodology description;
(c) Summary of Findings by Severity Level;
(d) Detailed description of each Finding, including:
- SWC identifier (where applicable)
- Location in code (file, function, line)
- Description of the vulnerability or issue
- Potential impact and likelihood assessment
- Proof of concept or attack scenario (for Critical and High Findings)
- Recommended remediation with code examples where appropriate;
(e) Client response and remediation status (if remediation verification elected);
(f) Gas optimization recommendations (if gas review elected);
(g) Overall security assessment and deployment readiness recommendation; and
(h) Auditor attestation and team credentials.
4.2 Severity Classifications
All Findings shall be classified according to the Severity Classification Matrix in Exhibit B, using the following levels:
| Severity | Definition | Recommended Action |
|---|---|---|
| Critical | Exploitable vulnerability that could result in total/significant loss of funds, complete protocol compromise, or irreversible damage | Must fix before deployment; consider pausing protocol if live |
| High | Exploitable vulnerability that could result in material loss of funds, significant functionality impairment, or partial protocol compromise | Should fix before deployment |
| Medium | Vulnerability requiring specific conditions to exploit or resulting in limited impact; deviations from best practices that increase attack surface | Recommended to fix |
| Low | Minor issues, defense-in-depth recommendations, or code quality improvements that do not directly threaten security | Consider fixing |
| Informational | Best practice suggestions, gas optimizations, documentation improvements, or stylistic recommendations | Optional; for consideration |
4.3 Report Delivery
☐ Preliminary Findings — delivered within [____] business days of completing Phase 2
☐ Critical Findings — communicated within twenty-four (24) hours of discovery via secure channel
☐ Final Audit Report — delivered within [____] business days of completing the Audit (or remediation verification, if elected)
☐ Public-Ready Report — sanitized version prepared for public disclosure (if authorized)
5. TIMELINE AND MILESTONES
5.1 Audit Schedule
| Milestone | Target Date | Status |
|---|---|---|
| Engagement Letter Executed | [__/__/____] | ☐ Complete |
| Code and Documentation Delivered by Client | [__/__/____] | ☐ Complete |
| Code Freeze Begins | [__/__/____] | ☐ Complete |
| Kickoff Meeting | [__/__/____] | ☐ Complete |
| Audit Period | [__/__/____] to [__/__/____] | ☐ Complete |
| Preliminary Findings Delivered | [__/__/____] | ☐ Complete |
| Client Remediation Period | [__/__/____] to [__/__/____] | ☐ Complete |
| Remediation Verification (if elected) | [__/__/____] to [__/__/____] | ☐ Complete |
| Final Report Delivered | [__/__/____] | ☐ Complete |
Total Estimated Audit Duration: [____] weeks
5.2 Timeline Adjustments
The timeline may be extended if:
(a) Code complexity or volume materially exceeds initial estimates;
(b) Critical or High Findings require additional analysis or proof-of-concept development;
(c) Client requests additional scope through a Change Order;
(d) Client delays in providing information, access, or responses exceed [____] business days; or
(e) Force majeure events prevent timely performance.
5.3 Expedited Audit
Expedited audit services are available for an additional fee of [____]% of the Base Audit Fee, with a minimum of [____] business days' notice.
6. CLIENT OBLIGATIONS
6.1 Code and Documentation
Client shall provide the following before the Audit commences:
☐ Complete, compilable source code for all Smart Contracts in scope
☐ Access to private repository (if applicable) — read-only access is sufficient
☐ Technical documentation and protocol specifications
☐ Architecture diagrams and data flow documentation
☐ Existing test suites and deployment scripts
☐ Previous audit reports (if any)
☐ Known issues, areas of concern, or threat models
☐ Token economics documentation (if tokenomics review elected)
☐ Oracle integration specifications (if oracle review elected)
6.2 Code Freeze
Client agrees to:
(a) Freeze the code at the specified commit hash during the Audit period;
(b) Not modify audited code without written notice to Auditor;
(c) Provide a final code version at least [____] business days before the Audit commences; and
(d) Clearly identify any code changes made during the Audit period for separate review.
6.3 Disclosure of Known Issues
Client shall disclose all known vulnerabilities, prior security incidents, and any security-related concerns in writing before the Audit commences. Failure to disclose known issues may affect the scope and conclusions of the Audit.
6.4 Technical Availability
Client shall:
(a) Designate a primary technical contact available during business hours;
(b) Respond to Auditor inquiries within [____] business hours;
(c) Participate in kickoff, interim, and final review meetings; and
(d) Review and provide feedback on preliminary Findings within [____] business days.
7. FEES AND PAYMENT
7.1 Audit Fees
| Service | Fee |
|---|---|
| Base Audit Fee | $[________________________________] |
| Expedited Premium (if applicable) | $[________________________________] |
| Additional Contracts (per contract) | $[________________________________] |
| Formal Verification (if elected) | $[________________________________] |
| Economic / Tokenomics Review (if elected) | $[________________________________] |
| Remediation Verification | ☐ Included ☐ $[________________________________] |
| Re-Audit (within [____] months) | $[________________________________] |
| Total Engagement Fee | $[________________________________] |
7.2 Payment Schedule
| Payment | Amount | Due | Status |
|---|---|---|---|
| Deposit / Retainer | $[________________________________] ([____]%) | Upon execution | ☐ Paid |
| Progress Payment | $[________________________________] ([____]%) | Upon preliminary findings | ☐ Paid |
| Final Payment | $[________________________________] ([____]%) | Upon final report delivery | ☐ Paid |
7.3 Payment Methods
Payment accepted via (select all applicable):
☐ Wire Transfer (Bank: [________________________________])
☐ ACH Transfer
☐ Credit Card
☐ Cryptocurrency — ETH to address: [________________________________]
☐ Cryptocurrency — USDC to address: [________________________________]
☐ Cryptocurrency — USDT to address: [________________________________]
☐ Other Cryptocurrency: [________________________________] to address: [________________________________]
☐ Fiat invoice via [________________________________]
7.3.1 Cryptocurrency Payment Terms. If payment is made in cryptocurrency, the amount due shall be calculated based on the USD equivalent at the time of payment using the rate published by [________________________________] (e.g., CoinGecko, CoinMarketCap). Client bears all gas fees and network transaction costs. Payment is deemed received upon [____] blockchain confirmations.
7.4 Late Payment
Late payments shall accrue interest at [____]% per month, or the maximum rate permitted by applicable law, whichever is less. Auditor may suspend work if payments are more than [____] days overdue after written notice.
7.5 Change Orders
Any changes to the scope of the Audit require a written Change Order signed by both Parties, specifying the additional scope, fees, and timeline impact.
8. LIMITATIONS OF AUDIT
8.1 No Guarantee of Security. Client acknowledges and agrees that:
(a) No audit can guarantee the absence of all vulnerabilities. Unknown attack vectors, undiscovered bugs, zero-day exploits, and future protocol or compiler changes may create risks not identified in the Audit.
(b) Point-in-Time Assessment. The Audit reviews code at a specific commit hash at a specific point in time. Any modifications to the code after the audited commit — including compiler upgrades, dependency updates, or configuration changes — may introduce new vulnerabilities not covered by the Audit.
(c) External Dependencies. The Audit does not guarantee the security of external dependencies, third-party libraries, integrated protocols, oracles, bridges, or off-chain components unless explicitly included in scope.
(d) Economic and Market Risks. Unless economic/tokenomics review is specifically elected, the Audit does not assess economic risks, market manipulation vectors, governance attack scenarios, or tokenomics design.
(e) Infrastructure Risks. The Audit does not cover private key management, multisig operational security, deployment infrastructure, frontend security, DNS hijacking, or social engineering risks.
(f) Professional Judgment. Security auditing involves professional judgment. Different qualified auditors may reach different conclusions regarding the severity, exploitability, or remediation of specific Findings.
8.2 No Liability for Undiscovered Vulnerabilities. Auditor shall not be liable for any losses, damages, or claims arising from vulnerabilities not identified in the Audit Report, including but not limited to exploits, hacks, rug pulls, flash loan attacks, oracle manipulation, or economic attacks.
9. CONFIDENTIALITY
9.1 Mutual Obligations
Each Party shall maintain the confidentiality of the other Party's Confidential Information using at least the same degree of care it uses for its own confidential information, but no less than reasonable care.
9.2 Permitted Disclosures
Confidential Information may be disclosed:
(a) To employees and contractors with a need to know, bound by confidentiality obligations;
(b) As required by law, regulation, subpoena, or court order, with prompt notice to the other Party;
(c) To legal and financial advisors under professional duty of confidentiality; or
(d) With the prior written consent of the disclosing Party.
9.3 Responsible Disclosure
9.3.1 Embargo Period. Auditor shall not publicly disclose any Findings until the earlier of:
(a) Client's written authorization;
(b) [____] days after delivery of the Final Audit Report (the "Embargo Period"); or
(c) Public deployment of the audited Smart Contracts without remediation of Critical Findings, after Auditor provides [____] days' written notice to Client.
9.3.2 Responsible Disclosure Policy. If Auditor discovers a vulnerability that poses imminent risk to user funds in a live protocol and Client does not take prompt action to remediate, Auditor reserves the right to engage in responsible disclosure to affected stakeholders, in accordance with industry-standard responsible disclosure practices, after providing Client with [____] days' written notice.
9.4 Public Disclosure Authorization
☐ Public Report Authorized — Client authorizes Auditor to publish the Final Audit Report after the Embargo Period
☐ Client-Controlled Disclosure — Only Client may publish the report; Auditor may reference the engagement generally
☐ Joint Disclosure — Parties will coordinate timing and content of public disclosure
☐ Confidential Only — Report remains confidential; no public disclosure permitted without mutual consent
9.5 Survival
Confidentiality obligations survive termination of this Engagement Letter for [____] years.
10. INTELLECTUAL PROPERTY RIGHTS
10.1 Client Ownership
Client retains all right, title, and interest in:
(a) Smart Contract source code and related intellectual property;
(b) Technical documentation, specifications, and architecture;
(c) Remediated code and code developed by Client in response to Findings; and
(d) Client's trademarks, branding, and proprietary business information.
10.2 Auditor Ownership
Auditor retains all right, title, and interest in:
(a) Audit methodologies, frameworks, and processes;
(b) Proprietary tools, scripts, and automation developed by Auditor;
(c) Generic security knowledge and expertise gained during the engagement (excluding Confidential Information); and
(d) Pre-existing intellectual property of Auditor.
10.3 Report License
Client receives a perpetual, non-exclusive, worldwide license to:
(a) Use, copy, and distribute the Audit Report internally;
(b) Publish the Audit Report publicly (subject to Section 9);
(c) Provide the Audit Report to investors, partners, regulators, and insurance providers; and
(d) Reference the Audit Report in marketing materials, subject to Auditor's prior review of any claims regarding the Audit.
11. RE-AUDIT TERMS
11.1 Re-Audit Scope
If Client makes material changes to audited Smart Contracts after the Final Audit Report, Client may engage Auditor for a Re-Audit under the following terms:
(a) Re-Audit must be requested within [____] months of the original Final Audit Report;
(b) Re-Audit scope is limited to changes from the original audited commit;
(c) Re-Audit pricing as specified in Section 7.1; and
(d) New Engagement Letter or Change Order required for scope beyond the differential review.
11.2 Updated Report
Upon completion of the Re-Audit, Auditor shall issue an updated Audit Report reflecting the revised code and any new or resolved Findings.
12. INDEMNIFICATION
12.1 Client Indemnification
Client shall indemnify, defend, and hold harmless Auditor and its officers, directors, employees, and agents from and against any third-party claims, damages, losses, liabilities, costs, and expenses (including reasonable attorney fees) arising from:
(a) Deployment of the audited Smart Contracts, whether before or after remediation;
(b) Losses suffered by Client's users, token holders, liquidity providers, or other third parties;
(c) Client's use, publication, or distribution of the Audit Report;
(d) Client's breach of this Engagement Letter;
(e) Client's failure to remediate Critical or High Findings prior to deployment; or
(f) Regulatory actions or investigations related to Client's Protocol.
12.2 Auditor Indemnification
Auditor shall indemnify, defend, and hold harmless Client from and against any third-party claims arising from:
(a) Auditor's gross negligence or willful misconduct in performing the Audit;
(b) Auditor's breach of the confidentiality provisions of this Engagement Letter; or
(c) Infringement of third-party intellectual property rights by Auditor's proprietary tools or methodologies.
13. LIMITATION OF LIABILITY
13.1 Liability Cap
AUDITOR'S TOTAL AGGREGATE LIABILITY FOR ALL CLAIMS ARISING OUT OF OR RELATED TO THIS ENGAGEMENT LETTER SHALL NOT EXCEED THE TOTAL FEES ACTUALLY PAID BY CLIENT TO AUDITOR UNDER THIS ENGAGEMENT LETTER.
13.2 Exclusion of Consequential Damages
IN NO EVENT SHALL AUDITOR BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF FUNDS, LOSS OF TOKENS, LOSS OF STAKING REWARDS, LOSS OF LIQUIDITY, LOSS OF PROFITS, LOSS OF DATA, BUSINESS INTERRUPTION, PROTOCOL DOWNTIME, REPUTATIONAL HARM, OR DAMAGES FROM EXPLOITS, HACKS, OR ATTACKS, REGARDLESS OF WHETHER AUDITOR WAS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND REGARDLESS OF THE LEGAL THEORY (CONTRACT, TORT, STRICT LIABILITY, OR OTHERWISE).
13.3 Essential Basis
The limitations set forth in this Section 13 are a fundamental element of the basis of the bargain between the Parties and shall apply regardless of the form of action or theory of liability.
13.4 Carve-Outs
The limitations in Sections 13.1 and 13.2 do not apply to:
(a) Auditor's indemnification obligations for gross negligence or willful misconduct; or
(b) Either Party's breach of confidentiality obligations.
14. INSURANCE
14.1 Auditor Insurance
Auditor shall maintain the following insurance coverage during the engagement and for [____] months thereafter:
☐ Professional Liability / Errors & Omissions: $[________________________________] per occurrence
☐ General Commercial Liability: $[________________________________] per occurrence
☐ Cyber Liability Insurance: $[________________________________] per occurrence
☐ Other: [________________________________]
14.2 Certificates
Auditor shall provide certificates of insurance upon Client's request.
15. DISPUTE RESOLUTION
15.1 Escalation
The Parties shall first attempt to resolve any dispute through good-faith negotiation between designated executives for a period of [____] days.
15.2 Resolution Method (select one)
☐ Arbitration: Any dispute not resolved through negotiation shall be submitted to binding arbitration administered by [________________________________] (e.g., AAA, JAMS, ICC) in [________________________________], under its then-current rules. The arbitrator(s) shall have expertise in technology and/or blockchain matters. The arbitration award shall be final and binding, and judgment may be entered in any court of competent jurisdiction.
☐ Litigation: Any dispute not resolved through negotiation shall be submitted to the exclusive jurisdiction of the state or federal courts located in [________________________________]. Each Party consents to the personal jurisdiction and venue of such courts.
☐ Mediation then Arbitration: The Parties shall first attempt mediation under [________________________________] rules. If mediation fails within [____] days, the dispute shall proceed to binding arbitration as described above.
15.3 Injunctive Relief
Notwithstanding the foregoing, either Party may seek emergency injunctive relief from any court of competent jurisdiction to prevent irreparable harm pending resolution of the dispute.
15.4 Prevailing Party Fees
The prevailing Party in any dispute resolution proceeding shall be entitled to recover its reasonable attorney fees and costs.
16. GOVERNING LAW
This Engagement Letter shall be governed by and construed in accordance with the laws of [________________________________], without regard to its conflict of laws principles.
17. GENERAL PROVISIONS
17.1 Entire Agreement. This Engagement Letter, including all Exhibits, constitutes the entire agreement between the Parties regarding the Audit and supersedes all prior agreements, proposals, and communications.
17.2 Amendments. This Engagement Letter may not be amended except by a written instrument signed by both Parties.
17.3 Severability. If any provision is held invalid or unenforceable, the remaining provisions shall remain in full force and effect.
17.4 Assignment. Neither Party may assign this Engagement Letter without the other Party's prior written consent, except in connection with a merger, acquisition, or sale of substantially all assets.
17.5 Force Majeure. Neither Party shall be liable for delays caused by events beyond its reasonable control, including blockchain network congestion, protocol-level incidents, natural disasters, governmental actions, or cyberattacks on third-party infrastructure.
17.6 Independent Contractor. Auditor is an independent contractor. Nothing in this Engagement Letter creates an employment, partnership, joint venture, or agency relationship.
17.7 Notices. All notices shall be in writing and delivered to the addresses set forth above by email (with confirmation of receipt), personal delivery, or recognized overnight courier.
17.8 Counterparts. This Engagement Letter may be executed in counterparts, including by electronic signature, each of which shall be deemed an original.
17.9 No Third-Party Beneficiaries. This Engagement Letter is for the sole benefit of the Parties and does not confer rights on any third party, including users, token holders, liquidity providers, or investors.
17.10 Survival. The following provisions survive termination or expiration: Sections 8 (Limitations of Audit), 9 (Confidentiality), 10 (IP Rights), 12 (Indemnification), 13 (Limitation of Liability), 15 (Dispute Resolution), and 16 (Governing Law).
17.11 Waiver. No failure or delay in exercising any right shall operate as a waiver thereof.
18. TERM AND TERMINATION
18.1 Term. This Engagement Letter is effective upon execution and continues until the Final Audit Report is delivered and all payments are made, unless earlier terminated.
18.2 Termination for Convenience. Either Party may terminate this Engagement Letter upon [____] days' written notice. Upon termination:
(a) Client shall pay for all work performed through the termination date;
(b) Auditor shall deliver all Findings documented through the termination date;
(c) Deposit/retainer payments shall be applied to work performed, with any excess refunded within [____] days; and
(d) Confidentiality obligations survive termination.
18.3 Termination for Cause. Either Party may terminate immediately upon:
(a) Material breach by the other Party that remains uncured for [____] days after written notice; or
(b) Insolvency, bankruptcy, or dissolution of the other Party.
SIGNATURES
By signing below, the Parties agree to the terms of this Smart Contract Audit Engagement Letter, including all attached Exhibits.
AUDITOR:
Signature: [________________________________]
Printed Name: [________________________________]
Title: [________________________________]
Date: [__/__/____]
CLIENT:
Signature: [________________________________]
Printed Name: [________________________________]
Title: [________________________________]
Date: [__/__/____]
EXHIBIT A: SCOPE OF WORK DETAILS
A.1 Smart Contract Technical Specifications
Contract 1:
| Field | Value |
|---|---|
| Contract Name | [________________________________] |
| File Name(s) | [________________________________] |
| Language / Version | [________________________________] (e.g., Solidity 0.8.24) |
| Blockchain | [________________________________] |
| Estimated Lines of Code | [________________________________] |
| External Dependencies | [________________________________] |
| Token Standard(s) | ☐ ERC-20 ☐ ERC-721 ☐ ERC-1155 ☐ ERC-4626 ☐ Other: [________________________________] ☐ N/A |
| Upgrade Pattern | ☐ Transparent Proxy ☐ UUPS ☐ Beacon ☐ Diamond (EIP-2535) ☐ Non-Upgradeable ☐ Other: [________________________________] |
| Access Control | ☐ Ownable ☐ AccessControl (Roles) ☐ Multisig ☐ Timelock ☐ Governor ☐ Other: [________________________________] |
| Oracle Integration | ☐ Chainlink ☐ Uniswap TWAP ☐ Pyth ☐ Custom ☐ None ☐ Other: [________________________________] |
Contract 2:
| Field | Value |
|---|---|
| Contract Name | [________________________________] |
| File Name(s) | [________________________________] |
| Language / Version | [________________________________] |
| Blockchain | [________________________________] |
| Estimated Lines of Code | [________________________________] |
| External Dependencies | [________________________________] |
| Token Standard(s) | ☐ ERC-20 ☐ ERC-721 ☐ ERC-1155 ☐ ERC-4626 ☐ Other: [________________________________] ☐ N/A |
| Upgrade Pattern | ☐ Transparent Proxy ☐ UUPS ☐ Beacon ☐ Diamond (EIP-2535) ☐ Non-Upgradeable ☐ Other: [________________________________] |
| Access Control | ☐ Ownable ☐ AccessControl (Roles) ☐ Multisig ☐ Timelock ☐ Governor ☐ Other: [________________________________] |
| Oracle Integration | ☐ Chainlink ☐ Uniswap TWAP ☐ Pyth ☐ Custom ☐ None ☐ Other: [________________________________] |
(Duplicate for additional contracts as needed.)
A.2 Development Environment
| Component | Specification |
|---|---|
| Framework | ☐ Hardhat ☐ Foundry ☐ Anchor ☐ Truffle ☐ Brownie ☐ Other: [________________________________] |
| Compiler Version | [________________________________] |
| Optimizer Settings | Runs: [____] Enabled: ☐ Yes ☐ No |
| Test Framework | [________________________________] |
| Test Coverage | [____]% |
| CI/CD Pipeline | ☐ Yes ☐ No — Tool: [________________________________] |
A.3 Previous Audits
| Auditor | Date | Commit Hash | Critical | High | Medium | Low | Status |
|---|---|---|---|---|---|---|---|
| [________________________________] | [__/__/____] | [________________________________] | [____] | [____] | [____] | [____] | ☐ All Resolved ☐ Open Items |
| [________________________________] | [__/__/____] | [________________________________] | [____] | [____] | [____] | [____] | ☐ All Resolved ☐ Open Items |
A.4 Specific Areas of Concern
Client identifies the following specific areas of concern for prioritized review:
| # | Area of Concern | Description |
|---|---|---|
| 1 | [________________________________] | [________________________________] |
| 2 | [________________________________] | [________________________________] |
| 3 | [________________________________] | [________________________________] |
EXHIBIT B: SEVERITY CLASSIFICATION MATRIX
B.1 Severity Determination
Severity is determined by the intersection of Impact and Likelihood:
| High Likelihood | Medium Likelihood | Low Likelihood | |
|---|---|---|---|
| Critical Impact | Critical | Critical | High |
| High Impact | Critical | High | Medium |
| Medium Impact | High | Medium | Low |
| Low Impact | Medium | Low | Informational |
B.2 Impact Definitions
| Impact Level | Description |
|---|---|
| Critical | Total loss of funds; complete protocol compromise; irreversible state corruption; theft of all user deposits |
| High | Significant loss of funds (>10% TVL); major functionality impairment; unauthorized minting/burning of tokens; permanent denial of service |
| Medium | Limited loss of funds (<10% TVL); temporary denial of service; unauthorized access to non-critical functions; griefing attacks |
| Low | Negligible financial impact; cosmetic issues; informational leakage; suboptimal gas usage |
B.3 Likelihood Definitions
| Likelihood Level | Description |
|---|---|
| High | Easily exploitable by any external attacker; no special conditions required; economically incentivized |
| Medium | Exploitable under specific conditions (e.g., timing, sequence, market state); requires moderate skill or resources |
| Low | Requires highly specific and unlikely conditions; limited economic incentive; requires privileged access or unlikely chain of events |
B.4 SWC and OWASP Mapping
All Findings shall include, where applicable:
(a) SWC Identifier — reference to the Smart Contract Weakness Classification Registry (e.g., SWC-107: Reentrancy);
(b) OWASP Smart Contract Top 10: 2026 Category — mapping to the relevant OWASP category (e.g., SC01: Access Control Vulnerabilities); and
(c) CWE Identifier — reference to the MITRE Common Weakness Enumeration where a general software weakness is identified.
B.5 Common Vulnerability Checklist
The Audit shall include assessment against (at minimum) the following vulnerability classes:
☐ Reentrancy (SWC-107)
☐ Integer Overflow / Underflow (SWC-101)
☐ Unchecked External Calls (SWC-104)
☐ Access Control Bypass (SWC-105)
☐ Front-Running / MEV Extraction
☐ Flash Loan Attack Vectors
☐ Oracle Manipulation / Price Feed Attacks
☐ Denial of Service (SWC-113, SWC-128)
☐ Signature Malleability (SWC-117)
☐ Centralization / Single Point of Failure Risks
☐ Upgrade Safety / Storage Collision (SWC-124)
☐ Gas Griefing / Block Gas Limit (SWC-128)
☐ Timestamp Dependence (SWC-116)
☐ Randomness Issues (SWC-120)
☐ Delegatecall Injection (SWC-112)
☐ Uninitialized Storage / Proxy Pointers
☐ Logic Errors and Business Rule Violations
☐ Token Standard Compliance Deviations
☐ Cross-Chain Bridge Vulnerabilities (if applicable)
☐ Governance Attack Vectors (if applicable)
PRACTICE NOTES
Industry Standards and Frameworks
-
OWASP Smart Contract Top 10: 2026. The latest edition of the OWASP Smart Contract Top 10 reflects a maturing threat landscape in which attackers increasingly chain vulnerabilities together — combining flash loans with oracle manipulation or exploiting weak upgrade governance — to maximize financial damage. Audit engagements should reference this standard as a baseline for vulnerability assessment.
-
SWC Registry. The Smart Contract Weakness Classification Registry provides a standardized taxonomy of known vulnerabilities in smart contracts. Each weakness is assigned a unique SWC identifier, enabling consistent classification across audit reports and facilitating comparison between audits.
-
OWASP SCSVS. The Smart Contract Security Verification Standard provides a comprehensive checklist of security requirements organized by verification levels, enabling systematic assessment of smart contract security posture.
-
OWASP Top 15: Web3 Attack Vectors. This companion resource to the Smart Contract Top 10 addresses broader Web3 security concerns, including key management, bridge security, and off-chain component risks.
-
Engagement Scope Best Practices. The scope of a smart contract audit should be clearly defined at the commit-hash level. Any code changes after the audited commit require a differential review or re-audit. The audit report should clearly state the commit hash, compiler version, and optimizer settings under which the code was reviewed.
-
Limitation of Liability Considerations. Smart contract audit engagements carry unique risk given the potential magnitude of losses from exploits. Liability caps are standard in the industry and should be negotiated with an understanding that no audit can guarantee the absence of all vulnerabilities.
-
Responsible Disclosure. Industry practice supports responsible disclosure of critical vulnerabilities to protect user funds, balanced against the client's right to remediate before public disclosure. The embargo period should be negotiated based on the complexity of remediation and whether the protocol is live.
SOURCES AND REFERENCES
- OWASP Smart Contract Top 10: 2026 — https://scs.owasp.org/sctop10/
- OWASP Smart Contract Security Verification Standard (SCSVS) — https://owasp.org/www-project-smart-contract-security-verification-standard/
- SWC Registry — https://swcregistry.io/
- OWASP Smart Contract Security — https://scs.owasp.org/
- NIST Cybersecurity Framework — https://www.nist.gov/cyberframework
- Defend Trade Secrets Act (18 U.S.C. § 1836 et seq.)
- Computer Fraud and Abuse Act (18 U.S.C. § 1030)
This template is provided for informational purposes only and should be reviewed and customized by qualified legal counsel familiar with professional services agreements, blockchain technology, and applicable regulatory requirements.
END OF DOCUMENT
About this template
- Last updated
- March 19, 2026
- Jurisdiction
- All states
- Category
- Contracts & Agreements
Legal authority
- UCC Article 2 (Goods) and Common Law (Services)
- OWASP Smart Contract Top 10: 2026
- SWC Registry (Smart Contract Weakness Classification)
- OWASP Smart Contract Security Verification Standard (SCSVS)
- NIST Cybersecurity Framework
- 18 U.S.C. § 1836 (Defend Trade Secrets Act — federal civil proceedings and remedies)
- Computer Fraud and Abuse Act, 18 U.S.C. § 1030 (authorized access scope)
A contract is a written record of what two or more parties agreed to and what happens if someone does not follow through. Clear language, defined terms, and clean signature blocks keep disputes small and enforceable. The most common mistakes in contracts come from vague promises, missing details about timing or payment, and skipping standard protective clauses like governing law and dispute resolution.
Not legal advice
This template is provided for informational purposes. We recommend having an attorney review any legal document before signing, especially for high-value or complex matters.
Checked against the law it cites
The statutes this template relies on are listed under Legal authority.
18 U.S.C. § 1836(b)(1) (checked September 4, 2026): "An owner of a trade secret that is misappropriated may bring a civil action under this subsection if the trade secret is related to a product or service used in, or intended for use in, interstate or foreign commerce."
Draft your Smart Contract Audit Engagement Letter in the editor
Answer a few questions, let the AI editor draft each section from your answers, review it, and download Word and PDF. $99 one time, or $249 per month for every document and every Ezel app.