chainguard-dev / malcontent

#supply #chain #attack #detection
Apache License 2.0
446 stars 31 forks source link

process: make non-existent paths non-fatal, sort scan paths #493

Closed tstromberg closed 1 month ago

tstromberg commented 1 month ago

scan --processes was exiting for me because qemu had been upgraded from under it. Now it logs an error, and also sorts the process list so that the scan results aren't jumping around so much.

Example run:

2024/10/06 22:34:07 ERROR qemu-system-aarch64[43299]: no such file or directory
πŸ”Ž Scanning "/Applications/Elastic Security.app/Contents/MacOS/Elastic Security"
πŸ”Ž Scanning "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox"
πŸ”Ž Scanning "/Applications/Firefox Developer Edition.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container"
πŸ”Ž Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper (GPU).app/Contents/MacOS/Google Chrome Helper (GPU)"
πŸ”Ž Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper (Plugin).app/Contents/MacOS/Google Chrome Helper (Plugin)"
πŸ”Ž Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer)"
πŸ”Ž Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper.app/Contents/MacOS/Google Chrome Helper"