דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
meltedinhex/analyzing-mach-o-binaries-on-macosהנדסה לאחור ו-fuzzing

analyzing-mach-o-binaries-on-macos

⁨Statically analyzes macOS Mach-O malware: parsing the header and load commands,⁩

v1.0.0שתי התקנות⁦+2⁩ ב-7 ימים24 כוכביםApache-2.0סונכרן לפני 10 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install meltedinhex/analyzing-mach-o-binaries-on-macos

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
qST2gTQgSD…ehuDWWCA==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה76b85f5e…f66efd8f
76b85f5e1621…a963f66efd8f4 קבצים · ⁦3.2 KB⁩
סריקהבינונישני ממצאים
  • סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
  • קישורים לדומיינים חיצוניים
לסריקה המלאה
מקורgithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/analyzing-mach-o-binaries-on-macos@da7600a

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

When to Use

  • You have a macOS sample (Mach-O) and need a static capability and trust read.
  • You must handle a fat/universal binary containing multiple architecture slices.
  • You need to inspect linked dylibs, entitlements, and code-signing status.

Do not use Windows PE tooling on Mach-O — the formats differ entirely; use Mach-O-aware parsers.

Prerequisites

  • A Mach-O parser (Python stdlib struct, or macholib/LIEF); the sample handled inertly.
  • For signing/entitlements on macOS, codesign/otool are authoritative.

Safety & Handling

  • Parse statically; never execute the sample, especially on a real macOS host.
  • Keep the sample password-protected at rest and reference it by hash.

Workflow

Step 1: Detect fat vs. thin and architecture

Check the magic: 0xCAFEBABE (fat/universal) vs. 0xFEEDFACE/0xFEEDFACF (Mach-O 32/64). For fat binaries, enumerate and analyze each slice.

bash
python scripts/analyst.py header sample.macho

Step 2: Parse load commands

Read load commands for linked dylibs (LC_LOAD_DYLIB), entry point (LC_MAIN), and signing (LC_CODE_SIGNATURE). The dylib list hints at capability (networking, crypto).

Step 3: Inspect entitlements and signing

On macOS, use codesign/otool to read entitlements and verify the signature. Ad-hoc or absent signatures and suspicious entitlements are risk indicators.

Step 4: Infer capability and route

Map linked frameworks/symbols to behaviors and route to disassembly/RE for deeper analysis.

Validation

  • Fat binaries are decomposed and each slice is analyzed, not just the first.
  • Load commands, dylibs, and signing status are enumerated correctly.
  • Capability inferences are corroborated by linked frameworks/symbols.

Pitfalls

  • Analyzing only one slice of a universal binary.
  • Trusting a present signature without verifying it (ad-hoc signatures verify but aren't trusted).
  • Applying PE assumptions (sections/imports) to Mach-O structures.

References

  • See references/api-reference.md for the Mach-O header parser.
  • Apple Mach-O loader.h and code signing docs (linked in frontmatter).

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםלאלא
מריץ פקודות shellכןכן
משתמש ברשתכןכן
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

  1. בינוניתקובץ · סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
  2. מידעקישור · קישורים לדומיינים חיצוניים

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v1.0.013 בנוב׳ 2026da7600a76b85f5eחתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login