Skip to content
Skillpedia
Security48k · #5128

macos-reverse

What it does

This tool helps investigate suspicious programs and files on macOS. It checks signatures, analyzes code, and understands how programs written in Objective-C and Swift work.

When to use it

  • ✓When you encounter a suspicious program or file on your Mac.
  • ✓To check if a program has unusual permissions or has been tampered with.
  • ✓When trying to understand how a specific macOS program functions internally.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/macos-reverse/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/macos-reverse/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Analyze this suspicious file from my Mac and tell me if it's safe.”

5 new skills a week. 1 minute to read.

How it works

It uses macOS-specific tools to look inside programs. First, it checks the program's identity and permissions. Then, it examines the code to understand its structure and behavior.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

macOS / Mach-O Reverse Engineering

When to Use

  • Analyzing macOS binaries or suspected malware samples.
  • Inspecting entitlements, signatures, and ObjC/Swift structures.

适用场景

  • Mach-O 可执行文件 / dylib / framework
  • .app bundle、LaunchAgent/Daemon
  • Objective-C / Swift 符号与 runtime
  • 公证/签名、Hardened Runtime、TCC 相关行为分析
  • macOS 恶意软件静态/动态分析(联合 malware-analysis)

工作流

1. 包体与签名

file target
codesign -dv --verbose=4 target
spctl -a -vv target 2>&1
otool -L target

2. 静态

□ class-dump / swift-demangle / Hopper / Ghidra / IDA
□ 字符串与 XPC 服务名、TCC 敏感 API
□ LC_LOAD_dylib 依赖与 rpath

3. 动态

□ lldb / Frida
□ fs_usage / log stream 观察
□ 网络:联合 protocol-reverse 或代理

工具链

工具 用途
otool / nm / codesign 系统自带
Hopper / Ghidra / IDA 反编译
class-dump / dsdump ObjC
Frida / lldb 动态
jtool2 Mach-O

参考

  • references/macho-triage.md
  • ../mobile-reverse/(iOS) ../ghidra-reverse/ ../malware-analysis/

路由上下文

上游: MASTER R31
下游: iOS → mobile-reverse;通用样本 → malware-analysis

任务完成自检

  • 是否记录签名/Hardened Runtime 状态?
  • 是否有地址级/符号级结论?
  • Checklist?

Limitations

  • Apple Silicon and hardened runtime add unpacking complexity.
  • Some analysis requires disabling SIP in a dedicated lab VM.

Adapted from zhaoxuya520/reverse-skill (MIT).

FAQ

What are 'entitlements' and 'signatures'?

'Signatures' are like a seal of authenticity that ensures the program hasn't been altered. 'Entitlements' are special permissions a program has to access certain system parts or data.

What are Objective-C/Swift?

These are the most common programming languages used to create apps on macOS and iOS. Understanding these structures helps in code analysis.

Can I use this to analyze any file type?

This tool focuses on macOS executable files and program bundles (Mach-O files). It's not ideal for other file types like documents or images.

Details

Original description by the author

Authorized macOS and Mach-O reverse engineering: codesign inspection, Objective-C/Swift recovery, endpoint-security surfaces, and Apple-platform malware analysis.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#5128
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills