
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Django middleware which removes all unwanted cookies - useful for improving cache hit ratios when analytics cookies interfere with caching.
Using pip:
$ pip install django-cookiefilter
Edit your Django project's settings module, and add the middleware to the start of MIDDLEWARE
:
MIDDLEWARE = [
"cookiefilter.middleware.CookieFilterMiddleware",
# ...
]
[!NOTE] The middleware should be added before
UpdateCacheMiddleware
, as it uses the value of HTTP_COOKIES which needs to be modified.
Out of the box the standard Django cookie names will work without any other configuration. However
if your project uses different or additional cookie names, edit COOKIEFILTER_ALLOWED
in your
project's settings module:
COOKIEFILTER_ALLOWED = [
"analytics",
"csrftoken",
"django_language",
"messages",
"sessionid",
]
FAQs
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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.