Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A simple ngdrive utitily to download files from gdrive folders recursively into local machine.
Google allows/supports accessing google drive files via API. Below steps are pre-requisites to do the same.
OAuth consent screen
App Info:
App Domain:
Authorized domains:
Developer contact information
Scope
Test users
Add this line to your application's Gemfile:
gem 'googledrive'
And then execute:
$ bundle
Or install it yourself as:
$ gem install googledrive
require 'googledrive'
gd = Ngdrive::GdriveUtil.new
gd.download_files
Above lines will pickup the files/folders present in the gdrive.folder_id value in settings.yml and download all files recursively into ./downloads folder along with their respective folder names.
google drive maintains a session (via token) valid for a certain amount of time. This session is based on a token and will expire after the duration.
each time a request is made to google drive via API, it needs this token to allow google drive to continue accessing.
First time when 'Ngdrive::GdriveUtil.new' is run, the gem does below steps:
once token.yaml file is created, accessing and downloading googledrive files is as simple as running: gd.download_files
FAQs
Unknown package
We found that ngdrive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.