To scan apps for malware safely using Google Colab and Google Drive, you can follow these steps:
### Step 1: Create a Team Drive
Before proceeding, it is highly recommended to create a Team Drive on a dummy account. This can be done using sites like You do not have permission to view the full content of this post. Log in or register now. or You do not have permission to view the full content of this post. Log in or register now.. These sites allow you to create shared drives without any restrictions [Source 0, Source 1].
### Step 2: Mount the Drive and Install Dependencies
Open this Google Colab notebook: You do not have permission to view the full content of this post. Log in or register now.. Click on
Install All Dependencies. This will prompt you to mount your drive and install a few tools [Source 3].### Step 3: Find the URL of the Download Link
To upload the file to Google Drive, you need to find the direct link of the file. There are two ways to do this. If these methods don't work, you'll need to manually download the file and then scan it on VirusTotal [Source 3].
### Step 4: Find the Google Drive File ID
After finding the direct download link, paste it in the field. Click on the folder icon on the left and then you should see something like this. You can either save the file in your personal drive (Not recommended) or in your team drive. Click on any of them as shown in the image. You can additionally make a folder in the shared drive or your personal drive and then
Copy path so it's easier to segregate. After finding the path paste it in destination_of_file. Click on the run icon till it finishes [Source 3].### Step 5: VirusTotal
Go to VirusTotal and register to grab the API key. Copy the file path of the exe where you saved the file as shown in the image. Both the fields should look like this. Then just click on the run and wait. You should be getting something like this [Source 3].
Please note that this method has a 500MB limit imposed by VirusTotal. If your file is larger than this, you'll need to use a different method.