analyzing-elf-binaries-on-linux
Statically analyzes Linux ELF malware: ELF header and sections, dynamic symbols
v1.0.03 instalaciones+3 en 7 días24 EstrellasApache-2.0sincronizado hace 10 horas
Instalar
¿Aún no tienes la CLI de NotHoly? Instálala primero.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/analyzing-elf-binaries-on-linuxEscribe en ~/.notholy/skills después de comprobar la firma y el SHA-256.
FirmaFirmado, ed25519
Paquete8b52f1c4…a4b2e53a
8b52f1c425bb…3079a4b2e53a4 archivos · 3.6 KBEscaneoMedio2 hallazgos
- Script ejecutable incluido con la skillscripts/analyst.py
- Enlaces a dominios externos
Fuentegithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/analyzing-elf-binaries-on-linux@da7600a
Esta entrada todavía no está escrita en tu idioma, así que aparece en English.
En esta página
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).
Archivos de esta versión
references/11.2 KB
- api-reference.md1.2 KB
scripts/13.2 KB
- analyst.py3.2 KB
- LICENSE340 B
- SKILL.md3.1 KB
Permisos
| Permiso | Declarado | Hallado en el escaneo |
|---|---|---|
| Lee archivos | No | No |
| Escribe archivos | No | No |
| Ejecuta comandos de shell | Sí | Sí |
| Usa la red | Sí | Sí |
| Usa conectores | No | No |
| Controla un navegador | No | No |
Hallazgos del escaneo
Revisado el 13 nov 2026
- MediaArchivo · Script ejecutable incluido con la skillscripts/analyst.py
- InfoEnlace · Enlaces a dominios externos
Un escaneo limpio baja el riesgo, pero no prueba que el paquete sea seguro. Lee lo que instalas.
| Versión | Publicada | Commit | SHA-256 | Firma | Cambio de permisos |
|---|---|---|---|---|---|
| v1.0.0 | 13 nov 2026 | da7600a | 8b52f1c4 | Firmada | – |
Más de meltedinhex
Todo de este publicador- 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
Más en Ingeniería inversa y fuzzing
Ver la categoríaPregunta todo lo que tu alcance permite.
Crea la cuenta, añade créditos y haz la primera pregunta en el chat o en la terminal.
- 1/3
Crea la cuenta
Individual o empresa. Puedes pasar a empresa después sin perder saldo ni claves.
IndividualEmpresa - 2/3
Añade créditos
Con tarjeta. Pagas por token, sin suscripción.
$5.00recarga mínima - 3/3
Pregunta
En el chat, o instala el CLI y ejecuta notholy login en tu terminal.
$ notholy login