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.
to_elixir is a super simple Rails rake task that inspects your existing Rails application and generates a Elixir / Phoenix JSON API.
Add gem :to_elixir
to your Gemfile
and run bundle install
rake to_elixir:phoenix APP_NAME=<NAME>
Where <NAME>
is the name of your new Elixir app.
This will create a folder <NAME>
in the root of your Rails application.
Simply run the command, wait a tick and then move the resulting folder somewhere else.
Enter the new Elixir app and run iex -S mix phoenix.server
to boot your Elixir app.
Load up your new app at http://localhost:4000/api/<EXISTING_RESOURCE_NAME>
and boom; simple json api.
rake to_elixir:timestamps
If you'd like to convert your existing Rails-based DB over to Phoenix just run the above command.
This will create a Rails migration that renames :created_at
to :inserted_at
It can be rolled back (rake db:rollback
) and is non-destructive.
Update config/dev.exs
to point to your migrated Rails DB and viola; data in your simple json api.
FAQs
Unknown package
We found that to_elixir 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.