Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
United States Government Microsoft Security IT

The FBI Accessed and Repaired 'Hundreds' of Hacked Microsoft Exchange Servers (csoonline.com) 86

America's top law enforcement agency "obtained a court order that allowed it to remove a backdoor program from hundreds of private Microsoft Exchange servers that were hacked through zero-day vulnerabilities earlier this year," reports CSO. (Thanks to detritus. (Slashdot reader #46,421) for sharing the news...) Earlier this week, the Department of Justice announced that the FBI was granted a search and seizure warrant by a Texas court that allows the agency to copy and remove web shells from hundreds of on-premise Microsoft Exchange servers owned by private organizations. A web shell is a type of program that hackers install on hacked web servers to grant them backdoor access and remote command execution capabilities on those servers through a web-based interface.

In this case, the warrant targeted web shells installed by a cyberespionage group dubbed Hafnium that is believed to have ties to the Chinese government. In early March, Microsoft reported that Hafnium has been exploiting previously unpatched vulnerabilities in Microsoft Exchange to compromise servers. At the same time, the company released patches for those vulnerabilities, as well as indicators of compromise and other detection tools, but this didn't prevent other groups of attackers from exploiting the vulnerabilities after they became public. In its warrant application, dated April 13, the FBI argues that despite the public awareness campaigns by Microsoft, CISA and the FBI itself, many servers remained infected with the web shell deployed by Hafnium. While the exact number has been redacted from the unsealed warrant, the DOJ said in a press release that it was "hundreds."

The FBI asked for, and received court approval, to access the malicious web shells through the passwords set by the original attackers and then use that access against the malware itself by executing a command that will delete the web shell, which is essentially an .aspx script deployed on the server. The FBI was also allowed to make a copy of the web shells first because they could constitute evidence.

The warrant states that it "does not authorize the seizure of any tangible property" or the copying or alteration of any content from the servers aside from the web shell themselves, which are identified in the warrant by their unique file paths. This means the FBI was not granted permission to patch the vulnerabilities to protect the servers from future exploitation or to remove any additional malware or tools that hackers might have already deployed...

The FBI sent an email message from an official email account, including a copy of the warrant, to the email addresses associated with the domain names of the infected servers.

An official statement from the Department of Justice is already using the past tense, announcing that U.S. authorities "have executed a court-authorized operation to copy and remove malicious web shells from hundreds of vulnerable computers in the United States. They were running on-premises versions of Microsoft Exchange Server software used to provide enterprise-level email service."
This discussion has been archived. No new comments can be posted.

The FBI Accessed and Repaired 'Hundreds' of Hacked Microsoft Exchange Servers

