avast / avast/retdec

Add corruption check for ELF files into fileinfo

Open
#314 0 comments 0 reactions 0 assignees View on GitHub
C-fileformat C-fileinfo new-feature T-format-elf
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

In #281, a corruption check of PE files was added into `fileinfo`. What this check does is that it verifies whether the input PE file is loadable by the Windows loader, and presents this piece of information to the user:
```
"loaderError" :
{
"code" : 9,
"code_text" : "LDR_ERROR_NO_OPTHDR_MAGIC",
"description" : "Invalid IMAGE_OPTIONAL_HEADER::Magic"
},
```
Would it be possible to add a similar check for ELF files?

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the existing PE corruption check described in #281 and trace the fileinfo entry point that presents its loader errors. Determine the corresponding ELF validation path and expected output from that precedent; done means fileinfo performs and presents a comparable ELF corruption check.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
reverse-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.