Skip to content

feat(scan): warn on unusual change/receive derivation index#16

Open
odudex wants to merge 1 commit intomasterfrom
unusual_address_path
Open

feat(scan): warn on unusual change/receive derivation index#16
odudex wants to merge 1 commit intomasterfrom
unusual_address_path

Conversation

@odudex
Copy link
Copy Markdown
Owner

@odudex odudex commented Apr 7, 2026

Addresses #11

Mitigates a ransom attack where a malicious coordinator crafts a PSBT with change at a non-hardened but extremely large index (e.g. m/.../1/2147483647). Script re-derivation still validates the output belongs to the user's key, but typical recovery wallets use a gap limit ~20 and would never rediscover the UTXO, effectively burning the funds.

Display an inline red warning below any Receive or Change row whose address index exceeds UNUSUAL_DERIVATION_INDEX (10000), so the user can reject the signature before it is too late.

Mitigates a ransom attack where a malicious coordinator crafts a PSBT with change at a non-hardened but extremely large index (e.g. m/.../1/2147483647). Script re-derivation still validates the output belongs to the user's key, but typical recovery wallets use a gap limit ~20 and would never rediscover the UTXO, effectively burning the funds.

Display an inline red warning below any Receive or Change row whose address index exceeds UNUSUAL_DERIVATION_INDEX (10000), so the user can reject the signature before it is too late.
@odudex odudex force-pushed the unusual_address_path branch from a84eb78 to b602cd9 Compare April 7, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant