-
Notifications
You must be signed in to change notification settings - Fork 570
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
Error: Unsupported OS when analyzing ELF file #2577
Comments
thanks, I'll triage the file tomorrow. do you happen to know the expected OS? |
Linux |
I don't see any indication from the file metadata/strings that this targets Linux: we see that it targets x86-64 and is built with GCC (probably), but not the underlying OS. Binary Ninja indicates this is for Linux: I wonder how they made that determination. If we manually cross reference the Linux syscall table then things make sense: So, this does seem to target Linux, or at least a system with Linux-compatible syscalls. Note that, for example, FreeBSD uses 0x6 for |
We could do syscall socket and syscall connect in a short window: But this would only catch samples that do networking in this way.
|
Description
I'm encountering an error with capa where it fails to analyze an ELF file due to an "unsupported os: unknown" issue
Steps to Reproduce
sha256 hash:
c340e3d3ae7f769b4e88204dd08aa0f7b0145dffafe164d8e09c39b5a6d0d7cb
capa c340e3d3ae7f769b4e88204dd08aa0f7b0145dffafe164d8e09c39b5a6d0d7cb -d
Expected behavior:
Capa should analyze the ELF file, detect the operating system, and provide an analysis based on its signatures and capabilities.
Actual behavior:
capa failed to analyze the file.
Additional Information
Debug Logs:
The text was updated successfully, but these errors were encountered: