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/sgotti/oncemultitimer
OnceMultiTimer is a timer that can be scheduled multiple times but will fire only once when the first timer expires.
See the godoc package documentation.
Install oncemultitimer in the usual way:
go get github.com/sgotti/oncemultitimer
Example program:
package main
import (
"log"
"time"
"github.com/sgotti/oncemultitimer"
)
func main() {
log.Printf("start")
t := oncemultitimer.NewTimer()
// schedule multiple timers with different durations
t.AddTimer(3 * time.Second)
t.AddTimer(2 * time.Second)
t.AddTimer(1 * time.Second)
<-t.C
// timer will expire after 1 second (the lowest timer duration)
log.Printf("timer expired")
}
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.