idanr1986 / cuckoo-droid

CuckooDroid - Automated Android Malware Analysis with Cuckoo Sandbox.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emulator not launching

balramrexwal opened this issue · comments

I have seen and folowed the step on youtube video of all parts to set it up
but emulator is not opening. i am using avd
Logs are as follows
2019-12-24 22:18:31,282 [root] DEBUG: Importing modules... 2019-12-24 22:18:31,525 [root] DEBUG: Imported "signatures" modules: 2019-12-24 22:18:31,525 [root] DEBUG: |-- AndroidDynamicCode 2019-12-24 22:18:31,525 [root] DEBUG: |-- AndroidDynamicCode 2019-12-24 22:18:31,526 [root] DEBUG: |-- KnownVirustotal 2019-12-24 22:18:31,526 [root] DEBUG: |-- KnownVirustotalThreshold 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidDangerousPermissions 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidDynamicCode 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidGooglePlayDiff 2019-12-24 22:18:31,526 [root] DEBUG: |-- Hidden_Payload 2019-12-24 22:18:31,526 [root] DEBUG: |-- SandroRat 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroratMalware 2019-12-24 22:18:31,526 [root] DEBUG: |-- IBankingMalware 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidNativeCode 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidDynamicCode 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidReflectionCode 2019-12-24 22:18:31,526 [root] DEBUG: |-- AndroidAbortBroadcast 2019-12-24 22:18:31,526 [root] DEBUG: |-- Hidden_Payload 2019-12-24 22:18:31,527 [root] DEBUG: |-- Hidden_Payload 2019-12-24 22:18:31,527 [root] DEBUG: |-- ApplicationContainsDex 2019-12-24 22:18:31,527 [root] DEBUG: |-- ApplicationContainsJar 2019-12-24 22:18:31,527 [root] DEBUG: |-- ApplicationContainsSo 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidInstalledApps 2019-12-24 22:18:31,527 [root] DEBUG: |-- ApplicationDroppedDex 2019-12-24 22:18:31,527 [root] DEBUG: |-- ApplicationDroppedFiles 2019-12-24 22:18:31,527 [root] DEBUG: |-- ApplicationDroppedSo 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidShellCommands 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidPhoneNumber 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidInstalledApps 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidAccountInfo 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidAppInfo 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidPrivateInfoQuery 2019-12-24 22:18:31,527 [root] DEBUG: |-- AndroidAudio 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidUsingReflection 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidRegisteredReceiver 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidInstalledApps 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidSMS 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidComponentEnabledSetting 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidStopProcess 2019-12-24 22:18:31,528 [root] DEBUG: |-- ApplicationUsesLocation 2019-12-24 22:18:31,528 [root] DEBUG: |-- AndroidCamera 2019-12-24 22:18:31,528 [root] DEBUG: |-- CreatesExe 2019-12-24 22:18:31,528 [root] DEBUG: |-- SystemMetrics 2019-12-24 22:18:31,528 [root] DEBUG: |-- NetworkHTTP 2019-12-24 22:18:31,528 [root] DEBUG: |-- NetworkICMP 2019-12-24 22:18:31,528 [root] DEBUG: |-- NetworkIRC 2019-12-24 22:18:31,528 [root] DEBUG: -- NetworkSMTP
2019-12-24 22:18:31,528 [root] DEBUG: Imported "processing" modules:
2019-12-24 22:18:31,528 [root] DEBUG: |-- AnalysisInfo
2019-12-24 22:18:31,529 [root] DEBUG: |-- ApkInfo
2019-12-24 22:18:31,529 [root] DEBUG: |-- BehaviorAnalysis
2019-12-24 22:18:31,529 [root] DEBUG: |-- Debug
2019-12-24 22:18:31,529 [root] DEBUG: |-- Droidmon
2019-12-24 22:18:31,529 [root] DEBUG: |-- Dropped
2019-12-24 22:18:31,529 [root] DEBUG: |-- GooglePlay
2019-12-24 22:18:31,529 [root] DEBUG: |-- Memory
2019-12-24 22:18:31,529 [root] DEBUG: |-- NetworkAnalysis
2019-12-24 22:18:31,529 [root] DEBUG: |-- ProcessMemory
2019-12-24 22:18:31,529 [root] DEBUG: |-- Static
2019-12-24 22:18:31,529 [root] DEBUG: |-- Strings
2019-12-24 22:18:31,529 [root] DEBUG: |-- TargetInfo
2019-12-24 22:18:31,529 [root] DEBUG: -- VirusTotal 2019-12-24 22:18:31,529 [root] DEBUG: Imported "auxiliary" modules: 2019-12-24 22:18:31,529 [root] DEBUG: -- Sniffer
2019-12-24 22:18:31,530 [root] DEBUG: Imported "reporting" modules:
2019-12-24 22:18:31,530 [root] DEBUG: |-- JsonDump
2019-12-24 22:18:31,530 [root] DEBUG: |-- MAEC40Report
2019-12-24 22:18:31,530 [root] DEBUG: |-- MMDef
2019-12-24 22:18:31,530 [root] DEBUG: |-- MongoDB
2019-12-24 22:18:31,530 [root] DEBUG: |-- ReportAndroidHTML
2019-12-24 22:18:31,530 [root] DEBUG: -- ReportHTML 2019-12-24 22:18:31,530 [root] DEBUG: Imported "machinery" modules: 2019-12-24 22:18:31,530 [root] DEBUG: -- Avd
2019-12-24 22:18:31,548 [root] DEBUG: Checking for locked tasks...
2019-12-24 22:18:31,586 [root] INFO: Updated running task ID 3 status to failed_analysis
2019-12-24 22:18:31,586 [root] DEBUG: Initializing Yara...
2019-12-24 22:18:31,586 [root] DEBUG: |-- index_binaries.yar
2019-12-24 22:18:31,586 [root] DEBUG: -- index_memory.yar 2019-12-24 22:18:31,587 [lib.cuckoo.core.resultserver] DEBUG: ResultServer running on 127.0.0.1:2042. 2019-12-24 22:18:31,588 [lib.cuckoo.core.scheduler] INFO: Using "avd" machine manager 2019-12-24 22:18:31,603 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s 2019-12-24 22:18:31,607 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks. 2019-12-24 22:18:32,624 [lib.cuckoo.core.scheduler] DEBUG: Processing task #4 2019-12-24 22:18:32,625 [lib.cuckoo.core.scheduler] INFO: Starting analysis of FILE "/home/android/Downloads/Material Terminal_v2.1.0_apkpure.com.apk" (task=4) 2019-12-24 22:18:32,676 [lib.cuckoo.core.scheduler] INFO: File already exists at "/home/android/cuckoo/storage/binaries/30842a543a96198ef81c4044fbe9cf473cfcdf61d7aca4de501544993343bea7" 2019-12-24 22:18:32,691 [lib.cuckoo.core.scheduler] INFO: Task #4: acquired machine aosx_1 (label=aosx_1) 2019-12-24 22:18:32,716 [modules.machinery.avd] DEBUG: Starting vm aosx_1 2019-12-24 22:18:32,716 [modules.machinery.avd] DEBUG: Duplicate Reference Machine 'aosx'. 2019-12-24 22:18:32,717 [modules.machinery.avd] DEBUG: Deleting old emulator config file '/home/android/.android/avd/aosx_1.ini' 2019-12-24 22:18:32,717 [modules.machinery.avd] DEBUG: Deleting old emulator FS '/home/android/.android/avd/aosx_1.avd/' 2019-12-24 22:18:32,920 [modules.machinery.avd] DEBUG: Copy AVD reference config file '/home/android/.android/avd/aosx.ini' in '/home/android/.android/avd/aosx_1.ini'... 2019-12-24 22:18:32,920 [modules.machinery.avd] DEBUG: Duplicate the AVD internal content from '/home/android/.android/avd/aosx.avd/' in '/home/android/.android/avd/aosx_1.avd/'... 2019-12-24 22:18:43,233 [modules.machinery.avd] DEBUG: Replacing 'aosx' with 'aosx_1' in '/home/android/.android/avd/aosx_1.ini' 2019-12-24 22:18:44,057 [modules.machinery.avd] DEBUG: Replacing 'aosx' with 'aosx_1' in '/home/android/.android/avd/aosx_1.avd/hardware-qemu.ini' 2019-12-24 22:18:44,230 [modules.machinery.avd] DEBUG: Stopping vm aosx_1 2019-12-24 22:18:44,230 [modules.machinery.avd] INFO: Stopping AVD listening on port 5554 2019-12-24 22:18:51,345 [lib.cuckoo.core.scheduler] ERROR: Failure in AnalysisManager.run Traceback (most recent call last): File "/home/android/cuckoo/lib/cuckoo/core/scheduler.py", line 363, in run success = self.launch_analysis() File "/home/android/cuckoo/lib/cuckoo/core/scheduler.py", line 248, in launch_analysis machinery.start(self.machine.label) File "/home/android/cuckoo/modules/machinery/avd.py", line 75, in start self.start_emulator(label) File "/home/android/cuckoo/modules/machinery/avd.py", line 182, in start_emulator self.emulator_processes[label] = OSCommand.executeAsyncCommand(cmd) File "/home/android/cuckoo/modules/machinery/avd.py", line 307, in executeAsyncCommand return subprocess.Popen(commandAndArgs ,stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 13] Permission denied