News for hackers. Stuff that matters.
Re:Hijack of Amazon’s domain service used to reroute web tra... by rocqua on Tuesday April 24, 2018 @06:10PM (#16917091)
Not an expert either, but I think it was slightly different.

Firstly, I believe BGP hijacking works by announcing a more specific prefix rather than path-length. That is to get to 3.3.3.3 A 3.3.0.0/16 route takes precedence over a 3.0.0.0/8 route.

Secondly, this attack did not obtain a valid cert. They probably could have using spoofing (either of MX or just of A records and using lets-encrypt), but they did not. This might be because the BGP hijack did not affect any CA, or it might just have been laziness.

Re:Hijack of Amazon’s domain service used to reroute web tra... by chatmasta on Tuesday April 24, 2018 @06:12PM (#16917110)
Yeah you're correct. There was a great defcon presentation on this in 2015: https://www.blackhat.com/docs/us-15/materials/us-15-Gavriche...

Really the hardest part of the attack, and what makes it so infrequent, is the social engineering aspect of registering the AS and getting an influential peer to accept your advertisements. To really cover your tracks you would need fake identities, fake businesses, fake bank accounts...

Re:Hijack of Amazon’s domain service used to reroute web tra... by vasilipupkin on Wednesday April 25, 2018 @09:02AM (#16921121)
what's an AS?
Re:Hijack of Amazon’s domain service used to reroute web tra... by chatmasta on Wednesday April 25, 2018 @10:16AM (#16921692)
AS = Autonomous System (see Wikipedia). This is the corporation or entity to which an IP prefix (min /24) is registered, and which shows up in queries on sites like ipinfo.io.

BGP Path to Target IP prefix = ordered list of autonomous systems to reach target IP prefix

The point of BGP is to find the shortest AS path to an IP. Each AS has at least one router, and each router has at least one other AS peer. A router will forward the packet as far as it can given the peers it knows, until the AS list is length 0, at which point the controlling AS routes traffic to its destination.

Re:Hijack of Amazon’s domain service used to reroute web tra... by notriddle on Wednesday April 25, 2018 @10:35AM (#16921847)
Autonomous System.

Basically, a top level Internet shard. You need to become a Real ISP to pull off this attack.

Re:Hijack of Amazon’s domain service used to reroute web tra... by chatmasta on Wednesday April 25, 2018 @10:51AM (#16921997)
That may be technically true, but not by any layman’s definition of an ISP. An AS can be a tiny company (I’ve been one) as long as it has some IP space SWIPed (registered) to it with ARIN/RIPE. All you need is to fill out a form.

Then you need to find other ASes to peer with you of course.

Also note that technically all you need is the ability to advertise routes. That could be mutually exclusive from AS status if your server provider is willing to advertise routes from their AS on your behalf (like vultr does, I think). In that case the provider is acting irresponsibly and should validate the routes.

Re:Hijack of Amazon’s domain service used to reroute web tra... by plange on Tuesday April 24, 2018 @06:33PM (#16917244)
Confusion prevention squad:

> That is to get to 3.3.3.3 A 3.3.0.0/16 route takes precedence over a 3.0.0.0/32 route.

I think you mean:

> That is to get to 3.3.3.3 A 3.3.0.0/16 route takes precedence over a 3.0.0.0/8 route.

a /32 is _more_ specific.

Re:Hijack of Amazon’s domain service used to reroute web tra... by rocqua on Tuesday April 24, 2018 @06:37PM (#16917274)
Thanks, you are totally right. Not sure what caused that brain fart. Luckily, I could still edit.