
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
github.com/dsd-dbs/crossplane-function-test-framework
Advanced tools
A Go library that allows easy implementation of unit tests for Crossplane functions written in Go.
Example Go test that runs a function in a blackbox test and compares the received with the expected output:
package account
import (
_ "embed"
"testing"
"github.com/crossplane/function-sdk-go/logging"
fntesting "github.com/dbinfrago/crossplane-function-test-framework"
"github.com/my-group/my-project/function"
)
var (
//go:embed testdata/arg_composite.yaml
observedComposite []byte
//go:embed testdata/arg_observed_composed.yaml
observedComposed []byte
//go:embed testdata/expect_composed.yaml
expectComposed []byte
//go:embed testdata/expect_composite.yaml
expectComposite []byte
)
const (
subroutineName = "test-routine"
)
func TestSuccess(t *testing.T) {
log := logging.NewNopLogger()
fn := function.NewFunction(log)
fntesting.TestFunction(
t, fn,
fntesting.WithObservedCompositeYAML(observedComposite),
fntesting.WithObservedResourcesYAML(observedComposed),
fntesting.ExpectDesiredCompositeYAML(expectComposite),
fntesting.ExpectDesiredResourcesYAML(expectComposed),
)
}
See our Contributing Guidelines.
Each file contains a license reference to one of the included licenses.
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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.