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.
Strappy is in its very beginning stages. It is intended to be a collection of bootstrap helpers for Rails 4. The current version only includes a "Flash Messages" helper for displaying flash messages.
Clone the repo, git clone git://github.com/tommyschaefer/strappy.git
, or download the current version.
You can include this in your rails project by adding gem "strappy"
to your Gemfile. After running bundle install
, you will have access to Strappy's helpers and rails g strap:install
will generate Bootstrap's files for you.
Flash messages can be created in two ways in your controller.
Using the string method, you declare flash messages like so: flash[:success] = "Message here"
. To make this a dismissable alert, you simply use the following form: flash[:success] = "[x] Message Here"
.
Using the hash method, you declare your message in the form: flash[:success] = { msg: "Message" }
. A dismissible alert in this notation would look like: flash[:success] = { msg: "Message", dismissible: true }
. Not that if you want a non-dismissable alert, you do not have to include the 'dismissable' attribute (although you can).
Alert types include "danger", "info", "warning", and "success." You can see what they look like respectively on the Twitter Bootstrap website.
In your view, you can render flash messages by including <%= flash_messages %>
FAQs
Unknown package
We found that strappy 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.