Skip to content

macOS detection: MacOS Utility Osascript Do Shell Script Execution - #4257

Open
rviskova13 wants to merge 7 commits into
developfrom
macos_osascript_do_shell_script-detection
Open

macOS detection: MacOS Utility Osascript Do Shell Script Execution#4257
rviskova13 wants to merge 7 commits into
developfrom
macos_osascript_do_shell_script-detection

Conversation

@rviskova13

Copy link
Copy Markdown

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 particular detection focuses on detecting binary inline command execution of osascript or osacompile using "do shell script" method.

@pyth0n1c

pyth0n1c commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T15:44:40.482141Z 57c46c6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57c46c691f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread detections/endpoint/macos_utility_osascript_do_shell_script_execution.yml Outdated

@nasbench nasbench left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Made some slight metadata changes (as pointed out by codex) to account for both utilities

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.

4 participants