analyzing-elf-binaries-on-linux
Statically analyzes Linux ELF malware: ELF header and sections, dynamic symbols
v1.0.03 instalações+3 em 7 dias24 EstrelasApache-2.0sincronizado há 10 horas
Instalar
Ainda não tem a CLI da NotHoly? Instale primeiro.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/analyzing-elf-binaries-on-linuxGrava em ~/.notholy/skills depois de conferir a assinatura e o SHA-256.
AssinaturaAssinado, ed25519
Pacote8b52f1c4…a4b2e53a
8b52f1c425bb…3079a4b2e53a4 arquivos · 3.6 KBVarreduraMédio2 achados
- Script executável junto com a skillscripts/analyst.py
- Links para domínios externos
Fontegithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/analyzing-elf-binaries-on-linux@da7600a
Este item ainda não foi escrito no seu idioma, então aparece em English.
Nesta 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).
Arquivos desta versão
references/11.2 KB
- api-reference.md1.2 KB
scripts/13.2 KB
- analyst.py3.2 KB
- LICENSE340 B
- SKILL.md3.1 KB
Permissões
| Permissão | Declarada | Encontrada na varredura |
|---|---|---|
| Lê arquivos | Não | Não |
| Grava arquivos | Não | Não |
| Roda comandos no shell | Sim | Sim |
| Usa a rede | Sim | Sim |
| Usa conectores | Não | Não |
| Controla um navegador | Não | Não |
Achados da varredura
Revisado em 13 de nov. de 2026
- MédiaArquivo · Script executável junto com a skillscripts/analyst.py
- InfoLink · Links para domínios externos
Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.
| Versão | Publicada em | Commit | SHA-256 | Assinatura | Mudança de permissão |
|---|---|---|---|---|---|
| v1.0.0 | 13 de nov. de 2026 | da7600a | 8b52f1c4 | Assinada | – |
Mais de meltedinhex
Tudo deste 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
Mais em Engenharia reversa e fuzzing
Ver a categoriaPergunte tudo o que o seu escopo permite.
Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.
- 1/3
Crie a conta
Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.
Pessoa físicaEmpresa - 2/3
Adicione créditos
No cartão. Você paga por token, sem assinatura.
$5.00recarga mínima - 3/3
Pergunte
No chat, ou instale o CLI e rode notholy login no terminal.
$ notholy login