
Research
PyPI Package Impersonates SymPy to Deliver Cryptomining Malware
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.
Lightweight HTTP framework module written in Go
package main
import (
"fmt"
"log"
"net/http"
app "webimizer.dev/webimizer"
)
func httpNotAllowFunc(rw http.ResponseWriter, r *http.Request) {
rw.WriteHeader(http.StatusBadRequest)
fmt.Fprint(rw, "Bad Request")
}
func main() {
app.DefaultHTTPHeaders = [][]string{
{"x-content-type-options", "nosniff"},
{"x-frame-options", "SAMEORIGIN"},
{"x-xss-protection", "1; mode=block"},
} // define default headers
http.Handle("/", app.HttpHandlerStruct{
Handler: app.HttpHandler(func(rw http.ResponseWriter, r *http.Request) {
app.Get(rw, r, func(rw http.ResponseWriter, r *http.Request) {
fmt.Fprint(rw, "Hello from webimizer. HTTP GET method was used.")
})
app.Post(rw, r, func(rw http.ResponseWriter, r *http.Request) {
fmt.Fprint(rw, "Hello from webimizer. HTTP POST method was used.")
})
}), // app.HttpHandler call only if method is allowed
NotAllowHandler: app.HttpNotAllowHandler(httpNotAllowFunc), // app.HtttpNotAllowHandler call if method is not allowed
AllowedMethods: []string{"GET","POST"}, // define allowed methods
}.Build())
log.Fatal(http.ListenAndServe(":8080", nil)) // example server listen on port 8080
}
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
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.