Summary
100% of all REPORTED Findings have been addressed
- 0Risk Accepted
- 5Acknowledged
- 2Solved
- 7All Findings
- Critical0
- High0
- Medium0
- Low1
- 1Solved
- Informational6
- 5Ack.
- 1Solved
Introduction#
Chainlink Labs engaged Halborn to conduct a security assessment of several packages for the Aptos blockchain, beginning on September 8th, 2025, and ending on September 12th, 2025. This security assessment focused on the smart contracts within the chainlink-aptos GitHub repository; commit hashes and further details can be found in the Scope section of this report.
The engagement was performed to validate that the V2 migration and configuration changes are upgrade-safe and to identify functional and security issues introduced by the change.
Assessment Summary#
The team at Halborn assigned one full-time security engineer to verify the security of the smart contracts. The security engineer is a blockchain and smart-contract security expert with advanced penetration testing, smart-contract hacking, and deep knowledge of multiple blockchain protocols.
The purpose of this assessment is to:
Ensure that smart contract functions operate as intended.
Identify potential security issues with the smart contracts.
In summary, Halborn identified some improvements to reduce the likelihood and impact of risks, which were partially addressed by the Chainlink team. The main ones were the following:
Provide explicit router_state_address values as migration inputs for each destination. Alternatively, ensure ccip_send is gated to return a clear "not configured" error until a non-zero, non-state-address value is set.Impose a reasonable upper bound on fee_tokens.length() or provide documented batching guidance and tooling to process withdrawals in smaller chunks.Use error::permission_denied(E_MUST_BE_CALLED_BY_ROUTER) instead of error::invalid_argument(...) for router authorization checks in both V1 and V2 ccip_send.
Test Approach and Methodology#
Halborn performed a combination of the manual view of the code and automated security testing to balance efficiency, timeliness, practicality, and accuracy regarding the scope of the smart contract assessment. While manual testing is recommended to uncover flaws in logic, process, and implementation, automated testing techniques help enhance the coverage of smart contracts. They can quickly identify items that do not follow security best practices. The following phases and associated tools were used throughout the term of the assessment:
Research into the architecture, purpose, and use of the platform.
Manual code review and walkthrough.
Manual assessment of the critical Move variables and functions in scope to identify any vulnerability classes related to arithmetic or logic.
Cross-contract call controls.
Logical controls related to the platform architecture.
Review unit tests.
Risk Methodology#
4.1 EXPLOITABILITY
Attack Origin (AO):
Attack Cost (AC):
Attack Complexity (AX):
Metrics:
| EXPLOITABILITY METRIC () | METRIC VALUE | NUMERICAL VALUE |
|---|---|---|
| Attack Origin (AO) | Arbitrary (AO:A) | 1 |
| Specific (AO:S) | 0.2 | |
| Attack Cost (AC) | Low (AC:L) | 1 |
| Medium (AC:M) | 0.67 | |
| High (AC:H) | 0.33 | |
| Attack Complexity (AX) | Low (AX:L) | 1 |
| Medium (AX:M) | 0.67 | |
| High (AX:H) | 0.33 |
4.2 IMPACT
Confidentiality (C):
Integrity (I):
Availability (A):
Deposit (D):
Yield (Y):
Metrics:
| IMPACT METRIC () | METRIC VALUE | NUMERICAL VALUE |
|---|---|---|
| Confidentiality (C) | None (C:N) | 0 |
| Low (C:L) | 0.25 | |
| Medium (C:M) | 0.5 | |
| High (C:H) | 0.75 | |
| Critical (C:C) | 1 | |
| Integrity (I) | None (I:N) | 0 |
| Low (I:L) | 0.25 | |
| Medium (I:M) | 0.5 | |
| High (I:H) | 0.75 | |
| Critical (I:C) | 1 | |
| Availability (A) | None (A:N) | 0 |
| Low (A:L) | 0.25 | |
| Medium (A:M) | 0.5 | |
| High (A:H) | 0.75 | |
| Critical (A:C) | 1 | |
| Deposit (D) | None (D:N) | 0 |
| Low (D:L) | 0.25 | |
| Medium (D:M) | 0.5 | |
| High (D:H) | 0.75 | |
| Critical (D:C) | 1 | |
| Yield (Y) | None (Y:N) | 0 |
| Low (Y:L) | 0.25 | |
| Medium (Y:M) | 0.5 | |
| High (Y:H) | 0.75 | |
| Critical (Y:C) | 1 |
4.3 SEVERITY COEFFICIENT
Reversibility (R):
Scope (S):
Metrics:
| SEVERITY COEFFICIENT () | COEFFICIENT VALUE | NUMERICAL VALUE |
|---|---|---|
| Reversibility () | None (R:N) | 1 |
| Partial (R:P) | 0.5 | |
| Full (R:F) | 0.25 | |
| Scope () | Changed (S:C) | 1.25 |
| Unchanged (S:U) | 1 |
| Critical | High | Medium | Low | Informational |
| 9 - 10 | 7 - 8.9 | 4.5 - 6.9 | 2 - 4.4 | 0 - 1.9 |
Scope#
Assessment Summary & Findings Overview#
# | Title | Severity | Score | Status |
|---|---|---|---|---|
| Post-migration default router_state_address disables sends | Low | 2.5 | Solved09/22/2025 | |
| Unbounded input size in withdraw_fee_tokens can lead to gas-heavy calls | Informational | 1.9 | Acknowledged09/22/2025 | |
| Overly permissive error classes for router authorization failures | Informational | 1.3 | Solved09/22/2025 | |
| No non-zero checks for router/router_state_address on updates | Informational | 0.8 | Acknowledged09/22/2025 | |
| Permissionless fee withdrawal enables griefing/spam and timing manipulation | Informational | 0.8 | Acknowledged09/22/2025 | |
| Allowlist admin can be set to the zero address | Informational | 0.3 | Acknowledged09/22/2025 | |
| Fee withdrawal occurs prior to router/allowlist authorization | Informational | 0.0 | Acknowledged09/22/2025 |
Findings & Tech Details#
Description
Recommendation
Description
Recommendation
Remediation Comment
Description
Recommendation
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Disclaimer#
Halborn strongly recommends conducting a follow-up assessment of the project either within six months or immediately following any material changes to the codebase, whichever comes first. This approach is crucial for maintaining the project’s integrity and addressing potential vulnerabilities introduced by code modifications.
