1 00:00:00,000 --> 00:00:01,740 Good morning everyone. 2 00:00:01,740 --> 00:00:03,880 Thank you for being here so early. 3 00:00:04,020 --> 00:00:09,700 I'm so glad to have this opportunity to talk with you at the DEF CON Blue Team Village. 4 00:00:09,880 --> 00:00:22,160 My name is Yan and my colleague's name is Siyu but he can't be here because of his visa so I will share it by myself this time. 5 00:00:23,480 --> 00:00:34,620 And I'm not good at English so if you have any questions about this talk, it's better that we can chat face-to-face after I finish this talk. 6 00:00:35,220 --> 00:00:36,380 Thank you. 7 00:00:36,560 --> 00:00:44,920 The topic is Embedded Microsoft ATA but you are completely exposed by the event log. 8 00:00:45,180 --> 00:00:53,780 So I will talk about how our team attacked AD attacks and what we have done. 9 00:00:55,000 --> 00:00:58,700 We are the zero key team from 360. 10 00:00:59,120 --> 00:01:06,280 Our team focus on web application security and testing and enterprise security. 11 00:01:06,800 --> 00:01:13,520 And this is our team's blog website but there are all Chinese blogs now. 12 00:01:13,520 --> 00:01:16,800 I think we will write some English blogs later. 13 00:01:19,660 --> 00:01:22,740 Okay, this talk has six parts. 14 00:01:22,740 --> 00:01:25,640 The first part introduce why we do it. 15 00:01:25,640 --> 00:01:34,440 And the second part is the architecture we have designed to analyze the event log in real time. 16 00:01:34,780 --> 00:01:40,420 In the third part, we will show you some detections in detail. 17 00:01:40,420 --> 00:01:49,200 In the fourth part, we will show you the examples in the current program we use to detect the AD attacks. 18 00:01:49,200 --> 00:01:51,940 Finally, we will show you the summary and the synopsis. 19 00:01:51,940 --> 00:01:53,420 Okay, let's go. 20 00:01:55,200 --> 00:02:00,280 Most enterprises are managed using active directory now. 21 00:02:00,580 --> 00:02:04,320 AD attack always occurs in the APT. 22 00:02:04,320 --> 00:02:08,760 Through it, the attacks can access to the important assets. 23 00:02:08,900 --> 00:02:13,820 So the enterprises has paid more attention to the AD security now. 24 00:02:13,820 --> 00:02:21,900 We need to detect advanced attacks and insider threats before they cause damage to our organization. 25 00:02:22,580 --> 00:02:32,660 But from the internal recon to assess the AD attack covers multiple attack kill chance stages. 26 00:02:33,660 --> 00:02:39,240 There are many methods and tools to do the AD attack. 27 00:02:39,800 --> 00:02:45,800 So it's hard to distinguish the normal and abnormal behaviors. 28 00:02:45,800 --> 00:02:49,520 There are a few tools we can use to protect our AD. 29 00:02:49,620 --> 00:02:56,320 Even many defenders don't know they have suffered the AD attack. 30 00:02:56,780 --> 00:03:02,260 First to the AD attack, the blue team is always in a passive situation. 31 00:03:02,500 --> 00:03:06,560 They said I can detect AD attacks but you can't. 32 00:03:08,920 --> 00:03:13,860 I have to say the Microsoft ATA. 33 00:03:13,860 --> 00:03:19,700 Microsoft ATA may be the most famous and the best tools to detect AD attacks. 34 00:03:19,700 --> 00:03:33,700 The main detection method of ATA is to analyze the traffic through an ATA gateway or the deployed lightweight gateway directly on the DC. 35 00:03:33,880 --> 00:03:38,920 Addition, it can import and analyze Windows event tool. 36 00:03:39,180 --> 00:03:47,800 Microsoft ATA can detect multiple suspicious activities and cover most of the attack kill chance. 37 00:03:47,800 --> 00:03:53,160 To be honest, it's the first company to achieve such a great effect. 38 00:03:53,160 --> 00:03:54,920 But is that all? 39 00:03:55,760 --> 00:03:58,860 First, the ATA is not cheap. 40 00:03:59,220 --> 00:04:03,040 It's price is $80 per user. 41 00:04:03,320 --> 00:04:14,840 I saw it on their documents that to our company, there are more than 6,000 employees in the company. 42 00:04:15,310 --> 00:04:21,360 It may cost about $500,000. 43 00:04:21,360 --> 00:04:26,280 Moreover, ATA has some limitations. 44 00:04:27,100 --> 00:04:43,720 They analyze traffic mainly so we have some problems with encrypted traffic, the unmonitored protocols and the update to detect new attacks and some bypassing and so on. 45 00:04:44,040 --> 00:04:49,840 So if you want to know more about ATA bypass, you can refer to this Black Hat talk. 46 00:04:49,880 --> 00:04:57,220 So we decided to do it by ourself, although the Microsoft ATA is really great. 47 00:05:00,660 --> 00:05:04,960 We do not use the traffic to detect attacks. 48 00:05:05,280 --> 00:05:09,560 The only thing we focus on is the event log of the DC. 49 00:05:09,680 --> 00:05:17,660 The event log records all the user activities and the object changes in active directory. 50 00:05:17,880 --> 00:05:26,420 Before we analyze the event log, we need to turn on all the audit items in the local audit policy. 51 00:05:28,040 --> 00:05:33,540 So let's look at the format of the event log. 52 00:05:33,540 --> 00:05:36,320 There are 2 different parts in the event log. 53 00:05:36,320 --> 00:05:41,720 The first part is general information such as the system information. 54 00:05:41,740 --> 00:05:47,940 The second part is detailed information of changes according to different event IDs. 55 00:05:48,160 --> 00:05:51,700 We focus on those common IDs. 56 00:05:52,340 --> 00:05:59,720 You can see that different event ID uh represents different interesting action. 57 00:06:01,380 --> 00:06:05,240 Okay, this picture is an architecture we designed. 58 00:06:05,740 --> 00:06:15,160 We collect the event logs on all of the DCs by one log bit and send them to the log stash. 59 00:06:15,400 --> 00:06:20,120 Next, log stash will save the logs to RabbitMQ. 60 00:06:20,120 --> 00:06:25,400 After that, the logs will be consumed to trials. 61 00:06:26,160 --> 00:06:29,240 One is saved to the elastic search. 62 00:06:29,240 --> 00:06:36,040 Another one is analyzed by our detection algorithm. 63 00:06:36,940 --> 00:06:43,160 We learn the behavior of users through logs and then generate alarms. 64 00:06:43,860 --> 00:06:48,980 Finally, we can see the detail alarm data on the web console. 65 00:06:50,720 --> 00:06:57,300 Our architecture is very lightweight so just install the one log bit on all DCs. 66 00:06:57,300 --> 00:07:02,260 There is no other impact on the domain environment. 67 00:07:03,220 --> 00:07:06,340 So let's punch the intruders. 68 00:07:07,980 --> 00:07:11,680 Then this is an important part. 69 00:07:11,820 --> 00:07:20,400 According to the way of detections, we will explain this content through 5 kinds. 70 00:07:20,400 --> 00:07:27,800 The contents covers most common attacks and more detection methods are not listed because of time. 71 00:07:29,640 --> 00:07:34,460 The first kind, incompleted Kerberos protocol. 72 00:07:35,260 --> 00:07:42,000 Let's review the Kerberos process which is roughly divided to 3 steps. 73 00:07:42,380 --> 00:07:48,400 The first step is authentication service, aka AS. 74 00:07:49,400 --> 00:07:54,200 The user generates the password hash and sends it to the KDC. 75 00:07:54,200 --> 00:08:06,260 After the KDC verifies the user has verified it successfully, the TGT is encrypted by the password hash of the content named the KRB TGT. 76 00:08:06,620 --> 00:08:11,780 And the final TGT is returned to the user. 77 00:08:11,780 --> 00:08:15,280 The second step is the TK grant service. 78 00:08:15,280 --> 00:08:26,520 The user sends the TGT to the KDC, then the KDC does not verify whether the user has permissions to the service. 79 00:08:26,520 --> 00:08:35,740 It only checks whether the TGT can be decrypted with the password of the content named the KRB TGT. 80 00:08:35,740 --> 00:08:45,060 And the user then uses the machine password of the target service to get the ST. 81 00:08:47,360 --> 00:08:52,500 Finally, the user uses ST to access the target service. 82 00:08:52,500 --> 00:08:52,600 The last step is the TGS. 83 00:08:53,120 --> 00:09:07,760 In the previous 2 steps, the AS request will trigger the 4768 log and the TGS request will trigger the 4769 log. 84 00:09:07,760 --> 00:09:16,160 So the complete Kerberos will have both 4768 and 4769 logs. 85 00:09:16,160 --> 00:09:21,440 We can track each Kerberos TKT request by the event logs. 86 00:09:21,500 --> 00:09:22,540 So let's see the Kerberos TKT request. 87 00:09:22,560 --> 00:09:25,040 This is a golden TKT. 88 00:09:25,100 --> 00:09:31,060 The TGT is encrypted using password hash of the account named the KRB TGT. 89 00:09:31,060 --> 00:09:39,880 Once we got this hash, we can forge any user's TGT which is a golden TKT. 90 00:09:39,980 --> 00:09:53,560 Because the TGT is forged, the user does not send a corresponding AS request from the machine and there is no 4768 log on the DC. 91 00:09:54,380 --> 00:10:04,040 And moreover, the default maximum lifetime for TGT and ST is 10 hours. 92 00:10:04,540 --> 00:10:09,220 So the detection idea is very obvious. 93 00:10:11,120 --> 00:10:26,140 When we found the 4769 event log, we can search for the corresponding TGT request record according to the time of the TGT maximum lifetime. 94 00:10:26,140 --> 00:10:40,940 For example, we- we received a 4769 log whose source IP is xxx.12 and the target username is hacker. 95 00:10:40,940 --> 00:10:47,860 Next, we need to find a 4768 log from the stored logs. 96 00:10:47,860 --> 00:10:58,680 So we need to find the 4769 log whose source IP is also xxx.12 and target username is hacker and the time is within 10 hours. 97 00:10:58,880 --> 00:11:00,680 Just like the picture. 98 00:11:00,800 --> 00:11:05,520 If you can't find one, maybe you have been attacked by the golden TKT. 99 00:11:07,060 --> 00:11:12,860 Golden TKT is forged TGT but the silver TKT is forged ST. 100 00:11:13,500 --> 00:11:18,000 The ST is encrypted by the password hash of the machine. 101 00:11:18,000 --> 00:11:22,220 If we have the machine password hash, we can forge the ST. 102 00:11:22,220 --> 00:11:36,920 So the attacker will not send the boss AS request and there are neither 4768 nor 4769 logs left on the DC. 103 00:11:36,920 --> 00:11:39,080 So how can we detect it? 104 00:11:39,960 --> 00:11:44,720 The detection idea is similar to the golden TKT. 105 00:11:44,720 --> 00:11:56,640 When the 4624 event is triggered on the DC, find the corresponding 4768 and 4769 event logs. 106 00:11:56,640 --> 00:12:07,640 For example, we received a 4624 log whose source IP is xxx.12, target username is hacker. 107 00:12:07,640 --> 00:12:15,260 Next, we will need to find a 4769 log from the stored logs. 108 00:12:15,260 --> 00:12:15,280 We need to find a 4769 log from the stored logs . 109 00:12:15,280 --> 00:12:21,760 We need to find a 4769 log whose source IP is xxx.12, target username is hacker. 110 00:12:22,240 --> 00:12:28,000 If you can't find one, maybe you have been attacked by a silver TKT. 111 00:12:28,300 --> 00:12:38,760 You can see that it seems that we can only detect the silver TKT when attacking the DC use silver TKT. 112 00:12:38,760 --> 00:12:44,300 I will talk about another way to detect the silver TKT in another part later. 113 00:12:46,620 --> 00:12:59,160 So only rely on the event log, we can't exactly link the TGT and the ST according to a unique ID. 114 00:12:59,160 --> 00:13:02,220 I can't find such a value in the log. 115 00:13:03,200 --> 00:13:14,660 Currently we only rely on source IP and target username and target username to track the source of the TKT request. 116 00:13:15,780 --> 00:13:20,800 The source IP may change, causing some false positives. 117 00:13:21,300 --> 00:13:33,480 In theory, there are- there is no false negative and you can reduce false positives by add some filters. 118 00:13:35,880 --> 00:13:39,420 Okay, the second kind, login records. 119 00:13:39,420 --> 00:13:39,440 Login records are very important . 120 00:13:40,960 --> 00:13:52,280 In addition to the Kerberos protocol introduced earlier, there is another authentication protocol in the domain, NTLM. 121 00:13:53,000 --> 00:13:57,080 Here is how we detect positive hash. 122 00:13:57,080 --> 00:14:10,860 Attackers can remotely access a target workstation with NTLM hash by using tools such as Mimikaz, WMIC, SMB client and so on. 123 00:14:10,940 --> 00:14:21,720 If a domain account is used for authentication, the 4776 event log will be triggered on the DC. 124 00:14:22,180 --> 00:14:28,280 The target account and the source workstation name are displayed in the log. 125 00:14:30,080 --> 00:14:47,120 Although we can't analyze the abnormal protocol like ATA to track the PTH, but we can establish a mapping of user names and the workstations by recording login event log. 126 00:14:47,640 --> 00:14:55,540 Each domain account should log into its own machine and the cross machine login behavior is not allowed. 127 00:14:55,540 --> 00:15:08,960 So when we found that the target user name and the computer name shown in the 4776 log are not the same as the known mapping, we need to pay attention to it. 128 00:15:08,960 --> 00:15:20,600 But unfortunately, we found some false positives because many people use their own domain account to log in a public computer. 129 00:15:22,380 --> 00:15:37,560 The third kind, sensitive action, includes some high risk operations and activities that do not match the target's identity. 130 00:15:38,900 --> 00:15:41,380 Case 1, modify ACL. 131 00:15:41,820 --> 00:15:46,080 ACL is a list of access control entries. 132 00:15:46,180 --> 00:16:00,100 The ACL determines who can access the objects in the AD and each object have a property called security descriptor which store the information about it. 133 00:16:00,820 --> 00:16:05,300 ACL is divided into DACL and SACL. 134 00:16:05,300 --> 00:16:16,580 The DACL lists the security information about who have access rights to the object and his level of access. 135 00:16:16,640 --> 00:16:21,040 Here we mainly focus on DACL. 136 00:16:23,120 --> 00:16:32,520 The SACL modification is recorded in detail in the 5136 log. 137 00:16:32,520 --> 00:16:39,620 The SS-SDDL syntax is used to describe the permission information in the log. 138 00:16:40,620 --> 00:16:47,960 It defines the SID of the AD object, the group ID, and the flags of the DACL. 139 00:16:47,960 --> 00:16:55,940 It contains a list of ACE and each ACE defines the group ID and the flags of the permissions of an object. 140 00:16:57,480 --> 00:17:03,740 Next, let me explain how to detect ACL-related attacks. 141 00:17:03,740 --> 00:17:14,440 CVE 2018 8581, the popular exchange vulnerability at the beginning of the year. 142 00:17:15,080 --> 00:17:27,440 Attacker modifies the ACL by NTLM relate to DC and then execute DC sync. 143 00:17:27,980 --> 00:17:39,280 The requirement to execute DC sync is to have the replicating directory changes and the replicating directory changes all permissions. 144 00:17:39,280 --> 00:17:58,500 So the attack use the exchange account to modify the ADCL and the ACL and add the permission to modify the ACL we are 5136 event log. 145 00:17:58,500 --> 00:18:03,480 Then we can check the permissions after passing the attribute value. 146 00:18:04,840 --> 00:18:15,260 Monitor all 5136 events and find out that someone add abnormal account access to the ACL. 147 00:18:16,540 --> 00:18:40,920 Pay attention to the user who performs the modification- modify operation if it's a default account like the exchange then the domain is likely to have been attacked because this account rarely has active operations. 148 00:18:42,560 --> 00:18:45,920 Case 2, detect DC shadow. 149 00:18:46,000 --> 00:18:55,880 It can remotely modify the object information in the domain without logging to the domain controllers. 150 00:18:56,540 --> 00:19:05,600 The actor stimulates the machine as a DC sending a sync request to the real domain controller. 151 00:19:05,600 --> 00:19:18,600 The technique is considered difficult to detect, however, the attack can be easily detected by analyzing the event log. 152 00:19:20,140 --> 00:19:25,600 We select 2 of the event logs to introduce detection. 153 00:19:25,600 --> 00:19:27,400 First the DC shadow. 154 00:19:28,280 --> 00:19:46,420 As the SPN to the current computer, the value is prefixed with the DIS interface GUID like E3514235 dot dot here. 155 00:19:46,420 --> 00:19:56,360 So we detect 4742 event log and check the SPN value modification of the computer account. 156 00:19:56,380 --> 00:20:03,920 If a special value in it and the computer is not a DC, this is a DC shadow attack. 157 00:20:04,760 --> 00:20:14,460 Second, we check the replication monitoring event, the false none to none log. 158 00:20:14,460 --> 00:20:20,520 If the source address is not a DC, this is also a DC shadow attack. 159 00:20:24,130 --> 00:20:28,070 Another one, admin privilege granted. 160 00:20:28,550 --> 00:20:33,570 Attacks at compromised account to some client. 161 00:20:33,570 --> 00:20:36,170 The attacker can use this group to keep persistence. 162 00:20:36,250 --> 00:20:51,470 These groups are not just domain admins and administrators, but also include backup operators, DNS admins, server operators, account operators, and so on. 163 00:20:51,470 --> 00:20:56,290 So we need to pay attention to the following event log like this one. 164 00:20:56,730 --> 00:21:02,230 The member name is hacker and the target user name is domain admins. 165 00:21:02,230 --> 00:21:10,210 It seems that the hacker will be added to the domain admins and have the administrator's privileges. 166 00:21:14,090 --> 00:21:16,250 Constraint delegation. 167 00:21:16,790 --> 00:21:24,010 Adding to account to the administrator group is too obvious and easy to find. 168 00:21:24,010 --> 00:21:37,650 So the attacker can access the DC by setting the constraint delegation on the target DC for the compromised account. 169 00:21:37,650 --> 00:21:50,910 For example, setting the value of a log to delegate to is LDAP slash DC dot DefCon dot org and you can execute DC sync to DC. 170 00:21:53,270 --> 00:21:59,430 The detection of the constraint delegation is easy. 171 00:21:59,570 --> 00:22:03,090 Modify a user account where triggered by the attacker. 172 00:22:03,110 --> 00:22:06,670 4, 7, 3, 8 event log. 173 00:22:06,670 --> 00:22:20,890 We can check a lot to delegate to field and find a sensitive value such as LDAP, CIFS, and host to find the attacks. 174 00:22:24,210 --> 00:22:27,150 The fourth kind, honeypot account. 175 00:22:28,110 --> 00:22:39,130 We can create accounts with administrator privileges that contain settings which are of interest to the attackers. 176 00:22:40,770 --> 00:22:50,830 Those accounts don't look any different from the normal accounts, they just have the attractive permissions. 177 00:22:52,310 --> 00:22:57,490 The first honeypot account have attractive SPN value. 178 00:22:57,970 --> 00:23:12,650 Cobra hosting's first step is to find a service account which with a specific prefix value for SPN or admin account equal to 1. 179 00:23:12,650 --> 00:23:26,030 The attackers attempts to request the ST using RC4 encryption and the local offline crack password. 180 00:23:26,030 --> 00:23:35,010 If the account has privileges such as permissions, have administrator privileges, the attacker can quickly access. 181 00:23:36,490 --> 00:23:48,970 Pay close attention to all activities related to the honeypot account such as SAM, Cobras, and account login and so on. 182 00:23:51,590 --> 00:24:11,950 If the honeypot account with SPN value of the MS SQL server, service prefix does not attract the attacker, set a constraint delegation with a value of LDAP slash DC DEF CON organization for this account. 183 00:24:15,630 --> 00:24:26,910 Once the attacker crack this honeypot account, he can got all the passwords from the account via DC sync. 184 00:24:26,910 --> 00:24:37,850 While it's so great, the attacker can only need to request the ST and then have a cup of coffee waiting for the password to be crashed successfully. 185 00:24:37,850 --> 00:24:40,250 But we are waiting for them to. 186 00:24:41,470 --> 00:24:48,930 The third honeypot account not required pre-auth. 187 00:24:49,250 --> 00:25:01,050 If setting the do not require Cobras authentication, the attacker can request the TGT for offline uh cracking. 188 00:25:01,350 --> 00:25:11,210 We can turn this option on to induce uh attackers to request it so that we can detect malicious behaviors. 189 00:25:13,250 --> 00:25:16,330 Final pay attention please. 190 00:25:16,330 --> 00:25:25,570 In your situation, the honeypot account will not be used so any related locks will be triggered by the attacker. 191 00:25:25,790 --> 00:25:41,930 In order to prevent successful cracking the honeypot account, must set a complex password and the password length is greater than 12 uh no no no no, 25. 192 00:25:42,590 --> 00:25:52,270 Also in order to prevent and catch the TKs of being takeover by other messers, do not log in and use the account. 193 00:25:54,050 --> 00:25:58,350 The fifth part, detect unknown threats. 194 00:25:59,950 --> 00:26:02,830 Case 1, fake account info. 195 00:26:03,890 --> 00:26:11,170 Each user has a unique and unchanging SID in the domain. 196 00:26:11,230 --> 00:26:16,610 You can query the information of account by username or SID. 197 00:26:19,880 --> 00:26:31,120 When an attacker use Mimikatz to create a silver ticket, he can fill in any user and any ID parameters. 198 00:26:32,000 --> 00:26:38,280 This ticket is valid but the lock will record all the information. 199 00:26:38,360 --> 00:26:51,520 So when the attackers use silver ticket to log in to the DC, the following 4, 6, 2, 4 locks will be left on the DC. 200 00:26:53,300 --> 00:27:05,200 When the attacker randomly filled in the username or SID, we can see that the username and SID can't match or can't be queried. 201 00:27:05,300 --> 00:27:11,860 So we can use another way to detect the silver ticket when the hacker is not careful. 202 00:27:15,460 --> 00:27:21,920 Case 2, privilege escalation. 203 00:27:22,440 --> 00:27:25,100 I think it's very worth to show. 204 00:27:25,220 --> 00:27:34,100 The 4, 6, 7, 2 event log is triggered on the DC when the administrator logs in to the DC. 205 00:27:35,300 --> 00:27:46,000 In other words, only the administrator's login can trigger the 4, 6, 7, 2 event log. 206 00:27:46,000 --> 00:27:55,160 The 3, 4, 6, 7, 2 event log can trigger the subject username and the subject user SID fields show the current administrator's name and SID. 207 00:27:55,160 --> 00:27:57,740 So what can we do? 208 00:27:58,120 --> 00:28:00,740 We found something interesting. 209 00:28:00,740 --> 00:28:16,160 After you successfully escalate privilege with MS-1406A and you log in to the DC, it will trigger the 4, 6, 7, 2 event log. 210 00:28:17,480 --> 00:28:21,280 But at this point, you are not an administrator. 211 00:28:21,360 --> 00:28:29,320 You just forged a PAC and got temporary administrator privileges. 212 00:28:29,320 --> 00:28:39,700 So when we found the name in the 4, 6, 7, 2 log but he is not an administrator, it must have been attacked. 213 00:28:39,760 --> 00:28:50,100 More than MS-14068, there may be other ways to escalate privileges in the future. 214 00:28:50,100 --> 00:29:00,840 As long as it is a temporary privilege escalation, it must not escape this detection. 215 00:29:02,680 --> 00:29:06,100 At the last, more detections. 216 00:29:06,100 --> 00:29:16,160 We can detect the co-hosting AS request by monitoring the value of ticket encryption type in 4, 6, 7, 2 event log. 217 00:29:16,180 --> 00:29:20,260 And 4, 7, 6, 8 and 4, 7, 6, 9 event log. 218 00:29:20,260 --> 00:29:33,800 We can recognize the attacker's tools by monitoring the value of ticket options in 4, 7, 6, 8 and 4, 7, 6, 9 event log. 219 00:29:35,020 --> 00:29:42,040 There are many tricks here but it needs a long time to describe them. 220 00:29:42,420 --> 00:29:48,780 So I won't talk about these tricks and many other detections in detail this time. 221 00:29:48,780 --> 00:29:55,060 If you are interested in them, I can show you after I finished the talk. 222 00:29:58,820 --> 00:30:00,660 Achievements here. 223 00:30:00,660 --> 00:30:03,040 There are some videos. 224 00:30:04,160 --> 00:30:08,420 It's so sorry that it only has the Chinese version. 225 00:30:10,020 --> 00:30:13,620 So the first one is easy. 226 00:30:13,620 --> 00:30:20,760 It's an example that we detect the target admin group enumeration. 227 00:30:21,480 --> 00:30:29,320 We executed the net group domain admin slash domain account comment. 228 00:30:32,060 --> 00:30:34,660 Open our web console. 229 00:30:35,300 --> 00:30:37,120 We detect it. 230 00:30:37,120 --> 00:30:47,320 It shows that someone enumerated the domain groups by using the account name test user 1. 231 00:30:53,400 --> 00:30:59,560 Okay, this is an example that we detect the golden ticket attack. 232 00:31:06,610 --> 00:31:13,970 We use the minicast to create a golden ticket and then use it. 233 00:31:17,510 --> 00:31:19,310 Oh, just wait. 234 00:31:22,360 --> 00:31:24,060 Okay, then we detect it. 235 00:31:24,060 --> 00:31:31,100 It shows that the computer 1 is requesting the ST and never requested a TGT. 236 00:31:31,100 --> 00:31:35,160 So we regard it as a golden ticket attack. 237 00:31:35,700 --> 00:31:40,100 We can also get detailed information on the web console. 238 00:31:45,080 --> 00:31:49,720 Okay, this is an example of a DC shadow. 239 00:31:50,080 --> 00:31:55,140 We also use the minicast to do the DC shadow attack. 240 00:32:05,760 --> 00:32:30,460 Okay, we detect that the computer 0 to simulate the domain controller 01 with the privileges of the account exchange 01 because it has modified the value of computer 02's SPN value to the abnormal value. 241 00:32:32,780 --> 00:32:47,220 Okay, the last and complex one, CVE 2018 and 8581. 242 00:32:47,220 --> 00:32:54,340 We use the tools to relay the exchange's NTIM hash to the DC and modify the ACL. 243 00:32:55,240 --> 00:32:57,480 Oh, wait a moment. 244 00:33:02,760 --> 00:33:05,400 It needs some time. 245 00:33:12,870 --> 00:33:14,930 No, no, no, no, no, no. 246 00:33:18,420 --> 00:33:20,580 Okay, succeed. 247 00:33:20,580 --> 00:33:35,300 Here we will find the NTIM of the computer 02 which is exchange server has been relayed to the DC01. 248 00:33:43,050 --> 00:33:49,830 It can show the detailed information of the machine and the user. 249 00:33:50,430 --> 00:33:57,610 Then the exchange server modified the ACL. 250 00:33:58,710 --> 00:34:03,870 You can see the new alarm in the abnormal ACL modification. 251 00:34:03,870 --> 00:34:07,170 We detect it successfully. 252 00:34:09,710 --> 00:34:13,030 At the last conclusion, this is the end of the presentation. 253 00:34:13,030 --> 00:34:13,030 Thank you. 254 00:34:13,050 --> 00:34:16,590 There are some limitations with event log. 255 00:34:16,590 --> 00:34:23,890 First, there are some false positives in the detection of lateral movement. 256 00:34:23,890 --> 00:34:35,430 But if you can collect local event logs, you can detect lateral movement attacks more exactly. 257 00:34:35,430 --> 00:34:59,370 Second, if the attack methods do not trigger the event logs on DC, we cannot detect them such as elevation to DA from DNS admin memberships, attacking circuit server, pass the hash with local account, searching info by LDAP and so on. 258 00:35:00,130 --> 00:35:04,830 Although there are some limitations, I think it's worth to do it. 259 00:35:04,850 --> 00:35:08,450 We only do the DC event log analysis. 260 00:35:08,450 --> 00:35:11,810 It's lightweight and easy to deploy. 261 00:35:11,810 --> 00:35:21,410 And we have finished about 36 kinds of alarms belong to different stages. 262 00:35:22,530 --> 00:35:47,970 We can detect most persistent attacks by analyzing event logs such as admin SD holder, DSRM, group policy, DC shadow, SID history, modify ACL and so on. 263 00:35:48,410 --> 00:35:58,730 So in a word , the process of attack generates traffic and the result of the attack is event log. 264 00:35:59,130 --> 00:36:13,190 Our analysis is based on the results of the attack which is less likely to be bypassed or confused than the process analysis. 265 00:36:15,690 --> 00:36:25,610 So I think if you have known the attack methods, you can build your own ATA by analyzing event logs. 266 00:36:25,610 --> 00:36:27,730 It's not very hard. 267 00:36:29,030 --> 00:36:30,150 And the last one is the Q&A. 268 00:36:30,150 --> 00:36:31,350 Okay, that's all. 269 00:36:31,350 --> 00:36:35,090 It's hard to do the Q&A directly for me. 270 00:36:35,090 --> 00:36:40,390 So if you have any questions, we can chat face to face. 271 00:36:40,390 --> 00:36:45,550 You can also directly message us via Twitter or email. 272 00:36:45,690 --> 00:36:46,710 Okay, thank you. 273 00:36:46,710 --> 00:36:47,690 Thank you all.