1 00:00:00,000 --> 00:00:01,320 Hello everyone. 2 00:00:01,860 --> 00:00:04,220 I will be sharing this topic with you. 3 00:00:05,620 --> 00:00:08,760 The topic I will be talking about is Bridge Attack. 4 00:00:11,860 --> 00:00:14,840 Let me introduce myself first. 5 00:00:15,680 --> 00:00:19,220 I am a security researcher from Tencent's mobile security lab, Razer Team. 6 00:00:20,620 --> 00:00:22,160 My name is Han Zidong. 7 00:00:22,580 --> 00:00:26,700 My main research focus is on the security of mobile apps and IoT. 8 00:00:28,880 --> 00:00:33,340 Last year, I participated in the Black Hole Challenge in the 2018-2024 G-BON competition. 9 00:00:35,820 --> 00:00:37,440 I successfully completed the challenge. 10 00:00:37,820 --> 00:00:43,620 After participating in the challenge, I thought about the security of IoT and the security of mobile apps. 11 00:00:44,600 --> 00:00:47,400 I thought about the security of IoT and the security of mobile apps. 12 00:00:48,440 --> 00:00:54,100 I am lucky to have the opportunity to share this with you today. 13 00:00:58,420 --> 00:01:06,460 The topic I will be talking about today is the concept of Bridge Attack. 14 00:01:08,780 --> 00:01:14,600 Then, I will introduce you to why I chose Bridge Attack. 15 00:01:16,680 --> 00:01:21,460 What is the difference between Bridge Attack and Bridge Attack? 16 00:01:23,420 --> 00:01:26,680 The third topic I will be talking about is... 17 00:01:26,700 --> 00:01:34,200 I will show you how to use Bridge Attack to complete a complete attack and some real use cases. 18 00:01:35,320 --> 00:01:40,280 Finally, I will introduce you to how to deal with the risk of Bridge Attack. 19 00:01:41,760 --> 00:01:44,300 What kind of prevention measures should we take? 20 00:01:45,800 --> 00:01:48,600 First, let's take a look at the definition of Bridge Attack. 21 00:01:49,600 --> 00:01:52,560 First, we need to understand what is Bridge. 22 00:01:54,340 --> 00:01:55,540 Speaking of Bridge, 23 00:01:56,700 --> 00:02:05,060 we have to mention the fast-growing mobile development and IoT related fields in recent years. 24 00:02:05,340 --> 00:02:09,620 The picture on the left is a hybrid app. 25 00:02:12,500 --> 00:02:17,260 It is actually a combination of the traditional native app and the web app. 26 00:02:18,320 --> 00:02:25,240 It uses H5 to make the development cycle and the development efficiency faster and higher. 27 00:02:25,240 --> 00:02:29,060 Basically, it has become the mainstream of a lot of native app development. 28 00:02:30,340 --> 00:02:33,140 The IoT on the right is the Internet. 29 00:02:33,480 --> 00:02:35,500 You should be more or less aware of this. 30 00:02:35,500 --> 00:02:39,240 Our Bridge is actually based on these two backgrounds. 31 00:02:42,320 --> 00:02:43,620 Let's take a look at it. 32 00:02:43,620 --> 00:02:46,440 This Bridge is actually a abstract concept. 33 00:02:47,240 --> 00:02:53,200 In this browser and mobile apps and IoT devices, 34 00:02:53,200 --> 00:02:57,680 there is actually a abstract Bridge. 35 00:02:58,160 --> 00:03:02,000 It is used for data or communication. 36 00:03:05,700 --> 00:03:07,700 For mobile apps, 37 00:03:08,060 --> 00:03:10,740 the most familiar one is the web view on Android. 38 00:03:10,920 --> 00:03:16,960 This web view is the communication between JS and Java from H5 to native. 39 00:03:17,720 --> 00:03:21,500 In fact, there is also such a web view on iOS. 40 00:03:21,500 --> 00:03:22,960 Like the previous UI web view, 41 00:03:23,200 --> 00:03:24,460 and the later WK web view. 42 00:03:25,160 --> 00:03:26,620 For IoT devices, 43 00:03:27,280 --> 00:03:30,740 what is the abstract Bridge that we need to consider? 44 00:03:31,020 --> 00:03:36,960 In fact, there are a lot of basic agreements at the bottom. 45 00:03:36,960 --> 00:03:38,680 For example, the DLNA projection agreement, 46 00:03:38,980 --> 00:03:40,820 the UPnP machine-to-machine user agreement, 47 00:03:41,060 --> 00:03:44,860 or the agreement that manufacturers use WebSockets or TCP 48 00:03:44,860 --> 00:03:48,560 to define their own communication and interaction. 49 00:03:50,620 --> 00:03:53,360 We also gave an unofficial definition of Bridge attack. 50 00:03:55,460 --> 00:04:00,200 In fact, it uses the JS Bridge in the app 51 00:04:00,200 --> 00:04:04,320 and the projection agreement layer in the IoT, 52 00:04:04,320 --> 00:04:06,900 so that the attacker has such an opportunity 53 00:04:06,900 --> 00:04:11,360 to use this Bridge to achieve its effect on mobile apps 54 00:04:11,360 --> 00:04:12,740 or IoT devices. 55 00:04:16,360 --> 00:04:17,320 Let's take a look at 56 00:04:17,320 --> 00:04:23,740 why we choose this direction of attack as a research point. 57 00:04:24,660 --> 00:04:26,840 First of all, let's take a look at the security risks 58 00:04:26,840 --> 00:04:29,280 that WebViewer has exposed in the past. 59 00:04:30,040 --> 00:04:32,980 Let's take a look at the risks in the past. 60 00:04:34,260 --> 00:04:35,740 In 2012, 61 00:04:36,360 --> 00:04:39,680 CVE-2012-6336 revealed the classic 62 00:04:39,680 --> 00:04:42,560 long-term use of the JavaScript interface interface. 63 00:04:42,560 --> 00:04:44,800 The source of such long-term use of JavaScript 64 00:04:45,000 --> 00:04:47,380 This is a long-term use of JavaScript. 65 00:04:47,800 --> 00:04:48,760 This is a long-term use of JavaScript. 66 00:04:48,760 --> 00:04:48,920 This is a long-term use of JavaScript. 67 00:04:49,200 --> 00:04:49,720 This is a long-term use of JavaScript. 68 00:04:49,720 --> 00:04:50,160 Now, the next. 69 00:04:50,400 --> 00:04:51,060 The latter. 70 00:04:51,220 --> 00:04:51,340 Now. 71 00:04:51,360 --> 00:04:59,720 We have a series of related CEL files 72 00:04:59,720 --> 00:05:00,000 for the centralized operation of the WebViewer. 73 00:05:01,300 --> 00:05:03,800 It's a lot out of the box. 74 00:05:03,900 --> 00:05:04,560 There's a classic one, 75 00:05:04,560 --> 00:05:06,220 a classic case of an application 76 00:05:06,220 --> 00:05:06,700 or comment. 77 00:05:07,940 --> 00:05:10,940 In fact, it's also used this kind of risk 78 00:05:10,940 --> 00:05:11,760 to do an extension. 79 00:05:12,340 --> 00:05:15,080 The last one is the attack of the UIL Scammer. 80 00:05:15,760 --> 00:05:17,540 In fact, in recent years, 81 00:05:17,600 --> 00:05:23,560 a lot of researchers have also shared this in many security conferences. 82 00:05:23,560 --> 00:05:25,140 In fact, the attack of the UIL Scammer 83 00:05:25,140 --> 00:05:30,180 is a very good cut-in entrance in BridgeAttack. 84 00:05:30,180 --> 00:05:31,720 We will talk about this later. 85 00:05:33,740 --> 00:05:36,260 Let's take a look at the difference between BridgeAttack. 86 00:05:37,900 --> 00:05:40,400 First of all, compared to the previous WebView, 87 00:05:42,560 --> 00:05:44,760 it has more attack surface. 88 00:05:45,140 --> 00:05:48,360 Secondly, the looping effect it produces 89 00:05:48,360 --> 00:05:52,740 is directly related to the ability of the UIL Bridge. 90 00:05:53,200 --> 00:05:56,240 That is to say, the stronger your Bridge ability is, 91 00:05:56,320 --> 00:05:58,080 the greater the effect of the looping you produce. 92 00:05:59,040 --> 00:06:03,600 The last one is that it not only covers the mobile app, 93 00:06:03,940 --> 00:06:04,820 but also covers the security of IoT. 94 00:06:07,460 --> 00:06:08,720 Let's take a look at 95 00:06:08,720 --> 00:06:10,080 how to use 96 00:06:10,080 --> 00:06:13,500 such a BridgeAttack and some real cases. 97 00:06:16,960 --> 00:06:22,220 First, let's look at the BridgeAttack attack surface 98 00:06:22,220 --> 00:06:22,300 as a cut-in point for mobile applications. 99 00:06:22,520 --> 00:06:25,180 From the browser, as an attack jump board, 100 00:06:25,320 --> 00:06:28,220 the attacker can launch an attack from the outside payload. 101 00:06:30,540 --> 00:06:33,180 Using the Scammer analysis process, 102 00:06:33,580 --> 00:06:39,260 it cuts into the WebView and the phone, 103 00:06:39,520 --> 00:06:40,060 and it can attack the app from the outside. 104 00:06:40,080 --> 00:06:40,300 Then, it makes a 105 00:06:40,300 --> 00:06:40,800 In the follow-up operation work of Scammer analysis, 106 00:06:41,920 --> 00:06:43,620 there is a problem. 107 00:06:43,880 --> 00:06:44,920 Due to the security of WebView, 108 00:06:46,140 --> 00:06:50,660 many of the manufacturer is the developer of the app 109 00:06:50,660 --> 00:06:52,020 actually has respect for this. 110 00:06:53,020 --> 00:06:55,160 It will do a comparison. 111 00:06:55,160 --> 00:06:57,680 It will add a layer of identity verification. 112 00:06:57,960 --> 00:07:01,100 It will not let random attackers 113 00:07:01,100 --> 00:07:04,460 to randomly pick up the interface capability provided by WebVL. 114 00:07:08,720 --> 00:07:11,400 Then we have to consider how to go around 115 00:07:11,400 --> 00:07:13,360 the process of identity identification. 116 00:07:14,020 --> 00:07:19,400 There are three common and easy-to-use solutions. 117 00:07:19,920 --> 00:07:22,820 The first one is XSS attack. 118 00:07:22,820 --> 00:07:26,540 This is basically an unobtrusive way of attacking the web. 119 00:07:29,640 --> 00:07:33,740 The second one is an audit of the domain name. 120 00:07:35,540 --> 00:07:38,840 You can see that when filtering the domain name, 121 00:07:39,060 --> 00:07:42,700 many developers or manufacturers 122 00:07:42,700 --> 00:07:44,780 did not make a strict protection. 123 00:07:45,160 --> 00:07:48,120 You can ask for an exaggeration like this. 124 00:07:48,380 --> 00:07:50,620 The third one is to attack the middleman. 125 00:07:51,140 --> 00:07:51,900 For example, 126 00:07:53,120 --> 00:07:53,920 you can make an exaggeration like this 127 00:07:53,920 --> 00:07:56,880 by asking for the JS Bridge file 128 00:07:56,880 --> 00:07:59,860 sent by the JTDP. 129 00:08:02,560 --> 00:08:06,200 Let's take a look at the first case 130 00:08:06,200 --> 00:08:09,400 about an unobtrusive audit domain name. 131 00:08:11,580 --> 00:08:12,760 In this case, 132 00:08:13,560 --> 00:08:16,760 this developer is a head application. 133 00:08:17,020 --> 00:08:18,800 This is a domestic head application. 134 00:08:19,180 --> 00:08:22,240 He is trying to solve the problem 135 00:08:22,240 --> 00:08:22,820 by using the code that the programmer has analyzed. 136 00:08:23,680 --> 00:08:24,880 When the attacker is analyzed, 137 00:08:24,880 --> 00:08:26,320 he made a judgment. 138 00:08:26,520 --> 00:08:30,640 He decided that if the domain name of the other party 139 00:08:31,560 --> 00:08:34,360 contains a new subdomain name, 140 00:08:34,500 --> 00:08:36,780 he used contents as a filtering condition. 141 00:08:37,140 --> 00:08:39,000 If there is a new domain name, 142 00:08:39,100 --> 00:08:41,440 he thought it was safe. 143 00:08:41,620 --> 00:08:42,380 If there is no such thing, 144 00:08:42,760 --> 00:08:45,320 he would turn off all JS capabilities. 145 00:08:46,120 --> 00:08:47,680 We can actually see this attack flow 146 00:08:47,680 --> 00:08:48,720 through this picture above. 147 00:08:51,260 --> 00:08:54,040 When you use contents and endways 148 00:08:54,040 --> 00:08:55,680 as a filtering method, 149 00:08:56,380 --> 00:08:59,740 there is no way to prevent the false domain name in front. 150 00:08:59,740 --> 00:09:00,380 That is to say, 151 00:09:00,480 --> 00:09:02,220 bypassing bypass is invalid. 152 00:09:02,640 --> 00:09:07,000 And in our research results, 153 00:09:07,480 --> 00:09:07,780 this kind of situation 154 00:09:07,780 --> 00:09:09,300 actually accounts for a lot. 155 00:09:10,980 --> 00:09:13,020 After we bypassed such a domain name detection, 156 00:09:13,460 --> 00:09:16,320 we need to further reverse analyze its code. 157 00:09:16,500 --> 00:09:17,800 We can see that 158 00:09:17,800 --> 00:09:18,700 this part of the domain name 159 00:09:18,700 --> 00:09:20,280 is the JS bridge provided by the other party. 160 00:09:20,280 --> 00:09:21,360 In this app, 161 00:09:21,640 --> 00:09:22,860 it provides such an ability 162 00:09:22,860 --> 00:09:24,820 called sendClientRequest, 163 00:09:25,000 --> 00:09:27,340 which is to send this request to the server 164 00:09:28,240 --> 00:09:28,960 through the client's website. 165 00:09:30,460 --> 00:09:30,820 Then, 166 00:09:30,960 --> 00:09:33,480 we use the ability of this JS API 167 00:09:33,480 --> 00:09:35,600 to achieve a deep-level cross-border attack 168 00:09:35,600 --> 00:09:38,980 through a simple web-level attack. 169 00:09:43,500 --> 00:09:43,860 Then, 170 00:09:43,960 --> 00:09:45,120 we use this interface 171 00:09:45,120 --> 00:09:48,040 to send a fake request to the server. 172 00:09:48,040 --> 00:09:49,040 Then, 173 00:09:49,300 --> 00:09:52,580 we get the order information of this user 174 00:09:52,580 --> 00:09:56,460 as well as his personal identity, 175 00:09:56,580 --> 00:09:57,440 including his identity number. 176 00:09:58,440 --> 00:09:59,200 In fact, 177 00:09:59,860 --> 00:10:01,100 such an attack 178 00:10:01,100 --> 00:10:02,380 starts from a URL. 179 00:10:02,820 --> 00:10:03,420 In the end, 180 00:10:03,560 --> 00:10:06,560 the attack of the web and the attack of the app 181 00:10:06,560 --> 00:10:07,960 are linked together. 182 00:10:10,340 --> 00:10:12,820 This is also a head application. 183 00:10:13,080 --> 00:10:14,840 This level is higher than the previous one. 184 00:10:15,420 --> 00:10:16,800 During the audit process, 185 00:10:17,120 --> 00:10:17,540 we found that 186 00:10:19,360 --> 00:10:21,220 the domain name of this app 187 00:10:21,220 --> 00:10:21,660 is very different from the previous one. 188 00:10:22,060 --> 00:10:24,540 It has a very strict domain name audit process. 189 00:10:24,860 --> 00:10:25,360 However, 190 00:10:25,440 --> 00:10:26,320 the problem is that 191 00:10:26,320 --> 00:10:28,580 it is not effective in protecting XSS. 192 00:10:28,940 --> 00:10:29,660 Of course, 193 00:10:29,840 --> 00:10:32,440 XSS is not something that can be protected. 194 00:10:33,120 --> 00:10:34,380 During the audit process of this app, 195 00:10:36,020 --> 00:10:37,060 we found that 196 00:10:37,060 --> 00:10:38,700 under a certain domain name, 197 00:10:38,840 --> 00:10:40,020 there is such an XSS. 198 00:10:40,760 --> 00:10:41,900 If we consider this XSS 199 00:10:41,900 --> 00:10:44,560 from a simple external point of view, 200 00:10:44,680 --> 00:10:47,120 we can use its cookie 201 00:10:47,120 --> 00:10:49,580 to do some things. 202 00:10:49,700 --> 00:10:51,480 But there is a problem here. 203 00:10:52,360 --> 00:10:52,940 Nowadays, 204 00:10:53,160 --> 00:10:54,340 many head companies 205 00:10:54,340 --> 00:10:56,020 when you get the cookie value 206 00:10:56,020 --> 00:10:57,140 to do an audit, 207 00:10:58,010 --> 00:11:00,340 there are many second tests on the client's end. 208 00:11:00,340 --> 00:11:00,660 For example, 209 00:11:00,780 --> 00:11:02,100 the second password 210 00:11:02,100 --> 00:11:03,960 or the second ticket test. 211 00:11:04,580 --> 00:11:05,720 Then it is difficult for you 212 00:11:05,720 --> 00:11:08,080 to achieve some deeper information. 213 00:11:08,880 --> 00:11:09,400 For example, 214 00:11:09,420 --> 00:11:10,040 payment information, 215 00:11:10,400 --> 00:11:10,800 orders, 216 00:11:11,220 --> 00:11:12,200 or a series of things. 217 00:11:13,680 --> 00:11:17,100 How can we expand this place further? 218 00:11:18,420 --> 00:11:19,780 Let's think about 219 00:11:19,780 --> 00:11:20,480 how to design a payload. 220 00:11:21,240 --> 00:11:23,000 We use this XSS 221 00:11:23,000 --> 00:11:26,180 to import a JS file from the outside. 222 00:11:26,260 --> 00:11:27,640 In this JS file, 223 00:11:28,060 --> 00:11:28,980 we are going to use 224 00:11:28,980 --> 00:11:30,200 the ability of this bridge 225 00:11:30,200 --> 00:11:31,420 provided by this app itself. 226 00:11:33,060 --> 00:11:35,880 We found some very sensitive 227 00:11:35,880 --> 00:11:38,800 and very dangerous JS APIs 228 00:11:38,800 --> 00:11:39,700 exposed outside. 229 00:11:40,260 --> 00:11:41,000 Finally, 230 00:11:41,200 --> 00:11:42,600 we use a malicious URL 231 00:11:42,600 --> 00:11:46,860 to achieve this sensitive information. 232 00:11:47,700 --> 00:11:49,760 This is a simple POC. 233 00:11:50,240 --> 00:11:50,840 First, 234 00:11:51,060 --> 00:11:52,960 we import the JS API file from the outside. 235 00:11:54,160 --> 00:11:54,760 Then, 236 00:11:54,940 --> 00:11:57,060 we find the first sensitive 237 00:11:57,060 --> 00:11:59,280 JS bridge interface 238 00:11:59,280 --> 00:12:00,100 called getUserInfo 239 00:12:00,900 --> 00:12:02,220 to get the cookie 240 00:12:02,220 --> 00:12:03,960 and some keys in the cookie. 241 00:12:04,100 --> 00:12:04,700 Then, 242 00:12:04,820 --> 00:12:05,520 we use this key 243 00:12:05,520 --> 00:12:11,520 to use another sensitive interface 244 00:12:11,520 --> 00:12:11,900 in this app again, 245 00:12:11,900 --> 00:12:12,840 sendRequest, 246 00:12:13,000 --> 00:12:15,160 to do a deep-level call. 247 00:12:15,360 --> 00:12:16,580 In the first round, 248 00:12:16,640 --> 00:12:16,840 we use this key 249 00:12:16,860 --> 00:12:20,380 to get the user's payment information. 250 00:12:23,600 --> 00:12:24,020 Finally, 251 00:12:24,100 --> 00:12:24,820 to summarize, 252 00:12:25,120 --> 00:12:27,900 in this bridge attack in the app layer, 253 00:12:28,180 --> 00:12:30,880 the attacker can use a simple URL 254 00:12:30,880 --> 00:12:33,220 to use this virtual JS bridge 255 00:12:33,460 --> 00:12:35,440 to integrate the web view 256 00:12:35,440 --> 00:12:37,860 and the security risk 257 00:12:39,200 --> 00:12:39,260 of the native layer. 258 00:12:39,980 --> 00:12:40,820 Then, 259 00:12:40,860 --> 00:12:42,820 more attacks are exposed. 260 00:12:43,400 --> 00:12:44,000 Then, 261 00:12:44,080 --> 00:12:46,160 it has more and better conditions 262 00:12:46,860 --> 00:12:48,260 to use the ability of this JS bridge 263 00:12:49,550 --> 00:12:51,700 to achieve the ability 264 00:12:51,700 --> 00:12:52,060 to retrieve information 265 00:12:52,060 --> 00:12:53,400 and code execution, 266 00:12:53,640 --> 00:12:54,680 and even the possibility 267 00:12:54,680 --> 00:12:55,080 of wireless transmission. 268 00:12:58,640 --> 00:12:59,700 After talking about 269 00:12:59,700 --> 00:13:02,920 this bridge attack in the app, 270 00:13:02,920 --> 00:13:03,720 let's take a look 271 00:13:03,720 --> 00:13:04,480 at the difference between 272 00:13:04,480 --> 00:13:05,680 the bridge in IoT 273 00:13:05,680 --> 00:13:06,860 and the bridge in the app. 274 00:13:07,980 --> 00:13:08,640 So, 275 00:13:08,740 --> 00:13:10,440 we mentioned that 276 00:13:10,440 --> 00:13:11,500 in the IoT bridge, 277 00:13:11,900 --> 00:13:13,260 it is more focused on two characteristics. 278 00:13:13,400 --> 00:13:14,660 The first characteristic 279 00:13:14,660 --> 00:13:17,200 is the penetration of the internal network. 280 00:13:17,280 --> 00:13:17,820 Then, 281 00:13:17,920 --> 00:13:18,740 it can use an attack method 282 00:13:18,740 --> 00:13:19,540 such as DNS reset, 283 00:13:21,410 --> 00:13:21,680 or 284 00:13:21,680 --> 00:13:24,080 it can use the central control app 285 00:13:24,450 --> 00:13:25,440 which is 286 00:13:25,440 --> 00:13:27,200 for every smart component, 287 00:13:27,440 --> 00:13:29,620 it has to have a corresponding app 288 00:13:29,620 --> 00:13:31,820 as its management center, 289 00:13:32,120 --> 00:13:33,560 the brain app. 290 00:13:34,020 --> 00:13:34,560 Then, 291 00:13:34,660 --> 00:13:36,100 we can attack this central control app 292 00:13:36,660 --> 00:13:38,140 and it can also achieve 293 00:13:38,140 --> 00:13:38,920 a penetration effect. 294 00:13:40,120 --> 00:13:40,660 Then, 295 00:13:40,760 --> 00:13:41,560 there is another characteristic. 296 00:13:41,720 --> 00:13:42,060 That is, 297 00:13:42,180 --> 00:13:43,260 in the use of the IoT bridge, 298 00:13:43,260 --> 00:13:45,820 it can achieve a better 299 00:13:45,820 --> 00:13:46,800 and more lasting effect. 300 00:13:47,080 --> 00:13:47,580 Then, 301 00:13:47,660 --> 00:13:48,960 it brings two advantages. 302 00:13:49,160 --> 00:13:50,360 The first one is that 303 00:13:50,360 --> 00:13:53,120 you may have more meat 304 00:13:53,120 --> 00:13:54,180 to choose from 305 00:13:54,220 --> 00:13:54,860 Then, 306 00:13:54,960 --> 00:13:55,880 the second one is that 307 00:13:55,880 --> 00:13:57,340 you have more time 308 00:13:57,340 --> 00:13:59,140 to help you design 309 00:13:59,140 --> 00:14:00,720 and construct 310 00:14:00,720 --> 00:14:01,940 the attack result 311 00:14:01,940 --> 00:14:02,980 and the attack idea. 312 00:14:05,360 --> 00:14:06,000 Then, 313 00:14:06,080 --> 00:14:06,820 let's take a look 314 00:14:06,820 --> 00:14:07,480 at the IoT bridge. 315 00:14:07,780 --> 00:14:08,840 The IoT bridge 316 00:14:08,840 --> 00:14:09,700 is actually related 317 00:14:09,700 --> 00:14:10,300 to this architecture. 318 00:14:11,260 --> 00:14:11,900 Then, 319 00:14:12,020 --> 00:14:12,800 for this 320 00:14:12,800 --> 00:14:13,240 IoT bridge, 321 00:14:14,460 --> 00:14:15,920 IoT manufacturers with cloud servers 322 00:14:15,920 --> 00:14:18,600 often interact with 323 00:14:18,600 --> 00:14:19,640 the cloud end 324 00:14:19,640 --> 00:14:20,420 in virtual bridge 325 00:14:20,420 --> 00:14:20,480 in many cases. 326 00:14:20,480 --> 00:14:21,000 Then, 327 00:14:21,100 --> 00:14:21,600 in this case, 328 00:14:22,000 --> 00:14:23,440 the bridge 329 00:14:23,440 --> 00:14:24,020 is actually 330 00:14:24,020 --> 00:14:25,260 often not 331 00:14:25,260 --> 00:14:26,160 what we are concerned about 332 00:14:26,160 --> 00:14:27,140 in this topic. 333 00:14:27,660 --> 00:14:27,980 Then, 334 00:14:28,060 --> 00:14:28,880 what we are more concerned about 335 00:14:28,880 --> 00:14:29,320 is that 336 00:14:29,320 --> 00:14:31,280 there is no cloud server like this. 337 00:14:31,280 --> 00:14:31,860 In other words, 338 00:14:33,720 --> 00:14:33,940 an agreement 339 00:14:33,940 --> 00:14:34,580 with this app 340 00:14:35,080 --> 00:14:36,760 and this IoT device 341 00:14:36,760 --> 00:14:38,000 to negotiate in advance 342 00:14:38,000 --> 00:14:39,860 may be 343 00:14:39,860 --> 00:14:40,480 UPNP. 344 00:14:40,540 --> 00:14:41,200 It may be 345 00:14:41,200 --> 00:14:41,740 WebSocket. 346 00:14:41,920 --> 00:14:42,640 It may also be 347 00:14:42,640 --> 00:14:43,220 other applications 348 00:14:43,240 --> 00:14:43,560 that some manufacturers 349 00:14:43,560 --> 00:14:43,940 have customized 350 00:14:43,940 --> 00:14:46,280 as a bridge 351 00:14:46,280 --> 00:14:47,360 or a bridge 352 00:14:48,000 --> 00:14:49,520 data communication process. 353 00:14:52,740 --> 00:14:53,260 Then, 354 00:14:53,340 --> 00:14:53,960 let's take a look 355 00:14:53,960 --> 00:14:56,160 at some of its 356 00:14:56,160 --> 00:14:57,420 bridge attacks 357 00:14:57,420 --> 00:14:57,500 in the IoT device. 358 00:14:57,800 --> 00:14:58,680 First of all, 359 00:14:58,760 --> 00:14:59,320 it only lists 360 00:14:59,320 --> 00:15:00,080 the example 361 00:15:00,080 --> 00:15:01,200 of DNS remodeling. 362 00:15:01,720 --> 00:15:02,440 By using 363 00:15:02,440 --> 00:15:03,340 DNS remodeling, 364 00:15:03,480 --> 00:15:04,260 we reached the first step 365 00:15:04,260 --> 00:15:05,840 and infiltrated the internal network. 366 00:15:05,960 --> 00:15:06,420 Next, 367 00:15:06,600 --> 00:15:07,460 we can analyze 368 00:15:07,460 --> 00:15:08,400 this hardware 369 00:15:08,400 --> 00:15:08,680 and 370 00:15:11,460 --> 00:15:12,240 look at 371 00:15:12,240 --> 00:15:12,940 the open port 372 00:15:12,940 --> 00:15:13,120 and 373 00:15:13,240 --> 00:15:13,680 we can determine 374 00:15:13,680 --> 00:15:14,220 the agreement 375 00:15:14,220 --> 00:15:15,520 that the bridge 376 00:15:15,520 --> 00:15:16,440 has achieved. 377 00:15:16,660 --> 00:15:17,380 For example, 378 00:15:17,440 --> 00:15:17,980 UPNP, 379 00:15:18,080 --> 00:15:18,720 DLNA 380 00:15:18,720 --> 00:15:19,980 or other agreements. 381 00:15:20,420 --> 00:15:21,000 Then, 382 00:15:21,100 --> 00:15:21,800 when we reach 383 00:15:21,800 --> 00:15:22,320 this agreement, 384 00:15:22,720 --> 00:15:24,220 we can better 385 00:15:25,540 --> 00:15:26,160 construct 386 00:15:27,720 --> 00:15:28,960 this kind of 387 00:15:28,960 --> 00:15:29,800 attack request 388 00:15:29,800 --> 00:15:30,060 in the format 389 00:15:30,060 --> 00:15:30,840 to achieve our goal. 390 00:15:31,040 --> 00:15:31,540 Then, 391 00:15:31,660 --> 00:15:32,200 we can see 392 00:15:32,200 --> 00:15:32,760 that there is a difference 393 00:15:32,760 --> 00:15:33,120 the attack 394 00:15:33,120 --> 00:15:35,260 of this app 395 00:15:35,260 --> 00:15:35,680 and 396 00:15:35,680 --> 00:15:37,420 the process 397 00:15:38,400 --> 00:15:39,980 of identity certification 398 00:15:39,980 --> 00:15:40,260 that it missed. 399 00:15:40,480 --> 00:15:41,640 This is because 400 00:15:41,640 --> 00:15:42,680 among the IoT manufacturers, 401 00:15:43,440 --> 00:15:44,000 there are relatively 402 00:15:44,470 --> 00:15:44,740 few manufacturers 403 00:15:44,740 --> 00:15:45,760 that are aware of this 404 00:15:45,760 --> 00:15:46,980 and do identity verification. 405 00:15:50,600 --> 00:15:51,260 In other words, 406 00:15:51,400 --> 00:15:51,800 their attention 407 00:15:51,800 --> 00:15:52,560 should be 408 00:15:52,560 --> 00:15:52,700 lower than 409 00:15:52,700 --> 00:15:53,640 the first level 410 00:15:54,260 --> 00:15:54,520 of ABP. 411 00:15:56,360 --> 00:15:57,220 Let's look at 412 00:15:57,220 --> 00:15:57,700 the first case of 413 00:15:58,300 --> 00:15:59,320 bridge attack 414 00:15:59,320 --> 00:15:59,540 in IoT. 415 00:16:00,560 --> 00:16:01,360 This case 416 00:16:01,360 --> 00:16:02,780 is a DLNA case. 417 00:16:03,460 --> 00:16:04,240 DLNA is 418 00:16:04,240 --> 00:16:04,920 an investment agreement 419 00:16:04,920 --> 00:16:05,420 that is, 420 00:16:05,660 --> 00:16:06,380 mobile phones 421 00:16:06,380 --> 00:16:07,440 or some multimedia 422 00:16:07,440 --> 00:16:07,860 are invested 423 00:16:07,860 --> 00:16:08,760 in the TV market. 424 00:16:08,760 --> 00:16:09,520 In this case, 425 00:16:09,520 --> 00:16:10,380 the target of this IoT device 426 00:16:10,380 --> 00:16:12,200 is a smart TV. 427 00:16:12,620 --> 00:16:13,220 Then, 428 00:16:13,320 --> 00:16:14,100 this smart TV, 429 00:16:14,280 --> 00:16:15,140 first of all, 430 00:16:15,280 --> 00:16:15,560 in the implementation 431 00:16:15,560 --> 00:16:16,660 of the DLNA agreement, 432 00:16:17,100 --> 00:16:18,080 it did not 433 00:16:18,080 --> 00:16:18,920 do identity verification. 434 00:16:19,260 --> 00:16:19,860 Then, 435 00:16:19,980 --> 00:16:20,980 we as attackers 436 00:16:20,980 --> 00:16:22,000 can use 437 00:16:22,000 --> 00:16:23,680 its basic functions 438 00:16:23,680 --> 00:16:23,760 at will. 439 00:16:23,760 --> 00:16:24,360 For example, 440 00:16:24,460 --> 00:16:25,520 you watch TV at home, 441 00:16:25,520 --> 00:16:27,100 I can log in 442 00:16:27,100 --> 00:16:27,620 and play 443 00:16:27,620 --> 00:16:28,780 some other 444 00:16:29,820 --> 00:16:30,220 images 445 00:16:30,220 --> 00:16:30,980 or other 446 00:16:31,740 --> 00:16:32,040 videos 447 00:16:32,340 --> 00:16:32,480 at will. 448 00:16:33,140 --> 00:16:33,740 Then, 449 00:16:33,860 --> 00:16:34,080 in addition 450 00:16:34,080 --> 00:16:34,580 to this way, 451 00:16:35,640 --> 00:16:36,840 it seems that 452 00:16:36,840 --> 00:16:37,160 the threat of DLNA 453 00:16:37,160 --> 00:16:38,120 is not very... 454 00:16:38,760 --> 00:16:39,180 the attack of 455 00:16:39,180 --> 00:16:39,540 bridge attack 456 00:16:39,540 --> 00:16:40,620 is not very big. 457 00:16:42,000 --> 00:16:42,560 However, 458 00:16:42,680 --> 00:16:43,140 this manufacturer 459 00:16:43,140 --> 00:16:44,040 in addition to 460 00:16:44,040 --> 00:16:45,500 this basic 461 00:16:45,500 --> 00:16:46,360 agreement, 462 00:16:46,740 --> 00:16:47,220 it also 463 00:16:47,220 --> 00:16:47,760 made some 464 00:16:47,760 --> 00:16:48,580 expansion. 465 00:16:48,780 --> 00:16:49,320 In other words, 466 00:16:49,560 --> 00:16:50,000 it helped 467 00:16:50,000 --> 00:16:51,400 the DLNA agreement 468 00:16:51,400 --> 00:16:52,140 for its own 469 00:16:52,140 --> 00:16:53,640 for its own 470 00:16:53,640 --> 00:16:53,900 some 471 00:16:53,900 --> 00:16:54,960 some 472 00:16:54,960 --> 00:16:55,760 some 473 00:16:55,760 --> 00:16:56,160 aspects. 474 00:16:56,500 --> 00:16:57,460 It made some 475 00:16:57,460 --> 00:16:57,860 expansion. 476 00:16:58,040 --> 00:16:58,180 Then, 477 00:16:58,260 --> 00:16:59,260 it provides 478 00:16:59,260 --> 00:17:00,200 a series of 479 00:17:00,200 --> 00:17:00,700 interfaces in it 480 00:17:00,700 --> 00:17:01,140 to achieve 481 00:17:01,140 --> 00:17:01,440 the process of 482 00:17:01,440 --> 00:17:01,920 long-term download, 483 00:17:01,940 --> 00:17:02,260 execution, 484 00:17:08,760 --> 00:17:08,860 and verification. 485 00:17:09,040 --> 00:17:09,560 In this way, 486 00:17:09,700 --> 00:17:10,560 we as attackers 487 00:17:10,560 --> 00:17:11,520 can also 488 00:17:11,520 --> 00:17:12,300 construct 489 00:17:12,300 --> 00:17:13,580 such an attack chain. 490 00:17:13,780 --> 00:17:14,560 We use 491 00:17:14,560 --> 00:17:14,920 its 492 00:17:15,820 --> 00:17:16,460 unsafe 493 00:17:16,460 --> 00:17:17,180 bridge 494 00:17:17,180 --> 00:17:17,680 to achieve 495 00:17:17,680 --> 00:17:18,560 the purpose of our attack. 496 00:17:18,920 --> 00:17:19,260 Finally, 497 00:17:19,380 --> 00:17:20,500 it enters the private network 498 00:17:20,500 --> 00:17:21,320 and hits 499 00:17:21,320 --> 00:17:22,140 our code. 500 00:17:24,460 --> 00:17:25,140 Here is 501 00:17:25,140 --> 00:17:25,660 the second 502 00:17:25,660 --> 00:17:26,380 case of 503 00:17:26,380 --> 00:17:27,460 bridge attack. 504 00:17:28,520 --> 00:17:29,000 This is 505 00:17:29,000 --> 00:17:29,240 also 506 00:17:29,240 --> 00:17:30,260 a TV manufacturer. 507 00:17:30,620 --> 00:17:31,520 But this TV manufacturer 508 00:17:31,520 --> 00:17:32,560 changed 509 00:17:32,560 --> 00:17:33,160 thinking 510 00:17:33,160 --> 00:17:33,520 about 511 00:17:33,520 --> 00:17:33,860 this. 512 00:17:34,120 --> 00:17:35,040 We first 513 00:17:35,040 --> 00:17:35,560 analyzed 514 00:17:35,560 --> 00:17:36,400 its 515 00:17:36,400 --> 00:17:37,420 central control 516 00:17:37,420 --> 00:17:37,600 app. 517 00:17:38,040 --> 00:17:39,000 After analyzing 518 00:17:39,000 --> 00:17:39,600 this central control 519 00:17:39,600 --> 00:17:39,820 app, 520 00:17:40,120 --> 00:17:40,700 we found that 521 00:17:40,700 --> 00:17:41,460 it was not protected 522 00:17:41,460 --> 00:17:42,460 by the code. 523 00:17:42,900 --> 00:17:43,200 Then, 524 00:17:43,300 --> 00:17:43,820 we easily 525 00:17:43,820 --> 00:17:44,600 obtained 526 00:17:44,600 --> 00:17:45,340 the agreement 527 00:17:45,340 --> 00:17:47,080 and some 528 00:17:47,960 --> 00:17:48,560 specific 529 00:17:48,560 --> 00:17:49,000 format 530 00:17:49,000 --> 00:17:49,200 in its agreement. 531 00:17:50,480 --> 00:17:51,080 Then, 532 00:17:51,280 --> 00:17:51,660 we found 533 00:17:51,660 --> 00:17:51,880 the websocket 534 00:17:51,880 --> 00:17:52,260 of Wireshark 535 00:17:52,260 --> 00:17:52,900 that 536 00:17:52,900 --> 00:17:53,860 it is 537 00:17:53,860 --> 00:17:54,080 through 538 00:18:02,900 --> 00:18:03,500 Websocket 539 00:18:03,500 --> 00:18:03,840 it can 540 00:18:03,840 --> 00:18:04,260 the 541 00:18:04,260 --> 00:18:05,060 remote 542 00:18:05,060 --> 00:18:05,540 download 543 00:18:06,280 --> 00:18:07,000 and 544 00:18:07,000 --> 00:18:07,620 operation 545 00:18:07,620 --> 00:18:08,060 process. 546 00:18:08,220 --> 00:18:08,660 Of course, 547 00:18:08,720 --> 00:18:08,960 it also 548 00:18:08,960 --> 00:18:09,720 did not 549 00:18:09,720 --> 00:18:10,320 do any 550 00:18:10,320 --> 00:18:11,180 verification. 551 00:18:14,440 --> 00:18:15,160 After 552 00:18:15,160 --> 00:18:15,520 looking 553 00:18:15,520 --> 00:18:15,540 at 554 00:18:15,540 --> 00:18:15,700 the 555 00:18:15,700 --> 00:18:16,220 bridge 556 00:18:16,220 --> 00:18:16,720 and 557 00:18:16,720 --> 00:18:17,140 IoT, 558 00:18:18,660 --> 00:18:18,940 let's 559 00:18:18,940 --> 00:18:19,900 think 560 00:18:19,900 --> 00:18:20,240 about 561 00:18:20,240 --> 00:18:20,440 how 562 00:18:20,440 --> 00:18:20,880 we can 563 00:18:21,230 --> 00:18:21,460 prevent 564 00:18:21,460 --> 00:18:22,440 this attack. 565 00:18:23,200 --> 00:18:23,660 Then, 566 00:18:23,760 --> 00:18:24,220 I think 567 00:18:24,220 --> 00:18:25,120 first of all, 568 00:18:25,900 --> 00:18:26,680 for the app, 569 00:18:27,260 --> 00:18:27,460 that is, 570 00:18:27,520 --> 00:18:28,080 the JS Bridge, 571 00:18:29,300 --> 00:18:30,480 we need to 572 00:18:30,960 --> 00:18:31,420 strictly 573 00:18:31,420 --> 00:18:32,020 verify 574 00:18:32,020 --> 00:18:32,680 this identity. 575 00:18:32,840 --> 00:18:33,140 Just like 576 00:18:33,140 --> 00:18:34,020 the contents 577 00:18:34,020 --> 00:18:34,320 or 578 00:18:34,320 --> 00:18:34,740 as with, 579 00:18:34,980 --> 00:18:35,640 at least, 580 00:18:35,740 --> 00:18:36,780 do not appear again. 581 00:18:37,020 --> 00:18:37,480 Then, 582 00:18:37,600 --> 00:18:38,400 the second thing is that 583 00:18:38,400 --> 00:18:39,160 we have to make an agreement 584 00:18:39,160 --> 00:18:39,580 with the ability of this bridge. 585 00:18:41,400 --> 00:18:42,020 For example, 586 00:18:42,100 --> 00:18:42,980 there is an attack of XSS. 587 00:18:43,700 --> 00:18:44,540 You say I just 588 00:18:44,540 --> 00:18:45,260 can't prevent 589 00:18:45,260 --> 00:18:47,240 all the XSS 590 00:18:47,240 --> 00:18:47,760 to be blocked. 591 00:18:47,760 --> 00:18:48,360 It doesn't matter. 592 00:18:48,640 --> 00:18:50,080 You don't set 593 00:18:50,080 --> 00:18:50,240 the whole line 594 00:18:50,240 --> 00:18:51,240 domain 595 00:18:51,240 --> 00:18:52,640 to be very large. 596 00:18:52,800 --> 00:18:53,260 Then, 597 00:18:53,340 --> 00:18:54,760 you can make the whole line 598 00:18:54,760 --> 00:18:55,060 into a 599 00:18:55,060 --> 00:18:55,740 sharp 600 00:18:55,740 --> 00:18:56,440 division. 601 00:18:56,980 --> 00:18:57,920 Even if it gets 602 00:18:57,920 --> 00:18:59,740 the XSS of a specific domain, 603 00:18:59,740 --> 00:19:00,580 it can't get 604 00:19:00,580 --> 00:19:01,360 all the 605 00:19:01,360 --> 00:19:01,500 ability of this 606 00:19:01,500 --> 00:19:02,120 bridge. 607 00:19:02,600 --> 00:19:03,240 In this way, 608 00:19:03,300 --> 00:19:04,020 it can also 609 00:19:04,020 --> 00:19:04,740 make a limit limit. 610 00:19:05,240 --> 00:19:05,760 Finally, 611 00:19:06,720 --> 00:19:07,740 try to use 612 00:19:07,740 --> 00:19:08,520 this HTTPS 613 00:19:08,520 --> 00:19:09,720 or some encrypted signals 614 00:19:09,720 --> 00:19:10,280 to ensure 615 00:19:10,280 --> 00:19:11,440 that the middleman is not attacked. 616 00:19:11,960 --> 00:19:12,680 For the 617 00:19:12,680 --> 00:19:13,400 IoT bridge, 618 00:19:14,720 --> 00:19:15,240 we 619 00:19:15,240 --> 00:19:15,560 consider more 620 00:19:15,560 --> 00:19:17,520 the same strategy 621 00:19:17,520 --> 00:19:18,500 and the JS bridge. 622 00:19:18,760 --> 00:19:19,240 In addition, 623 00:19:19,460 --> 00:19:21,260 we also need to be careful. 624 00:19:21,560 --> 00:19:22,580 For manufacturers, 625 00:19:22,860 --> 00:19:23,800 we still don't 626 00:19:23,800 --> 00:19:25,260 try to abuse 627 00:19:25,260 --> 00:19:25,680 the ability of 628 00:19:25,680 --> 00:19:26,260 this bridge 629 00:19:26,260 --> 00:19:27,420 to expand 630 00:19:27,420 --> 00:19:28,360 this basic agreement 631 00:19:28,360 --> 00:19:29,020 randomly. 632 00:19:29,400 --> 00:19:30,160 If you really 633 00:19:30,160 --> 00:19:30,980 want to expand it, 634 00:19:31,140 --> 00:19:32,160 make sure 635 00:19:32,160 --> 00:19:32,680 you must 636 00:19:33,040 --> 00:19:33,920 add this 637 00:19:33,920 --> 00:19:34,940 possible 638 00:19:34,940 --> 00:19:35,460 test 639 00:19:35,460 --> 00:19:35,860 part. 640 00:19:38,100 --> 00:19:38,460 Finally, 641 00:19:39,020 --> 00:19:39,580 I will 642 00:19:39,580 --> 00:19:40,800 make a summary 643 00:19:40,800 --> 00:19:41,100 of this sharing. 644 00:19:41,940 --> 00:19:42,660 Regarding 645 00:19:42,660 --> 00:19:43,200 the bridge 646 00:19:43,200 --> 00:19:43,740 attack, 647 00:19:45,300 --> 00:19:46,580 first of all, 648 00:19:46,600 --> 00:19:48,060 it has more 649 00:19:48,060 --> 00:19:49,140 target options. 650 00:19:49,740 --> 00:19:50,080 For example, 651 00:19:50,200 --> 00:19:50,560 more 652 00:19:50,560 --> 00:19:50,890 apps 653 00:19:51,280 --> 00:19:52,080 and IoT 654 00:19:52,080 --> 00:19:52,960 can be your 655 00:19:52,960 --> 00:19:53,180 target. 656 00:19:53,740 --> 00:19:54,360 Secondly, 657 00:19:54,740 --> 00:19:55,580 for us attackers, 658 00:19:56,340 --> 00:19:57,220 from the perspective 659 00:19:57,220 --> 00:19:57,580 of bridge attack, 660 00:19:58,480 --> 00:19:58,990 to analyze 661 00:20:00,100 --> 00:20:01,080 the risk, 662 00:20:01,280 --> 00:20:02,200 we have more 663 00:20:02,200 --> 00:20:03,180 attack 664 00:20:03,180 --> 00:20:03,560 aspects 665 00:20:03,560 --> 00:20:04,200 to consider. 666 00:20:04,460 --> 00:20:05,360 We can easily 667 00:20:05,360 --> 00:20:05,900 integrate 668 00:20:05,900 --> 00:20:06,260 the security 669 00:20:06,260 --> 00:20:06,720 of web attacks 670 00:20:06,720 --> 00:20:07,720 and apps 671 00:20:07,720 --> 00:20:08,420 and IoT 672 00:20:08,420 --> 00:20:09,100 together. 673 00:20:10,600 --> 00:20:11,260 Thirdly, 674 00:20:11,360 --> 00:20:12,020 it is very easy 675 00:20:12,020 --> 00:20:12,480 to use. 676 00:20:13,740 --> 00:20:13,880 By using 677 00:20:13,880 --> 00:20:15,060 a malicious 678 00:20:15,060 --> 00:20:15,380 URL, 679 00:20:15,900 --> 00:20:17,080 it can achieve 680 00:20:17,080 --> 00:20:17,500 a fast 681 00:20:17,500 --> 00:20:18,640 and wide 682 00:20:18,640 --> 00:20:19,100 transmission 683 00:20:19,940 --> 00:20:20,620 Finally, 684 00:20:20,940 --> 00:20:22,780 it can use 685 00:20:22,780 --> 00:20:23,440 the results 686 00:20:23,440 --> 00:20:25,040 such as 687 00:20:25,040 --> 00:20:25,660 long-term 688 00:20:25,660 --> 00:20:25,900 use, 689 00:20:26,080 --> 00:20:26,300 local 690 00:20:26,300 --> 00:20:26,580 use, 691 00:20:26,720 --> 00:20:26,940 or 692 00:20:26,940 --> 00:20:27,840 information 693 00:20:27,840 --> 00:20:28,180 leakage 694 00:20:28,180 --> 00:20:28,780 and even 695 00:20:28,780 --> 00:20:29,320 continuous 696 00:20:29,320 --> 00:20:30,060 attack. 697 00:20:34,060 --> 00:20:35,420 Thank you 698 00:20:35,420 --> 00:20:35,700 for 699 00:20:35,700 --> 00:20:36,000 sharing 700 00:20:36,000 --> 00:20:36,360 with me. 701 00:20:44,120 --> 00:20:44,300 See you next time. 702 00:20:44,300 --> 00:20:44,320 Bye. 703 00:20:44,400 --> 00:20:44,500 Bye.