Skip to content
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

Strange behavior when running out of space #1362

Open
qequ opened this issue Nov 1, 2024 · 7 comments
Open

Strange behavior when running out of space #1362

qequ opened this issue Nov 1, 2024 · 7 comments
Labels
bug Something isn't working EMBA Extractor (Pxx) some extractor thing (Pxx modules) good first issue Good for newcomers help wanted Extra attention is needed issue in 3rd party component something in a 3rd party component we are using

Comments

@qequ
Copy link

qequ commented Nov 1, 2024

Describe the bug

running emba with a quick scan profile in a VM the logs consumed the entire free space of the disk (approximately 30-35 GB) and it seems like emba entered in a deadlock; can't finish but also doesn't timeout in any other way.
Also starts running the blacklisted modules (?

To Reproduce
Steps to reproduce the behavior:

  1. EMBA installation default
  2. Use the firmware available here: https://www.supermicro.com/support/resources/getfile.php?SoftwareItemID=12192
  3. Start EMBA with the following parameters: s

sudo ./emba -f /path/to/SMT_X11_AST2500_64M_374_18_V/SMT_X11_AST2500_64M_374_18_V.bin -l /tmp/logs/ -p ./scan-profiles/quick-scan.emba

  1. additional steps

  2. See error

Expected behavior
finish the analysis even with errors

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot from 2024-11-01 17-11-59

Desktop (please complete the following information):

  • OS: e.g. ubuntu 22.04
  • EMBA version: master branch
  • Installation method: default with up to date docker image

Priority issue
Are you already a Sponsor? - n

Additional context
Add any other context about the problem here.

@m-1-k-3 m-1-k-3 added bug Something isn't working EMBA labels Nov 2, 2024
@m-1-k-3
Copy link
Member

m-1-k-3 commented Nov 2, 2024

On my first test it looks as the BMC decryptor is not able to fully decrypt this image:

image

We are using this one: https://github.com/c0d3z3r0/smcbmc
Next step would be a try to decrypt it manually with smcbmc and identify the issue.

@m-1-k-3 m-1-k-3 added help wanted Extra attention is needed good first issue Good for newcomers Extractor (Pxx) some extractor thing (Pxx modules) issue in 3rd party component something in a 3rd party component we are using labels Nov 2, 2024
@qequ
Copy link
Author

qequ commented Nov 6, 2024

I'm trying to understand how emba behaves after failing the decryption stage. will it start restarting the s09, s02, s03, s14, ... processes in a deadlock until it consumes the entire memory? that's whats the logs show in my case

@m-1-k-3
Copy link
Member

m-1-k-3 commented Nov 6, 2024

I think the failed extraction process produced a huge number of garbage files (check /logs/firmware) and EMBA is now trying to execute all her modules on these garbage files which will take a lot time and disk space.

@qequ
Copy link
Author

qequ commented Nov 6, 2024

so emba doesn't interrupt the pipeline if one of the main scans fails ? if one just let it run will continue until its stopped manually

@m-1-k-3
Copy link
Member

m-1-k-3 commented Nov 6, 2024

How to identify a failed extraction process? The extractor is happy if something falls out of the extraction process. In our case the decryption failed but probably unblob or binwalk could extract something (and I bet something was extracted). With this in mind we need to keep on going.

@dgutson
Copy link

dgutson commented Nov 25, 2024

Maybe the extractor tools produce a log emba could parse to distinguish garbage vs correctly extracted file?

@m-1-k-3
Copy link
Member

m-1-k-3 commented Nov 27, 2024

I am sure we can improve this behaviour massively. Just give it a try. PR are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working EMBA Extractor (Pxx) some extractor thing (Pxx modules) good first issue Good for newcomers help wanted Extra attention is needed issue in 3rd party component something in a 3rd party component we are using
Projects
None yet
Development

No branches or pull requests

3 participants