New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux ELF not recognized #988
Comments
64b9584e5ca7d5c4980bd72e63718b634a8912d4dc123de940db36dd111931ae has |
❯ python scripts/detect-elf-os.py ~/Downloads/64b9584e5ca7d5c4980bd72e63718b634a8912d4dc123de940db36dd111931ae -d
DEBUG:capa.features.extractors.elf:ei_class: 0x02 ei_data: 0x01
DEBUG:capa.features.extractors.elf:e_phoff: 0x40 e_phentsize: 0x38 e_phnum: 8
DEBUG:capa.features.extractors.elf:ei_osabi: 0x00 (unknown)
DEBUG:capa.features.extractors.elf:p_type: 0x0001
DEBUG:capa.features.extractors.elf:p_type: 0x0001
DEBUG:capa.features.extractors.elf:p_type: 0x0001
DEBUG:capa.features.extractors.elf:p_type: 0x0001
DEBUG:capa.features.extractors.elf:p_type: 0x0004
DEBUG:capa.features.extractors.elf:p_offset: 0x200 p_filesz: 0x0044
DEBUG:capa.features.extractors.elf:namesz: 0x04 descsz: 0x14 type: 0x0003
DEBUG:capa.features.extractors.elf:name: GNU
DEBUG:capa.features.extractors.elf:p_type: 0x0007
DEBUG:capa.features.extractors.elf:p_type: 0x6474e551
DEBUG:capa.features.extractors.elf:p_type: 0x6474e552
DEBUG:capa.features.extractors.elf:sh_offset: 0x200 sh_size: 0x0024
DEBUG:capa.features.extractors.elf:namesz: 0x04 descsz: 0x14 type: 0x0003
DEBUG:capa.features.extractors.elf:name: GNU
DEBUG:capa.features.extractors.elf:sh_offset: 0x224 sh_size: 0x0020
DEBUG:capa.features.extractors.elf:namesz: 0x04 descsz: 0x10 type: 0x0001
DEBUG:capa.features.extractors.elf:name: GNU
DEBUG:capa.features.extractors.elf:sh_offset: 0x3ddde0 sh_size: 0x1ef4
DEBUG:capa.features.extractors.elf:namesz: 0x08 descsz: 0x52 type: 0x0003
DEBUG:capa.features.extractors.elf:name: stapsdt
unknown |
|
the note is found in a section not referenced by the program headers. duplicating the following logic in the section scan works locally: capa/capa/features/extractors/elf.py Lines 175 to 198 in 580a2d7
|
thanks for reporting this @forensenellanebbia! also, having the test cases made this easy to triage. we'll have a fix as a part of the next release (v4), likely in a couple weeks. |
Description
Two ELF binaries are not recognized by capa.
It seems similar to the closed issue: Linux ELF Not Recognised #867:
Steps to Reproduce
Samples on VT:
Versions
capa v3.2.0-0-gd9d72ad (standalone)
OS: Ubuntu 20.04.1 LTS
The text was updated successfully, but these errors were encountered: