Closed contradiction1337 closed 3 years ago
Hi - unfortunately the logs do not show the crash and are not relevant to the problem (lsass process). Also they show you are out of date as this loader issue was fixed in https://github.com/kevoreilly/CAPEv2/commit/52a15869a1ed5574a4ddd0c525848d76a416da6c
We have Adobe Reader working on Win7 as seen in capesandbox.com - not to say that any/all versions work. Some may have hook incompatibilities. The version we are using is 11.0.10 - give that a try and see how you get on.
@kevoreilly - Thankyou for your quick response! I can confirm that I have updated to the latest version, and verified that it is using the updated windows loader. The unhandled exception occurs in a range of files, and not just limited to Adobe. Attached is the full logs for an analysis on a XLS document on a Windows7 machine.
Line 504 of the attached logs indicates an unhanded exception that still occurs due to RTLDispatch
2021-05-11 03:33:12,343 [root] DEBUG: RtlDispatchException: Unhandled exception! Address 0x000007FE00000BC0, code 0xc0000005, flags 0x0, parameters 0x8 and 0xbc0.
Thanks again for your support @kevoreilly !
Ah this time the error message is a bit more meaningful! However the point about this not being complex malware crashing the agent misses the point that it is a complex application, and complex for cape to monitor. With this in mind, a huge amount of effort and time has been put into ensuring compatibility with specific 'supported' versions. This means 32-bit Office 2010 or 2016 (as on capesandbox.com) with 2010 being the 'most' supported.
So before embarking down the long and difficult road of hook compatibility testing, I would recommend you use 32-bit Office 2010 in cape. If you can upload an xls to capesandbox.com that breaks Excel 2010 then it will be of sufficiently high priority to break into my to-do list.
Alternatively you are welcome to do some hook testing. Running with minhook=1 will allow you to see if a bare minimum of hooks will enable it to work. Beyond that it's a question of disabling and testing groups of or individual hooks in trial-and-error which is a long, slow job unfortunately.
Closing as down to incompatible/unsupported Office/Adobe versions (i.e. not Office 32-bit, Adobe Reader 11.0.10)
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Analysis runs without crash / exception in Windows guest.
Current Behavior
Hello,
I have noticed that the CAPE agent will consistently crash while analyzing samples (eg: plain text file, PDF, ELF Binary), the analysis will complete eventually but it is confounded by a lot of noise from the interleaved crashes, this is particularly apparent with PDFs.
I have installed following the step by step instructions (https://capev2.readthedocs.io/en/latest/installation/host/installation.html) and tested both Windows 7 and 10 guests for the agent process, the issue presents in both cases.
My environment is a bare-metal Ubuntu (20.04) host with the KVM Hypervisor running my Windows 7/10 agents, the master process and web interface are running on the host and master/agent communicate via a KVM bridge network.
I believe this issue is caused by the monitoring DLL which CAPE injects not providing some interface Windows is expecting, then crashing when the OS attempts to call it.
I have attempted to debug as per https://github.com/kevoreilly/CAPEv2/wiki/Tips'n'Tricks#how-to-debug-analyzer-and-any-script-that-executes-inside-of-the-virtual-machine
Within the guest, invoking the script the CAPE agent would run (in debug mode) via PowerShell with "Transcript Logging" enabled produces the following output (see "Failure Logs" section).
When I run a scan with the option "free=yes" to disable the DLL injection, the analysis completes without any crashes, though clearly without most of the analysis performed.
I have also attached a screenshot from CAPE of the actual crash.
NOTE: I am testing with known benign samples, so this is not the result of some complex malware crashing the agent.
Please advise and many thanks!
Failure Information (for bugs)
Steps to Reproduce
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs