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/loveholidays/po-test
po-test
allows you to run prometheus alert unit tests against
prometheus operator manifests. Simply point your unit tests at a prometheus operator PrometheusRule
E.g.
rule_files:
- prometheus-operator-rules.yml
Where prometheus-operator-rules.yml
looks something like:
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: k8s
role: alert-rules
name: prometheus-rules
spec:
groups:
- name: alerts
...
Then run po-test prometheus-operator-unittest.yml
.
The CLI will strip the kubernetes metadata from the target, run the unit tests against it, then put it back again.
It is also suitable for running as part of a CI/CD pipeline.
Run this to install prometheus that will also provide promtool
brew install prometheus
# go >= 1.17
# Using `go get` to install binaries is deprecated.
# The version suffix is mandatory.
go install github.com/loveholidays/po-test@latest
# go < 1.17
go get github.com/loveholidays/po-test
brew install loveholidays/taps/po-test
Grab the latest OS/Arch compatible binary from our Releases page.
git clone git@github.com:loveholidays/po-test.git
make build
po-test test-file1.yaml test-file2.yaml ...
Pushing a tag to origin with a version number will run the github actions to release that version.
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.