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.
@digicat/canonical-redirector
Advanced tools
Redirects HTTP traffic to a configured canonical HTTPS host
Redirects HTTP traffic to a configured canonical HTTPS host.
This package is perfect for running in an ALB target group, receiving HTTP
traffic, or even HTTPS traffic for a non-canonical host. It supports health
checks at /healthcheck
, requests to which receive a 200 OK
response instead
of a redirect. No requests are logged, errors are not reported. Configuration is
done through two environment variables:
CANONICAL_HOSTNAME
: The host to redirect to.PORT
: The port to listen on. Defaults to 4000
.Note that .env
files are not resolved.
$ CANONICAL_HOSTNAME=www.digitalcatapultcentre.org.uk PORT=4000 npm start
Then:
$ curl -v -H 'host: digitalcatapultcentre.org.uk' localhost:4000/
> GET / HTTP/1.1
> host: digitalcatapultcentre.org.uk
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< location: https://www.digitalcatapultcentre.org.uk/
< Date: Tue, 17 Oct 2017 15:28:54 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
FAQs
Redirects HTTP traffic to a configured canonical HTTPS host
The npm package @digicat/canonical-redirector receives a total of 1 weekly downloads. As such, @digicat/canonical-redirector popularity was classified as not popular.
We found that @digicat/canonical-redirector 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.