start	end	text
0	3400	Next up, I have the pleasure of introducing Dimitri Berioza.
3400	10400	Dimitri is a senior security researcher with Vector AI, where he works on threat detection in cloud and on-prem networks.
10400	15680	His interests include reverse engineering, secure software development, and CTF competitions.
15680	29340	In this talk, we're going to examine logging facilities in Azure, concentrating on events generated by Azure AD and Microsoft 365, where we can discuss multiple problems that he's observed in monitoring them.
29340	32400	So please give a warm welcome for Dimitri.
34120	35220	Thank you.
35420	36660	Thank you, Mike.
39000	40020	Hello, everyone.
40020	41660	Really excited to be here.
44240	45460	Some housekeeping.
45460	49080	The slides, you can just scan the QR code to get the slides.
49220	54640	If we run out of time and there are questions, I'll be happy to discuss things outside.
54640	57420	So I'll just hang around outside the door.
57420	66280	So Dimitri Berioza is my name, and I'll be talking about logs, which are the most exciting topic in cybersecurity.
66760	70580	All right, so Mike already mentioned a few things about me.
70580	75980	There are my handles on Discord, Twitter, and connect with me on LinkedIn.
76760	83100	Before Vector, I worked at IBM as a pen tester, and I come from a software engineering background.
85120	86440	So why this talk?
86440	93720	I currently do security research in the Azure space, and I also respond to incidents that our customers have.
94060	100680	And in that, I concentrate on Azure AD and Microsoft 365.
100680	103360	I'll talk about that a little bit more later.
103580	117740	And in the course of doing that for a few years, I stumbled upon multiple issues that complicate log analysis, that complicate creating automated detection queries, and that's what I'll describe for you today.
117740	120080	It's not an Azure bashing talk.
120080	122360	I love Azure.
123060	127460	And actually, some of the same issues, I think, exist in other cloud providers.
127460	134120	My goal here is to raise awareness for defenders and those on the offensive side, the red timers, pen testers.
134120	138180	And also, hopefully, maybe there's someone from Azure here.
138180	139140	Raise your hand.
139140	139980	No?
140080	140940	Oh, wow.
140940	141300	Okay.
141300	142080	Hello.
142680	143560	All right.
143560	146280	So please pay attention.
148340	152220	So maybe, maybe this will affect some actual change.
152380	153480	Who knows?
153480	154980	Miracles do happen.
155600	157620	And of course, opinions are my own.
157720	164900	My employer just sponsored me to come here, but they don't control the contents of the talk.
164900	168800	So a quick refresher on what Azure is, for those who are not familiar.
169400	174720	I'll speak a little bit about how monitoring was done before cloud and how it's done now.
174760	181780	And actually, the bulk of the talk will be on the problems that I observed and my kind of wish list for what actually should happen.
182600	185600	So Azure, for those who don't know, one of the big three cloud providers.
185600	187260	Actually, I think it's number two now.
187260	189960	They have about a quarter of the market share.
190680	193780	Huge array of services, over 200 now.
193780	199440	It's infrastructure-as-a-service, a platform-as-a-service, software-as-a-service, like the full set.
199680	201280	And it's massive.
201280	205200	It's impossible to talk even about logging in the whole Azure environment.
205200	208400	So I'll just concentrate on Azure AD and Microsoft 365.
208900	214000	So Azure AD, directory and identity management service, really important.
214000	215640	Provides authentication authorization.
215640	219840	So if you want to do anything in Azure, you have to get through that service first.
219840	220820	You have to have an identity.
220820	222520	You have to have certain permissions.
222520	231080	And, of course, they support the whole set of features, Azure, for federation, multi-factor authentication.
231080	232040	You mentioned it.
232040	237340	And has, by what stats are about two years old, almost half a billion daily active users.
237340	238660	So it's kind of a big deal.
239220	246620	Microsoft 365, you're probably familiar with it from back in the Office days, when Office was just on our personal computers.
246620	251060	This is essentially Office in the cloud with a bunch of additions.
251060	254880	So there's also Teams, Exchange Online, Skype, SharePoint, OneDrive.
254880	255960	There's a whole bunch of it.
255960	259600	It's its own big lineup of products.
259600	261240	Also very popular.
261240	263460	I think it's a market leader at this point.
263640	266780	And lots of monthly active users.
266860	278420	So I think if you pick a random person, if they deal with Azure in any way at all, it'll be probably through, well, first of all, through Azure AD.
278420	281180	And most likely they'll have a Microsoft 365 account.
281180	283120	They'll have email hosted in the cloud.
283120	285980	So both of these are really high-profile services.
285980	288860	And this is where it kind of fits in the whole ecosystem.
288860	292560	So Azure AD is a platform-as-a-service service.
292720	299820	And the software-as-a-service Microsoft 365, or Office 365 as it used to be called, is a good example of that.
300780	304640	So event monitoring is based on logs, of course.
304640	308620	Microsoft Sentinel is their native CM solution.
308620	314000	It ingests logs from cloud services, but also can, I think, ingest external logs.
314280	316400	And you can build detections in it.
316400	319000	I think there are a bunch of built-in detections.
319240	324420	There's also something called Azure Log Analytics, which is a great log analysis platform.
324420	328880	You can kind of run ad hoc queries in there and do investigations.
328960	331540	I love Kusto language that they implement.
331540	333440	It's a very powerful query language.
333440	339260	And queries are very, very fast because I think they massively index on the back end.
339260	347100	So it was a breath of fresh air when I could run a query of a massive data set and really get results really quickly.
347520	350040	So logs can be analyzed in Log Analytics.
350040	354660	It can be streamed internally if you have your own CM in your environment.
354920	360000	And third-party solutions that you can buy, they can help you analyze logs.
360000	363900	But they cannot help you produce logs or different logs or better logs.
363900	365180	Microsoft controls that.
365180	367580	And that's kind of part of the problem.
367800	373280	So logs, there are different types of logging available in Azure AD and Microsoft 365.
373300	378040	Azure AD mostly deals with sign-ins, with changes to directory settings.
378040	380700	It's based on a more modern API called Graph API.
380700	384900	I think Microsoft's plan is to migrate all of their services to that.
385140	389000	And it currently exists in base version, in a beta.
389000	394400	I see Microsoft using the beta version in their production products.
394400	395920	And yet it's a beta.
395920	397920	I don't know if they want their customers to use it.
397920	399660	And the schemas are very different.
399660	406060	So it's a bit of a mystery of what the recommendation is for their customers to actually standardize on.
406060	410500	Microsoft 365, kind of a completely different beast in terms of logging.
410500	412500	They have something called Management Activity API.
412500	413980	There are a bunch of logs there.
414000	417640	They're sort of split by general functionality types.
417640	421560	So there's a separate log for Exchange, separate log for SharePoint.
421560	426180	And there's audit general, kind of all other events fall into that.
426180	429380	And I think the plan is to migrate to Graph API eventually.
429980	436800	So if you think back to if you dealt with on-prem networks before, migration to cloud is great.
436800	439540	We get a lot of really neat features.
439640	441860	A lot of things are easier in the cloud.
441860	445400	But when it comes to logging, I think it's kind of a mixed bag.
445400	452140	The problem is that when you control your own environment, when you control your own network, you can set up logging pretty much anywhere.
452140	456400	You could have logging on individual machines, on the edges of your network.
456400	458640	You can put network tabs anywhere you want.
458640	460800	You can go with software.
460800	464340	You can have hardware solutions plugging in, like physical cables.
464340	465800	So you have a lot of choices.
465800	468060	If you don't like one vendor, you ditch them.
468060	468820	You go to another.
468820	469720	No problem.
469760	471740	In the cloud, things are more streamlined.
471740	473800	However, you lose that choice.
473800	478920	So whatever logging you want to have, it only comes from Microsoft.
478920	480880	You don't really have much of a choice.
481200	486420	And if the quality of those logs is great, if everything is really well thought through, perfect.
486460	491140	But unfortunately, if you see issues, you don't have much choice.
491140	498980	You can either migrate to another cloud provider, and it's a huge undertaking, or complain to Microsoft and hope that things get fixed.
498980	505200	Unfortunately, that doesn't happen quickly enough, I guess, when that happens.
505560	514620	So my expectations for log quality in the cloud are such that, first of all, it's easy to consume API, timely logging of events.
514620	516660	The speed is really important here.
516860	521280	Clear and complete documentation for everything that I see in the logs.
521280	526220	I don't want to guess what I'm looking at when I'm analyzing an incident, for example.
526220	529240	All log records should be complete.
529520	533500	And I want the following data consistently available everywhere.
533600	536700	What the operation was and all the corresponding parameters.
536980	539300	All the identity and session information.
539300	543000	I want to know everything about the user that performed that action.
543000	548440	I want full IP information, geolocation, device information, threat and reputation indicators.
548440	553200	They are slowly becoming available, and they really help in incident response.
553200	555160	I also want to correlate between logs.
555160	558700	Somebody logged in, and then they did something in Exchange.
558700	560300	They did something in SharePoint.
560300	563980	I want to connect all the dots there and see the full attack.
564400	566120	That's my wish list.
566120	572980	Unfortunately, that doesn't fully happen to my liking.
573580	579440	Let me run through a big list of things that I see that complicate my work as a defender.
580320	585060	First of all, there are some difficulties in log consumption.
585220	592520	In some of the logs, primarily in Microsoft 365 logs, the schema that you observe is fluid.
592520	604040	Every new event type that you get, if you look at the log as a table, if that new event type has five new fields, you get five new columns.
604040	608160	You can see the log growing not only vertically, but horizontally.
608160	613080	Microsoft itself and Log Analytics may handle it, but actually they don't always handle it.
613080	619100	I've seen this error of limit of maximum 500 columns reached, which is kind of insane.
619360	624180	But if you start to consume these logs externally, it's a big problem.
624180	627380	You need to pick and choose which fields you want to see.
627580	634520	You want to have the foresight to predict what fields you will want to see for this new operation that Microsoft decides to log.
634520	636380	So it's really, really hard to handle.
636980	643060	And also, when you pull on the APIs, you have to be really careful because of delays.
643060	645200	And I'll talk about those further.
645260	646840	Sometimes events come late.
646840	651860	So if you pulled on the log API, you got your logs for today.
651860	656420	Maybe another event is still hanging in there, arrives late.
656820	668680	To get it, you need to call the same API with the same parameters again, and then deduplicate the events to remove the duplicates that you have already seen to get the few events that were late.
668680	673340	So it just adds work to you as a defender.
673940	676020	There are occasionally log flow issues.
676020	681660	In my memory, there were a few log outages there, the ones that were announced.
681660	685740	And one of them that I remember lasted several weeks, and we noticed it just by accident.
685740	691080	So things fell silent, and we didn't have any mechanism in place to actually detect that.
691080	694500	So that was kind of a big problem when you're blind for that long.
694640	708580	Nothing really you can do about it, rather than maybe invest some kind of solution that monitors log flow, and tells you that, oh, you know, this is the normal log patterns, and things all of a sudden have dropped off.
708580	709980	Something is going on.
710980	717420	Also, another kind of, I think, a general issue with all cloud providers, logs are enabled and disabled in band.
717420	721840	So you log in as admin, and you can stop logging.
721840	731840	That's kind of a problem, because if your admin gets popped, as a red teamer, one of the first things to do, I would actually stop logs to blind the security tools.
731840	749080	So I think we need more mechanisms for preventing that, for an event as big as stopping the logs, it has to be more, I guess, difficult for attacker to control that.
749080	751680	And things can actually be changed more stealthily.
751680	761240	You can not only stop logs completely, but stop individual logs, and in exchange, you can stop auditing for specific users.
761380	768140	So as an attacker, you could be selective, and kind of try to stay under the radar.
768140	781320	So the outcome for this, I think defenders just need to pay attention to how their logs are flowing, really pay attention to what events they see that actually trigger log disabling.
781560	788100	And attackers, I think it's a great technique to actually just turn off the logs, even temporarily, to blind the defense.
788100	791840	And Azure just, I think, needs to be aware of this.
792540	795500	So events are also getting delayed.
795500	802100	Microsoft SLA says, I think it's between like 5 and 15 minutes, they pretty much guarantee that you will get events that happen.
802180	806840	Which is also, like 15 minutes is already kind of, you know, it's not very comfortable.
806980	811820	I actually see in Graph API-based logs delays up to 40 minutes.
812240	815640	And in Microsoft 365, sometimes more than 24 hours.
815640	818640	Like if you look, these are recent stats that I pulled.
818640	824380	This is actually one day and 14 hours for this event to arrive in the logs.
824380	827740	Which is just, I don't think this should happen.
827860	829880	Delay really hurts defenders.
829880	833360	You cannot react as it is.
833360	844460	Like even if, let's say, logs arrive in 30 minutes, there were some attackers that are known that actually started doing their work within 30 minutes of the breach.
844460	848700	So you are almost, as a defender, you're almost late by design.
848700	856700	So by the time you see the events, if attacker is, you know, really competent and they have scripted a lot of their actions, they're already done.
856700	859140	You're just, you know, cleaning up and picking up the pieces.
859320	871640	So I think the lesson here is that as defenders, you, I think, need to run, maybe run to some stats to see when, how long it takes for logs to actually get to you.
874060	880100	Attackers take advantage of these delays because I think defenders will be continuously late.
880100	883580	And Azure, I think, should really speed things up.
883580	887200	We need logs to arrive very, very quickly.
887400	889400	There's also something called login tax.
889400	899320	Depending on your level of license that you pay for, you get different, I guess, granularity, different level of security details in the logs.
899320	900180	And that's a big problem.
900180	903580	So you essentially have to pay premium for better security.
903580	906220	There was this great quote from a U.S.
906220	913980	senator that charging people for premium features, necessary not to get hacked, is like selling car and then charging extra for seat belts and airbags.
913980	916300	I completely agree with that.
916340	918240	I understand that Microsoft is a business.
918240	919540	They need to make money.
919540	922560	But this is kind of, I think, a wrong place to make money.
922560	925680	You need to make sure all of your customers are really secure.
925720	929620	And there was a recent incident that really kicked things into high gear.
929620	932000	CISA got involved because a bunch of U.S.
932000	935300	departments got hacked in Azure.
935320	943060	And I think they pushed Microsoft to actually expand access to these types of logs that are not visible to ordinary users.
943060	943980	And that's amazing.
943980	945820	I hope this trend continues.
946380	950780	So for defenders, not much to suggest here.
950780	956000	If things that you want are paid, you have a difficult choice.
956000	961320	You'd have to pay extra or agree with not fully seeing everything.
962460	969580	While these features are still being developed and coming online, attackers can take advantage of some things being hidden from the majority of the customers.
969580	974260	Because not everybody can afford something like $37 per user or something.
974740	978220	It's a big expense to get those extra features.
978220	983120	And Azure, please, don't charge extra for such a basic security feature.
983120	988040	I would say documentation on logs is generally deficient.
988040	992860	The best you can probably hope for is the names of operations that you'll see in the logs.
992860	999340	But if you actually go into the actual log record and start looking at the individual fields, most of them are a mystery.
999900	1005740	Individual, let's say, enum values, you get authentication code 278.
1005740	1012000	And you look online and there's nothing there and you're lost.
1012000	1015560	You have to hunt through blogs and ask questions and discussion boards.
1015560	1017120	And this is fine.
1017120	1019840	I understand that it's just probably part of your daily work.
1019840	1022100	But as a defender, you shouldn't be doing that.
1022100	1030320	You should be looking at the logs and analyzing incidents, not digging into all kinds of blogs just to find bits of information.
1030320	1036280	Microsoft really needs to document everything that they log to help us as defenders.
1036280	1040560	And attackers, again, any defender's loss is an attacker's gain.
1040560	1045060	You can't really hide in cases that are not well documented.
1045740	1049140	I find that Microsoft does a lot of changes that are unannounced.
1049280	1055540	In my experience, I was at one point monitoring mailbox login events in Exchange logs.
1055540	1057440	And then all of a sudden they disappeared.
1057480	1060300	And I noticed maybe several months later.
1060300	1061760	Because it was just completely silent.
1061760	1063120	So you have your queries running.
1063120	1064380	They're not finding anything.
1064380	1067160	And that's because that event is not logged anymore.
1067160	1076100	Or I had queries that detected attackers trying to enumerate users coming from the outside of the enterprise.
1076100	1082620	They would try different combinations of usernames, like a first name, dot, last name, or last name, dot, first name, etc., etc.
1082620	1084620	They tried those enumeration attacks.
1084620	1085800	I used to see those logs.
1085800	1086880	They're gone now.
1086880	1089380	Again, silently, without announcement.
1089420	1090900	It's kind of upsetting.
1090940	1093780	And also we had a case underlined there.
1093780	1094960	You can see it in the slides.
1094960	1095900	There's a link.
1095900	1109480	We documented a case where passwordless authentication, when it was introduced and encouraged, the error codes that you get for that are completely different from anything you got before.
1109820	1110560	Undocumented.
1110560	1112460	We discovered them by accident.
1113340	1115260	Just didn't know how to react to that.
1115260	1119720	But this is important if you're doing threat hunting and responding to incidents.
1120180	1124360	So it's really the worst kind of failure when you don't know that you have a problem.
1124360	1133100	So for anonymous changes, I don't know how much defenders can do rather than just study and continuously look at the logs and learn.
1133100	1134880	But it shouldn't be this hard.
1134880	1136740	I think Microsoft can do better.
1136860	1143080	And again, anything that's difficult for defenders, attackers can put in their TTPs.
1143540	1146620	So cloud is a recon paradise.
1147020	1151540	Get type events, when you enumerate something, almost never get logged.
1151540	1156400	I think it's the same thing in AWS and maybe the same thing in other places.
1156720	1160740	So when an attacker gets access, they can look around without you noticing.
1160740	1161920	I actually did an experiment.
1161920	1168420	I ran a bunch of open source Microsoft 365 Azure AD attack tools, the ones that do enumeration.
1168480	1170520	Virtually no signal in the logs.
1170520	1176900	As soon as you try to maybe try different passwords, that's when things start to show up in the logs.
1176900	1178640	Before that, it's silent.
1178640	1182940	So if you're a red teamer, have a ball.
1183000	1187940	As soon as you get in, you're free to look around and not be noticed.
1188040	1192720	Again, Azure doesn't even give you an option to turn this on.
1192980	1196000	I'm sure there's some serious reason for not logging them.
1196000	1201100	Maybe there's space concerns, like the logs will just explode if you log all of these events.
1201100	1206780	But at least give me an option to turn them on if I'm extra careful in my particular environment.
1206780	1210320	I may want to actually turn these things on.
1211620	1215020	There are a bunch of inconsistencies I see in the data that's being logged.
1215020	1222560	So when you run your detection queries, you have to be really careful to make sure that you kind of clean up, let's say, the IDs that you see.
1222560	1229340	Because, as you can see, the same user can be logged with different letter case in different log records.
1229440	1232920	Sometimes the log ID is different altogether.
1232920	1236600	And Exchange really throws a wrench in the works.
1236600	1242700	This huge chunk of texture is an actual user ID that gets logged for some of the users.
1242700	1255020	So you can imagine, if you're investigating an incident and you're trying to consolidate different logs and tell a story of what happened, it's really difficult to connect the dots if you just want to join on username.
1255120	1258860	There are unique IDs available that you may want to...
1258860	1263560	It's probably a better way of consolidating, but again, I don't have to discover this.
1263560	1265880	This really has to be clearly explained to me.
1268180	1271180	Occasionally things are just missing, not available.
1271560	1275300	I'll try to go quicker because I think there's a lot more material.
1275300	1277880	For IP also, lots of inconsistencies.
1277880	1286300	You usually get the clean IP v4 or v6 address, but sometimes you get IPs logged together with ports.
1286480	1291300	So you have to call a port number, you have to cut that off to clean things up.
1291300	1298580	I've seen empty IPs, I've seen local and private IPs, I've seen all zero IPs, I've seen all 255 IPs.
1299080	1303020	None of this is useful, but we still see that.
1303020	1306040	So it's hard to deal with.
1307520	1312260	Geolocation also, it's a useful feature, it's only available in sign-ins log.
1312780	1315440	Sometimes it breaks, sometimes it's empty.
1315440	1319380	You can see here the real record that I pulled last night.
1319640	1321240	Country, state, everything is empty.
1321240	1323320	So that's not helping everyone.
1323320	1325360	I understand that geolocation is kind of tricky.
1325540	1330720	You can be easily fooled, and it does get fooled by Autor, by VPNs, proxies, etc.
1330720	1334400	But when an attacker is not careful, they're revealing their real location.
1334400	1336540	It's helpful in this investigation.
1336540	1339820	So it really has to work consistently.
1339840	1342200	Device information also hit and miss sometimes.
1342200	1345440	I think it's mostly grabbed from the user agent, and it's a mixed bag.
1345440	1352400	You get sometimes a full user agent, sometimes you get pieces of it parsed out, and parsed not always consistently.
1352420	1355440	So some consistency in all of the logs would be great.
1356120	1359000	Sometimes you get broken values in the logs.
1359000	1362600	So as part of your query, you may want to parse a field that's JSON.
1363700	1371080	I think when things run out of space, you actually get broken JSON, as you can see in this example here.
1371080	1374020	These three dots is not something you click on to expand.
1374020	1377480	These are literal three dots at the end of JSON.
1377480	1380420	And of course, your parser will choke on that.
1380660	1383220	So something to be aware of.
1383940	1390200	Again, for all of these, the running lesson is defenders be aware.
1390400	1394000	Try to factor that in your analysis queries.
1394000	1398040	Attackers, maybe something to take advantage of, because these are not some fancy zero days.
1398040	1405780	You could probably add stealth to your actions by just taking advantage of all these little deficiencies.
1405780	1408220	And Azure, please fix stuff.
1408480	1420940	All right, so all of this is mostly about log analysis and the signal you see in the logs, but you could actually occasionally be attacked through the logs.
1420940	1424320	I just want to explain this example here.
1424320	1430480	So log pollution is a type of attack where attacker controls the content in your log maliciously.
1430480	1438480	And it could be coupled with something called CSV injection, which is an Excel formula you could embed in a CSV field.
1438480	1445700	And because most of us open CSVs in Excel, Excel actually interprets those formulas and executes them.
1445700	1449280	And sometimes those formulas can actually run external commands.
1449280	1460360	So there was a case of log pollution with CSV injection that was documented by Rhino Security five years ago in AWS and Azure.
1460360	1463300	I think it got fixed since, but I found another one.
1463300	1466820	And this one is pre-authentication, so I'll just do a demo of that.
1466860	1479260	So the idea is to get a malicious payload in the logs and social engineer the admin to open the log to get this payload to detonate on their machine.
1479260	1484220	It's harder to do these days because Microsoft put some defenses in Microsoft Office.
1484620	1494920	You could do it with the old version of the Office, or you could maybe social engineer admin to drop this particular setting in their Excel.
1494920	1499860	It's not easy to do, so it's not like a zero-click thing, but it's something to be aware of.
1499860	1506760	And when I reported it to Microsoft, they didn't seem really excited about it, so I'm just going to tell you guys about it.
1508160	1511800	So anyway, this is the payload.
1511800	1514940	You may recognize it as a DDE formula from Excel.
1514940	1518240	It just pops a calc because we're all white hats here, right?
1519880	1527020	It attempts to sign in into Azure with an existing account and a bad password, so actually you don't want to log in.
1527020	1532500	You just want to try to log in with that special user agent field.
1532500	1544900	And then when a defender, admin, opens the log as a CSV file, if he has the right version of Office, like the old version of Office, or if these defenses are dropped, it will detonate.
1544900	1546520	So this is the demo.
1548840	1550220	Takes a bit of time.
1554720	1560200	So the first step is to override the user agent with an exploit that I just showed.
1566840	1574340	I think you can do it in pretty much any browser nowadays, or use Zap, or use Burp, it doesn't matter.
1585400	1588580	So there's a field for user agent.
1589220	1591260	It's under network conditions.
1591260	1597780	Instead of using browser default, we use this custom string that we drop in there.
1598760	1605040	And then, the second step, where we try to log in as an existing user.
1620830	1635030	So I type my username, and then I intentionally type the invalid password, so that there's just a record of me trying to log in and failing.
1635030	1638110	But the user agent gets into the log.
1638110	1639610	So this fails.
1639790	1644630	Then I call up the admin and say, hello, this is Microsoft support.
1644630	1646890	I want to help you investigate an incident.
1646890	1649170	We're seeing something fishy in your system.
1649170	1650990	Can you please pull up the logs?
1652210	1655730	It takes a bit of time for the records to actually get there.
1661650	1667290	And then, so admin says, well, Microsoft told me to do this.
1667290	1668410	I must do this.
1668410	1670790	They open the logs in Log Analytics.
1671130	1674790	I added this query to kind of filter things down to make things clearer.
1674790	1676350	You don't have to run any queries.
1676350	1679510	As long as you open that log, that payload should be in there.
1679510	1681690	And you export it as CSV.
1681690	1683610	You open it in Excel.
1686530	1690290	You tell the user to click through these useless prompts.
1692290	1693330	And boom.
1693330	1694170	All right.
1698270	1699190	Thank you.
1699410	1700310	All right.
1700310	1708650	So the lesson here is to kind of be aware that this may happen and attackers maybe try and, you know, integrate this into your tactics.
1708650	1709790	So why is this happening?
1709790	1710570	I have no idea.
1710570	1711470	I'm speculating.
1711470	1714870	I think logs are an afterthought for many software developers.
1714870	1717930	I know when I was developing software, it was an afterthought for us.
1718010	1721590	Features were the focus, and then everything else comes after.
1721650	1726370	Sometimes maybe other fixes take priority to fixing these things.
1726370	1733030	Some of the logs come from legacy products probably, so they just integrate with them and forget about them.
1733090	1737370	And sometimes provider doesn't have an incentive to fix things.
1737370	1739850	But whatever the reason is, I think things have to be fixed.
1739850	1748110	So I think what should happen is full documentation for everything, logs treated as an API, so all the changes announced.
1749210	1754590	You know, you have time to react if you have queries running against the current scheme of the logs.
1754590	1756510	Logs are timely, arrive quickly.
1756530	1757510	Values are clean.
1757510	1759370	This is my Christmas wish list.
1759370	1766990	I don't know how much of it is actually going to happen, but Microsoft, this is what the customers long for.
1767310	1777930	And as a maximum goal, I think this thing should be refactored because it feels like it's pulled together from many different pieces and held together, like with duct tape.
1779450	1787810	Ideally, a refactor is in order because I have seen logs in AWS and Okta, and I think they do a much better job, much cleaner job of doing this.
1788470	1789670	So that's it.
1791250	1794110	Logging, you know, we see it's in the cloud.
1794110	1795250	This has a lot of advantages.
1795250	1796190	It's uniform.
1796190	1800170	It's kind of better understood, probably, than on-prem.
1800170	1806350	But there's a lack of alternatives and no strong incentive for a provider to fix things.
1806350	1808690	As defenders, we just want to be aware of these issues.
1808690	1813110	And red teamers, until the issues are fixed, maybe try to take advantage of them.
1813110	1813850	That's it.
1813850	1815910	I think I'm out of time.
1816970	1819350	Do we have time for questions?
1819570	1820170	Okay .
1820590	1821950	Sure, go ahead.
1821950	1836960	Yeah, I think actually Microsoft monitors for...
1837580	1838600	Oh, yes, sorry.
1838600	1845360	Is there software that can monitor for these things happening and sending alerts?
1845360	1847400	I think Microsoft has logging for that.
1847400	1852360	Other external players have products that monitor for things like that.
1852360	1855840	Our product company I'm working for does that.
1856380	1859740	Or you can roll your own, execute your own queries.
1860180	1861600	One more question.
1864840	1865540	Yes.
1865540	1871140	Do you have a query to turn AWS JSON log back to where it was supposed to be at?
1871140	1877660	No, because when it's logged and sent, it only breaks down the entire AWS logs into whole fields.
1878300	1881840	So the question is, do I have a query for what?
1881840	1882740	I'm sorry, for...
1882740	1887060	For changing Azure logs at AWS.
1887060	1889160	That's back to their AWS JSON format.
1889160	1893180	Because when you get JSON, you just have to call it with them.
1894900	1896940	Okay, I don't think I got that.
1896940	1899280	Maybe we can discuss this outside.
1899280	1900240	You'll explain it to me.
