Blog

Inside the SOC

現代のサイバー恐喝:クラウドからのデータ窃取を検知する

Default blog imageDefault blog imageDefault blog imageDefault blog imageDefault blog imageDefault blog image
20
Sep 2022
20
Sep 2022
Now one of the most popular talking points in the security world, the ransom industry continues to see growth. First ransomware, then double extortion and now simple data theft have been used to meet threat actors’ extortion needs. This blog highlights an example of this in a US customer’s SaaS environment.

ランサムウェア業界

不十分なサイバー防御、規制が緩い暗号通貨市場、そして地政学的な緊張によって、サイバーギャングは西側の法執行機関から守られながら、ますます多額の身代金を要求することができるようになりました [1]。しかし、ランサムウェア業界の最大の成功例の1つは、攻撃者のTTP(戦術、技術、手順)の適応性と進化です。2017年のWannaCry攻撃とNotPetya攻撃は、暗号化アルゴリズムを使用して、復号鍵と引き換えにデータの身代金を要求するランサムウェアの形式を普及させました。昨年2021年には、ほとんどすべてのランサムウェアの系統が、暗号化されたデータだけでなく、盗まれたデータの身代金を要求するという、二重恐喝戦術を使用するように進化しました [2]。現在、一部のランサムウェアギャングは暗号化を完全にやめ、データ窃取を唯一の恐喝手段として使用しています。 

データ窃盗を恐喝に利用するのは今に始まったことではありません。2020年、フィンランドの心理療法センターであるVastaamoは4万人以上の患者記録を盗まれました。影響を受けた患者は、ビットコインの身代金を支払わなければ、精神科医の記録がオンラインで公開されると告げられたのです [3]。後になってBlackFogが2021年5月に発表したレポートでは、データ盗難による恐喝がその年のサイバーセキュリティの主要な新興トレンドの1つになると予測していました [4]。オフラインバックアップとエンドポイント検知の採用は暗号化を困難にし、クラウドとSaaSプラットフォームへの大規模な移行はデータ盗難の新たなベクトルを提供しました。データの暗号化からデータの流出へと移行することで、ランサムウェアの攻撃者は、CIAの3要素(機密性、完全性、可用性)の中でデータの可用性を標的とすることから、データの機密性を脅かすことへと軸足を移しています。

2021年11月、Darktrace は米国の技術系顧客のOffice365環境内の2つのSaaSアカウントが侵害され、データ窃取のインシデントが発生したことを検知しました。この顧客は、Darktrace DETECT /Network の長年のユーザーであり、Darktrace DETECT +RESPOND/Apps+Cloudを試用することで、適用範囲を拡大している最中でした。

攻撃の概要

2021年11月23日、SaaSモデル(SaaS / Access / Unusual External Source for SaaS Credential Use)の侵害と、その1週間前のあるユーザー(ユーザーAとして検閲)の行動に関する調査を促すATE(Ask The Expert)チケットが提起されました。

1. Office365:ユーザーA 

ユーザーAというアカウントは、11月21日にナイジェリアという通常とは異なる場所からログインしていました。事件発生時、広く使われているOSINTソースには、このIPからの悪意ある活動のフラグがありませんでした。また、攻撃者がナイジェリアにいるのではなく、ナイジェリアのインフラを使用して本当の場所を隠していた可能性も高いです。いずれにせよ、このIPとASNからのログインの場所は、顧客のデジタル資産内のユーザーにとって非常に珍しいものであると考えられていました。問題の特定のユーザーは、米国にあるIP範囲からアカウントにアクセスするのが最も一般的でした。

図1:SaaSコンソールの外部サイトサマリーのジオロケーションタブで、ユーザーAがナイジェリアからログインしているのが確認された

さらに調査を進めると、ユーザーAのOutlook Webアクティビティにさらなる異常があることが判明しました。このアカウントは、少なくとも4週間(顧客がそのようなデータを保存していた最大期間)ぶりにFirefoxブラウザを使用してアクセスしていました。機密フォルダへのアクセスやその他の疑わしいアクションの詳細を示すSaaSログが、高度な検索(AS)クエリを使用して特定されました。

@fields.saas_actor:"UserA@[REDACTED]" AND @fields.saas_software:"Firefox"

ほとんどのアクションは、ナイジェリア[5,6]にあるIPから発信された MailItemsAccessed イベントと、米国 [7] にある他の潜在的に悪質なIPから発信されたものでした。

MailItemsAccessed は、マイクロソフトの新しい高度な監査機能の一部であり、EメールプロトコルやクライアントによってEメールデータにいつアクセスされたかを判断するために使用することができます。バインドメールアクセスタイプは、Eメールメッセージへの個々のアクセスを示しています [8]。 

図2: ASのログによると、ユーザーAは11月21日の異常ログインの少なくとも4週間前からFirefoxを使用してOffice365にアクセスしていませんでした

以下、主な疑わしいSaaSの活動の詳細です: 

