News for hackers. Stuff that matters.
Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by KiranRao0 on Wednesday January 05, 2022 @11:44PM (#29819504)
Definitely a cool project. And I agree this is a bad idea in practice for many reasons.

But I wasn't aware that TOTP was brute-forcable. What is the mechanism to achieve this (given only a set of IP address and their timestamps)?

Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by kadoban on Wednesday January 05, 2022 @11:50PM (#29819543)
TOTP implemented this way is brute-forceable because you can just connect to all of the IP addresses (or pick however many connections you can practically make in 60 seconds and hit those).

There's no way to lock out after N failures or even to rate limit attempts.

Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by yardstick on Thursday January 06, 2022 @12:34AM (#29819874)
> There's no way to lock out after N failures or even to rate limit attempts.

Given it’s a single machine with a /80, couldn’t the machine rate limit attempts to any IP in the /80? Ie rate limit by source, and separately rate limit by destination. Cover both bases.

Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by kadoban on Thursday January 06, 2022 @12:48AM (#29819937)
The way I understood it, only the correct IP address would even be connected to anything, the rest would just fail. You probably could do something like that, yeah.
Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by yardstick on Thursday January 06, 2022 @01:52AM (#29820261)
Good point, just had a look at the code. The NF queue will receive packets from all IPs in the /80 and they are all processed and validated by the ghost program that reads from the queue. So it could do the rate limiting there with full visibility.

https://github.com/aidansteele/ipv6-ghost-ship/blob/main/mai...

Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by jacob019 on Thursday January 06, 2022 @12:05AM (#29819661)
A /80 prefix is equivalent to 65536 ipv4 Internets. Not so brute-forceble.
Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by lmz on Thursday January 06, 2022 @12:17AM (#29819737)
The random part is six digits. I'd say pretty brute-forceable.
Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by AaronFriel on Thursday January 06, 2022 @02:45AM (#29820579)
The TOTP spec (rfc6238) allows up to 10 digits or 10 billion unique values, a bit bigger than IPv4's space.

Running anything like fail2ban on IP address misses would stop brute forcing in its tracks.

Re:IPv6-ghost-ship: Using TOTP as part of an AWS EC2 IPv6 ad... by kadoban on Thursday January 06, 2022 @03:00AM (#29820673)
Both good ideas.

None of this fixes even a passive mitm attack, but it's still better.