Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/apwlq/caddy-minify
powered by tdewolff/minify & inspired by hacdias/caddy-v1-minify
http.handlers.minify
text/html
text/css
image/svg+xml
^(application|text)/(x-)?(java|ecma)script$
[/+]json$
[/+]xml$
See https://github.com/tdewolff/minify#performance
Make sure to order the handler in the correct place:
{
order minify after encode
}
With file_server:
example.com {
minify
root ./test
file_server
}
or reverse_proxy:
example.com {
minify
reverse_proxy localhost:8080
}
limit formats (format all when not specified.):
example.com {
minify {
formats html css js
}
reverse_proxy
}
or simply:
example.com {
minify html css js
reverse_proxy localhost:8080
}
This module doesn't minify the original responses that have already been compressed, It just skips them.
To work around this, you may send the Accept-Encoding: identity
request header to the upstream to tell it not to compress the response. For example:
reverse_proxy localhost:8080 {
header_up Accept-Encoding identity
}
FAQs
Unknown package
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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.