
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
The livefile package provides an easy, read-write access to a live-reloadable struct instance backed by a JSON file with a transaction-like API.
To install livefile, use the following command:
go get grono.dev/livefile
livefile.View method to read the current state.Update method to modify the state.Peek method to get a copy of the current state (a simpler version of the View method).import (
"context"
"fmt"
"grono.dev/livefile"
)
type MyState struct {
Value int
Name string
}
func main() {
ctx := context.Background()
lf := livefile.New[MyState]("state.json")
// View the initial state
lf.View(ctx, func(s *MyState) {
fmt.Println("Updated State:", *s)
})
// Update the state
err := lf.Update(ctx, func(s *MyState) error {
s.Value = 42
s.Name = "Updated"
return nil
})
if err != nil {
panic(err)
}
// View the modified state
lf.View(ctx, func(s *MyState) {
fmt.Println("Updated State:", *s)
})
// Perform external modification
if err := os.WriteFile("state.json", []byte(`{"Name":"foo","Value":100}`), 0o777); err != nil {
panic(err)
}
// Get a copy of the state
s := lf.Peek(ctx)
fmt.Println("Final state:", s)
}
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.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.