Hey, everybody. Welcome to watch the re-recording of my talk I gave at the DevCon CloudRidge for making the most of Microsoft Cloud Backbone programs. So, how I made 65k in bounties in 2021. So... My name is Dr. Nesteri Jylimaa, also known as Dr. Azure AD. And I think people know me best of my tool called AAD Internals, which I've been publishing since 2018. I'm a Senior Principal Executive Researcher at SecureWorks Counter Threat Unit. And what I do there is that I'm trying to find vulnerabilities for Microsoft Cloud before the bad guys do. So, that's pretty much what I do. I'm also a Microsoft MVP and one of the most valuable researchers. They actually announced last week or in the first day of Black Hat 2022. And actually, there I am on the list and I'm number 70. So, that's my 70th place. I've been working with MSRC now a couple of years, if you will. And it has been nice. So, for instance, they draw me a picture of me like that when they did like a research portfolio or research interview, if you will. It's actually still there on the MSRC site. And by the way, MSRC comes from the world's Microsecurity Response Center. And also, the people who are on that list are invited to a party. It's called MSRC Research Celebrity Party, where I was also last I think it was Wednesday. So, everybody who was on that list will get the invitation. So, it's actually quite nice to be there. And by the way, that is this time at least it's top 100. So, it was actually very nice to meet other people from the research community. And also, they are following me on Twitter. And it's nice to see, because they only have like... They are only following 75 people, including Satya Nadella, who is a CEO. Yeah, CEO of Microsoft. It's nice to be part of those. Okay. So, before we go forward about reporting bounties. So, people usually do that for three reasons. So, first one is obviously to get the bounty. Second one is to get points to be on that list. So, even though not all bounties will get... Sorry, even though there are vulnerabilities, not all are going to get bounty, but you are still having points. And the third is like me, that I just want to get things fixed. So, that's why I've been doing this. But hey, let's move forward. So, first of all, I wanted to share with you the site, where you can see all the bounty programs. So, you need to go to microsoft.com slash enus or whatever is your country and language slash msrc slash bounty. And here you actually have the list of programs. And I've been working with Azure program, Identity program and M365 program. And as you can see, the bounties, the highest bounty, at least now, is with Microsoft Identity. So, if you go here, you can see that... Scroll down. So, here's a nice table. So, if you can do the elevation of privilege and it's secure and it's high quality, you will get 100,000 bounty. That's a lot. So, my highest have been 20,000, like a single one. So, if I remember correctly, it came from this. But anyways, there are also like moderate or low severity vulnerabilities that won't get bounty, but you will get points. So, I suggest you to always submit if you have something, regardless of the bounty. So, please do that. So, you will get points and you will get on that list, actually. If you are doing a lot of those, even moderate or low findings, if you do a lot of those, you will be on that list. Okay. And if you look at the other programs, like N365, you can see that the bounties are a little bit lower. But anyways, these are very nice additions to your base library. Okay. But, where's my slides that there is? So, okay, there we go. So, I was planning, originally, like share three cases with you. But then, I decided to share two bonus findings also, because they are good stories. So, let's start with the first one. So, this is spoofing and tampering with Azure AD signing logs. So, very short walkthrough about the vulnerability. So, I think it was about a year ago, maybe a little over a year. But AD FS health agent got an update. And the AD FS health agent is running on the AD FS servers. And what it is, well, one of the things it is doing is that it will send all the signings, what are made to or through AD FS. They will send those to Azure AD, so that you can view them in Azure AD signing logs. Also, you can use like Sentinel to detect stuff, because they are there. So, when that agent was published, I kind of reverse engineered the protocols it is using to communicate to Azure AD. And I was able to, you know, spoof signing log events. But that was like by design, because that's how the protocol works. That's what the agent was made to do. So, there was nothing, you know, there. However, I noticed that one thing that was sent to Azure AD was a GUID. So, it was an ID of that signing event. And if I was using an existing ID that there already was in Azure AD signing log, I was able to override those signing events. So, basically, you could change the IP address and person who signed in at that time. So , for the bad guys, that was a good feature, because you were able to like cover your tracks. Anyways, I reported it and got the 10k bounty. And takeaway from this story is that the new features often, well, I would say always have business logic vulnerabilities. So, whenever Microsoft is publishing something new, it's a good chance for you to find things first. So, you just install that, study how it works. And quite often, there are business logic vulnerabilities like this. And it's kind of an easy way to get a great bounty. Okay, then the second one. So, Azure AD OSINT. So, there's a thing called Microsoft Support and Recovery Assistant or SARA. I'll just go away from the text for a minute. And that is a tool that is helped to analyze and fix problems if you have any problems to connect to Microsoft cloud services. Like, for instance, if you can't read your email, you just run the client and it will do some local analyzing. Also, it submits certain information using APIs to the backend. And then the backend is doing some checking. And I was able to find out that those APIs did not validate that the tenant ID or user ID I was sending there is the same than who was logged in. So, that allowed me to get information from other tenants. So, I was able to, for instance, get any user's email settings and licenses and so on. So, I reported that. And I originally found this from a legacy endpoint that hasn't been used for a while. But anyways, I got a 5k bounty from that. And they fixed that by disabling that cross-tenant access and actually pretty much the whole endpoint. But there was another endpoint that Zara is currently using and it still was providing the same information. Like, I was able to access information from other tenants. So, I reported that too. So, they finally fixed that. So, they disabled the cross-tenant access for good. So, that's not anymore possible. But I noticed that regular users, like normal users, can still get access from their own home tenant. And that access was not meant for their eyes. Like, for instance, they were able to see email trust relationships between your tenant and other tenants. So, that was like another kind of bug. But I still reported that. And again, I got a 5k bounty. So, but this time it was Elevation's privilege. So, basically, the takeaways for this is that if you have multiple findings which are similar. So, first send just one and not put everything in one post, just post one. And after the fix has been provided, then you can send another one. So, the logic here is that if you got a bounty for the first one, then you have to have a bounty also for the second one. And also, a tip that look for different categories. Like, the first one was information disclosure. So, even though that is fixed, there still might be something else. Like, in this case, privilege escalation. So, that was also quite nice way to report stuff like three in a row. So, I was able to triple the bounty for this. Okay, then the third one. And this is like my biggest bounty ever. So, originally this was by design. Anyways, and then finally it ended up like to two 20,000 bounties. But let's focus on what is this all about. Okay, so this is related to Azure AD Connect. And that is a service that is... Sorry, it is synchronizing stuff from your on-prem AD to Azure AD. And that's the purpose of it. And nothing like a special there. Anyways, I was able to, again, like reverse engineer the API it is using. So, it's actually proprietary API. So, it's not public API and it's using binary XML. And the purpose of Azure AD Connect, as I said, was to synchronize users. And it is allowed to edit those users which it has synchronized. It is allowed to delete those users. It is allowed to reset passwords and so on. So, anyways, I found out that there are two IDs. So, there's a source anchor and then there's a cloud anchor. The source anchor is users on-prem AD ID and the cloud anchor is users Azure AD ID. And cloud only users doesn't have that source anchor at all. But I was able to find out that you can also use the cloud anchor to edit users. So, I said that, okay, this is the cloud anchor. I want to edit, I want to delete it and so on. Or I want to reset the password. And that shouldn't be allowed. But anyways, I was able to, you know, like take over global admins even from the cloud because I was able to reset their passwords and even delete them. And then maybe do some extortion or ransom to the target organizations. Okay, I deleted all your admins. Give me money and you will get them back. So, that was the finding that I was able to do. Okay. So, I reported that and that was categorized by design. And I had a very many like replays and contacts with MSRC. And actually, there was a kind of a director from Microsoft I knew. And I sent him an email that, could you have a look at this? Because it really feels that if you're an on-prem admin, you shouldn't be able to delete stuff from cloud. So, finally, they decided that, okay, yes, that is a real issue. And they provided me a 20k bounty. And they fixed that. So, I saw a tweet of one of the product managers who tweeted that, okay, they have now fixed that. And I noticed that, okay, actually, you can... So, the fix was that there's a setting that Global Admin can turn on. It's something like a disable cloud only takeover or something like that. And you set that to true and that's it. And then I noticed that how they fixed that. So, it was actually part of the settings that the Azure AD connect user. So, if you compromise that server, you will get the credentials. And those credentials can be used to change that setting. So, basically, you would just change that back to the original setting. So , that was, again, possible. So, I told him that and he said, oh, that's bad. And he said that they are going to reopen my previous case. So , kind of like they will get back to that. But I was like, no, no, you don't. So, I submitted a new one. You report on bypassing that fix and I get another 20k bounty. And now it's fixed. So , it's really fixed now. So , that you need to be global admin to be able to change that setting. Okay, the second ways. So, when they are providing a fix, you should study that like very carefully. And look that if there's anything like you could go back and bypass that. And then look for things that exist independently. Like the flaw on changing these settings have been there for years. And I knew that you can change those settings as that user. But there just wasn't any use case for that. But now there was. So, when this case was open, they fixed that stuff. I was able to compromise that that has been there already for years. And also, do not accept any reopening old cases. Because the old case was actually fixed. So , the status was fixed. The fix just didn't work. So, it's a different case. So, don't accept that and just post a new report and you should be good to go. Okay, then the first bonus case. So, this was actually not found by me. But this was found by an Indian guy called Ravanakaram. No write-up yet, please. And a very short walkthrough. So, Access Packages or Azure Access Packages are like... It's a service where you can apply access to certain services. Like, for instance, I want to have access to that Teams site or that SharePoint site. I want to access email and so on. And this is meant for people inside the organization, but also external contractors. So, by design, of course, it will show those access packages that are meant for outsiders where you can actually apply to have those. And we found out that the backend API actually allows external users to view all the packages. And also metadata, including the people's names or actually email addresses who created those access packages. So, we reported that. Well, actually, his original report was quite large. And he had some problems with MSRC, and he was tweeting about that. And I told him that, OK, based on what you show, I don't know if there really is anything. But if you can DM me, we can work this out together. And we actually ended up submitting three different reports. So, this is one of them. And, yeah, so MSRC found out or they concluded that, yes, there is a vulnerability, but it's moderate. So, it's not severe enough. So, let me show you the bounty program. And I think this was from Azure. Sorry about that. Let's see. So, yes, so it was information disclosure, but it was moderate. So, there was nothing. And we weren't that happy about that, because we think that that was quite severe. And actually, I looked at the documentation of that access packages. And I found out that only people who can actually create those packages are either global administrators or user administrators. And this is actually literally what I told them that, according to documentation, it's like this. So, it looks quite severe to me. And they reassessed that and they raised the severity to important. And he got actually that seven and a half thousand bounty. So, I didn't take any of that bounty. So , it was his. So, I just helped him to, you know, argue with MSRC. So, takeaways from this is that argue using your documentation. So, if the documentation they have says something, then use that. And EA, it was quite really easy. So , they were like giving out global admin names, and that is a bad thing. Of course, if they would have been like normal users, that might have been like it's not that severe. But in this case, it was. Also, remember that reporting moderate or low vulnerabilities still gives you a point to get on that list and to that great part. So, yeah, always report. Okay, then the second bonus. Or was this the last one? Yeah, this is the last one, yes. Yeah, the second bonus, yes. So, this is Azure AD Ocean Part 2. Okay, and this is one of the findings. Well, it is that Microsoft has business partners. And those partners have a thing called partner center where they can manage their customers. And, you know, perform like administrative tasks to their customers' tenants. But there was also a tool to find other partners. And I was able to call that API also directly. And I noticed that you can get not just information about the partner, but any organization. So , if I just gave a tenant ID of any tenant to that API, it pulled out information from that organization. So, if you will just log into your own tenant, you are able to get this organization information from any other tenant, regardless are they partners or not. And that information includes the, well, the full name and phone number of the person who created that tenant. And that usually is a global admin. And I reported that and they categorized that again as by design. So, this information is public anyway, so it's a good feeling. And that's it. So, nothing argued there. But then something interesting happened when we published this. Or disclosed this, the whole thing. So, we are writing threat analysis and report like these kind of findings. And like a week after we disclosed this, Microsoft fixed the issue. And I don't know why, so maybe someone else like outside MSRC saw this and assessed that this is actually something that you shouldn't be able to do. So, they reassessed my report. And they found out that yes, this is actually information disclosure. And it's worth of $2,000. And let us go back here. So, I go back a bit and go to here because this API was at microsoftoffice.com. And here I noticed that, okay, information disclosure, $2,000 for medium report. And I was like, what the heck is this? So, you are not happy with my work anymore? Okay, I didn't like that. So, I asked them, why? Can you say the reasons why this is like a medium quality? And it took over two months. So, they were back and forth between the MSRC and the bounty program and then even the engineering. So , they were saying that we didn't decide that and so on and so on. And finally, I was able to get an answer. And the answer was that, okay, we actually reassessed this and the quality was actually high. So, they decided to give me an extra $3,000 bounty. However, they haven't not paid that yet. So, still waiting for that. Okay, and the takeaways from here. So, if you feel that the assessment is not correct, ask for reasons for that. So , you don't need to be mean to Microsoft. Don't be. You just want to know why. Because, for instance me, I wanted to know that what was wrong with the report, so that the next reports I will create would be like a higher quality. But there was nothing wrong, actually. So , I don't know why they ended up in this assessment that it was mean. But, well, you never know. After my talk, I had a couple of questions. And one of the questions was, if I remember correctly, that because I've been working with MSRC now a long time, they know me and I have a good service, if you will. So, what about newbies? So , yeah, when I started reporting stuff, I didn't get that good, let's say, service. And there are not that many people there who are triaging these kind of reports related to identity or hazard, for instance. And it's also important to understand that, for instance, this identity stuff that I'm researching, it's quite a niche area. And there might be five people in the world who knows about that stuff, and you are one. So, there's only four left. And usually, they are not the one who are triaging your report. So, it's important that you create a good POC, or POC, as in proof of concept. So, it's easy for them to try. I usually, well, because I'm doing that AAD internals toolkit. So, that's written in PowerShell. So, I'm quite often using PowerShell script as a POC, so that they can just simply run the script, and they can, like, rerun the error or vulnerability, whatever I have on. And I think there was other questions too, but can't remember those. So , yeah, I think that's it. So, hope you enjoyed this. And if you have any questions, just contact me on Twitter, and I'm happy to help you. Okay.