·      Time: 2021-11-21 09:05:25 - 2021-11-22 16:57:39 UTC

·      SaaS Actor: UserA@[REDACTED]

·      SaaS Service: Office365

·      SaaS Service Product: Exchange

·      SaaS Software: Firefox

·      SaaS Office365 Parent Folders:

          o   \Accounts/Passwords
          o   \Invoices
          o   \Sent Items
          o   \Inbox
          o   \Recoverable Items\Deletions

·      SaaS Event:

          o   MailItemsAccessed
          o   UserLoggedIn
          o   Update

·      SaaS Office365 Mail Access Type: Bind (47 times)

·      Source IP addresses:

          o   105.112.59[.]83
          o   105.112.36[.]212
          o   154.6.17[.]16
          o   45.130.83[.]129

·      SaaS User Agents: 

          o   Client=OWA;Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0;
          o   Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

·      Total SaaS logs: 57 

月初めの11月5日には、ヨーロッパにある悪意のあるエンドポイント[9]からログインして、Sent Itemsフォルダから請求書と送金に関連する件名とリソースの場所を指定して MailItemsAccessed イベントと Updates イベントを実行したことも確認されています。このことは、最初の侵害が今月初めに発生し、脅威アクターが攻撃の最終段階の準備をする時間を与えたことを示唆しています。

図3:IP 45.135.187[.]108からのユーザーAのアクティビティを示すイベントログ 

2. Office365:ユーザーB 

モデルブリーチ SaaS / Access / Suspicious Credential Use And Login User-Agent を見ると、2つ目のアカウントであるユーザーBも、バングラデシュの稀で悪意のある場所からログインしていることが確認されました [7]。ユーザーAと同様、このユーザーも以前は米国からのみログインしており、デジタルエステート内の他のアカウントがバングラデシュのIPアドレスとやりとりしている様子は確認されていません。このログインイベントは、MFA(多要素認証)を回避しているように見え、疑わしいユーザーエージェントであるBAV2ROPCが使用されていました。誤った設定のアカウントに対して、このマイクロソフトのユーザーエージェントは、Office365のMFAをバイパスするために攻撃者によって一般的に使用されています。これは、Exchangeの基本認証(通常、POP3/IMAP4の条件で使用)をターゲットとし、MFAによってもたらされる追加のパスワードセキュリティを回避するOAuthフローに帰結します[10]。  

このセッションの間、請求書と請求書の支払いに関連すると思われる追加のリソースがアクセスされました。さらに、11月4日には、稀なIP(107.10.56[.]48および76.189.202[.]66)から「..」という名前の2つの新しい疑わしいメールのルールが作成されました。このような動作は、メールを削除または転送するSaaSの侵害の際によく見受けられます。通常、人間のユーザーによって作成されたメールルールは、「メールをLegalからUrgentに移動する」のように、変更内容を反映した名前が付けられます。これに対し、悪意のあるメールルールは短く、説明的でないことが多いです。ルール「..」は、攻撃者が作成しやすく、覚えやすいと同時に、疑念を抱かせることなく紛れ込む可能性が高いのです。 

これらのルール変更の詳細は以下のとおりです:

·      Time: 2021-11-04 13:25:06, 2021-11-05 15:50:00 [UTC]
·      SaaS Service: Office365
·      SaaS Service Product: Exchange
·      SaaS Status Message: True
·      SaaS Source IP addresses: 107.10.56[.]48, 76.189.202[.]66
·      SaaS Account Name: O365
·      SaaS Actor: UserB@[REDACTED]
·      SaaS Event: SetInboxRule
·      SaaS Office365 Modified Property Names:
          o   AlwaysDeleteOutlookRulesBlob, Force, Identity, MoveToFolder, Name, FromAddressContainsWords, StopProcessingRules
          o   AlwaysDeleteOutlookRulesBlob, Force, Identity, Name, FromAddressContainsWords, StopProcessingRules
·      SaaS Resource Name: .. 

クラウドアカウントを侵害された場合、攻撃者はしばしば、同期操作を使って、メールをローカルのメールクライアントにダウンロードすることがあります。この操作の間、これらのクライアントは、通常、クラウドからローカルコンピュータに大量のメールアイテムのセットをダウンロードします。攻撃者がすべてのメールアイテムをメールクライアントに同期させることができれば、メールボックス全体が侵害される可能性があります。攻撃者は、アカウントから切断し、追加のイベントログを生成することなく、メールを確認および検索することができます。 

この攻撃が発生した11月1日から23日の間に、ユーザーAとユーザーBの両アカウントが MailItemsAccessed 同期操作を使用していることが確認されました。しかし、同期操作の発信元IPに基づくと、この活動は米国に拠点を置く正当なユーザーによって開始された可能性が高いと思われます。セキュリティチームは、このイベントが予期されたものであり、正当なものであることを確認できれば、メールボックスの内容がデータ漏えいの一部でないことを立証することができました。 

ミッションの達成

