I would like to introduce, actually from your, from your, from the brochure, then you just find four people, four persons, but you'll find just two persons here. Why, why there's just two persons? Because one of the, one of the speakers, Birdman, is just her wife, his wife is just called Baby, and also ended up Speaker PK, simply, his girlfriend is just back to Taiwan. So, both of them is, the reason cannot to come here is because of woman, so, so it's a very happy moment, right? So, anyway, this time, I and Benson, we will take over two hours, but, you know, we cannot spend two hours, because we are not the style reading the slides. You will go for some kind of reading slides, just, we will not be on the stage. So, we have some kind of demonstration. Okay, and also some tools for you to play it, play with, okay, and some case studies to, for you to, to take a look, okay. Maybe, let's start. First of all, I'm Anthony, here's Benson Wu, then also our, our research funders, is Jeremy, Jeremy Chiu, is Birdman, he's, alias is Birdman, and also another independent security researcher, PK. Okay. We need to have this. We need to have this. We need to have this. There's no national secrets here. Okay. We welcome spies, secret service, intelligence, for instructions. Thank you, thank you, thank you. No, no, any Taiwanese spy, or Chinese spy, Russian spy, no? No? Raise your hand, no? I give you a cake, okay? A pony, okay? Okay, there's a cake for you, then. Okay, thank you very much, thank you. Thank you. Advertisement time. It's always, you've got a movie, you have advertisement, you know, right? Okay, I need to advertise truth group members. Actually, it's a Taiwanese very famous security and hacking groups. It starts from 204, and focus on security and hacking studies, and he's just the sponsor, or just supporting organization this year for Black Hat USA 2011. And also, he has two speakers speaking two days ago. On about exploitation on the document, document, malicious document. Also, there's a, and the conference is a Hack in Taiwan conference. That is the largest scale of the hacking conference in Taiwan. Actually, talks, war game, and food. Come on, come here, right? Even I come from Hong Kong, man. But it's good. I go there for, I went there for two times, but the atmosphere, professionalism, everything is good. And got some kind of English interpretation. Then happened on every July. Okay? And there's a link for you for reference. My funder group since 2009, since actually I founded this group because I'm inspired by DEF CON. Because DEF CON is really a core conference with contest, with many talks, and with many people to meet up. You are nice. And also, with drinks. So, that's really good conference. I could say it's an international conference. So, So, I back to Hong Kong and then hold it, a group to more, to organize more hacking, security research studies. And we have just published some papers like Facebook forensics and kinds of web app security feng shui from Macau and Hong Kong. You know feng shui? Do you know feng shui? Okay. No feng shui? Or like put a stone in the door, something like you make you wealthy, something like that. Okay. Don't trust it. I don't know. And also, there's a case. This study is about, I investigate into a case about the loss of money for the bank children. The title is Million Dollars Lost in a Minute. So, just feel free to visit our site then. And also, I want to promote the Will Smith because he partners with me and Colin Ames last year to give this kind of talk about the China made malware. Thank you very much. And they have a blog in techresearch.com that I suppose is a very insightful blog. That's enough. Anthony, right? Let's start. Okay. Last year, Will Smith, Colin Ames, and I worked together analyzing China made malware. We would like this year to continue this effort. This year, then, we deal with many target attacks. Actually, Benson, Birdman, and PK come from Taiwan. For me, it comes from Hong Kong. In Hong Kong, there are also some kind of target attack, not just Taiwan. Okay. We are not alone, man. Taiwan, you know. Hong Kong is also the major, and Hong Kong is also the major being the target being attack. Then, we would like to be happy to be present here. And we are selected in the first round in the DEF CON, but we are rejected at BreadHead. Their reason is we are curious about your automatic analysis. Any, any, will we come to the board in BreadHead from here? Because Jeff told me there's 400 and 500 review board members. Okay. I give the kick to him. Okay. I just, just, just a lazy kick. And reference talk is TT and also Lenniker present just two days ago about reference, reference of target attack, modern document exploit techniques. And also, the next session is Mahwud about sneaky PDF. So, it is more than just like a collection. So, I would like to, to you have kinds of put it all together to a different focus. Okay. Oh, introduce myself. Myself, you call me Anthony, or you call me Duffoid because just kinds of handle and was on code audit penetration test, crime investigation, and being consultant anything, and teaching something, teaching like in the polytechnic university in Hong Kong, and spoken in last year, and being guest instructor in the technical exploitation in the BreadHead USA course. Oh, yeah, I left, I left Benson to introduce himself. Yeah, yeah, my name is Benson. Berman and then PK and I, we are all from Taiwan. And we are from the same lab called Secure Lab. Well, the truth that they couldn't come actually is because it's, it's really expensive to come over to Las Vegas. It costs us like, you know, more than $2,000 just for the air flight. So, well, we can only afford one of us to come over. And we, we study a lot about APT since starting this year. Before that, we actually do a lot of commercial products. But then we feel that APT is so serious that we want to really focus on APT starting this year. So, beginning this year, you will see more and more stuff that we will develop, and then we would like to share with the community. So, the tool that we cannot disclose here is freely available online. And if you guys receive any sample that you think that is from APT group, then you can just scan online. It's totally free. I also would like to mention that I'm from an academic background. And even though I have some diploma before, but that doesn't stop me from being hacked. I really like doing research. I remember that when I was in university doing my master's and my friends in the National Security Agency told me that, hey, Benson, I found one of your computer in the enemy's CNC servers. And I was really surprised because I thought that I can protect my machine well. So that actually taught me a lesson that diploma doesn't give you anything when it's on the cyber warfare. So I really feel that, well, you have to equip yourself with some hands-on when it's about cyber warfare. That's why later on we end up doing a lot of commercial products and then a lot of research on these kind of stuff rather than simply publishing papers. Okay? Thank you, Benson. Actually, he has not introduced himself, just academic background, okay? But he is very good. We will work out for the lab in Taiwan, between Hong Kong and Taiwan. We'd like to contribute this kind of research and service. Birdman, you can't see his face. He's always like that. Not really strange. I don't know how he can get this kind of hat, but anyway. He very expertise in the Win32 and Linux platforms on the Windows programmings. He's the first one in Taiwan to spread. Not he spread out, but he produced kinds of children, or bird spy, and being manipulated by other people and spread out in the wild. And Taiwanese police catching up. And after a while, then the police said, okay, we release you then, okay? The idea is, please help us for investigation in the future. So free members, free employee, that's good then. To do the forensics. Assist some kinds of digital forensics and an investigation instance response. He's good for better design. He's a good man. Okay? Even he's doing kinds of a lot of evil design, but he do a lot of training. Okay. PK, and he's from law enforcement, and also he's the independent security researchers. He's also good at system programmings, Windows programming, forensics. And he has done, developed a software called MPA scan. MPA is kinds of a police force in Taiwan. So it could be downloadable in the Taiwan police websites. But I know some kinds of reason some people target this software for attack. But he's a very nice, very expertise reverse engineering and system programmers. Okay. Start our agenda. I'm sorry then. I spend five to ten minutes to about to introduction then. APT stuff is, think, actually I don't know the terms comes from, but it is easy for people to say it is a target attack. But everything attack, every attack target person may be quite advanced. But it's specialized target for specific company, organization. And also it's from organized from a group, organized attack parties. Other than providing the case studies, I would like to present and analyze the APT from malicious e-mail documents throughout our automatic analysis. Okay. And later on, Benson will present about the DNA clustering of different APT task force. For example, you have some bad trial society like 14K, different K, okay, different trial society parties, then it is the same ideas of this different APT task force here. We have observed. There are three major types of the target attack e-mail. For example, the phishing mails. You get a user name, ID, and password. And also when you could get an e-mail with some malicious script in your, when you open some e-mails, maybe execute some malicious script, or even some documents, and you would deploy the malware and become a botnet and contact the CNC server for further compromise. This is what we have observed. Okay. The table is damn small here. But anyway, but we have got a difference here. This pen is very powerful. Okay. You can hear, right? Right. This was, there's this column, okay, APT botnet activities. This column is our traditional botnet activities. Actually for distribution for the APT, or I talk about, for example, APT botnet activities, more organized run, and also not cause any damage. If damage your machine, they have no games to play, right? And they, of course, target for a specific group, and also for a particular company. And the effective duration of the attack group is very long. It's very long, for long duration. And frequency, many times, because they would like to launch it from different perspective, maybe the same dropper. But in different email formats. Their reference is more than zero days, and some drop, dropping the embedded malware. And finally, the detection rates in the antivirus software is simply, is less than 10%. Okay. Exciting part is coming. Case studies against a political party in Hong Kong. Okay. Recalling from Mr. X. He always make me up at 6 o'clock. I don't know why he makes me up at 6 o'clock for calling me for help like that. Okay. Mr. X is one of the key person, key person of a political party, is like a democracy party. He drop us an email. He feels suspicious, like the attachment called meeting.zip, and also minutes.zip, something. And it contains two files. One is the agenda.doc, and also minutes.doc. And why he feel suspicious? Because he just gave the meeting. Yesterday, before he received the email. And he got this document, it's very, I mean, it's very, this is in coincidence. So he looks like a member meeting agenda, however, it targets all the committee's members in the meeting. And Mr. X also said he got this kind of mail before 4th of June, 1st of July, and before any legislative council member election. You know 4th of June? Yeah. It's a kind of Tiananmen incident. And 1st of July is kind of a day return, Hong Kong return to China. So it's very regular. Instead of some October, because those guys may be on vacation, on holidays. So they did not launch any attack, because they need to on vacation as well. Okay. So, I run the very brief analysis in our secure analyzer engine. Actually, this is not a document, it's a PE file, okay? And also, it's a dropper file, and it creates the minutes.doc is a document shortcut file, and which gets to execute the agenda.doc. Okay, this is our engine, one of the screenshots. Then, you will find that from the startup folder, okay, I'll point it here, startup folder, once you execute, it creates another file, i.e., check.exe, and then, afterwards, it generates the code, generates the DLL, MSVCR, it looks like very legitimate DLL files, but it isn't, right? And inject into the explorer.exe for kinds of injection, DLL injection. Then, it collects network different CNC servers here. So, let me show you. Yeah, because of time, there's no time limitation because, yeah. Then, you'll find it here. This is our agenda doc, okay? I want to zoom it, because I'm quite sure you can see it at the end. In the back, and the doc, and I have submitted. This, yeah, from Hong Kong. The CNC server is from Hong Kong. Hong Kong is other than shopping center, it's also a CNC heaven, okay? Yeah, come to Hong Kong, okay? Deploy the CNC server. And then, you will find a report here. Oh. Okay, that's what I captured in my slide. But, anyway, here is what we have shown and analyzed. Because if every time you need to put up the VM and get the analysis, then it's very boring job, right? Every time you put up a VM, every time you run the executable, for every samples, I don't think it's a fun, right? So, we do it on the automatic analysis. Brad, have you seen it? Yeah, thank you. Thank you, but it's not our core dish, or main dishes, okay? But, just like that. What? How long? How long, maybe just 30 seconds to one minute? It's not bad then? Then, go for a couple of those, then back, and the results comes up. Okay, back to the slide. Well, here is very silent. Yesterday I, in my hotel room, there's a lot of rock music underground, and the woman shout, man shout, wow, over the night. And, it's amazing. Shout from the other rooms. I can't sleep, actually. So, analyze. If you analyze our analysis, the CNC location, you'll find it from Hong Kong, and the post is 8080. Actually, the case is still alive. The CNC server is still here. So I'm not announcing here because we are writing a paper, then we'll submit to the forensics and some conference and malware conference, then before the law enforcement just join in to inference our result. Some traditional intelligence of analyzed malware, like use the capture bat, what files is create, what files is delete, right? And also like, yeah, it supports what I've told you about our analyzer, what files is added by the analyzer. By the system after the memory executed, and you approve it, and also like IPSec step.dat is added to the explorer.exe to cancel off encryption for the IPSec channel to back to the CNC servers. Okay, some files added, I don't go through it because, but I would like to see that like they simply generated the MSVC. But the file is not like that. It should be MSCVR, right? In the, if the file is natural to me and is approved by Microsoft, it's signed up Microsoft, the name is quite confusing. And different files are added here. So afterwards, the agenda.doc is deleted. We have got some analysis. Okay, he targets, QQ, anyone have QQ? Anyone have QQ? Anyone, no one? I would like to give up the cake. Oh, no QQ, okay. But if you go to China, if you need to make friends in China, you need a QQ, okay? The first thing is like the ICQ, like the instant messenger, you need a QQ. And QQ can do anything, including to remote control or software, okay? They have some capability to control remote software, computer, and also it could also to capture, you know, just some screens or send message, send file, yeah. And many children writers focus and take over, take the advantage of the function of the QQ. And also Foxmail, Foxmail is also like here, Foxmail. It's also like a China pavilion mail service. Of course, we have our good friends, Messenger. Yeah, Messenger. Yeah, Messenger. Yeah, Messenger. We have good friends to attack target. So, also down, it's proof that it injected to the Explorer.exe. Not a surprise, but, I would like to see. DLL, you know, it's Chinese word. It's kind of DLL injection failure. It's written in Chinese, that's good. They make the, the programmers give the comment, in the, give a comment to say, yeah, is this okay? the DLL injection failed in Chinese. I like it. I like the comments. Well, documentation. And also, as you say, you'll find that I got... Right here is the explorer.exe, but besides, there's his brother, svchost. Why? When I analyzed the sample, I can't find any injection to the svchost. I will tell you later. Okay. The agenda.doc is nothing special. It's just a dropper. Okay. Create an IE. IE check.exe. Copy the files. WS2 help.pnf to the application data folder. Change the last step.exe and generate the msvcr.dll, malicious DLL, and inject it to the explorer.exe. And there's a create mu test. It's very strange, you know. They would create mu test. But it's common for a software to create different thread when running programs. And of course, some traditional checking, like check whether they have a Kapersky or have any Loft32. I don't want to show here. But target the CQQ, MSN, Sina, Forcemail, and Hotmail. And also, they use XOR encoding only. They don't use very complicated encoding or encryption scheme, because if you do some very complicated encoding scheme, it will be detected, most likely detected by the IPS or some detection by the IPS or network detection monitoring. Let me check. It's here. But you know, it's quite difficult, you know. I'm here. The screen is there. But it comes to point here. But anyway, show it like to... Oh, sorry. Something that is encoded. This XOR is here, the XOR. Well, you need to have a telescope. Have you got a telescope? Actually, DEF CON should supply it, you know. Then there's an encode here. Then looping, looping, or looping. And then you'll find the words is decoded here. Actually, every time you send out traffic, they will encode the traffic. And once they receive it, they will decode it. They don't do any complicated encryption. Okay. Once we have effected out the scheme, then we find out they get the host name and also the OS type and the patch level, then there should be more information sense to the CNC server. And also, this is what we are... This is the most humble day, most humble of my day because of the day. Because, you know, we found a .bmp, a .bmp files compressed in a .cap file on the application folder. However, we are doing screen capture by Wireshark, but it is captured by the software and sent back to the CNC server. So this is the... This is the screenshot. We do the leaving the network, use the Wireshark, but send back to the CNC server. Damn it. Digging into the tiger's mouth. Okay. Some... More than that, it's like, if you do the analysis, most likely you just analyze the dropper, right? You go to the, like, different... Fred's expert or whatever, different online sandbox, they just analyze the dropper files, and they will not carry out further analysis. So we carry out further analysis and try to install the QQ, MSN, and see what's going on. And we find that the more binaries have been downloaded to the Windows debug folder, and also Malware creates more files in the Windows debug data folders as well. But those files, when... After those files executed, it will be removed shortly, okay? And also they send back to the CNC server in different compressed format. So we find that those CNC servers sent an instruction to the Richter machine to compress the files and send them back to the CNC server. This is also quite interesting. The traffic sequence number is set by the CNC server. If you have been infected before, if you'd like to try it out, to analyze, then the binaries will not be downloaded again. But it is not a surprise. But they have the sequence number to control. So we need to change the registry to bring out that sequence number. It's set in the registry. So it is quite tricky. And also they have put those files in the compressed file, but they put the DLL. DLL files, different DLL files, and compressed and capped files. However, after we decompress the capped file, we got different SAM system information from the Richter machines from those DLL files. Okay, let's see like that. We find this. This is like a dry file in the .capped file. They capture everything. All your files. The path. And also this. Ah, yeah, this password. Donald Jun is not our member. He's just the chief executive of Hong Kong. Okay. We just take him as a fake email address. Okay. Then it's better, right? So you find that they have put it in this kind of test format with the encryption. After carrying out the dynamic analysis, we got three more binaries. We got it. These three more binaries is one is responsible for to collect all hard disk drive. It's a FVC Win32.exe. And create a file drive under C Windows debug. You have just seen it before. Right? And also enter files called AVC Win32.exe. After execution of a short period of time, it is renamed as SVC Win32.exe afterwards. And it put it all of the data to capture all the connect email accounts, passwords, like the files I show you, and send information, system information, to the app data TAM directory and also the Windows debug data directory under C drive then. And also one more. One more binary is ACV Win32.exe. Win32.exe captures a screenshot for every 1,000 milliseconds. The injected MS, it should be VCR.dll, keeps on monitoring the C drive Windows directory, this debug directory. If there's any files there, they will send it out. So this is the summary. This is the summary then. Actually, it targets the political party. In Hong Kong. And the CNC server is in Hong Kong. But this China-made APT is, I could claim, this case is long-advanced persistent threat. Why? Not very advanced. Because it contains some old, big routines. Win 95, Win 98. The programmers simply just add the new features. Maybe the boss ask him, okay, add one more features for Windows 7. Okay, add one more of routines. Old routines just left behind. Just left aside, okay? And also there's a, the dropper is the same to another sample. I've got a .chm sample, and then the dropper is the same. Oh, I forget to show you something, like in my, here. It's my first time, not first time, it's very rare to open the IDA in Mac. And also I have not renewed the license. Expired. But anyway, then, you always use IDA in the Windows environment. This DLL is the, it's done the MSC, mscvr.dll. Then we could find it. It packet the file as CAP. I'll just use this one. Put it at the CAP file. Yup. And also it's a very interesting. They put some different extension, like .v2. You never know what is .v2 is. Another interesting stuff is the, not CAP screen, but connect password. Can you shut it off then? This one. Get password. For example, the get MSN. Messenger MSN password. Also for outlook password. Yeah, they're quite good for collecting different password from different software. So if you want to jump from APT, simply not try to use this one, this software. But you can't do that, right? And, yup, they do the password. And also, let me check some very interesting, yup, this is called a password. And one more is the, like the CAP screen. I need to show it because it used some old damn screen capture routine in the Visual Basic. So that's reason why I say this is not really, really advanced. Sorry, I need to, here. Yup, let's see. Here, right? Create some, create DCs. I think it's traditional, but it's very old. Some kind of capture the screen or writes the bitmap stuff. It's already very old. Okay. So that's reason I already show you about that. Okay, let's continue. And the agenda doc, the doc doc is just, it's just packed with UPEX. XOR is used instead of some complicated encryption. Then download a payload in different stages. The most important is they use some unpopular file extension, like K2.V2, you never know. And I suppose the IPS or IDS, they don't recognize this kind of very weird format, right? And they simply build in, like dependent on the built-in libraries. And I find that they use the proper sequence set up by CNC server to manage the victim. This is the, we could conclude, I have got two samples, and I find that they, their droppers are the same. You'll find here, this is the agenda doc. This, another one, is the, another executable for my collector sample of .chm sample. You find it, they are the same. Except this bulk, okay? So I suppose they will just use the same droppers for different teams, or even the same team. Okay. This is the timeline. My fellow, my fellow has drafted. Actually, the green one is the sample .chm sample. The red one, oh, sorry. The red one is the agenda doc I present here, the case. We have found that the P build time of the .chm sample, and then we could find agenda doc, the build time, is near the same, near, is around the time. It's April, between April and July. And we have found that also, the phishing mails, and also the phishing mails received, and the build time, the MAC time, and also report time, is around the time. Around the, the same. Yeah, that's period in July, between July and the, and the June and July. Yeah, this is my doc. So, um, so we, we, we think this is from the same dropper, same generator, and also mu test is, mu test name is also is good, useful to identify the APT sample or version. And this case analysis simply supplements the, the tracking goals net reports, and also the median report. Because they do some high level, just describe the process, but we do the reverse engineering and the further analysis, then it's much more, it would be, give more details to you. And afterwards, as a malware analyst, we will find that, do we need to analyze, do we need to get a thousand samples from the single task force? It's too ti-, it's too time consuming. Can you back to the office and say, ah, boss, I, I got a sample. I need to close the door for three days and analyze the sample like that? I suppose you are, you should be fired. Right? Three days and analyze it? No, you should know that how to, how to respond, what's the characteristic, right? And also do you think about whether you, you get a sample, and you think that you are already target? No, you, then this is kinds of traditional thinking or international before, because when we received the malware, we don't think it's target or not. Another case too is calling Mr. X again. He's very free and always check email and always get, get this kind of target attack, but I want, I want to help. And there's another file name called official reporter list from the legislature, legislative council news. These are official email. This is the party extension. Then the Chinese is very official. The format is craft. And the most important thing is if you trust Gmail, you, you, you sucks. Okay? No problem. This is, the name is kinds of official reporter list of the legislature, legislative council. So you will open it. However, I need to analyze, right? Because he wakes me up in six o'clock. He, he, he needs to treat me drinks or, or dinner. Okay? And also then need to say cross with horse then. Do you know these two cute, these two horse? Don't know? Anyone knows? Oh, you know it? Yeah. Okay. Got it. But, but don't speak it to the, to the Chinese. Okay? Okay. Come here. Yeah. Because I can't throw it. Yeah. Okay. Uh, these two, uh, uh, lovely animals is, uh, is kinds of, uh, motherfucker. Okay. Okay. But it's broken in the China internet because, um, they use the grasswood horse instead. Okay. In Chinese and also English. Okay. I, I also throw this kind of door last year. You could be back to my video. And after the analysis, we do the DNA analysis. This is what we want to do. I find the samples, the Excel samples, I upload to our engine called APT Ditzer. We find that these samples, it belongs to here. You find this is an evil central, evil circle. Very evil, you know? If you find you're attacked by this evil circle, please take care. Extremely, extreme care. Okay? This from China. Okay? This also from China. Okay. But these samples is from here. We group the castering from here. And the different color means different years. Different kinds of years of the exploit of the build time years. Okay? The detail analysis will be from Benson. It will be much more cool. This is the old version. Then we got the exploit name, the build time, and the group C. Yeah. And this one. This is the analysis. You see that before. I don't want to take over. This is about the group, the APT group. It's about, it's a chopper, always the chopper. Analyze the chopper first. And then inject the DLL. Inject the DLL to the, inject the EXE to the, no, inject the DLL to the iExplorer.exe. And this is the location of the CNC servers. 28.5% CNC server are located in China for this sample, for this group. And in Hong Kong, as I said, I always support Hong Kong as a CNC central, center in the Asia. So they got 28.57%. Okay, in Canada, it's not bad. They are on the first place. So we will soon give you more about the analysis about our DNA clustering. For peace or warfare, plan one. For peace, I would like to putting thousands of PONS images as a cap file and put a debug folder and show my sincere, nice, peaceful mind to the CNC writer or the secrets on the, all right, task force, task force leader. You know, I'm very, very a nice man, okay, okay. To enjoy the PONS and find me Fanny. This is what's most important thing. Fight back, okay, set up a CNC server, per trace malware pack, putting malicious PDF, document excels in a cap file, and they must open it, they must open it, right? They were with it, right, to see what's going on. It could be fun. I'm excited, but I've not tried it yet. So we have the problem from Chinese. Cooking beans on a fire kindled with bean stalk, the beans whip in the pot, originally born from the self same roots, why so eager to torture each other? You know, we can't do the same against them, but we would like to see what could help to analyze and to see what we could help to this, this community, community. Special thanks to my VX fellows, it's Vantu and DDL, and analyze these samples for me. And here, Vantu is very old guys, but he is very passionate to over the reverse engineering and analysis of sample and write detailed paper. Then please stay tuned. I will publish it and let you know. Okay, Benson, your turn, man. I prefer to use you. Yeah. I'm sorry, Dan. I just leave out without take care about it. All right. Thank you. On my part I will be on another 30 minutes or so minutes. As you can see, Anthony is so, his personality is so aggressive and I'm kind of the opposite. That's why when we work as a team, it's so fun to work together. Most of the time, Anthony enjoys doing a lot of manual analysis over these mailwares and actually in Taiwan, lots of researchers, we have been receiving tons of mailwares every day and then we do a lot of these manual work on a daily basis. But this is really time consuming. As you can see, mailwares are now in mass productions. So if you are doing this manually, then you are definitely falling behind. So this is why we really want to come up with automatic systems so that we can easily classify whether this is made by automatic tools or is actually made by... ...human beings, APD groups. They are only being used once only and then throw it away. They will never show up again. If that's the case, then how we can go beyond these situations and then try to understand who are behind these samples. So we want to automate all these processes rather than doing this manually. And you guys might recall that I was talking about Google. This slogan, Google is not ghost in the browser. Google says ghost in the browser. So, they are good at ghost in the browser but not ghost in the networks. And this is what we think. APD is actually ghost in a network. Once they get into your network, they try to stay there. So they are not, like, you know, fast in and fast out. They actually try to get into your network and then they try to stick there. And then they never want to get out. So they try to get out there. They try to get in and then stay. They try to stay inside, hide and seek, and then try to steal everything they can steal, and then try to escalate the privilege until they can steal more sensitive, more confidential data. In Chinese, that's how we return it, wang lu li de gui. The term was first defined by the U.S. Air Force. They call it advanced persistent threats, which we think is very appropriate, because by being advanced, it's actually relatively compared to the victims. So it's not necessary that I have to use the most non-patched, zero-day exploit in order to invade your system. As long as I know that you haven't patched these exploits, then I can invade you successfully. So this advance is more or less in a relative manner. Well, being persistent means that I'm really determined. Because I'm being supported, I'm being funded, in order to invade your network, it's actually part of my year projects. I really have to get into a network, otherwise I will be, I will not accomplish my missions. So that's how determined I will be. So all these victims, we can see that oftentimes they always have good security controls. They have good sense of security. And all these employees, they actually have good eyes. You know, they know how to see errors in these buildings, errors in these social engineering emails. But still, they still get APT attacked. And then it's like, oh, I'm going to die. I'm going to die. Because there's really no way you can get away when you are being targeted by these APT task force. Because they are so determined. And the emails are written so well that they look just like exactly from a genuine person. That's why you see Google are being owned, I say as well, and then many more. The reason we mention StocksNet is because in order to launch the StocksNet successfully, they need to be able to do it. They actually attacked several companies in the science park in Taiwan in order to get a certificate so that they can sign these drivers. And then once they get these drivers, they sign these mailwares so that when people get attacked, the Windows will not alert when they install these mailwares. And also Commodores. They invite Commodores to get all these certificates. So later on, when we actually get these, APT emails, a lot of these APT emails are being digital signed and also verified by Commodores. So, well, for these companies, we never want to be, they never want to be the headlines in these kind of situations. And of course, everyone knows this. And this chart is actually very interesting. This is actually from McKinsey. They actually analyze a lot of data from IDC and also Bureau of Labor Statistics. From this chart, it's actually telling you that a lot of these large enterprise, they own lots of data. So much data that they never knew that they have this amount of data. For example, large enterprise typically own more than a terabyte of data. So that's hundreds and thousands of data. That's hundreds and thousands of enterprise in the States. And in fact, also hundreds of companies more own than a petabyte. So you have so many data that is so juicy. These hackers, they just want to target you and then try to see how they can do APT on you. So if you have too much data, then you have to protect it well. Otherwise, a situation like Sony, would happen again. So this is some samples that we share here, what we receive in Taiwan. And this is from real case. For example, a lot of professors in school, they would receive these on annual basis. For example, receive these kind of call for papers. And also acceptance notifications from people pretending from the National Science Council. Sending malicious PDF to them. And this is from genuine email accounts. But that PDF, it's containing malware inside. But that couldn't be identified by any antivirus tools on the market. Because definitely these APT task force, they would do these QA before they release these phishing emails. So it's really hard to teach how these professors can get away from these targeted emails. Because there's definitely no way they can get away with their good eyes. Because that's a very genuine email. And also these attackers, they would send you invitations, asking you to give a speech, asking you to give a talk. And then these people are also real people. Some professions that really exist. And then again, you couldn't find all these malicious documents with existing antivirus tools. And these are some scenarios. These are the statistic numbers that we are receiving on a daily basis in Taiwan. Roughly 20,000 suspicious emails are sent to gov.tw on a daily basis. And then out of these, every month, about 4,000 to 500 are APD emails, and these are currently being identified by any antivirus on the market. So we can say that every month, we can collect this amount of samples. So this is our research motivations. In the past, we see that these APD incidents happen again and again. This really implies that we need better security controls. Because this is out of control. Existing tools doesn't help. That's why incidents happen again and again. So we have to turn the table around. Otherwise, it's always the attacker in the dark, and then the victims in the light. And we have no idea who are attacking us. And then people are also saying that APD is the new term, but old problems, and yet inevitable. Then that's really a big problem. And very ironic situations. Because if it's an old problem, then we got to have a way to encounter it. But then it seems so inevitable that we couldn't do anything with it. So we are thinking that actually, we have so much security control right now, but none of these are designed to fight against APD issues. And then also, because APD is highly targeted. So we have to be careful. It's very hard to collect these samples from the way how we collect our viral samples. Right now, viral samples are being collected through our honeypot or honeynets. But these APD samples will never reach all the honeynets that you deploy. So the only way you get APD is either through intelligence exchange or by really deploying some devices. And these are classified personnel's email box. Otherwise you would never get these APD samples. So there is a Chinese saying that we must first sharpen our tools. Otherwise you wouldn't see the task going on. So our research direction is that we want to analyze these samples so that we can see the groups behind these samples. In the past, it's always receiving the viral samples and then we determine whether it's malicious or not. Then that's it. We never try to see who are behind these viral samples. So we stop at determining whether it's malicious or not. And that's really a pity. And then from these APD samples, we also want to see if we can find out what's their plan. So what's the correlation between these samples? And probably we can associate all these APD samples seeing that, oh, they are actually all targeting at this particular group. So we can probably come up with their ear plan on who are they targeting with. And then also from a single one-off attack, we also want to see the trend because by seeing the trend, you can see how advanced these APD samples are. You can see what kind of weapons they have been using. Because the weapons they use, they have to spend money to buy it. So you can see how well they are funded. And also you can see how persistent they are. How many years they have been in this cyberspace and how active they are. Sometimes you see them being so active maybe for one year, but then they stay very silent for another year. But then all of a sudden become so active this year. So you can see all these trends very easily if you have automated tools. But if you only have one antivirus on your hand, then you can only see one-off attack once at a time. So we try to do digital forensics on all these APD samples. And these are some of the attributes we try to get from these samples. Just to name a few. For example. The hardware features. What exploits are being used. So usually we associate these exploits with CV numbers. So that you know exactly what CV exploits are being used. And also the CNC networks that are being leveraged. Because these CNC networks, they usually imply the stations that they deploy in different countries. And also the emails. Who are they targeting? Who are they pretending they are? And what's the content inside the emails? And also the victim's background. And also the time of attack. Usually the time of attack would matter because they try to do social engineering. So for example, when they send the meeting notes, the meeting notes will be associated with, will be very close to the meeting time. So the time of attack also matters. Okay. Okay. Okay. Okay. And how, how are we different from malware study in the past? Study in the past, they, they have an assumption that all the information they analyze are very 100% accurate. For example, if they do signatures based detection, they do exact match. So if you, if you doesn't match this signature, the pattern doesn't match the signature, then they will say it's not malicious. So that's how antivirus does. And for behavior-based profiling, if your behavior doesn't match the profile they did, then they will say you are not exhibiting malicious behavior. And if you are not exhibiting your malicious behavior in a sandbox environment or you pretend not to exhibit malicious behaviors, then they cannot profile your behaviors at all. So they have an assumption that they can see through you and they can observe the exact behavior you are exhibiting. But what we see is that malware doesn't behave that way because they are usually packed, they are usually encrypted, and they are designed in a way that they don't want you to be analyzed easily. So you have to tolerate some errors inside. And that's why some of the theories that we use, they allow some errors and then allow some information being loose. For example, we use some rough set theory. So rough set theory is almost like the opposite of fuzzy. And then we also use data mining so that we can easily associate all these different attributes. And then we also use clustering so that later on you can see how we cluster all these different APD groups and then etc. So we use... We use a lot of mathematics to help us analyze our data. And then of course we not only use static approach. In case where static approach doesn't work, we also use dynamic approach. Our background comes from dynamic approach. So we know very well how to observe malware in a sandbox environment. We know very well how to trigger them in a dynamic environment. But we know that it's very time-consuming and you cannot replicate... You cannot replay the required parameters to trigger them. So dynamic approach is really the last actions that we will do. And so we will apply static approach first. So it's multi-layers of technology that we will apply. And some challenges for dynamic analysis, for example, they will do encryptions. They will do anti-sandbox. They will do domain functionalities. So they will not exhibit a behavior. They will sleep. They will detect if there's mouse movements. Or they will even try to communicate with the external networks. And if they couldn't communicate with the CNC server, then they will not do anything. So in those case, you definitely have to do static analysis. And then on the static analysis part, we actually... We also implement lots of parsers, lots of static analyzers on our end. So we try to analyze all these PE codes, all these shell codes, and then all these known packers. So we implement all these well-known stuff. And then we do the static analysis part. By ourselves. Later on, you can see the demo. Our performance for analyzing one APD samples using one computer is like five seconds to seven seconds. And then we can finish the whole analysis. And the middle part is the data we're going to extract it from these malware samples. For example, you can see that if we can identify what exploit are being used, we will give it a name. For example, the CV number. And then what shell codes are being identified. And then what kind of CNC network are being used. And then also, are there any suspicious structures? So we will also walk through the suspicious file structures. And then we will also look through them. And try to locate any known malwares that are being used. So for example, the PE and also these code snippets. And then if we try to run it in a dynamic environment, we will also try to say that, well, when it's being executed, where it would hook in the runtime environment. What registry key it will try to modify. Then if you are being compromised, then how you can try to remediate yourself. And then once we extract all this data from the samples, we will try to normalize it into APD attributes. Because now we will try to do the clustering. So we will do the normalize first. And then this screenshot is actually to share the beauty of extracting all these stuff from the binaries. Of course, we can easily get all these binary doing it manually. But with a system, we can get this data very easily. And some of the interesting stuff we get from these binary strings is a new trend like this. Anyone use Plug before? Plug is very famous in Asia, but I'm... I think Twitter is more famous here in the States. Can you guys make a guess what this person is talking about here? This is definitely not a human language, right? Yeah, this one is being encrypted. But we actually found out all these conversations from the APD samples that we analyzed. We noticed that from all these APD samples, they tend to communicate with the Plug. So if it's in a U.S. case, they will tend to communicate with Twitters. And then they will communicate with different Twitter accounts. But they speak... similar language. A language that we couldn't understand, but a language that they all encrypted with the same key. And if you decrypted the text, you will find out that it's actually a CNC info. So they started not to put the CNC information inside the sample. They put the CNC information on these web applications, websites, so that they can easily get it through port 80s. And then they can easily redirect all these bar nets activities easily. Once we get all these normalized data, we do the clustering. And when we do the clustering, all the mathematic methodology help us, for example, to... to pick up the important attributes. Before we apply math... For example, before we apply rough sets, all these attributes are equal significance. But then after we apply rough sets, rough sets will tell us that, for example, malware type is more significant than exploit type. And CNC server is even more significant than the other attributes. And what the coefficients should be. So we get a very nice formula for these attributes. And then based on these nice formulas, we come up with a good clustering on these APD task force based on the samples. And then we call that fingerprints for these APD task force. So they distribute so much APD samples to all these victims, but they have no ideas. Actually, they're also disclosing their fingerprints. So... to... to make a common basis when comparing all these data, we actually use a common... common samples. So we use the sample from MITA. It's a public data. Contagio dump. So there are about, like, 242 APD samples. So if you guys are interested you can also download it from the MITA's website. That's the sample that we use. And we also compare our detection rate with antivirus. But before we... we mention the detection rate, let's see how the antivirus perform when they are scanning against these virus samples collected from honeypots. As I mentioned earlier, APD samples will... will seldom reach these honeypots. These are all made from... automatic tools. So as you can see, all these antivirus perform very satisfactory, right? All... almost like 100%. 99 point something. And this is from Shadow Server. They update these on a monthly basis. But then when it's applied on APD samples, antivirus really doesn't work well because they never get the signatures easily. From these... honeypots they deploy. So these samples hardly enter their laboratory. So usually the... the time when they get the signatures takes much longer than usual. So these data is what we tested two weeks ago. As you can see, most of the vendors, they fail to qualify more than 60%. And... the one that we're gonna share with you online, the APD Deezer, that you can try online. And it's free, available. This one has a detection rate of more than 94.6. And of course, it's not only on meta samples. Once we announced this, so many people began to upload their... APD samples as well. And you can see the graph becomes bigger and bigger. The community really contributed a lot. And then the... the overall APD Task Force graph becomes much larger than the original 200-something. So this is the... the clustering results. After we analyze all these samples, we actually can see the... the task force behind these samples. If you only analyze these samples individually, you have no idea which groups are behind these samples. But then, when we use all the methodology that we mentioned, we actually can see that they... there is one group that is very big, which we call Group A. Of course, we... we also have the geographical location, but it's too sensitive, so we don't mention it here. So you see Group A. Which is huge. And then you... you also see a... a second small one is Group B. And then you see Group C. So we will take the... the top three here and then give you more detailed data. And the different color here means that... when these APD emails or these APD samples are being collected or hit the... the victims. So you can see their... active time. For example, you look at the Group A, you see that most of their active time is last year, 2010. And then for this year, they only have a few. This is based on Mila's sample. So it's 242. But later on, you will see that after the communities submit lots of samples, you see the graph change dramatically. You see new groups coming up. So these are the top three. So for Group A, you see they actually leverage CNC server like 23. And these are the weapons they have been using repeatedly. Some are pretty new. For example, this one. This... this one is the one that... that have been used to attack RSA. And then this one is Group 2. And then this one is Group 3. And then if you know the... the market price for all these exploits, then you can see how well they are funded. And this is the... the CNC servers they... they try to abuse. And you can see the countries are like Taiwan, US, China, US, Hong Kong. So these three dominate more than 50. So I will say that the reason Taiwan is being abused a lot is because the... the bandwidth in Taiwan is very stable and reliable. And... and geographical is very close in Asia. And also Hong Kong. Anthony mentioned Hong Kong. They... they respect your privacy so much that when you do something evil, they... they don't even try to disclose your privacy. When you have a... when you host a machine in ISP. So... And then more than that is you can also see the attack graph for every malware that being used. So you can see the... what happen when... when... when you double click the attachment. And you can also see what happen when you got infected. And even the bug comments that are involved inside these... uh... APD group. And these bug comments are very, uh... helpful in identifying the APD task force as well. And if we only look at APD group A alone, you can see these group A highly rely on CNC server in Taiwan. So if we look at three groups together, Taiwan is only like, you know, 20% to 30%. But if you look at group A only, more than 50%, like 50% of their CNC are located in Taiwan. And this one is interesting. Now this one is group E. And this one, uh... we... we also identify it's actually from... it's... it's from Korea. Uh... the reason that we can identify this is from the language... the language they... they actually compile it with. And then, uh... the interesting part is that, uh... all the samples that we receive from these, uh... uh... are being, uh... signed by, uh... Komodo certificate. And if we... and when we submit to VirusTotal, uh... only, uh... one antivirus can detect that. So it's a very, uh... low-profile APD attack. So, uh... later on, I will do, uh... a demo of the... the system so that you... you can have a feel, uh... what you can expect, uh... when you do it online. And also something that, uh... uh... we... we didn't... we... we are still, uh... working on. So from the MEDA sample sets, uh... we... we can easily identify the major task force behind these samples. So the more sample you submit, then you can easily identify, uh... how many different groups are actually behind all these samples. And then you... you can easily identify, uh... how many weapons that have been purchased, uh... how many different exploits they... they've been using... repeatedly, utilized. And then one interesting thing is that, uh... this klept hallucination cells, they are capable of pretty much, uh... mining, uh... mine, uh... in the US, fight a bit in the US, uh... were a piece of the eine? Oh, actually, it was one of the? is it, it was one of the? I don't know. will be a very famous one and then we also found out with these APD samples we actually extract hundreds of attributes but among these attributes very very significant ones are CNC servers and malware use and less significant ones is the exploit type even though APD task force they will use a dozens of different exploit types and if we look at a language use in these APD samples one things that we can say is of like one fourth of the samples are from China and then some samples is from Korea and then we also have samples from Russia and France and then if you look at what CNC servers are being abused the top one will be Taiwan US and then Hong Kong and then this one is readily available online where you guys can try it's when you upload a binary it will give you a graph and then it will also tell you whether it's an APD file or not or it's only a normal virus so if it's only a normal virus then you will not you will not put you into a graph so this graph will only draw APD task force graph and in this case you see that out gradually we see more and more APD emails are being signed by Komodo certificate so you see emails have been digitally signed and then verify and then this is from a very new group previously we mentioned that green color indicates it's this year so this group starts being very active from this year and they don't exist in midas sample they they just show up after the community start to submit their APD samples and then so I will demo this one here so this one is a it's also an APD email sent from someone I would trust because it's the same from academic institution and basically is saying that are creating creating something and it's also a PDF and as you can see that Google doesn't alert me with a virus emails and also when I save as in my computer the Microsoft antivirus secure essential also doesn't alert me as well but they're not this is the APD diesel that you guys can try I then can upload this one source. Okay thank you. Okay it says that your sample is of IPD grade so it's okay it says that your sample is of IPD grade so it's It's a good quality, means that it's not a normal viral sample. And then it's from group A. So it not only tell you that it's malicious, remember that when we try to open it inside Google, Google doesn't tell us it's malicious. And also our antivirus tool doesn't tell us it's malicious. So these three tools, first it tells us it's malicious. And it also tells us that we are being targeted by the biggest APD task force. So since we are part of their plan, they will never give up until they are successful. And as you can see. This graph is much, much bigger compared to my previous slides. Because the more the community contribute, the bigger the graph will be. And then we also have what we are still developing. We try to put this together like a dashboard so that you can see a more holistic view to see the trend. And then we also try to associate it with Google Map. Which is very fun. For example, we try to see Taipei. And then later on we try to make it together with the street view. So probably you can see a hacker is sitting there on the street, yeah, real time. And this is something the US can do easily, right? Because you guys got a satellite. Okay. Yeah. Pretty cool, right? Actually, if you begin the CNC or deploy CNC or you're located then. Actually it's my honor to work with Benson, Birdman, and PK to perform a secure lab and to give this research like that. Actually for me. You know. As I. As Benson said. I think that every time we do the manual analysis, it's quite very time consuming. And even from the same generator, we can't expect, respect what is the task force behind. We need to identify the evils behind. You know. Otherwise, you never just every day you take a routine job to analyze, it's meaningless. We need to escalate the analysis level one more level. So you can make your plan, strategic plan on your how to respond to incidents. And how to make the controls instead of just buying different boxes, firewalls, IPS. And you say, you have done the control. This is not our story in the future. Oh, yeah. Actually. Actually, I simply get a PowerPoint. Yeah. I have not used Windows environment for many years. Okay. Thank you. So what is your opinion on it? Oh, final words then. Actually, we could reach us at www.execute-lab.com. And we keep collecting samples. And enhanced the capability to analyze and observe APD DNA family in a more accurate manner. This is what we want to do. And deep technical analysis of the sample is still needed, right? But it's helpful for DNA footprint analysis. It's an incremental effort we wanted to make. And we would like to publish our follow-up message at DEF CON speaker corner, and together we make the homeland secure. And also special thanks to our members, and also like Benson, PK, and also Birdman, and other fellows in secure lab teams, and group members, and UXRL members, and our family and fellows. This is our e-mail address, and also our blog. And one more thing is, perhaps we will blog, members? Are you convinced yet? Thank you.