start	end	text
0	1840	Okay, thank you everyone.
1840	4220	So let's start the talk.
4400	7320	Hi, I'm Su Hao from Taiwan.
7640	17880	This is my first time to present at DEF CON, and also my first time at DEF CON, and also my first time at Lagos, and not my first time in US.
18760	22860	Okay, so thank you all for joining my session.
23140	31440	So I'm excited to share some practical Red Team networking techniques with you today.
31600	35160	So I guess we can get started.
37130	38650	Okay.
39250	48370	So now let me take you into a typical day in my IT life, seeing my intranet LDAP server log.
48370	51490	And there's a login from Frank.
52370	55850	And there's a login from Bob.
56790	62950	And then, wow, there's an invalid login from a public IP, 9.9.9.9.
64830	69110	And how and why this can happen?
69110	73630	This is an intranet server without no destination NAT.
74430	79670	So, okay, as an IT, I'll ban that bad IP.
81190	86790	But a second later, there's another IP attacking my server again.
86790	88990	So how is that possible?
88990	95210	That someone can use a public IP address to attack our intranet server.
95210	99530	This is a key point that we are going to discuss in this talk.
99530	107050	This presentation will explore ways of lower-level network penetration through virus of internal protocol.
107190	118910	This technique can be used for advanced Red Team exercise or can be blocked before they are abused by malicious attackers in your corporate networks.
118930	124050	Before we dive into the details, let me briefly introduce myself.
124310	127910	Hi, I'm Su Hao Tao from Taiwan.
127910	132230	And I now is a Red Teamer Trade Researcher at Tremyco.
132230	138230	And I graduated from Tsinghua University in Taiwan and a former HAC-SERC president.
138230	144270	I love to play something with networks and network protocols.
144270	153570	I started this research for fun and it turned out that it is of great importance to general network security.
153630	161350	So I'm sharing my GitHub account here where you can find all the tools and materials of this research.
162210	165010	So this is today's agenda.
165010	174170	First, I will share some new Red Team techniques using IP spoofing and how we can use that for initial access.
174170	185410	Then, I will reveal the nightmare of VXLAN, including internal hijacking and how buggy routing protocols can lead to IP hijacking and even domain compromise.
185550	190930	And finally, I will wrap up with some key takeaways before we move on to the Q&A.
191830	199910	So first, I want to talk about some spoofing source IP in the public network, also known as WAN.
200790	207830	We all know that even in recent years, package spoofing is still possible on public networks.
207930	215210	Please know that all the IP addresses are example IP addresses, not any common or public IPs.
215210	224290	An attacker with the IP address 2.2.2.2 can send a DNS request with a source IP of 3.3.3.3.
224290	226930	That does not belong to itself.
229860	240720	And WAN.1.1 will receive the package and it has no way to verify whether the package is a spoofed package or a valid one.
240720	246260	And it will send a DNS response to the 3.3.3.3.
247020	253900	So the 3.3.3.3 will receive the DNS response with our making a request.
253900	257660	This is a typical DDoS, DNS amplification attack.
257660	259720	And it still works nowadays.
260460	265200	Next, I want to dive into the company network infrastructure.
265200	272340	How IT will block a computer from accessing the public network for security purposes.
272340	283580	So, for the best practice, when a package is sent from a crucial server to a public IP, it will arrive to the firewall.
283580	286160	And the firewall will drop the package.
287040	293160	However, we see some IT just disabled the NAT mechanism on the router.
293300	298360	So the package will still forward out to the wide area network.
298360	307820	And the remote server will see and receive that package and see that source IP is not valid.
308200	312560	So it will either drop that package or respond to an unknown address.
312560	315200	And the client will not receive the message.
316520	320180	So when your code is completed, it's a mess, but it still works.
320180	323220	Because the client still does not receive any response.
323220	326520	So the client is not connected to the internet.
327420	336980	So, if we consider both situations together, what would happen if we spoofed a source IP address on the intranet?
338220	341620	Imagine a rating scenario.
341620	348540	The right attacker hacked a company's device, like .1, .3.
348820	353880	It can create a tunnel between the C2 server and the compromised device.
353880	363440	After that, it can create a DNS request through the tunnel, which source IP is the attacker public IP, which is 9.9.9.9.
364600	371780	When the package arrives the compromised device, it will forward the package to the company intranet router.
374160	383080	After the router will receive the package, it will look up its routing table and forward the package to the second victim.
385220	398620	As we know, if there is no firewall for the second victim, .1, .2, the response package will send back to the attacker through the public intranet.
399760	407460	Then, the attacker will receive the package, when there is no evidence that the package comes from .1, .3.
407460	417580	The entire TCP or UDB string only shows the IP source, IP is 9.9.9, and IP source 192.168.1.2.
418580	420980	So, why IR is hard?
420980	430280	In typical lateral movement attacks, the attacker used the IP address for previous compromised machine to target to the next system.
430280	442360	This means, when the alarm being triggered, an IR team could simply use network log to trace the attacker path from one compromised machine to the previous one.
443700	452460	The IR team could find the relevant log on the previous compromised machine and identify the initial access point.
453700	458600	And then, the IR team will shut down the entire attack chain step by step.
460300	467520	However, when spoofing techniques are involved, the source IP in the log will not be the previous compromised machine.
468540	472820	So, the IR team will not be able to find the attacker path.
472820	477480	They could only see a public IP is attacking their domain controller.
478940	493780	Thus, the previous compromised machine will not be caught even if the alarm has triggered and it can change to another public source IP to continue the attack chain if the source IP is banded.
495860	505660	Overlooking the attack path, the malicious package source and destination IPs only shows 9.9.9.9 and private IP 192.
505660	511940	Thus, no one will know the previous compromised machine is .1.3.
513100	521140	On the other hand, the terminal IP is HTTP traffic with a source IP of 7.7.7.7.
521320	533280	So, if the 9.9.9 is banded, the attacker can simply switch to another public IP and attack the same target or different target.
533280	542020	The IR team would need to check every router for layer 2 port locks in order to identify the compromised machine.
542260	547420	Also, the source MAC address can also be forged at the first hop.
550800	558160	So, what if the ISP filter package with a private source IP address?
558600	565040	We can use H.323 NAT pathway to enable a temporary destination NAT.
566180	573380	The attacker can send a special package to 9.9.9.9, which is its C2 server.
574000	586520	The NAT router will then create a temporary destination NAT rule for a private IP 1.3.4.4.5 and open to its public IP port 4.4.5.
587260	594820	This allows attackers to access private IP 1.3 on port 4.4.5 via 9.9.9.9.
596240	598860	So, here's a quick demo.
599360	604440	We can see that DAW 241 has a web server at 8080.
604440	612340	Initially, the attacker DAW 142 could not access the intranet web server via the public IP.
612540	623320	After we create a server and send a H.323 package from the compromised machine, we receive a package from the victim routers.
623320	632500	And we know that the router gives me a NAT port to connect to the intranet web server.
632960	639620	Also, we can see that the weblog source IP is from a public IP rather than a private IP.
639620	643520	So, let's create a breakpoint for the attack chain.
645260	656240	Another method discovered by Jimmy Cai involves spoofing a fake TCP sync package from the compromised device.
656300	667880	Using the next target IP as the source IP address, which is .1.3 for now, and sending it to the attacker's server.
667880	675040	The SNAT mechanism can be abused as a destination NAT to connect an intranet service.
676400	680120	So, this is a second quick demo.
680940	687220	We can see that the device at .35 has a web server running at 8080.
687220	695660	Initially, the attacker at .131 could not access the intranet web server via the public IP.
695660	708360	After we spoof a sync, sync package from the compromised device, using the next target IP and the port as source, and send it to the attacker's server.
708500	720040	The router will create a source destination NAT, but we can abuse this route as a de- uh, destination NAT.
720040	729020	So, we can, the SNAT mechanism will allow us to connect to the intranet web server.
729020	736720	Additionally, we can see that the web server log shows the source IP as a public IP, rather than the private one.
736720	740300	So, this also creates a breakpoint in the attack chain.
746100	753800	So, next, can we replace the tunnel with, uh, official VPN?
753800	756740	The answer is yes, in some cases.
757160	763010	There are many commercial SSL VPN solutions that can spoof the source IP from the client.
763400	772140	As shown in the diagram, commercial SSL VPN like those discussed at CyberSec 2025 may allow this behavior.
772660	782180	On the other hand, whether open source VPN solutions like WireGuard or OpenVPN are affected depends on their configuration.
784640	787380	So, where's the initial access?
787640	792080	Do we have a chance to do this without an initial foothold in intranet?
792080	795060	Can we use any existing tunnel?
796380	798520	The answer is yes.
798520	803380	On the internet exchange, everyone is on the same layer 2 network.
803420	810960	Attacker can set a private network range as the next hop to the router of the company you want to attack.
810960	818700	Also, the second method, we can abuse an existing tunnel such as GRE, IPIP, or SIP tunnel.
818700	822980	But again, a good firewall configuration could cause this fail.
823840	839180	So, in the intranet exchange, if we compromise a router at an intranet exchange, or we can just rent an IXP VM to assess an intranet exchange.
839180	845780	We can force a private subnet as the next hop to the victim company router.
845780	856540	And then, we can create a connection using our own public IP as the source IP and a private subnet as a destination.
856540	874800	The victim router will forward the package to its intranet via its routing table and the intranet target will respond to the attacker to its public IP because the package source IP is a public one.
876060	881240	On the other hand, we can abuse existing tunnel like GRE.
881560	883750	So first, what is a GRE?
885330	888930	GRE is a stateless layer 3 tunnel.
889090	900890	This is widely used because it is easy to set up by only setting its protocol GRE public IP and GRE interface IP and its routing table, which is the next hop.
902350	906410	Nowadays, there are still a lot of companies that use GRE.
906410	910330	Like Cloudflare, Magic Transcend, and its customer.
910330	914630	They can choose between IPsec or GRE, and IPsec is safer.
915350	924630	And AWS Transit Gateway also supports GRE tunnel, but sadly, it's used for internal networking only.
924910	935490	Also, Security Week reports that APT groups like Salt Typhoon create GRE tunnels to collect traffic from compromised devices.
935490	939930	Last, a lot of companies also use GRE tunnel, but we don't know.
941650	943730	So how does GRE work?
944010	953210	When a package wants to go through a GRE tunnel, the kernel will pack the packet with a GRE header and send it over the public internet.
953690	962090	At the receiver side, the GRE packet is unpacked and the inner packet is forward according to its routing table.
962090	972590	GRE is stateless and doesn't provide any encryption, which means it's possible for everyone can spoof a GRE packet via a public network.
973710	984430	For example, a private IP 1.2 wants to send a packet to another site, .2.2.
984430	987970	The packet will send to its default gateway.
989770	1000190	And because it is a GRE tunnel, the gateway router will add a GRE header to the packet and then send it through the public internet.
1001330	1012170	After a GRE packet arrives at 2.2.2, it will remove the GRE header and forward the inner packet according to its routing table.
1015350	1019790	And then the 2.2.2 receives the packet.
1019790	1025410	And if it wants to respond to the packet, the vice versa.
1026230	1041950	The packet will send back to its default gateway and add the GRE header and send back to the 1.1.1 router and remove the GRE header and send it back to the 1.2.
1044170	1050170	So, how do we find a GRE tunnel?
1050630	1052730	We can use OSINT techniques.
1052730	1062390	For example, we can search for a net floor dashboard like a photo on Google and filter for GRE traffic.
1062770	1067830	This way we can obtain the IP address on both ends of the tunnel.
1068170	1070810	Other OSINT techniques can also help too.
1073130	1081390	Also, we can use GRE spoofing techniques to scan for existing GRE tunnels.
1081770	1088050	First, we can create a GRE tunnel using the command provided above.
1088930	1100340	Then we can craft a GRE packet with a spoofed source IP address that does not belong to us and send it over the public network to the victim.
1100340	1117520	If the victim has a GRE peer conflict with the GRE packet source IP, for example, 1.1.1, it will decapsulate the inner packet and process it according to its routing table and forward to the inner packet.
1118920	1127540	So, we can create and send many packets with different source IP addresses to proof of the correct victim peer.
1129300	1137520	If the victim does not recognize the source IP as a known peer, it will drop the packet.
1138220	1153000	On the other hand, if the source IP matches one of the victim known peers, the victim will accept the GRE packet and forward the inner packet according to its routing table.
1153900	1160400	For scanning purpose, we set the destination of the inner packet to the victim itself.
1160760	1173400	So, the victim will immediately reply the inner packet with an ICMP response and send it back to the attacker.
1173400	1184730	Then, we can identify the victim GRE internal peer IP address by its ID finder and sequence.
1185060	1201610	We can encode the information into ICMP ID finder and sequence field, which together can represent all 255 to the part of four possible IPv4 addresses.
1204530	1207790	We also create a scanner script on GitHub.
1207790	1216950	As you can see, when a GRE source address matches the remote GRE peer address, we can get an ICMP reply.
1225410	1229930	Then, we can put everything together to get an initial access.
1230970	1237850	Let's imagine a scenario the victim 1.1.1 has a GRE internal with 2.2.2.
1237850	1245590	An attacker can forge a GRE packet that appears to be sent from 2.2.2.
1245590	1255050	The inner packet is a DNS request sent from the provider IP 3.3.3 to an internal network IP.
1258800	1268940	When the packet arrives, the victim will trust and use the GRE packet because it can claim to come from 2.2.2.2.
1268940	1280320	Then, the victim will unpack the GRE packet and discover that it contains a DNS request whose destination is a private network IP.
1280320	1289240	The victim will then forward the packet to its company intranet based on its routing table.
1292810	1305250	Then, when the internal DNS server receives the DNS packet, it will respond and send a reply through the public internet to the attacker server.
1308790	1316070	Thus, the attacker can interact with services on the victim intranet, including those using the TCP protocol.
1318010	1320110	We have created a demo lab.
1320110	1323230	The architecture is illustrated in the diagram.
1323230	1329430	We have a target router whose GRE peer is 1.1.1.
1329430	1335290	And there is an intranet waste server whose public network is 1.2.
1336530	1346470	The waste server is hosted on 1.2 and the server can access the public network via SNAT.
1349850	1358910	On the other hand, the router has a GRE internal and it can directly access the intranet waste server.
1359070	1367690	And also, he has a public IP and we can see that there is a GRE internal.
1367690	1371070	The peer is 1.1.1.1.
1371070	1387610	So, initially, the attacker at IP address .142 cannot access the private network 192.168.1.2.
1387610	1405030	Then, the attacker can create a spoofed GRE internal via the command shown above to the victim router and directly send traffic to the private address 1.2 through the fake internal.
1405610	1411670	Then, the attacker can direct access and interact with the internal waste server.
1413520	1426020	Similarly, if the layer 2 internal like GRE tab, also, if we can leak the victim MAC address, we can also exploit this in the same way.
1426020	1430940	It is common to use the SNMP protocol to obtain this.
1432700	1450180	For a short TLDR summary, when a company does not configure its firewall and use database on encrypted internal, even if it is a legacy configuration, an attacker can exploit this internal for initial access to the intranet.
1452080	1457780	So, then, we will reveal a nightmare of default configuration of VXLAN.
1458920	1460860	So, what is a VXLAN?
1461860	1467080	VXLAN is a stateless and unencrypted layer 2 internal.
1467980	1473980	It packs layer 2 Ethernet frame into a layer 4 UDP packet.
1474680	1481060	Each subnet is uniquely identified by a name called VNI.
1483020	1494880	We can configure VXLAN internal similar to the GRE by giving the remote IP, local IP, and destination port and VNI.
1494880	1498380	However, this configuration is vulnerable.
1500520	1507980	Based on the previous configuration, set up a standard VXLAN peer is easy as usual.
1508680	1511300	How about hijacking a VXLAN internal?
1513740	1516420	Yes, here's the only difference.
1516420	1521220	The only thing you have to change is your local IP argument.
1522600	1524980	So, why does this happen?
1524980	1532140	Does the Linux kernel doesn't check the source IP for VXLAN packet?
1532140	1540140	How does it accept VXLAN packet with a valid VNI import even if the source IP is not configured?
1542690	1548990	After looking at the Linux memo, you will see that this is a feature but not a bug.
1549630	1554910	But this feature is insecure and it turned on by default.
1555250	1559930	Before reporting, router OS couldn't turn this feature down.
1559930	1564270	Now, you can change the setting to off but it's still on by default.
1566730	1571990	So, what happens when learning is enabled in VXLAN?
1573670	1589910	Normally, when a configured peer sends a VXLAN packet, the kernel will add its MAC address to the FDB, also known as forwarding database table, shown at the bottom on the slide.
1590710	1608250	The next time a packet needed to be sent to the destination MAC address that is listed in the FDB table, the kernel will pack and send the packet to the remote location using the information from the FDB table.
1613650	1623710	Similarly, when learning mode is enabled, any VXLAN packet with a valid VNI import will be added to the FDB table.
1624930	1631290	Also, the remote IP could be any IP on the internet.
1633230	1645510	Thus, an attacker 9.9.9.9 can create a VXLAN packet with a MAC address which is broadcast address FFFFF.
1645510	1650890	And the Linux kernel will add this MAC address to the list.
1651930	1666180	Then, when the kernel wants to send a broadcast package on the VXLAN interface, it will look up the FDB table and then send it to the attacker server, which is 9.9.9.9.
1670550	1675790	So, we know how VXLAN works.
1676070	1681250	How do we get the information that we can hijack a VXLAN?
1681250	1693530	We know our own IP, but we don't know the victim's IP, or VNI, or VXLAN inner subnet.
1693770	1698450	However, all this information can be obtained by a simple scan.
1699690	1706190	An attacker can discover the victim IP port and VNI by sending numerous packets.
1707190	1713590	So, let's focus on how to determine the VXLAN inner subnet range.
1714610	1726810	We can gather information by sending a single VXLAN packet where both the source and destination MAC address are set to the broadcast address LAN.
1726850	1734570	When an ARP request is sent from the VXLAN interface, they will also send a copy to the attacker.
1737540	1743900	Another method involves sending a neighbor-discovered protocol packet.
1743900	1756960	When a router always receives a broadcast neighbor-discovered protocol, NDP, message, it will respond to the broadcasting MAC address with its own IP and MAC address.
1759830	1766210	Thus, we can send numerous VXLAN packets with different VNI and port configurations.
1766210	1777230	Each contains an inner NDP packet where both the source and destination MAC address are set to the broadcast address.
1780840	1792240	When the VNI and port matches the victim configuration, the victim device will add the attacker's IP to its FDB table.
1793160	1800000	Then, the victim unpacks the VXLAN package and sees that it is an NDP request.
1800000	1808180	The victim router replies to the NDP packet and tries to send a response to the broadcast MAC address.
1808180	1817640	It checks the FDB table and finds that the destination is 9.9.9.9, which is the attacker IP.
1819380	1824880	So, the router will send the packet to the attacker.
1827300	1831260	Then, the attacker has everything to hijack the terminal.
1834250	1836050	We create a scanner.
1836050	1841790	We can discover the victim IP port and VNI by sending numerous packets.
1841790	1849530	VXLAN has default ports 4789 and 8472, and VNI is usually smaller than 100.
1849530	1851370	Here's a scanner link.
1854510	1863690	We have also created a lab for VXLAN scanner demonstration, which includes a router and a web server.
1865230	1872790	So, for demo, we can see that the scanner aims to scan the target at .200.
1872790	1877690	The scanner sends numerous packets with different default ports and different VNIs.
1877690	1884930	Later, we can receive an NDP reply with VNI 42 and port 8472.
1884930	1888590	The inerts are made in 10.0.0.1.
1888590	1896410	Then, by simplifying, we can simply create a VXLAN with the information above.
1896410	1900990	We can direct access the VXLAN intranet server.
1904200	1909060	We also scan for insecure VXLAN configuration worldwide.
1909060	1914940	Usually, using VNI equals one and default ports.
1915240	1920480	We found that more than 900 VXLAN endpoints respond to the scanner.
1920500	1925980	Additionally, there are 4,000 IPs inside the VXLAN subnet.
1925980	1931860	Some of these are public IPs, which means we can hijack public IPs.
1932700	1937680	Additionally, some endpoints reply to numerous broadcast packets.
1937680	1943800	Combined with the IP spoofing, this can lead to DDoS attack.
1944480	1952200	Lastly, we see some VXLAN packets have source IPs that are private addresses.
1952820	1954500	This raises a question.
1954500	1959180	Why are the private addresses being used as a source IP on the VXLAN packet?
1960940	1966460	So, if I use VXLAN in an encrypted terminal, am I safe?
1968320	1970240	The answer is no.
1971120	1975480	VXLAN still accepts packet traffic in different interfaces.
1976500	1986340	So, if you have a public IP interface and also you create a VXLAN interface, it can be scanned and hijacked.
1989910	1998230	For TLDR, we can hijack a VXLAN terminal using only 3 pieces of concept.
1998330	2003230	The victim IP address, the VXLAN port, and the VNI.
2004070	2009570	There is no need to know the peer IP and internal IP address.
2009570	2018070	Furthermore, if your network is set up including a public IP address and VXLAN on any interface, it is highly vulnerable.
2019230	2025150	So, what can hackers do after hijacking a VXLAN terminal?
2026910	2040430	Not only can attackers gain initial access to the company intranet, but also they can hijack IP communication or perform a man-in-the-middle attack between the two sites.
2040430	2049770	Additionally, attackers can target their two network services such as exporting RADVD to RCE vulnerabilities.
2051350	2056170	Incident response is challenging because the source IP cannot be trusted.
2056170	2065610	Moreover, these terminals often run routing protocols like BGP or OSPF.
2065610	2076990	Attackers can hijack IPs that are even not transmissioning through that terminal, such as those of a domain controller or an EXXI server.
2078770	2081730	So, what is a routing protocol?
2082330	2090810	It is a protocol like a router can exchange routes and network information with other routers.
2090810	2102630	Routing protocols help routers to directly learn about the networks around them and to determine the best path for forwarding the packet.
2102830	2116000	For example, Router A has a subnet 192.168.1.0.24 and Router C could learn the routes from Router B by routing protocols.
2117360	2124840	We often see companies use VXLAN terminals to connect to sites with routing protocols.
2126240	2135360	But when we combine this with a learning feature, we can hijack router's AIP.
2136580	2145980	Then, we can announce, we can connect to the routing protocols and announce domain controller's IP in the routing protocols.
2146000	2148280	With slash 72.
2150500	2166340	Other routers will receive and trust the routing prefix and redirect their domain controller's traffic to the attacker because the route is more specific, more smaller than the subnet.
2169040	2175580	We have summarized the potential impact of hijacking different service IP.
2176840	2193440	If an attacker hijacks the IP of domain controller and NTLN is possible, meaning SMB signing is disabled or ADCS ESC 8 is present, they can take over the entire domain.
2193440	2210520	If an attacker hijacks the IP of vSphere, Proxmox or any HTTPS service and the original SSL certificate is unsigned or not valid, user may not be noticed.
2210700	2215800	And the attacker can then take over the account or the full server.
2215800	2227160	In short, hijacking this service IP can lead to account takeover, denial of service, DNS hijack or even full domain compromise or server compromise.
2229140	2231380	And here's a bonus.
2231600	2237260	A bad configuration in the company's OSPF lead to IP hijacking.
2237260	2245240	This attack factor has been published for years and we actually observed it during our rating scenario.
2245800	2249040	Yet, very few people discuss it.
2250520	2255900	Do you check and use a TCP dump after you get into an intranet?
2256520	2262000	If you see this on the victim intranet, it might be vulnerable.
2264590	2281530	Just like the exploitation method described in the previous slide, if you see a hello package, there is a highly possible that you can direct establish an OSPF connection with the router and hijack the routes.
2282190	2292990	So, in short, we can, if we connect to the OSPF, we can hijack the domain controller again and get previous escalation.
2295390	2298790	Next, there are some key takeaways.
2300010	2303230	Here's the key takeaways for Blue Team.
2303310	2307890	First, check all unencrypted tunnels in your company's network.
2307890	2310570	If you find any, don't use them.
2310970	2315870	This includes protocols like GRE, IPIP, SIT, GRE-TAP and DXLAN.
2315870	2319550	These tunnels are not secure and can be abused by attackers.
2320110	2323730	Next, make sure you have secure firewall in place.
2323850	2335950	Your firewall should filter outbound intranet traffic, especially SYN-ASDK packet with a response from server.
2336370	2341910	Also, check for IP spoofing in your intranet.
2341910	2351970	Ideally, OSPF should fill out spoofed IP address, but in reality, this is rarely possible.
2351970	2357710	Check if OSPF is not enabled on ports between routers.
2357710	2361190	It's only enabled on ports between routers.
2361190	2365180	OSPF should not open on unnecessary port.
2366370	2371390	Monitor your routing prefix for any anomalies.
2371750	2377180	Unaccept change in router protocol can indicate an ongoing attack.
2377180	2386000	Finally, set minimum accept prefix size in your routing protocol, for example, slash 24.
2386420	2401100	In summary, avoid unencrypted tunnels, secure your firewall, filter for IP spoofing, restrict OSPF, monitor routing and enforce minimum prefix size.
2402220	2404290	And here's the takeaway for writing.
2405550	2412650	First, scan or use OSINT techniques to find victims on encrypted tunnels.
2412710	2416390	These can be entry point into the network.
2416930	2422290	Once you are inside the intranet, check the victim's network setup for spoofing.
2423190	2428350	Use source IP spoofing techniques during high-risk scanning to avoid detection.
2428350	2436730	Look for OSPF upload message to identify active routing protocols and potential attack path.
2437350	2440550	Scan for misconfiguration via extended tunnel.
2440550	2447390	If you find a vulnerable tunnel, hijack it to get initial access.
2448030	2454230	Abuse routing protocols and hijack IP for lateral movement and privilege escalation.
2454230	2458490	Automating can continue looking for more vulnerable protocols in future.
2458490	2461110	Remember, scan, find, hack.
2465200	2468940	And here are some takeaway for tool makers.
2469680	2476120	First, implement intranet IP spoofing command control tools.
2476920	2484200	Develop automated tools to test possible of IP spoofing within a target intranet.
2484200	2486140	Create automation save times.
2486500	2498400	Create automated correction mechanism for mismatch between IP destination and source address within the same TCP session.
2498620	2501340	Some routers still perform SNAT.
2501340	2504500	Even the packet is a server response.
2507300	2517260	Automate the process of sending H.323 package or new TCP packet to trigger a routing mechanism.
2517380	2522680	Especially for ISP that filter private IP as a source IP address.
2523720	2527840	Develop tools for automation OSPF IP hijacking attacks.
2527840	2534600	And finally, implement a more efficient GIS scanner for global scanning.
2534600	2539260	Similar to what MaxScan does for TCP.
2539920	2542060	So, thank you everyone.
