36482 only raises the cost of the active attack slightly, it doesn’t prevent it.
This is the adapted attack (it is actually exercised in the test of 36482):
- Plant tx P, spending attacker utxo A and paying the victim’s address.
- Replace P with tx1, spending A plus another attacker utxo B at a higher feerate.
- Replace tx1 with tx2, spending only B. Now A is unspent again and P is valid but in no mempool.
- The victim’s wallet still holds P as unconfirmed (replaced, not abandoned or block-conflicted) and broadcasts it 12-36h later to the mempool (where it is new) and then to peers.
Both today and with the fix, the attacker needs the infra of being connected to each reachable node.
Today, most other nodes will still have the tx in their mempool and won’t request it from the rebroadcaster (but not all of them due to natural network churn!), while with 36482, most nodes will have replaced it and therefore forward the rebroadcast - so the timing in identifying the actual source could be more tricky, and you might need multiple probes, raising the cost. But it doesn’t change the attack substantially in my opinion.
So 36482 alone is not preventing what I think is the most concerning attack: against an unsuspecting node runner who just passively runs bitcoin core with a loaded wallet, and can get dusted for transactions made years ago.
I therefore think that in addition to 36482, we should make rebroadcast of transactions that pay the wallet opt-in only (36398 in combination with 36481). Let the sender do the automatic rebroadcast, and if they don’t but you actually want to get paid (and aren’t getting dusted) you need to trigger the rebroadcast manually.