
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
css_counter
Advanced tools
A (very) small library that counts selectors in a CSS file.
This is mainly useful to detect when your CSS files have crossed the 4095 selector limit imposed by Internet Explorer 9 and lower.
= Installation
gem install css_counter
= Usage
require 'css_counter'
css = <<-EOS h1 { color: red } h2 { color: green } EOS
CssCounter.new(css).selectors => 2
== Rails
To ensure none of the compiled CSS files in your rails app exceed the IE selector limit, there's a rake task you can run as part of a build process.
Add css_counter to your application Gemfile, and then run:
bundle exec rake css_counter:check_selectors
FAQs
Unknown package
We found that css_counter 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.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.