<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Osascript - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/osascript/</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>Mon, 21 Sep 2026 19:09:26 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/osascript/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Detecting Long-Duration Network Connections via macOS Osascript</title><link>https://feed.craftedsignal.io/briefs/2026-09-osascript-long-duration/</link><pubDate>Mon, 21 Sep 2026 19:09:26 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-osascript-long-duration/</guid><description>Adversaries may abuse the native 'osascript' utility on macOS to establish long-lived command-and-control channels or remote network connections, which can be identified by analyzing flow duration metadata.</description><content:encoded><![CDATA[<p>Adversaries targeting macOS environments may abuse the native <code>osascript</code> utility to execute AppleScript, facilitating various post-exploitation activities including the establishment of persistent command-and-control (C2) or remote connections. Because <code>osascript</code> is a built-in utility, its use is common in administrative scripting and automation, making it a &quot;living-off-the-land&quot; (LotL) binary. This detection identifies anomalous activity where <code>osascript</code> initiates network connections that persist for an unusually long duration, specifically exceeding 10 minutes (600 seconds). By leveraging Cisco Network Visibility Module (NVM) flow data, defenders can baseline expected script behavior and flag outliers that may indicate established beaconing or unauthorized remote access.</p>
<h2 id="impact">Impact</h2>
<p>Successful abuse of <code>osascript</code> for long-term C2 can lead to persistent unauthorized access to macOS endpoints, facilitating data exfiltration, lateral movement, or further payload deployment. Because the connection is persistent, it increases the likelihood of data staging and successful exfiltration before detection.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Detection engineering teams should implement monitoring for long-lived processes using the Cisco Network Visibility Module.</p>
<ul>
<li>Deploy the provided Sigma rule (or equivalent SIEM logic) to monitor Cisco NVM flow data for <code>osascript</code> processes with durations exceeding 600 seconds.</li>
<li>Baseline current organizational use of <code>osascript</code> within administrative workflows to identify and filter out legitimate long-running scripts, reducing false positives.</li>
<li>Integrate flow data with endpoint process telemetry to provide context on the parent process that invoked <code>osascript</code>.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>macos</category><category>lotl</category><category>c2</category><category>osascript</category></item></channel></rss>