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.
This is the simplest possible implementation for tagging for
ActiveRecord. It does not do any of the fancy things that most of the
other tagging libraries (acts-as-taggable-on
,
acts_as_taggable_on_seroids
) do. It doesn't use any real stuff either.
It make this assumption: You want some records to have a #tags
attribute.
It's also more ruby friendly. Including modules is better than calling a
method to dynamically include another module then define methods. This
way, you can override and call super
. What a thought right?
Using is simple:
$ bundle exec rake db:migrate SCOPE=spray_paint
class DJ
include SprayPaint::Tags
end
markus = DJ.new :name => "Markus Schulz"
markus.tags = %w(progressive melodic dark)
markus.save
armin = DJ.new :name => 'Armin van Buuren'
armin.tags = 'noob'
armin.save
# you can also set tags like this:
dj.tags << %w(style1 style2)
dj.tags = 'one-style'
# Finding tagged objects
# The 'tagged' scope works like a set. Find all the records
# who's tags contain these tags.
DJ.tagged('melodic', 'progressive')
That's all folks. It does nothing else.
FAQs
Unknown package
We found that spray_paint 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.