Skip to content

macOS detection: Osascript Long Lived Connection To Remote Host - #4270

Open
rviskova13 wants to merge 4 commits into
developfrom
macOS_osascript_long_lived_connection_to_remote_host
Open

rviskova13 wants to merge 4 commits into
developfrom
macOS_osascript_long_lived_connection_to_remote_host

Conversation

@rviskova13

@rviskova13 rviskova13 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Details

This detection idea follows a research focused on the abuse of osascript on macOS. It is equivalent of cmd.exe on macOS, allowing to execute various commands, code pieces and scripts. And it is often abused by attackers.

This specific detection identifies network connections initiated by the osascript utility that remain open for 10 minutes or longer. Such prolonged network activity originating from osascript is atypical and may indicate malicious behavior, such as a connection to a command-and-control (C2) server.

@rviskova13 rviskova13 changed the title Add macOS osascript long-lived connection detection macOS detection: Osascript Long Lived Connection To Remote Host Sep 18, 2026
@nasbench nasbench added this to the v6.7.0 milestone Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants