
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.
github.com/baburkin/graphs
This library provides simple API (data structures and set of algorithms) to use in programs that run algorithms on graphs.
package main
// This is a sample usage of topological sort algorithm
import (
"fmt"
"os"
"github.com/baburkin/graphs"
)
func main() {
// Initialize a directed graph from a file
graph, err := graphs.LoadDirectedGraph("examples/directed_7.txt")
if err != nil {
fmt.Printf("Got an error: %v\n", err)
os.Exit(2)
}
fmt.Printf("Initial graph: %v\n", graph)
// Get a reversed graph
reversedGraph := graph.Reverse()
fmt.Printf("Reversed graph: %v\n", reversedGraph)
// Try to topologically sort the graph
if order, err := graphs.TopoSort(graph); err != nil {
fmt.Printf("Cannot do topological sort: %v\n", err)
} else {
fmt.Printf("Topologically sorted graph (vertex order): %v\n", order)
}
// Try to topologically sort the reversed graph
if order, err := graphs.TopoSort(reversedGraph); err != nil {
fmt.Printf("Cannot do topological sort for reversed graph: %v\n", err)
} else {
fmt.Printf("Topologically sorted reversed graph (vertex order): %v\n", order)
}
}
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.