Office365のアカウントにアクセスした後、攻撃者によって機密データがローカルシステムにダウンロードされました。12月14日またはそれ以前に、攻撃者はデータ漏えいサイトに文書をアップロードしていたようです。合計で130MBのデータが、2つの別々のパッケージでダウンロードできるようになっていました。これらのパッケージには、DB、XLSX、PDFなどのファイル拡張子を持つ、監査および財務会計文書が含まれていました。

図4:攻撃者がアップロードした2つのデータパッケージと抽出されたコンテンツ

また、ユーザーAの過去のSaaS利用状況を見ると、図4のデータ流出サイトから見つかった OUTSTANDING PREPAY WIRES 2021 というExcel文書に関連する件名と添付ファイルがあり、流出データに関連したアカウントである可能性がさらに高まっています。 

ユーザーAに関連する過去のSaaSアクティビティ: 

·      Time: 2021-11-05 21:21:18 [UTC]
·      SaaS Office365 Logon Type: Owner
·      Protocol: OFFICE365
·      SaaS Account Name: O365
·      SaaS Actor: UserA@[REDACTED].com
·      SaaS Event: Send
·      SaaS Service: Office365
·      SaaS Service Product: Exchange
·      SaaS Status Message: Succeeded
·      SaaS Office365 Attachment: WIRE 2021.xlsx (92406b); image.png (9084b); image.png (1454b); image.png (1648b); image.png (1691b); image.png (1909b); image.png (2094b)
·      SaaS Office365 Subject: Wires 11/8/21
·      SaaS Resource Location: \Drafts
·      SaaS User Agent: Client=OWA;Action=ViaProxy 

入手可能な証拠によれば、このデータパッケージには、前月のアカウント侵害で盗まれたデータが含まれている可能性が高いです。  

Office365アカウントの認証情報が盗まれると、攻撃者はユーザーのメールボックスだけでなく、SharePointフォルダ、Teamsチャット、ユーザーのOneDrive内のファイルなど、Office365のあらゆるアプリケーションにアクセスすることができます [11]。例えば、Teamsチャットで共有されたファイルは、OneDrive for BusinessのSharePoint上のデフォルトのドキュメントライブラリにあるMicrosoft Teams Chat Filesというフォルダに保存されています。データ流出サイトで確認できるファイルの1つ[REDACTED] CONTRACT.3.1.2020.pdf は、被害組織内の第3のユーザーアカウント(ユーザーC)のデフォルトドキュメントフォルダでも確認されており、漏えいしたアカウントは、チームなどの他のO365アプリケーションを介して横移動し、他のアカウントに保存されている共有ファイルにアクセスできた可能性が示唆されます。 

一例として、以下のASログをご覧ください: 

·      Time: 2021-11-11 01:58:35 [UTC]
·      SaaS Resource Type: File
·      Protocol: OFFICE365
·      SaaS Account Name: 0365
·      SaaS Actor: UserC@[REDACTED]
·      SaaS Event: FilePreviewed
·      SaaS Service Product: OneDrive
·      SaaS Metric: ResourceViewed
·      SaaS Office365 Application Name: Media Analysis and Transformation Service
·      SaaS Office365 File Extension: pdf
·      SaaS Resource Location: https://[REDACTED]-my.sharepoint.com/personal/userC_[REDACTED]_com/Documents/Microsoft Teams Chat Files/[REDACTED] CONTRACT 3.1.2020.pdf
·      SaaS Resource Name: [REDACTED] CONTRACT 3.1.2020.pdf
·      SaaS Service: Office365
·      SaaS Service Product: OneDrive
·      SaaS User Agent: OneDriveMpc-Transform_Thumbnail/1.0 

11月1日から30⁠日の間に、お客様のDarktrace DETECT/Apps のトライアルで、SaaSアカウントの侵害に関連する高レベルのアラートが複数発生しましたが、ファイルの暗号化を示す証拠はありませんでした。  

足場を固める 

攻撃開始時を振り返ると、攻撃者がお客様の既存のセキュリティスタックをどのように回避したのか、正確なところは不明です。インシデント発生時、被害者はバラクーダのメールゲートウェイ製品とMicrosoft 365 Threat Managementをクラウド環境に利用していました。 

Darktrace は、攻撃者がAzure Active Directory のスマートロックアウト(有効な場合)を回避するために、認証情報のブルートフォースによってアカウントが侵害された形跡がないことを発見しました。この認証情報は、Eメールゲートウェイが維持する既知の「悪い」ドメインのリストをうまく回避したフィッシングキャンペーンによって取得された可能性があります。  

アカウントにアクセスすると、Microsoft Defender for Cloud Appsの異常検知ポリシーが警告を発すると予想されます [12]。この例では、ナイジェリアからの異常なログインは、米国からの前回のログインの16時間以上後に発生したため、Impossible Travel ルールなどの異常検知ポリシーを回避できる可能性があります。 

図5:ナイジェリアから不審な利用があった1日前に、米国からメールにアクセスした際のイベントログ 

