
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
zgo.at/zpack
zpack is yet another way to pack static data in Go binaries.
Why? Because I don't like relying on external binaries, and many other solutions
do. zpack just writes data to the specified file as []byte()
.
Basic usage:
// +build go_run_only
package main
import (
"fmt"
"os"
"zgo.at/zpack"
)
func main() {
err := zpack.Pack(map[string]map[string]string{
// Pack ./db/schema.sql in ./db/pack.go as the variable "Schema".
"./db/pack.go": map[string]string{
"Schema": "./db/schema.sql",
},
// Pack all files in the "./public" and "./tpl" directories.
"./handlers/pack.go": map[string]string{
"packPublic": "./public",
"packTpl": "./tpl",
},
})
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
Then go generate ./...
and presto!
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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.