-
Notifications
You must be signed in to change notification settings - Fork 434
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 support #2001
Linux support #2001
Conversation
Description: - Sample executed via `strace` to capture api execution sequence - Strace logs output to linux guest machine - Filecollector to ignore strace log - Strace logs uploaded to host - Strace logs processed and output to CAPE report json
- removal of strace-process-tree dependencies - removal of strace folder in analysis output folder - changed output location of strace log files to match like behavior ("logs" folder) - extra clean up of previous systemtap implementations
Description: Some malware may not close file descriptors, relies on lazy cleanup. Fix is to assume that the file descriptor is closed after running, If encounter fd that is unclosed during processing, match the respective filename anyway, since most likely reach near end of file descriptor list
Previous implementation was referencing the `strace` syscall indexes in order to match the relevant syscalls and argument inputs. Turns out, this is not very reliable and causes a bug on the `open` syscall which is output by strace to be the index of 5. Upon matching with the linux syscall json, it incorrectly matches with `newfstat`. The fix to this was to just match via the same syscall name instead.
hello amazing job on this, i got first quick look, i will check properly a bit later. but so far looks good, i have a question, to prevent ransom encrypt logs, maybe we should stream the strace log to the server side? it sound to me that we had something for that i will have to double check |
And well-timed with the ability to run tests against the analyzer and agent! (CC @rkoumis ) |
I'll probably take a look into this next week, that suggestion does sound better to circumvent the encryption issue. Probably something along the lines of piping the output on the agent and streaming to the server side. |
Thank you ❤️ |
This is a great PR as-is. It'd be great to have it merge even without addressing this. |
i have one question, is not related to fully related to this PR, but as we nuke stap, we need to remove it from the |
Long awaited Linux support.
Description of how behavioral information is captured by Linux Machines:
mm
,fs
,crypto
, etc)Database changes:
platform
to theguests
table in PostgreSQLFuture work: