/secskills-core:analyzing-macos-binariesfrom secskills-core
Analyzes macOS .app bundles and Mach-O binaries for security, code signing, entitlements, XPC auditing, and dylib hijacking.
Ships in secskills-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
macOS reverse engineering is Mach-O plus a specific security model: code signing, entitlements, the sandbox, TCC privacy, and XPC between processes. The binary tells you what the code does; the entitlements and load paths tell you what it is allowed to do and where an attacker could get in. Read both — most macOS findings live in the gap between the two.
.app bundle or a Mach-O executable/dylib/framework on macOS@rpath and weak dylibscryptid=1), App Store binaries —
are analyzing-ios-binaries. Same Mach-O format, different toolchain and DRM.analyzing-binaries.exploiting-memory-corruption.unpacking-protected-binaries.lipo -thin (or lipo -archs to list) so your tools work on one slice.otool -l for load commands, otool -L for linked
dylibs and their paths, nm for symbols. Note the load commands that matter
later: LC_RPATH, LC_LOAD_DYLIB / LC_LOAD_WEAK_DYLIB, and the code
signature.Contents/MacOS (the binary), Info.plist (identifiers,
URL schemes), _CodeSignature, embedded Frameworks/, and any bundled
XPCServices/. The bundle layout is the map of what to analyze.class-dump (or dsdump)
reconstructs class, method, and property declarations straight from the
binary. This is the fastest way to see the app's structure.swift-demangle over symbols to get readable names, and expect to lean on the
decompiler (Hopper, Ghidra, IDA) more than with Objective-C.class-dump returns little is normal, not a failure.This is where macOS-specific authority lives:
codesign -dvvv --entitlements :- <binary> dumps the signature and the
entitlements — the capabilities the OS grants. Entitlements like
com.apple.security.get-task-allow (debuggable), disabled library validation,
or private TCC entitlements are the high-value reads.com.apple.quarantine extended attribute; Gatekeeper checks notarization on
first run. Understand the quarantine/notarization state when reasoning about
what will execute and what a user was warned about.@rpath
that resolves to a writable location, or a LC_LOAD_WEAK_DYLIB that is absent,
lets an attacker drop a malicious dylib and get code execution in the app's
context — inheriting its entitlements. Enumerate the load paths and check which
are attacker-writable and unprotected by library validation.SMJobBless root helper). The classic bug is a
helper that authorizes a client by PID — which races and is spoofable —
instead of by audit_token. Trace how the service validates its caller and
what privileged action it will perform; weak validation is local privilege
escalation.Info.plist handlers register the app to handle input
from other apps and the web — an untrusted-input entry point.Frida attaches to macOS processes for runtime hooking; lldb debugs (subject to
get-task-allow/SIP); dtrace traces syscalls and library calls where SIP
permits. Use these to watch XPC messages and dylib loads live rather than
inferring them from the binary alone.
swift-demangle and the
decompiler rather than concluding there is nothing to see.audit_token-based validation is sound; a PID check is
the finding.analyzing-ios-binaries for FairPlay IPAs; this skill for
the macOS app and its XPC/TCC/dylib surface.analyzing-ios-binaries — iOS IPAs, FairPlay, and mobile toolchainanalyzing-binaries — general Mach-O triage and decompilation techniqueexploiting-memory-corruption — exploiting a native bug found hereunpacking-protected-binaries — when the Mach-O is packed/encrypted firstWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trilwu/secskills --plugin secskills-core30 skills in this plugin
/analyzing-binariesReverse engineer compiled binaries, firmware, and mobile app packages using triage, static disassembly, decompilation, and dynamic instrumentation. Use when analyzing an executable, ELF/PE/Mach-O file, firmware image, or stripped binary, recovering an algorithm or protocol, or working a CTF reversing challenge./analyzing-dotnet-assembliesReverse engineer .NET assemblies and executables with dnSpyEx, ILSpy, and de4dot — identifying and unwrapping obfuscators and packers, deobfuscating control flow and string encryption, handling single-file and NativeAOT publishes, and patching IL. Use when a binary is a managed PE, when ILSpy shows mangled names or empty method bodies, or when analyzing .NET malware, a loader, or a Windows application./analyzing-2 plugins ship this exact skill · first indexed Aug 12, 2026
Other plugins' skills for the same job