←back to thread

1369 points universesquid | 1 comments | | HN request time: 0s | source
Show context
DDerTyp ◴[] No.45170133[source]
One of the most insidious parts of this malware's payload, which isn't getting enough attention, is how it chooses the replacement wallet address. It doesn't just pick one at random from its list.

It actually calculates the Levenshtein distance between the legitimate address and every address in its own list. It then selects the attacker's address that is visually most similar to the original one.

This is a brilliant piece of social engineering baked right into the code. It's designed to specifically defeat the common security habit of only checking the first and last few characters of an address before confirming a transaction.

We did a full deobfuscation of the payload and analyzed this specific function. Wrote up the details here for anyone interested: https://jdstaerk.substack.com/p/we-just-found-malicious-code...

Stay safe!

replies(5): >>45170393 #>>45170458 #>>45172015 #>>45173594 #>>45180351 #
__MatrixMan__ ◴[] No.45173594[source]
We should be displaying hashes in a color scheme determined by the hash (foreground/background colors for each character determined by a hash of the hash, salted by that character's index, adjusted to ensure sufficient contrast).

That way it's much harder to make one hash look like another.

replies(2): >>45173822 #>>45174403 #
9dev ◴[] No.45174403[source]
As someone with red/green vision deficiency: if you do this, please don’t forget people like me are unable to distinguish many shades of colours, which would be very disadvantageous here!
replies(2): >>45174951 #>>45175869 #
AaronAPU ◴[] No.45174951[source]
It’s not like it would hurt you for there to be supplementary info others can see but you can’t.
replies(2): >>45177331 #>>45179602 #
macintux ◴[] No.45177331[source]
And it's not like it would hurt the developers to be conscious of their choices.
replies(1): >>45178678 #
zarzavat ◴[] No.45178678[source]
There's actually nothing the developers can do about this particular issue other than to display all colors and allow colorblind people to see the colors that they can see.
replies(2): >>45178825 #>>45180136 #
bbarnett ◴[] No.45178825[source]
For the newly made up feature, which doesn't exist yet, but already has an issue?

Simple. Instead of forcing colour, one could retain a no colour option maybe?

Done. Solved.

Everything should have this option. I personally have no colour vision issues, other than I find colour annoying in any output. There's a lot who prefer this too.

replies(3): >>45179578 #>>45180179 #>>45183283 #
1. ◴[] No.45179578[source]