Microsoft's Small Step to Disable Macros Is a Win for Security
Doubt. Quite a bit to unpack here lol.<p>First of all, are outlook attachments even maked as internet zone? Ok, let&#x27;s say they are. What if they are in a zip file? With exe&#x27;s you have to click a few times through a warning dialog to run them when downloaded from the internet, but guess what... not if you stuff them in an ISO. Works reliably too.<p>Ok, let&#x27;s say they are disablng macros by default... is it just the orgs I worked at that set this as a default? Because I thought you had to enable editing and then enable macros each time? From a corporate security perspective, an office document with a malicious macros almost never gets past email security appliances.<p>There are two things true about a significant portion of the user population (even most seasoned security folks and myself as well having had to work in this specific are 5+ years): 1) Users will download untrusted files and open them 2) A much lesser but significant number of users will click through any number of warnings and obstacles to get content to work because at that point to them it <i>is</i> trusted content. It isn&#x27;t phishing, Bob at so and so company who they work with regularly sent this important document (little do they know, Bob&#x27;s account is pwned)<p>Already, you have to work very hard and target a large enough population for the law of averages to work in your favor ad an attacker. Defender had gotten really good even with just the default setting (and much much more with cloud submission) at behavioral detections as well in this area. Majority of succesful compromises I&#x27;ve responded to or read about with office docs have also been Excel 4.0 macros not vba Macros as well.<p>Here is a thing about modern O365: it&#x27;s very web centric. Very common to open office docs in the browser office app or with a layer of OneDrive or SharePoint prior. You know what reliably gets past the most hardened email security appliances and tricks majority of users? Put your content in a zip or iso (preferably encrypt it and send the code in the email because it is all so important and confidential) and put it in onedrive or sharepoint and share it with a  small but significant population (per compromised or staged+verified account), they will get a very convincing email from O365.<p>If I had to really stick to vba macros for some reason and users can&#x27;t enable macros no matter what, I will just include a very convincing image based instructions on how they should add c:\ or something as a trusted folder (4-5 clicks though). Oh, that&#x27;s disabled too? Here is a neat trick attackers have been using recently: the file in a zip&#x2F;rar contains a Zone.Identifier ADS stream that marks it as from a trusted zone. As far as I know, this only works because zone.identifier marking from embedded content isn&#x27;t overriden or checked strictly.<p>At the end of the day, macros are very useful and powerful. They are even adding python macros in the future. For the same reason you can unblock exe&#x27;s and even powershell scripts from the internet, macros will be unblockable too and users will unblock even with multiple layers of obstacles. Remember, the legitimacy of the document is beyond question to users at that point.<p>When I interview users post-incident, they have no idea what happened. They did not get any suspicious email or oprn questionable document. When they are willing, I have had to get them to share their screen and go through their inbox on the day of the compromise (for personal email since it isn&#x27;t monitored) or just tell them the subject and pull it up to which they are adamant that is a legitimate email.<p>Also remeber this: the goal id not to infect most users (they would like that though) but to get a foothold on at least one device. The atrackers that send this type of content are experts at delivery and execution, usually not a lot more beyond that (except maybe  still information, persist and tamper with defender). Their main goal is to sell access to another party who would use another malware (cobaltstrike is popular but less so these days) to perform manual hacking and lateral movement. It is usually 6-72hrs before the real bad guys show up.<p>One more thing: SEO optimization and plain ol jscript seems to be working reliably, groups like ReEvil had switched to that last year.<p>In summary: this is welcome improvement but the game of cat and mouse must go on. Meet the new security, same as the old security. There are threat actors that mail malicious USB drives with teddy bears, just like security evolves so will attacks.<p>I only dabble with red-team stuff but even then the initial access primitives that work reliably a few months ago are useless now(RIP mshta+js). Red-teams that have to get initial access keep this a secret protected by NDA for that reason.<p>If Microsoft really wants to be a game changer, they should open up a lot more security controls to all their users not just E5 license holders.<p>Checkout ASR rules, they have a few more very powerful tools like this: <a href="https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;microsoft-365&#x2F;security&#x2F;defender-endpoint&#x2F;attack-surface-reduction?view=o365-worldwide" rel="nofollow">https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;microsoft-365&#x2F;security&#x2F;defe...</a>