performing-static-pe-analysis
Extracts structure and indicators from a Windows PE file without executing it:
v1.0.03 התקנות+3 ב-7 ימים24 כוכביםApache-2.0סונכרן לפני 10 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/performing-static-pe-analysisנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילהe5a1e68b…87ce1f6f
e5a1e68bd110…e1bf87ce1f6f4 קבצים · 4.1 KBסריקהבינונישני ממצאים
- סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
- קישורים לדומיינים חיצוניים
מקורgithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/performing-static-pe-analysis@da7600a
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
When to Use
- You have a Windows executable or DLL and need to infer its capabilities before (or instead of) detonation.
- You want to assess packing, suspicious imports, timestamps, and embedded resources.
- You are gathering features for YARA authoring or detection.
Do not use import tables alone to conclude behavior — packed samples hide imports until runtime. If imports are sparse and entropy is high, move to unpacking.
Prerequisites
pefile(pip install pefile) and optionallycapa/PEStudio for deeper capability ID.- The sample in neutralized form inside the lab.
Safety & Handling
- Static only: parse the file, never run it. Keep the neutralized extension.
Workflow
Step 1: Parse headers and metadata
python scripts/analyst.py analyze sample.binNote the compile timestamp (often forged), subsystem (GUI/console), machine type (x86/x64), and whether it is a DLL.
Step 2: Review sections and entropy
Per-section entropy reveals packing. A tiny .text plus a huge high-entropy section, or
non-standard section names (UPX0, .themida), indicate a packer:
.text entropy 6.4 (normal code)
UPX1 entropy 7.95 (packed)Step 3: Classify imports
Group imported APIs into behavioral buckets:
Injection : VirtualAllocEx, WriteProcessMemory, CreateRemoteThread [T1055]
Network : InternetOpen, HttpSendRequest, WinHttpConnect [T1071]
Crypto : CryptEncrypt, CryptAcquireContext [T1486]
Persistence: RegSetValueEx, CreateService [T1547/T1543]A sample importing only LoadLibrary/GetProcAddress is resolving APIs dynamically — a
packing/evasion tell.
Step 4: Inspect resources and strings
Look for embedded PEs in resources (droppers), config blobs, and notable strings (URLs, mutex names, paths).
Step 5: Check signing
Verify the Authenticode signature: unsigned, self-signed, or revoked certificates are suspicious for software claiming to be legitimate.
Validation
- Section entropy and import counts agree (packed → few imports + high entropy).
- Suspicious import buckets correspond to plausible behavior.
- Embedded PE detection is confirmed by an
MZ/PEheader inside a resource.
Pitfalls
- Trusting the compile timestamp as a real build date — it is trivially forged.
- Concluding "benign" because imports look ordinary; the import table may be a stub for a packed payload.
- Ignoring TLS callbacks, which can run code before the entry point.
References
- See
references/api-reference.mdfor the analyzer and import classification map. - Microsoft PE Format spec and pefile (linked in frontmatter).
הקבצים בגרסה הזו
references/11.4 KB
- api-reference.md1.4 KB
scripts/14.1 KB
- analyst.py4.1 KB
- LICENSE340 B
- SKILL.md3.5 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | כן | כן |
| משתמש ברשת | כן | כן |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- בינוניתקובץ · סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
- מידעקישור · קישורים לדומיינים חיצוניים
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v1.0.0 | 13 בנוב׳ 2026 | da7600a | e5a1e68b | חתומה | – |
עוד מ-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