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/vmware-tanzu/tanzu-framework/tkr
This is the top level directory for the TKR Service.
Usage:
import (
"github.com/vmware-tanzu/tanzu-framework/tkr/resolver"
"github.com/vmware-tanzu/tanzu-framework/tkr/resolver/data"
)
// skip ...
tkrResolver := resolver.New()
tkrResolver.Add( /* tkr1, tkr2, tkr3, osImage1, osImage2, osImage3 */)
// skip ...
k8sVersionPrefix := "1.22"
tkrSelector, _ := labels.Parse("!deprecated")
osImageSelector, _ := labels.Parse("os-name=ubuntu,ami-region=us-west-2")
query := data.Query{
ControlPlane: data.OSImageQuery{
K8sVersionPrefix: k8sVersionPrefix,
TKRSelector: tkrSelector,
OSImageSelector: osImageSelector,
},
MachineDeployments: map[string]data.OSImageQuery{
"md1": {
K8sVersionPrefix: k8sVersionPrefix,
TKRSelector: tkrSelector,
OSImageSelector: osImageSelector,
},
},
}
result := tkrResolver.Resolve(query)
The primary client of the Resolver package will be the TKR Resolver webhook on CAPI Cluster objects. This webhook will have two parts: the cache reconciler and the webhook handler.
The cache reconciler will list all TKRs and OSImages on initialization and populate the cache. It would then watch TKRs and OSImages and simply Add() or Remove() on incoming updates, thereby providing background cache refresh and invalidation.
This will make the webhook handler efficient by avoiding unnecessary work (fetching data and populating indexes) on every webhook request.
The provided CachingResolver implementation is safe for concurrent use.
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.