cuckoosandbox / monitor

The new Cuckoo Monitor.
GNU General Public License v3.0
336 stars 166 forks source link

Adobe Reader crashes when process injection is selected #31

Open E3L-1 opened 8 years ago

E3L-1 commented 8 years ago

I have been unable to analyze PDFs when behavioral analysis is set to run. The only way a PDF will run is with process injection disabled.

My setup is this:

Here's a similar report of this problem. https://community.cuckoosandbox.org/t/analysing-pdf-files-problems/167/5

Here's one of the latest logs.

2016-09-17 13:16:53,000 [analyzer] DEBUG: Starting analyzer from: C:\ttyxxqdsfy
2016-09-17 13:16:53,030 [analyzer] DEBUG: Pipe server name: \\.\PIPE\ukqVCXhgyzRUfDFdJpx
2016-09-17 13:16:53,030 [analyzer] DEBUG: Log pipe server name: \\.\PIPE\iwUIJiDwLIovEsnxsunAYgPlfaKqoTYq
2016-09-17 13:16:53,030 [analyzer] DEBUG: No analysis package specified, trying to detect it automagically.
2016-09-17 13:16:53,030 [analyzer] INFO: Automatically selected analysis package "pdf"
2016-09-17 13:16:54,371 [analyzer] DEBUG: Started auxiliary module Disguise
2016-09-17 13:16:54,825 [analyzer] WARNING: Unable to find the correct offsets for functions of: 64-bit kernel32.dll (with timestamp 0x4a5bdfdf)
2016-09-17 13:16:54,825 [analyzer] WARNING: Unable to find the correct offsets for functions of: 64-bit kernel32.dll (with timestamp 0x4a5bdfdf)
2016-09-17 13:16:54,839 [analyzer] DEBUG: Loaded monitor into process with pid 492
2016-09-17 13:16:54,855 [analyzer] DEBUG: Started auxiliary module DumpTLSMasterSecrets
2016-09-17 13:16:54,855 [analyzer] DEBUG: Started auxiliary module Human
2016-09-17 13:16:54,855 [analyzer] DEBUG: Started auxiliary module InstallCertificate
2016-09-17 13:16:54,855 [analyzer] DEBUG: Started auxiliary module Reboot
2016-09-17 13:16:54,964 [analyzer] DEBUG: Started auxiliary module RecentFiles
2016-09-17 13:16:54,964 [analyzer] DEBUG: Started auxiliary module Screenshots
2016-09-17 13:16:55,588 [lib.api.process] INFO: Successfully executed process from path 'C:\\Program Files (x86)\\Adobe\\Reader 11.0\\Reader\\AcroRd32.exe' with arguments [u'C:\\Users\\user\\AppData\\Local\\Temp\\webcast.pdf'] and pid 2688
2016-09-17 13:16:56,276 [analyzer] WARNING: Unable to find the correct offsets for functions of: 32-bit kernel32.dll (with timestamp 0x4a5bdbde)
2016-09-17 13:16:56,276 [analyzer] WARNING: Unable to find the correct offsets for functions of: 32-bit kernel32.dll (with timestamp 0x4a5bdbde)
2016-09-17 13:16:56,509 [analyzer] DEBUG: Loaded monitor into process with pid 2688
2016-09-17 13:16:56,775 [analyzer] DEBUG: Received request to inject pid=2688, but we are already injected there.
2016-09-17 13:16:57,414 [analyzer] CRITICAL: Encountered an unknown process while in monitoring mode: "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" --channel=2688.1.478146051 --type=renderer  "C:\Users\user\AppData\Local\Temp\webcast.pdf"!
2016-09-17 13:16:57,460 [analyzer] INFO: Injected into process with pid 2800 and name u'\u8320\u0235'
2016-09-17 13:16:57,492 [analyzer] DEBUG: Received request to inject pid=2800, but we are already injected there.
2016-09-17 13:16:57,803 [lib.api.process] INFO: Memory dump of process with pid 2800 completed
2016-09-17 13:19:11,109 [analyzer] INFO: Analysis timeout hit, terminating analysis.
2016-09-17 13:19:13,825 [lib.api.process] INFO: Memory dump of process with pid 2688 completed
2016-09-17 13:19:14,198 [lib.api.process] INFO: Memory dump of process with pid 2800 completed
2016-09-17 13:19:14,198 [analyzer] INFO: Terminating remaining processes before shutdown.
2016-09-17 13:19:14,198 [lib.api.process] INFO: Successfully terminated process with pid 2688.
2016-09-17 13:19:14,198 [lib.api.process] INFO: Successfully terminated process with pid 2800.
2016-09-17 13:19:14,198 [analyzer] INFO: Analysis completed.

