<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>File-Monitoring — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/file-monitoring/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 02 Jan 2024 18:41:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/file-monitoring/feed.xml" rel="self" type="application/rss+xml"/><item><title>macOS File Monitoring via Endpoint Security Framework</title><link>https://feed.craftedsignal.io/briefs/2024-01-macos-file-monitor/</link><pubDate>Tue, 02 Jan 2024 18:41:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-macos-file-monitor/</guid><description>Objective-See details how to create a file monitor for macOS 10.15 using Apple's Endpoint Security Framework to capture file I/O events and process information.</description><content:encoded><![CDATA[<p>This brief examines the creation of a file monitor on macOS 10.15 (Catalina) using Apple&rsquo;s Endpoint Security Framework, as detailed by Objective-See. This framework offers a user-mode interface to a new Endpoint Security Subsystem, providing a simplified API and comprehensive process information. The file monitor can capture file I/O events, file paths, and process details like process ID, path, and code-signing information. Objective-See highlights the limitations of older file monitoring methods like <code>/dev/fsevents</code> and OpenBSM, which lack detailed process information or face deprecation. This new framework aims to address these limitations, enabling more robust user-mode security tools. Tools like Ransomwhere? and BlockBlock use file monitoring for detecting ransomware and persistence events respectively, demonstrating its importance in macOS security.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains initial access to the system (e.g., through exploitation or social engineering).</li>
<li>Attacker executes a malicious binary or script.</li>
<li>The malicious process creates or modifies a file on the system.</li>
<li>The Endpoint Security Framework captures the file I/O event.</li>
<li>The file monitor, leveraging the Endpoint Security Framework, receives a notification about the event.</li>
<li>The file monitor extracts information about the event, including the process ID, path, code-signing information, and the type of file event (e.g., create, write).</li>
<li>Based on the extracted information, the file monitor determines if the event is malicious (e.g., rapid creation of encrypted files, persistence attempt).</li>
<li>The file monitor alerts the user or security system about the malicious activity.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>A successful attack can lead to various detrimental outcomes, including data encryption by ransomware, persistent malware installation, and unauthorized access to sensitive information. File monitors, such as the one described, aim to detect and prevent such attacks. Without proper file monitoring, malicious activities can go unnoticed, leading to significant data loss, system compromise, and financial damage. The Endpoint Security Framework intends to address the limitations of previous monitoring solutions.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable Endpoint Security Framework event collection to monitor file creation events using the <code>ES_EVENT_TYPE_NOTIFY_CREATE</code> event type described in the overview.</li>
<li>Deploy the Sigma rule for detecting file creation by unsigned processes to identify potentially malicious activity (see Sigma rule below).</li>
<li>Monitor for processes with missing or invalid code-signing information, as these may be indicators of malicious activity, using the Endpoint Security Framework&rsquo;s process information detailed in the overview.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>file-monitoring</category><category>endpoint-security</category><category>macos</category></item></channel></rss>