An open API service indexing awesome lists of open source software.

https://github.com/pvormste/noplib


https://github.com/pvormste/noplib

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

          

# noplib

A minimal Go library used as the attack target in the Go supply chain security research.

In its legitimate form it exports a single function:

```go
func CallToNopLib() string {
return "expected call"
}
```

During testing, `lib.go` is modified to include a malicious `init()` that reads `MY_SECRET_CREDENTIAL` from the environment and prints it — simulating credential exfiltration at build time. The two attack variants tested are:

- **Re-tag attack:** the malicious commit is force-pushed onto the existing `v1.1.1` tag
- **New version attack:** the malicious code is published as a new `v1.1.2` tag