analyzing-elf-binaries-on-linux
Statically analyzes Linux ELF malware: ELF header and sections, dynamic symbols
v1.0.03 התקנות+3 ב-7 ימים24 כוכביםApache-2.0סונכרן לפני 10 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/analyzing-elf-binaries-on-linuxנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילה8b52f1c4…a4b2e53a
8b52f1c425bb…3079a4b2e53a4 קבצים · 3.6 KBסריקהבינונישני ממצאים
- סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
- קישורים לדומיינים חיצוניים
מקורgithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/analyzing-elf-binaries-on-linux@da7600a
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
When to Use
- You have a Linux executable or shared object and need to assess it statically.
- You want to read the ELF header, segments, dynamic symbols, and strings to infer behavior.
- You are checking for static linking, stripped symbols, or packing.
Do not use symbol absence as proof of nothing — stripped or statically linked Go/Rust binaries hide structure; switch to disassembly when static metadata is thin.
Prerequisites
readelf/nm/strings(binutils) orpyelftools(pip install pyelftools).- The sample in neutralized form inside the lab.
Safety & Handling
- Static only: parse the file; do not set it executable or run it.
Workflow
Step 1: Read the ELF header
python scripts/analyst.py analyze sample.elfNote class (ELF32/64), endianness, type (EXEC/DYN/REL), machine (x86-64, ARM, MIPS), and whether it is stripped.
Step 2: Examine segments and section permissions
Writable+executable segments, or a single large segment, suggest packing or self-modifying
code. Compare PT_LOAD permissions against expectations.
Step 3: Inspect dynamic symbols and needed libraries
Imported functions hint at capability: socket/connect (network), ptrace (anti-debug or
injection), fork/execve (process control), crypt/EVP_* (encryption).
Step 4: Detect static linking and packing
Static binaries lack a dynamic symbol table and NEEDED entries. High whole-file entropy and
a tiny section table suggest a packer (e.g. UPX leaves UPX! markers).
Step 5: Skim strings and constructors
Check .init_array/constructors (code before main), and strings for paths, URLs, and shell
commands.
Validation
- Header
typeand segment permissions are consistent with the inferred behavior. - Imported symbols correspond to plausible capabilities.
- Packing call (entropy + missing sections) matches the strings observed.
Pitfalls
- Assuming dynamic symbols are complete — they only cover imported/exported names, not internal functions.
- Treating a stripped Go binary as "empty"; its structure lives in runtime metadata, not the symbol table.
- Ignoring constructors/
.init_array, which run beforemain.
References
- See
references/api-reference.mdfor the ELF analyzer. - ELF/System V ABI spec and pyelftools (linked in frontmatter).
הקבצים בגרסה הזו
references/11.2 KB
- api-reference.md1.2 KB
scripts/13.2 KB
- analyst.py3.2 KB
- LICENSE340 B
- SKILL.md3.1 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | כן | כן |
| משתמש ברשת | כן | כן |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- בינוניתקובץ · סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
- מידעקישור · קישורים לדומיינים חיצוניים
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v1.0.0 | 13 בנוב׳ 2026 | da7600a | 8b52f1c4 | חתומה | – |
עוד מ-meltedinhex
הכול מהמפרסם הזה- writing-yara-rules-from-reversed-codemeltedinhex/writing-yara-rules-from-reversed-code4
- validating-detections-with-atomic-testsmeltedinhex/validating-detections-with-atomic-tests4
- writing-suricata-and-snort-rulesmeltedinhex/writing-suricata-and-snort-rules3
- writing-sigma-detection-rulesmeltedinhex/writing-sigma-detection-rules3
עוד בקטגוריה הנדסה לאחור ו-fuzzing
לקטגוריהשאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login