A great many smart contract auditors walk into a cross-chain protocol expecting a single-chain DeFi contract wearing a few extra layers. The engagement model itself sets up the blind spot. A firm steeped in EVM bytecode is excellent at spotting reentrancy, storage collisions, and integer overflow in Solidity. It is on much weaker ground when asked how that same contract behaves against a Bitcoin HTLC, running on a chain with no Turing-complete scripting layer and a different set of assumptions underneath.
Where the Standard Scope Falls Short
Picture the typical engagement. One codebase, a Solidity or Rust contract, one deployment target. The reviewer checks internal logic, access control, token accounting, and the usual catalogue of vulnerability classes. Nothing wrong with that, as far as it reaches.
A cross-chain HTLC protocol runs in two execution environments at minimum, each with its own security model. Bitcoin Script is not Solidity, and the Bitcoin node enforces nothing the EVM would handle natively. Time itself is counted in a different way. Transaction malleability still needs deliberate handling even though SegWit addressed most of it. Then there is the coordinator logic on the application layer, the piece joining both sides, which may not live on a chain at all.
Auditing the EVM side alone does not audit the cross-chain protocol. It audits one half of one layer. Our own pre-launch review ran into the boundary directly: we scoped the Bitcoin side as a separate exercise and discovered that timeout assumptions baked into the EVM contract mishandled Bitcoin block-time variance under congestion.
Timeout Windows and Their Edge Cases
The timelock is the safety valve that returns funds when the counterparty fails to reveal the preimage in time. Get the window wrong and you invite one of two failures, and a proper audit probes both.
Too short a timelock lets the initiator's lock expire before the counterparty has had a fair chance to reveal and claim. Bitcoin mainnet makes this acute. Ten minutes is an average block interval, never an upper bound, so under moderate congestion three blocks can stretch to 45 minutes. A 30-minute absolute timelock is simply not safe there. Timeout values have to survive realistic worst-case confirmation windows, not the mean.
Too long a timelock breeds a quieter problem: capital sitting idle. A swap that falls into a failure path holds its funds until expiry, and across many concurrent swaps the stranded capital adds up fast. Choosing the balance means weighing the confirmation target, the chain, and the size profile of swaps the protocol typically carries.
What the audit should deliver is a full map of timeout relationships: initiator lock expiry, counterparty lock expiry, the margin between expiry and expected reveal, and the confirmation-time distribution of every chain in scope. Any timeout that cannot outlast the fat tail of those distributions earns a finding.
Griefing by Liquidity Providers
When third parties supply the counterparty side of swaps, they hold a privileged position. They can complete a swap or let it rot, and they surrender no stake for choosing the second path. That is a griefing vector, and it exists specifically where the initiator and the liquidity provider are different parties.
The crude version goes like this. A provider sees a request, locks the opposite leg, then withholds the preimage until the timelock burns down. The initiator waits, the swap stalls, and their funds sit locked for the duration. The provider pays only the opportunity cost of the locked capital, nothing permanent.
A cleverer variant targets size bands or chain pairs. A provider degrades service for a chosen class of users or use cases while rarely targeting anyone outright, by letting swaps in that profile fail. Proof is harder, detection is harder, and it does not look like a denial of service at all.
Mitigations cluster around reputation scores for providers, economic penalties for a missed reveal that go beyond the locked capital, and circuit breakers that steer traffic away from providers with high failure rates. The audit's job is to confirm the mechanisms exist, work as designed, and make griefing cost more than it could ever return.
Ordering Races Between Transactions
Multiple transactions, multiple chains, timing dependencies between them: that arrangement opens race conditions a single-chain protocol never faces.
The reveal transaction is the usual target. The moment the initiator broadcasts the preimage, it is visible in the mempool, well before confirmation. A watcher can lift the preimage, then race to claim the counterparty leg ahead of the initiator's own claim. On chains that order by fee, an attacker with money can jump the queue simply by paying more.
HTLC structure blunts this by requiring both the preimage and the authorised claimant's signature. The preimage alone buys nothing. Even so, implementation corners exist where the audit needs to verify that the binding is airtight on every code path.
A second ordering concern sits in the two locks themselves. Should the counterparty's lock confirm first, it hangs there with nothing guaranteeing a return. Design should shrink that window: a protocol ought to block counterparty locks until the initiator's lock reaches a set confirmation depth, and the audit should confirm that it does.
Why Bitcoin Script Needs Its Own Reviewer
A finish-line audit of a Bitcoin cross-chain protocol demands reviewers fluent in Bitcoin Script. That requirement excludes most smart contract firms, whose depth is in EVM bytecode and, at times, WASM or Rust on neighbouring chains.
EVM specialists still contribute plenty to a cross-chain review; their findings are real. But no audit that skips a Script-level reading of the HTLC spending conditions can claim to cover the protocol's security. Bitcoin brings its own failure classes: opcodes used wrongly, sighash types left unspecified, Script branches that permit unplanned spending under odd inputs.
Our practice treats the Bitcoin Script side and the EVM side as distinct audit scopes staffed by different specialists, then adds a third review at the integration layer where the two meet. That third pass is where the subtlest issues have turned up, because it is where the assumptions of one environment collide with the assumptions of another.
Security as a Process, Not an Event
An audit freezes a moment. Protocols do not freeze: chains get added, timeout parameters move, provider onboarding shifts, the application layer evolves. Every one of those changes can widen the attack surface.
Teams weighing cross-chain infrastructure should ask more than whether an audit exists. They should ask what happens the month after. We publish our Bitcoin Script spending conditions and HTLC parameter logic for anyone to inspect. Every parameter change passes internal review before production. Public disclosures of new attack classes against HTLC protocols get tracked and tested against our implementation.
No process of this kind promises a bug-free system. What it builds is security review woven into development, instead of a gate that closes at launch and never reopens. Anyone evaluating a cross-chain protocol for integration should look past the audit certificate and ask whether a credible process exists for absorbing the attack-surface changes each update brings.