Darktrace のカバレッジ

Darktrace DETECT 

このイベントを通じて、攻撃に関連する高スコアのモデルブリーチがお客様のSaaSコンソールで確認できました。さらに、侵害された2つのSaaS Office365アカウント、ユーザーAとユーザーBに関連するアカウントハイジャックの可能性の2つのCyber AI Analystインシデントが発生しました。また、Darktrace DETECT がもたらした可視性により、セキュリティチームは、どのファイルがアクセスされ、どのファイルがデータ漏えいの一部である可能性が高いかを確認することができました。

図6:ユーザーB SaaS Office365アカウントのCyber AI Analystによるインシデント例

Darktrace RESPOND

このインシデントでは、攻撃者は顧客データを流出させるためにO365アカウントの侵害に成功しました。Darktrace RESPOND/Apps が試用され、いくつかのアクションが提案されている間、人間による確認モード(Human Confirmation Mode)で設定されていました。RESPOND/Appsのアクションは、これらの活動に対して次のようにアドバイスされました:  

- Antigena [RESPOND] Unusual Access Block は、異常な IP アドレスからのログインに成功したことをトリガーに、 'Block IP' 阻害機能が作動し、異常な IP からのアカウントへのアクセスを最大 24 時間防止します
- 'Suspicious Source Activity Block' は、MFA を回避するために使用された疑わしいユーザーエージェントによって トリガーされ、 'Disable User' 阻害機能が作動してユーザーアカウントを最大 24 時間無効にするものでした 

このインシデントでは、脅威アクターがネットワークにピボットするのを防ぐために、Darktrace RESPOND/Networkが完全自律モードで使用されていました。セキュリティチームは、攻撃者がこのような試みを行ったかどうかを決定的に断定することはできませんでした。 

まとめの考察  

データ窃取を目的とする恐喝は広く使われている攻撃手法であり、ランサムウェアのギャングが、データの暗号化や保管に関する安全なポリシーを持たない組織をターゲットに、この手法だけを使うことが増えている可能性があります。  

この事例では、MFAと既存のセキュリティツールを回避したSaaSデータの窃取を強要したインシデントについて取り上げました。攻撃者は、ブルートフォース操作を行わず、おそらくフィッシングを通じたソーシャルエンジニアリングによって、クレデンシャルを侵害したように見えました。しかし、最初の新規ログインから、Darktrace DETECT は、既存のアカウントであるにもかかわらず、通常とは異なるクレデンシャルが使用されていることを確認しました。Darktrace RESPOND/Appsが設定されていれば、自律的にこのログインを停止させ、攻撃者がデータ窃取のミッションを達成するのを防ぐために反応したことでしょう。

Oakley Cox、Brianna Leddy、Shuh Chin Gohの本ブログへの寄稿に感謝します。

付録

参考文献 

[1] https://securelist.com/new-ransomware-trends-in-2022/106457/

[2] https://www.itpro.co.uk/security/ransomware/367624/the-rise-of-double-extortion-ransomware

[3] https://www.malwarebytes.com/blog/news/2020/10/vastaamo-psychotherapy-data-breach-sees-the-most-vulnerable-victims-extorted

[4] https://www.blackfog.com/shift-from-ransomware-to-data-theft-extortion/

[5] https://www.abuseipdb.com/check/105.112.59.83

[6] https://www.abuseipdb.com/check/105.112.36.212

[7] https://www.abuseipdb.com/check/45.130.83.129

[8] https://docs.microsoft.com/en-us/microsoft-365/compliance/mailitemsaccessed-forensics-investigations?view=o365-worldwide

[9] https://www.abuseipdb.com/check/45.135.187.108

[10] https://www.virustotal.com/gui/ip-address/45.137.20.65/details

[11] https://tidorg.com/new-bec-phishing-attack-steals-office-365-credentials-and-bypasses-mfa/

[12] https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/responding-to-a-compromised-email-account?view=o365-worldwide

NEWSLETTER

Like this and want more?

最新の業界ニュースやインサイトをお届けします。
You can unsubscribe at any time. Privacy Policy
INSIDE THE SOC
Darktrace cyber analysts are world-class experts in threat intelligence, threat hunting and incident response, and provide 24/7 SOC support to thousands of Darktrace customers around the globe. Inside the SOC is exclusively authored by these experts, providing analysis of cyber incidents and threat trends, based on real-world experience in the field.
AUTHOR
ABOUT ThE AUTHOR
Adrianne Marques
Senior Research Analyst
この記事を共有
PRODUCT SPOTLIGHT
該当する項目はありません。
COre coverage
該当する項目はありません。

More in this series

該当する項目はありません。

Blog

Inside the SOC

PurpleFox in a Henhouse: How Darktrace Hunted Down a Persistent and Dynamic Rootkit

Default blog imageDefault blog image
27
Nov 2023

Versatile Malware: PurpleFox