Comments Filter:
  • Responsible parties (Score:4, Interesting)

    by eyepeepackets ( 33477 ) on Saturday April 17, 2021 @09:39AM (#61283870)

    Shouldn't these server operators be held responsible for their negligence? This coming from a person who thinks people should be required to have a basic "operators license" to even access the internet.

    • Seems like the fact that the FBI could access and change the software on a private server shows very poor security on those servers.
      • TFS mentions accessing the servers via the original attacker's password. So it might be a case of them using this back door to run their clean-up script.
        • That's exactly what they were, scripted repairs of the Chinese backdoor, using the Chinese backdoor. The article isn't very clear about this.
      • Maybe the FBI had access because they were removing their own stuff :)

      • by slazzy ( 864185 )
        Microsoft product so that's kind of redundant.
      • The FBI could only access compromised servers using the known hacker credentials that the hacker(s) installed.
    • This coming from a person who thinks people should be required to have a basic "operators license" to even access the internet.

      Runs smack up against any kind of notion of "freedom" as well as Utopian dreams of what the internet is.

    • by martynhare ( 7125343 ) on Saturday April 17, 2021 @10:03AM (#61283916)
      I can't blame any server operators for failing to patch Microsoft Exchange. I've encountered cumulative updates where I've had to stop/start services manually during the install cycle to stop the setup from bombing out and leaving me with a "broken" server which misses key files. Microsoft are squarely to blame here for not making "zero downtime" patching easy and convenient on standalone servers and small-scale unclustered environments, especially when FOSS equivalents make this relatively easy.

      Given Windows has HTTP.SYS with userland support through IIS to allow port-sharing, it should be trivial to provide side-by-side installs with seamless handover to make patching an easy, automatic, zero-downtime affair.... what am I saying? This is Microsoft we're talking about!
      • by mydn ( 195771 )

        FOSS equivalents

        There are no FOSS equivalents to Exchange. There might be alternatives, but in no way, shape, or form are they equivalent. They do not have near the features and compatibility that Exchange has. You can argue that Exchange is shitty and that it's patch management is horrible and you would be correct. But let's not pretend that FOSS has anything that comes remotely close to the features of Exchange. If it did, Exchange would not exist.

        • Exchange links calendar functions to email functions effectively, which is its selling point. For SMTP, there are many excellent SMTP servers and have been for decades: it's why many if not most large scale services put a non-Exchange SMTP server in _front_ of Exchange, for security of a vital exposed service. For client access, there are many effective webmail services, and IMAP still works well.

          Like Microsoft Word for documents, MS Exchange is used because it's a standard, not because it's the best.

    • by SirSlud ( 67381 )

      That would cost a lot of money, and what do you gain from it? The mythical libertarian porn where if you punish enough people, everyone magically stops making mistakes or poor decisions?

      • Re: (Score:3, Insightful)

        by Cmdln Daco ( 1183119 )

        The mythical libertarian porn where if you punish enough people

        You have a fundamentally unsound understanding of the term 'libertarian.'

        • by SirSlud ( 67381 )

          I understand the ideology, but this is the way libertarians want it practiced. Because at the end of the day, it's a preference to holding people accountable from doing stupid things, not preventing them from doing stupid things in the first place because "freedoms"

          • No it's not. The people to who you are referring are not libertarian at all. They're all authoritarians that vote Republican that are either lying or diluted.
    • These server operators are the victims of a crime.

      Their "negligence" is installing Exchange.

    • A complete aside. Anyone know why they chose the name: hafnium? Odd. Given my background, I guess because of this metal's nuclear characteristic. Back when nuclear was trying to take off the metal zirconium came up as a choice, given its corrosion resistance. However, it was total crappola in any reactor. It acted as a black hole for thermal (room temperature) neutrons -- which kills its use. But, some metallurgist/chemist wonk noticed that it was routinely contaminated with hafnium. And, hafnium is a
      • Wow - completely off topic. It was discovered (after some controversy) in Copenhagen. The Latin name for Copenhagen is Hafnia - plenty more at wikipedia and elsewhere.
  • by Futurepower(R) ( 558542 ) on Saturday April 17, 2021 @09:42AM (#61283874) Homepage
    My experience is that Microsoft has always been sloppy about designing and producing software products.

    One of the reasons, over many years, has been that Microsoft would charge a full price for new versions of software. So Microsoft would make money for fixing former sloppiness.

    That is my understanding.
    • There will always be bugs. Nobody can produce perfect software (especially not at an affordable price). So I can forgive Microsoft for the occasional bug and patch.

      However, most of the reason people choose Microsoft is because of their popularity. People assume that popularity implies quality. If THIS is the product that most people use, then it must be best-in-class, otherwise, why would so many people use it? It is a classic bandwagon fallacy [wikipedia.org], and it allows Microsoft to keep its position of market do

      • To use a car analogy, Microsoft's software has always been a 1976 Plymouth Volare. Popular yes, but problematic. https://www.makesthatdidntmake... [makesthatdidntmakeit.com]
        • To use another: Linux is like one of those Jeeps you used to buy as a kit.
          • To use another: Linux is like one of those Jeeps you used to buy as a kit.

            The Jeep can be fixed. Repairing the Volare is inviting more misery.

      • There's also the problem that Exchange gives the company an all-in-one package for email, calendar, and a few other features. There are alternatives, but they're separate services, which presumably means higher maintenance costs - you're monitoring and patching 4 services instead of one.

        That appeals to the money side of a company, and since that money side typically also under-staffs IT, it appeals to many overworked sysadmins.

        • Yep.

          Those fools at Verizon just switched company-wide from Outlook to GMail.

          Everyone hates the fuck out of GMail, but on the bright side, some C-level schmuck earned a bonus for crippling the company.

          I've never been so glad to leave a place in all my years (and not just because of that).

          • I've seen quite a few companies discard Outlook in favor of Gmail. There have been complaints, but in general it's been far more reliable, effective, and scalable.

            Office 365 has been trying to compete with Gmail, with mixed success. But not having to maintain Exchange servers is nearly _always_ a fiscal benefit for every size of organization. It's especially useful as a step to prying the Active Directory maintainers out of their niche.

            • The up and coming wave of employees is fine with GMail and a diverse if often incompatible mix of web delivered services.

              This is the overlooked value proposition of eliminating Exchange, the howls of those used to its integrated features will eventually be drowned out by younger generations who just accept less integration and incompatibility as expected norms which serve the interests of feature diversification.

              • ... will eventually be drowned out by younger generations who just accept less integration and incompatibility as expected norms which serve the interests of feature diversification.

                Yeah, I'm not so sure about that. I doubt you could find a single VZ employee who didn't want to go back to Outlook/Exchange, regardless of age.

                If anything, in my experience people expect more functionality and interoperability as time passes, not less. And I think that's true regardless of age.

                I can state for a fact that dislike of the Outlook-to-Gmail change was met with universal condemnation regardless of age. No one, literally no one said, "Yippee, fewer features and crappier integration, woo hoo!"

                So,

      • It's not that popularity implies quality, it's that popularity implies more people know how to use it already and more other software/services will be designed to work with it.

    • Microsoft transformed Exchange in the 2013 version, mostly I think because they wanted the code to be cloud-focused, but since then they have done minimal improvement because they're trying to shove world+dog into Office 365 for perpetual rental income.

      Sure, they keep "patching" Exchange as they find new problems, but they're not looking hard nor are they considering meaningful new improvements for the benefit of on premise installation. I expect them to continue to keep Exchange on premise around in its a

  • by youn ( 1516637 ) on Saturday April 17, 2021 @09:51AM (#61283894) Homepage

    When hackers get access, they tend to move laterally to consolidate their presence, ie increase their access with multiple backdoors, spread to other hosts, etc.

    In my experience, many times, simply removing a single backdoor is not enough to secure the host. It's difficult to trust a host once it has been compromised once

    I hope they were doing more than just removing that piece of malware or the hackers might be able to get right back in

    • by Anonymous Coward

      Ah, not to put too fine a point on it, but what they were actually doing here, is removing the competition.

      Your concerns regarding overall system integrity? Weeell...

    • ON PREMISES.
      Premises is the word garndammit. Premises is singular and plural. It's like "fish"

    • Presumably, it would be up to the sysadmins of the victims to do a more thorough cleaning. Not the FBI.

      • Reported that alerts went out to the community, MS offered the patch, but these particular servers were never upgraded/fixed.

        It was the failure of the sysadmins to patch their servers that led the FBI to resort to this extreme act by the FBI.

    • You're absolutely right and this doesn't even cover the fact that they removed the main piece of evidence that these companies were infected. If any of the infected companies subsequently scan for the web shell and don't find it, how will they know that they were infected and that they should look for other anomalous processes and activities? On the one hand, I'm a little disturbed that the federal government is messing with private property, on the other hand I'm disappointed that so many companies utter
      • by ksw_92 ( 5249207 )

        FTA, the FBI supposedly sent emails to the impacted parties. No telling if those emails were ever read but the effort to communicate was made.

        More to the point, if there are still unpatched Exchange servers connected to the Internet then I doubt that the so-called admins of those servers have any situational awareness or skillsets needed to remediate whatever post-exploit activities the "bad actors" performed on their networks.

        Instead of this half-assed measure by the Fan Belt Inspectors I would argue that

        • FTA, the FBI supposedly sent emails to the impacted parties. No telling if those emails were ever read but the effort to communicate was made.

          I'm curious how they determined which e-mail address to send a message. Is there a service in Exchange that retrieves an admin e-mail address for that server?

          More to the point, if there are still unpatched Exchange servers connected to the Internet then I doubt that the so-called admins of those servers have any situational awareness or skillsets needed to remediate

          • by ksw_92 ( 5249207 )

            I'm curious how they determined which e-mail address to send a message. Is there a service in Exchange that retrieves an admin e-mail address for that server?

            Well, the current SMTP RFC (5321) requires a "postmaster" address to be defined and accepting mail: https://tools.ietf.org/html/rf... [ietf.org]
            Seems pretty trivial to use reverse DNS to find a domain name and prepend "postmaster@" to it.

            I know that the RFC texts are pretty dry but if someone is paying you to run a MTA you should at least be aware of the basics of the job.

    • I did some remediation on Hafnium hacked Exchange servers and nearly all of them showed no persistence or lateral movement at all.

      It was kind of baffling considering the broad success of the exploit. The theories we dreamed up were:

      That nobody expected it to work that well, it was like a pop machine that spits out not just one free can, but 100, and you don't have a container for all of them. There were just too many exploited servers to capitalize on most of them.

      The other one is that this was a programm

      • by youn ( 1516637 )

        Interesting insight, thanks for sharing. Assuming nothing was done being beyond installing the initial shell which was detected, I guess it is one less thing to worry about albeit the fact the "door is technically open", ie the servers could in theory still be vulnerable

        With that said some of the oddballs I have encountered replace compromised utilities/libraries to hide running processes and even had specific routines to evade sandbox detection. In one case, one admin I know thought he kicked out the intru

  • Why is it legal for the FBI to break into systems to patch them against vulnerabilities, but not legal for the people who are actually affected by these compromised systems to do the same? Shouldn't the FBI be charged with unauthorized access of a computer system? Who is the judge who signed this warrant?
    • by truedfx ( 802492 ) on Saturday April 17, 2021 @10:09AM (#61283936)
      You answered your own question: it was legal for the FBI to do this because they obtained permission from a court to do so. There is no sense in charging the FBI for doing something that a court explicitly allowed them to do.
    • by tomhath ( 637240 )
      RTFA. It was a federal district judge who authorized it.
    • If you care enough to apply for a warrant and you establish your credibility to the judge and then do only what the warrant authorizes you to do, then sure, you can fix hacked servers too. You can't be charged with unauthorized access when you get your access authorized first.

  • by ytene ( 4376651 ) on Saturday April 17, 2021 @10:04AM (#61283920)
    As an agency within the Department of Justice, the FBI is bound by all the same US laws that every other individual and corporation is required to observe.

    The relevant law in this case would most probably be the Computer Fraud and Abuse Act [wikipedia.org], for which the criminal offences under the act begin as follows:-

    "(a) Whoever—

    (1) having knowingly accessed a computer without authorization...


    So now the question becomes, did the order issued to the FBI by a Texas court convey sufficient authority to supersede the provisions of the CFAA? Which has the greater authority and jurisdiction, a Texas Court or a Federal Law?

    Reading through the paper trail and documents linked to the articles, it sort-of looks as though the authorization was granted by the Southern District of Texas. Does the Southern District of Texas have the authority to make a ruling with national impact? Does it have the authority to make a ruling that is binding on other states?

    Whilst the Department of Justice clearly thinks it does, I'd have to say that it certainly shouldn't.

    Even more interestingly, if you read the PDF of the partially un-sealed warrant [justice.gov], it is clearly and unambiguously written as a search warrant and not as a blanket approval to make changes to the impacted servers.

    The now-granted request includes the following specific language,

    "Therefore, I make this affidavit in support of an application for a warrant under Federal Rule of Criminal Procedure 41(b)(6)(B) to use remote access techniques to search certain Microsoft Exchange Servers located in the United States, further identified in Attachment A, and to seize or copy electronically stored information that constitutes evidence and/or instrumentalities of unauthorized access and damage to protected computers, further described in Attachment B."

    See anything in there which says that the FBI are seeking the authority to modify the machines they want to search? No. Me neither.

    This is Fourth Amendment territory. Let them show that Texas has the authority to grant the right to search nationally. Let them show that the granted motion included an approved request to modify systems so searched. Let them show that the Texas Court has the authority to over-rule standing legislation.

    As the old but important saying goes, "The law may upset reason, but reason may not upset the law."

    Whether the motives in this case were honorable or not, this stinks.
    • by Anonymous Coward

      You may want to read up on the US Federal Court system.

      https://www.justice.gov/usao/justice-101/federal-courts

      The Southern District of Texas is a court that deals with issues of US federal law, not Texas laws.

    • by radarskiy ( 2874255 ) on Saturday April 17, 2021 @12:10PM (#61284186)

      Someone who was making a good-faith inquiry as to what statutory authority under which this action was was done might have looked at the partially unsealed warrant that they themselves linked to to see what statutory authority the warrant requestor claimed.

      For those who thought ytene was asking in good faith, the relevant statutory authority claimed is in the section "Statutory Authority". Paragraph 7, immediately after the heading, claims "7.Federal Rule of Criminal Procedure 41(b)(6)(B) provides that “a magistrate judge with authority in any district where activities related to a crime may have occurred has authority to issue a warrant to use remote access to search electronic storage media and to seize or copy electronically stored information located within or outside that district if . . . (B) in an investigation of a violation of 18 U.S.C. 1030(a)(5), the media are protected computers that have been damaged without authorization and are located in five or more districts.”"

      A seizure as distinct from a copy would not leave the material behind, thus the warrant requestor can claim statutory authority to request and grant a warrant with the end result that the web shells are removed.

      Secondly, someone who was making a good-faith inquiry as to what statutory authority under which this action was taken would not have claimed "Does the Southern District of Texas have the authority to make a ruling with national impact? Does it have the authority to make a ruling that is binding on other states?...I'd have to say that it certainly shouldn't." when the same paragraph 7 from the partially unsealed warrant that they themselves link to states "...a magistrate judge with authority in any district where activities related to a crime may have occurred has authority to issue a warrant to use remote access to search electronic storage media and to seize or copy electronically stored information located within or outside that district..."

      Thirdly, someone who was making a good-faith inquiry as to what statutory authority under which this action was taken would not have claimed that the warrant requestor did not request this action, to wit "See anything in there which says that the FBI are seeking the authority to modify the machines they want to search? No. Me neither. ", when the partially unsealed warrant that they themselves link states, in paragraph 20, "This warrant authorizes the United States to seize and copy from Microsoft Exchange Servers located in the United States the web shells identified in Attachment A, and to delete the web shells from those servers. "

      Lastly, someone who was making a good-faith inquiry as to what statutory authority under which this action was was done might have titled that inquiry "Hang on... Statutory Authority" instead of titling it "Hang on... Legal Precedent" when they were not inquiring about legal precedent at all.

      • A seizure of computer material usually involves removing the physical computers, not modifying the information therein, and given that it's criminal evidence, they use things like write blocks to avoid accidental modification and preserve the chain of custody to avoid spoilation.

        This is weirder than you're making it out to be. I want to get rid of the hacked web shells too, but I'm not convinced that giving the FBI the right to hack random servers is the right way to go about this and inasmuch as they're g

        • A warrant gives the government authority to sieze things, and sieze necessarily implies "take away". While it's true that usually seizure affects physical things like computers, intangible things are not immune to seizure. For instance, the government routinely seizes domain names. While it's true that seizure is often used for gathering evidence (where copying would be sufficient), it is also used for public safety as in this case. For instance when the TSA seizes your water bottle they are not gathering
        • "This is weirder than you're making it out to be. "
          I make no claims as to whether it is good or bad that such statutory authority exists. I am refuting ytene's claims that no reference to statutory authority was used in the warrant request.

          "inasmuch as they're going around modifying servers, it should complicate any prosecutions based on this evidence."

          Note that in Attachment A they had to establish an exact list of servers that would be affected, thus they must already have some evidence to identify those

    • "Seize" implies "deprive" and therefore "modify". When the FBI seizes contraband from a shipment, the shipment has been modified. The shipment now lacks the contraband, just as the servers now lack the malicious code.
  • In its warrant application, dated April 13...

    The warrant was issued and carried out earlier this year. On April 13th the US Attorney petitioned the court to unseal the warrant because the action had been concluded.

  • by xack ( 5304745 ) on Saturday April 17, 2021 @10:22AM (#61283992)
    Especially since Microsoft has failed to do it themselves. With the internet drowning in malware and full of people who won’t upgrade their old Windows 7/XP systems we need someone to do something about it.
    • FFS Microsoft released a patch to both remove and correct operation of server, these admins failed to/choose not to apply those patches to their servers.

  • I'm pretty sure that I'd like Captain America to stay the fuck out of my servers. Maybe I'm a researcher. Maybe I'm running a honeypot. Maybe as a private citizen what I run is my own business and not the business of Captain America.

    Good thing I'm not actually running Exchange.

    • If the server you are running happens to be hosting malware/hackers then it certainly *is* the business of Captain America. Because you do *not* have the right to do whatever you want when that may be harmful to others.

  • Good. My only complaint would be that CISA should have been the one give permission by the court, not the FBI.

  • As in, charge Microsoft for their time and effort fixing a problem that should never exist. There is precedent I believe in that PDâ(TM)s can charge people for such as persistent nuisance calls to recover costs.

  • Yeah the Febbles can come through my Firewall into my private network and change DLL's in Exchange server no problem. With their track record of tech supremacy how could you not trust them? Eh?
  • by Random361 ( 6742804 ) on Saturday April 17, 2021 @10:14PM (#61285382)
    So the FBI went and violated the Computer Fraud and Abuse Act and at least a half dozen other laws to protect the operators of exchange servers from their own incompetence? Then, supposedly, they aren't allowed to patch the server so the attackers will just roll in and install the exploit again. I feel like I'm living in a really bad 70s dystopian science fiction novel.

No spitting on the Bus! Thank you, The Mgt.

Working...