Any ideas?

doomedraven commented 8 years ago

can you share hash(es) to test it?

E3L-1 commented 8 years ago

webcast.pdf

I've tried it with multiple non-malicious pdfs. I attached a non-malicious one from a SANS webcast here. You should be able to replicate with any though.

doomedraven commented 8 years ago

well here no crashes and everything works fine

E3L-1 commented 8 years ago

what are you running for your guest machine? Does it match what i have above?

I'm beginning to wonder if this is based on particular patches being applied or not applied across different installations. So for example, in my win7sp0 box, i have the following patches applied: 982861 KB2454826 KB958488

What about you? Side note. just found an easy way to get this with powershell; Get-Hotfix

doomedraven commented 8 years ago

@E3L-1 that vms are w7sp1x32, i don't remember which patches installed there and which not as those vms is for years in production, but it was totally updated w7sp1

E3L-1 commented 8 years ago

I just tried adding SP1 to my win7x64 installation. That did not make a difference. :(

jbremer commented 7 years ago

I'm going to have to try later versions of Adobe Reader :-) If you could share some Cuckoo reports, that'd be helpful as well. For what it's worth, Adobe Reader 9.0.0 should work for sure.

E3L-1 commented 7 years ago

Ahh - That worked! Thank you! :)

So, from the testing i did, Adobe 10+ is not working. Here's a cuckoo report of a similar failure referenced in my above post with the logs. 124.zip

E3L-1 commented 7 years ago

Another question for you which seems related. If not, i'll open another issue. What version of IE are you running? The behavior is slightly different than above in that it at least successfuly opens the process, but then it immediately stops. You don't ever see IE opening in the screenshots and i also watched from the vsphere console. It never opens it.

I'm running IE 9.0.8112.16421. Maybe it's a simple IE version thing like the Adobe reader?

2016-09-20 22:05:01,030 [analyzer] DEBUG: Starting analyzer from: C:\mjopm
2016-09-20 22:05:01,078 [analyzer] DEBUG: Pipe server name: \\.\PIPE\YsGDwiNqGzSGfzwjJeMLweUzV
2016-09-20 22:05:01,078 [analyzer] DEBUG: Log pipe server name: \\.\PIPE\eriQyrKcrKFgnPehqvqGYpHBwxpFf
2016-09-20 22:05:01,078 [analyzer] DEBUG: No analysis package specified, trying to detect it automagically.
2016-09-20 22:05:01,078 [analyzer] INFO: Automatically selected analysis package "ie"
2016-09-20 22:05:02,496 [analyzer] DEBUG: Started auxiliary module Disguise
2016-09-20 22:05:02,887 [analyzer] DEBUG: Loaded monitor into process with pid 496
2016-09-20 22:05:02,887 [analyzer] DEBUG: Started auxiliary module DumpTLSMasterSecrets
2016-09-20 22:05:02,887 [analyzer] DEBUG: Started auxiliary module Human
2016-09-20 22:05:02,887 [analyzer] DEBUG: Started auxiliary module InstallCertificate
2016-09-20 22:05:02,887 [analyzer] DEBUG: Started auxiliary module Reboot
2016-09-20 22:05:02,996 [analyzer] DEBUG: Started auxiliary module RecentFiles
2016-09-20 22:05:02,996 [analyzer] DEBUG: Started auxiliary module Screenshots
2016-09-20 22:05:03,417 [lib.api.process] INFO: Successfully executed process from path 'C:\\Program Files\\Internet Explorer\\iexplore.exe' with arguments ['www.microsoft.com'] and pid 2768
2016-09-20 22:05:03,588 [analyzer] DEBUG: Loaded monitor into process with pid 2768
2016-09-20 22:05:04,243 [analyzer] DEBUG: Received request to inject pid=2768, but we are already injected there.
2016-09-20 22:05:05,507 [analyzer] INFO: Process with pid 2768 has terminated
2016-09-20 22:05:05,507 [analyzer] INFO: Process list is empty, terminating analysis.
2016-09-20 22:05:06,522 [analyzer] INFO: Terminating remaining processes before shutdown.
2016-09-20 22:05:06,522 [analyzer] INFO: Analysis completed.
glbnz commented 7 years ago