As organizations and security teams across the world move to bolster their digital defenses against cyber threats, threats actors, in turn, are forced to adopt more sophisticated tactics, techniques and procedures (TTPs) to circumvent them. Rather than being static and predictable, malware strains are becoming increasingly versatile and therefore elusive to traditional security tools.

One such example is PurpleFox. First observed in 2018, PurpleFox is a combined fileless rootkit and backdoor trojan known to target Windows machines. PurpleFox is known for consistently adapting its functionalities over time, utilizing different infection vectors including known vulnerabilities (CVEs), fake Telegram installers, and phishing. It is also leveraged by other campaigns to deliver ransomware tools, spyware, and cryptocurrency mining malware. It is also widely known for using Microsoft Software Installer (MSI) files masquerading as other file types.

The Evolution of PurpleFox

The Original Strain

First reported in March 2018, PurpleFox was identified to be a trojan that drops itself onto Windows machines using an MSI installation package that alters registry values to replace a legitimate Windows system file [1]. The initial stage of infection relied on the third-party toolkit RIG Exploit Kit (EK). RIG EK is hosted on compromised or malicious websites and is dropped onto the unsuspecting system when they visit browse that site. The built-in Windows installer (MSIEXEC) is leveraged to run the installation package retrieved from the website. This, in turn, drops two files into the Windows directory – namely a malicious dynamic-link library (DLL) that acts as a loader, and the payload of the malware. After infection, PurpleFox is often used to retrieve and deploy other types of malware.  

Subsequent Variants

Since its initial discovery, PurpleFox has also been observed leveraging PowerShell to enable fileless infection and additional privilege escalation vulnerabilities to increase the likelihood of successful infection [2]. The PowerShell script had also been reported to be masquerading as a .jpg image file. PowerSploit modules are utilized to gain elevated privileges if the current user lacks administrator privileges. Once obtained, the script proceeds to retrieve and execute a malicious MSI package, also masquerading as an image file. As of 2020, PurpleFox no longer relied on the RIG EK for its delivery phase, instead spreading via the exploitation of the SMB protocol [3]. The malware would leverage the compromised systems as hosts for the PurpleFox payloads to facilitate its spread to other systems. This mode of infection can occur without any user action, akin to a worm.

The current iteration of PurpleFox reportedly uses brute-forcing of vulnerable services, such as SMB, to facilitate its spread over the network and escalate privileges. By scanning internet-facing Windows computers, PurpleFox exploits weak passwords for Windows user accounts through SMB, including administrative credentials to facilitate further privilege escalation.

Darktrace detection of PurpleFox

In July 2023, Darktrace observed an example of a PurpleFox infection on the network of a customer in the healthcare sector. This observation was a slightly different method of downloading the PurpleFox payload. An affected device was observed initiating a series of service control requests using DCE-RPC, instructing the device to make connections to a host of servers to download a malicious .PNG file, later confirmed to be the PurpleFox rootkit. The device was then observed carrying out worm-like activity to other external internet-facing servers, as well as scanning related subnets.

Darktrace DETECT™ was able to successfully identify and track this compromise across the cyber kill chain and ensure the customer was able to take swift remedial action to prevent the attack from escalating further.

While the customer in question did have Darktrace RESPOND™, it was configured in human confirmation mode, meaning any mitigative actions had to be manually applied by the customer’s security team. If RESPOND had been enabled in autonomous response mode at the time of the attack, it would have been able to take swift action against the compromise to contain it at the earliest instance.

攻撃の概要

Figure 1: Timeline of PurpleFox malware kill chain.

Initial Scanning over SMB

On July 14, 2023, Darktrace detected the affected device scanning other internal devices on the customer’s network via port 445. The numerous connections were consistent with the aforementioned worm-like activity that has been reported from PurpleFox behavior as it appears to be targeting SMB services looking for open or vulnerable channels to exploit.

This initial scanning activity was detected by Darktrace DETECT, specifically through the model breach ‘Device / Suspicious SMB Scanning Activity’. Darktrace’s Cyber AI Analyst™ then launched an autonomous investigation into these internal connections and tied them into one larger-scale network reconnaissance incident, rather than a series of isolated connections.

Figure 2: Cyber AI Analyst technical details summarizing the initial scanning activity seen with the internal network scan over port 445.

As Darktrace RESPOND was configured in human confirmation mode, it was unable to autonomously block these internal connections. However, it did suggest blocking connections on port 445, which could have been manually applied by the customer’s security team.

Figure 3: The affected device’s Model Breach Event Log showing the initial scanning activity observed by Darktrace DETECT and the corresponding suggested RESPOND action.

特権昇格

The device successfully logged in via NTLM with the credential, ‘administrator’. Darktrace recognized that the endpoint was external to the customer’s environment, indicating that the affected device was now being used to propagate the malware to other networks. Considering the lack of observed brute-force activity up to this point, the credentials for ‘administrator’ had likely been compromised prior to Darktrace’s deployment on the network, or outside of Darktrace’s purview via a phishing attack.

Exploitation

Darktrace then detected a series of service control requests over DCE-RPC using the credential ‘admin’ to make SVCCTL Create Service W Requests. A script was then observed where the controlled device is instructed to launch mshta.exe, a Windows-native binary designed to execute Microsoft HTML Application (HTA) files. This enables the execution of arbitrary script code, VBScript in this case.

Figure 4: PurpleFox remote service control activity captured by a Darktrace DETECT model breach.
Figure 5: The infected device’s Model Breach Event Log showing the anomalous service control activity being picked up by DETECT.

There are a few MSIEXEC flags to note:

  • /i : installs or configures a product
  • /Q : sets the user interface level. In this case, it is set to ‘No UI’, which is used for “quiet” execution, so no user interaction is required

Evidently, this was an attempt to evade detection by endpoint users as it is surreptitiously installed onto the system. This corresponds to the download of the rootkit that has previously been associated with PurpleFox. At this stage, the infected device continues to be leveraged as an attack device and scans SMB services over external endpoints. The device also appeared to attempt brute-forcing over NTLM using the same ‘administrator’ credential to these endpoints. This activity was identified by Darktrace DETECT which, if enabled in autonomous response mode would have instantly blocked similar outbound connections, thus preventing the spread of PurpleFox.

Figure 6: The infected device’s Model Breach Event Log showing the outbound activity corresponding to PurpleFox’s wormlike spread. This was caught by DETECT and the corresponding suggested RESPOND action.

Installation

On August 9, Darktrace observed the device making initial attempts to download a malicious .PNG file. This was a notable change in tactics from previously reported PurpleFox campaigns which had been observed utilizing .MOE files for their payloads [3]. The .MOE payloads are binary files that are more easily detected and blocked by traditional signatured-based security measures as they are not associated with known software. The ubiquity of .PNG files, especially on the web, make identifying and blacklisting the files significantly more difficult.

The first connection was made with the URI ‘/test.png’.  It was noted that the HTTP method here was HEAD, a method similar to GET requests except the server must not return a message-body in the response.

The metainformation contained in the HTTP headers in response to a HEAD request should be identical to the information sent in response to a GET request. This method is often used to test hypertext links for validity and recent modification. This is likely a way of checking if the server hosting the payload is still active. Avoiding connections that could possibly be detected by antivirus solutions can help keep this activity under-the-radar.

Figure 7: Packet Capture from an affected customer device showing the initial HTTP requests to the payload server.
Figure 8: Packet Capture showing the HTTP requests to download the payloads.

The server responds with a status code of 200 before the download begins. The HEAD request could be part of the attacker’s verification that the server is still running, and that the payload is available for download. The ‘/test.png’ HEAD request was sent twice, likely for double confirmation to begin the file transfer.

Figure 9: PCAP from the affected customer device showing the Windows Installer user-agent associated with the .PNG file download.

Subsequent analysis using a Packet Capture (PCAP) tool revealed that this connection used the Windows Installer user agent that has previously been associated with PurpleFox. The device then began to download a payload that was masquerading as a Microsoft Word document. The device was thus able to download the payload twice, from two separate endpoints.

By masquerading as a Microsoft Word file, the threat actor was likely attempting to evade the detection of the endpoint user and traditional security tools by passing off as an innocuous text document. Likewise, using a Windows Installer user agent would enable threat actors to bypass antivirus measures and disguise the malicious installation as legitimate download activity.  

Darktrace DETECT identified that these were masqueraded file downloads by correctly identifying the mismatch between the file extension and the true file type. Subsequently, AI Analyst was able to correctly identify the file type and deduced that this download was indicative of the device having been compromised.

In this case, the device attempted to download the payload from several different endpoints, many of which had low antivirus detection rates or open-source intelligence (OSINT) flags, highlighting the need to move beyond traditional signature-base detections.

Figure 10: Cyber AI Analyst technical details summarizing the downloads of the PurpleFox payload.
Figure 11 (a): The Model Breach generated by the masqueraded file transfer associated with the PurpleFox payload.
Figure 11 (b): The Model Breach generated by the masqueraded file transfer associated with the PurpleFox payload.

If Darktrace RESPOND was enabled in autonomous response mode at the time of the attack it would have acted by blocking connections to these suspicious endpoints, thus preventing the download of malicious files. However, as RESPOND was in human confirmation mode, RESPOND actions required manual application by the customer’s security team which unfortunately did not happen, as such the device was able to download the payloads.

結論

The PurpleFox malware is a particularly dynamic strain known to continually evolve over time, utilizing a blend of old and new approaches to achieve its goals which is likely to muddy expectations on its behavior. By frequently employing new methods of attack, malicious actors are able to bypass traditional security tools that rely on signature-based detections and static lists of indictors of compromise (IoCs), necessitating a more sophisticated approach to threat detection.  

Darktrace DETECT’s Self-Learning AI enables it to confront adaptable and elusive threats like PurpleFox. By learning and understanding customer networks, it is able to discern normal network behavior and patterns of life, distinguishing expected activity from potential deviations. This anomaly-based approach to threat detection allows Darktrace to detect cyber threats as soon as they emerge.  