I'm having the same issue with Win 7 (32-bit) and Acrobat Reader 9.0.0. This is the log:

2016-10-20 14:20:56,019 [analyzer] DEBUG: Starting analyzer from: C:\gureic
2016-10-20 14:20:56,039 [analyzer] DEBUG: Pipe server name: \\.\PIPE\qHAdBZvNTdcHgOffAXoULasGhfDaIkS
2016-10-20 14:20:56,039 [analyzer] DEBUG: Log pipe server name: \\.\PIPE\AuqWtPuPARuIuENMpddBM
2016-10-20 14:20:56,039 [analyzer] DEBUG: No analysis package specified, trying to detect it automagically.
2016-10-20 14:20:56,039 [analyzer] INFO: Automatically selected analysis package "pdf"
2016-10-20 14:21:00,095 [analyzer] DEBUG: Started auxiliary module Disguise
2016-10-20 14:21:00,456 [analyzer] DEBUG: Loaded monitor into process with pid 468
2016-10-20 14:21:00,466 [lib.api.process] INFO: Successfully injected process with pid None
2016-10-20 14:21:00,466 [analyzer] DEBUG: Started auxiliary module DumpTLSMasterSecrets
2016-10-20 14:21:00,466 [analyzer] DEBUG: Started auxiliary module Human
2016-10-20 14:21:00,466 [analyzer] DEBUG: Started auxiliary module InstallCertificate
2016-10-20 14:21:00,466 [analyzer] DEBUG: Started auxiliary module Screenshots
2016-10-20 14:21:00,615 [lib.api.process] INFO: Successfully executed process from path 'C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe' with arguments [u'C:\\Users\\YOLAND~1\\AppData\\Local\\Temp\\Court-Order0.pdf'] and pid 1960
2016-10-20 14:21:01,236 [analyzer] DEBUG: Loaded monitor into process with pid 1960
2016-10-20 14:21:01,377 [analyzer] DEBUG: Received request to inject pid=1960, but we are already injected there.
2016-10-20 14:21:09,007 [lib.common.results] ERROR: Exception uploading file c:\users\yoland~1\appdata\local\temp\tmp5_qokg to host: timed out
2016-10-20 14:21:09,167 [lib.api.process] INFO: Memory dump of process with pid 1960 completed
2016-10-20 14:21:09,658 [analyzer] INFO: Process with pid 1960 has terminated
2016-10-20 14:21:09,658 [analyzer] INFO: Process list is empty, terminating analysis.
2016-10-20 14:21:10,661 [analyzer] INFO: Analysis completed.
subarovod89 commented 7 years ago

Having same exact issue here with Win7x64 and Reader 9 (10,11,DC also). Running RC1. Any one found a solution? Thanks.

jbremer commented 7 years ago

Sorry for the late reply. Please use Adobe 9 for now, there are some issues with Adobe 11 that prevent a proper analysis in Cuckoo. Last time I did some investigations as to why this is the case I didn't succeed in finding the issue, but I'll check it once again sometime in the future :-)

neonov1y commented 6 years ago

Hi guys. If you want work with Adobe 11 you must disable "Enhanced Security" and "Protected mode" in the preferences of program.

Steps:

  1. Open Preferences of Adobe Reader.
  2. Go to Security (Enhanced)
  3. Disable "Protection mode at startup" and "Enhanced Security".

Good luck

doomedraven commented 6 years ago

@jbremer maybe add this to disguise reg patcher? https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/protectedmode.html