By combining DETECT with the autonomous response capabilities of RESPOND, Darktrace customers are able to effectively safeguard their digital environments and ensure that emerging threats can be identified and shut down at the earliest stage of the kill chain, regardless of the tactics employed by would-be attackers.

Credit to Piramol Krishnan, Cyber Analyst, Qing Hong Kwa, Senior Cyber Analyst & Deputy Team Lead, Singapore

付録

Darktraceによるモデル検知

  • Device / Increased External Connectivity
  • Device / Large Number of Connections to New Endpoints
  • Device / SMB Session Brute Force (Admin)
  • Compliance / External Windows Communications
  • Anomalous Connection / New or Uncommon Service Control
  • Compromise / Unusual SVCCTL Activity
  • Compromise / Rare Domain Pointing to Internal IP
  • Anomalous File / Masqueraded File Transfer

RESPOND Models

  • Antigena / Network / Significant Anomaly / Antigena Breaches Over Time Block
  • Antigena / Network / External Threat / Antigena Suspicious Activity Block
  • Antigena / Network / Significant Anomaly / Antigena Significant Anomaly from Client Block
  • Antigena / Network / Significant Anomaly / Antigena Enhanced Monitoring from Client Block
  • Antigena / Network / External Threat / Antigena Suspicious File Block
  • Antigena / Network / External Threat / Antigena File then New Outbound Block

IoC一覧

IoC - Type - Description

/C558B828.Png - URI - URI for Purple Fox Rootkit [4]

5b1de649f2bc4eb08f1d83f7ea052de5b8fe141f - File Hash - SHA1 hash of C558B828.Png file (Malware payload)

190.4.210[.]242 - IP - Purple Fox C2 Servers

218.4.170[.]236 - IP - IP for download of .PNG file (Malware payload)

180.169.1[.]220 - IP - IP for download of .PNG file (Malware payload)

103.94.108[.]114:10837 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

221.199.171[.]174:16543 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

61.222.155[.]49:14098 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

178.128.103[.]246:17880 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

222.134.99[.]132:12539 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

164.90.152[.]252:18075 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

198.199.80[.]121:11490 - IP - IP from Service Control MSIEXEC script to download PNG file (Malware payload)

MITRE ATT&CK マッピング

Tactic - Technique

Reconnaissance - Active Scanning T1595, Active Scanning: Scanning IP Blocks T1595.001, Active Scanning: Vulnerability Scanning T1595.002

Resource Development - Obtain Capabilities: Malware T1588.001

Initial Access, Defense Evasion, Persistence, Privilege Escalation - Valid Accounts: Default Accounts T1078.001

Initial Access - Drive-by Compromise T1189

Defense Evasion - Masquerading T1036

Credential Access - Brute Force T1110

Discovery - Network Service Discovery T1046

Command and Control - Proxy: External Proxy T1090.002

参考文献

  1. https://blog.360totalsecurity.com/en/purple-fox-trojan-burst-out-globally-and-infected-more-than-30000-users/
  2. https://www.trendmicro.com/en_us/research/19/i/purple-fox-fileless-malware-with-rookit-component-delivered-by-rig-exploit-kit-now-abuses-powershell.html
  3. https://www.akamai.com/blog/security/purple-fox-rootkit-now-propagates-as-a-worm
  4. https://www.foregenix.com/blog/an-overview-on-purple-fox
  5. https://www.trendmicro.com/en_sg/research/21/j/purplefox-adds-new-backdoor-that-uses-websockets.html
続きを読む
著者について
Piramol Krishnan
Cyber Security Analyst

$70 Million in Cyber Security Funding for Electric Cooperatives & Utilities

Default blog imageDefault blog image
22
Nov 2023

What is the Bipartisan Infrastructure Deal?

The Bipartisan Infrastructure Law passed by congress in 2021 aimed to upgrade power and infrastructure to deliver clean, reliable energy across the US to achieve zero-emissions. To date, the largest investment in clean energy, the deal will fund new programs to support the development and deployment of clean energy technology.

Why is it relevant to electric municipalities?

Section 40124 of the Bipartisan Infrastructure Law allocates $250 million over a 5-year period to create the Rural and Municipal Utility Cybersecurity (RMUC) Program to help electric cooperative, municipal, and small investor-owned utilities protect against, detect, respond to, and recover from cybersecurity threats.1 This act illuminates the value behind a full life-cycle approach to cyber security. Thus, finding a cyber security solution that can provide all aspects of security in one integrated platform would enhance the overall security posture and ease many of the challenges that arise with adopting multiple point solutions.

On November 16, 2023 the Office of Cybersecurity, Energy Security, and Emergency Response (CESER) released the Advanced Cybersecurity Technology (ACT) for electric utilities offering a $70 million funding opportunity that aims to enhance the cybersecurity posture of electric cooperative, municipal, and small investor-owned utilities.

Funding Details

10 projects will be funded with application submissions due November 29, 2023, 5:00 pm ET with $200,000 each in cash prizes in the following areas:

  1. Direct support for eligible utilities to make investments in cybersecurity technologies, tools, training, and improvements in utility processes and procedures;
  2. Funding to strengthen the peer-to-peer and not-for-profit cybersecurity technical assistance ecosystem currently serving eligible electric utilities; and
  3. Increasing access to cybersecurity technical assistance and training for eligible utilities with limited cybersecurity resources. 2

To submit for this award visit: https://www.herox.com/ACT1Prize

How can electric municipalities utilize the funding?

While the adoption of hybrid working patterns increase cloud and SaaS usage, the number of industrial IoT devices also continues to rise. The result is decrease in visibility for security teams and new entry points for attackers. Particularly for energy and utility organizations.

Electric cooperatives seeking to enhance their cyber security posture can aim to invest in cyber security tools that provide the following:

Compliance support: Consider finding an OT security solution that maps out how its solutions and features help your organization comply with relevant compliance mandates such as NIST, ISA, FERC, TSA, HIPAA, CIS Controls, and more.

Anomaly based detection: Siloed security solutions also fail to detect attacks that span
the entire organization. Anomaly-based detection enhances an organization’s cyber security posture by proactively defending against potential attacks and maintaining a comprehensive view of their attack surface.

Integration capabilities: Implementation of several point solutions that complete individual tasks runs the risk of increasing workloads for operators and creates additional challenges with compliance, budgeting, and technical support. Look for cyber security tools that integrate with your existing technologies.

Passive and active asset tracking: Active Identification offers accurate enumeration, real time updates, vulnerability assessment, asset validation while Passive Identification eliminates the risk of operational disruption, minimizes risk, does not generate additional network traffic. It would be ideal to find a security solution that can do both.

Can secure both IT and OT in unison: Given that most OT cyber-attacks actually start in IT networks before pivoting into OT, a mature security posture for critical infrastructure would include a single solution for both IT and OT. Separate solutions for IT and OT present challenges when defending network boundaries and detecting incidents when an attacker pivots from IT to OT. These independent solutions also significantly increase operator workload and materially diminish risk mitigation efforts.

Darktrace/OT for Electric Cooperatives and Utilities

For smaller teams with just one or two dedicated employees, Darktrace’s Cyber AI Analyst and Investigation features allow end users to spend less time in the platform as it compiles critical incidents into comprehensive actionable event reports. AI Analyst brings all the information into a centralized view with incident reporting in natural language summaries and can be generated for compliance reports specific to regulatory requirements.  

For larger teams, Darktrace alerts can be forwarded to 3rd party platforms such as a SIEM, where security team decision making is augmented. Additionally, executive reports and autonomous response reduce the alert fatigue generally associated with legacy tools. Most importantly, Darktrace’s unique understanding of normal allows security teams to detect zero-days and signatureless attacks regardless of the size of the organization and how alerts are consumed.

Key Benefits of Darktrace/OT

Figure 1: Darktrace/OT stops threats moving from IT to OT by providing a unified view across both systems

参考文献

1. https://www.whitehouse.gov/briefing-room/statements-releases/2021/11/06/fact-sheet-the-bipartisan-infrastructure-deal/

2. https://www.energy.gov/ceser/rural-and-municipal-utility-advanced-cybersecurity-grant-and-technical-assistance-rmuc

続きを読む
著者について
Jeff Cornelius
EVP, Cyber-Physical Security

Good news for your business.
Bad news for the bad guys.

無償トライアルを開始

無償トライアルを開始

柔軟な導入
Cloud-based deployment.
迅速なインストール
設定時間はわずか1時間、メールセキュリティのトライアルはさらに短時間で完了します。
製品を選ぶ
クラウド、ネットワーク、Eメールなど、最も必要とされる領域で自己学習型AIの能力をお試しください。
購入義務なし
Darktrace Threat Visualizerと組織毎にカスタマイズされた3回の脅威レポートへのフルアクセスを提供しますが、購入の義務はありません。
For more information, please see our Privacy Notice.
Thanks, your request has been received
A member of our team will be in touch with you shortly.
YOU MAY FIND INTERESTING
フォームを送信する際に何らかの問題が発生しました。

デモを見る

柔軟な導入
仮想的にインストールすることも、ハードウェアでインストールすることも可能です。
迅速なインストール
設定時間はわずか1時間、メールセキュリティのトライアルはさらに短時間で完了します。
製品を選ぶ
クラウド、ネットワーク、Eメールなど、最も必要とされる領域で自己学習型AIの能力をお試しください。
購入義務なし
Darktrace Threat Visualizerと組織毎にカスタマイズされた3回の脅威レポートへのフルアクセスを提供しますが、購入の義務はありません。
ありがとうございます!あなたの投稿を受け取りました。
フォームを送信する際に何らかの問題が発生しました。