
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
github.com/hlubek/logging-server
Advanced tools

A logging server with simple mock handlers for quick HTTP API stubs, written in Google Go (golang). See all requests to an HTTP API and provide simple rules to respond to requests.
You need Google Go (1.0) in order to install this package (see http://golang.org/doc/install). After installing the Go SDK it should be as easy as:
go get github.com/chlu/logging-server
Start a mock server just for logging:
logging-server
Start a mock server on a special address and port:
logging-server -address 0.0.0.0 -port 3000
Use a mock configuration for rules:
logging-server mock.json
[{
"Method": "POST",
"Path": "^/service/test/(.*)/action",
"Response": {
"Body": {"value": "9999999", "arbitrary_json": ["1234"]},
"Defer": "375ms"
}
}, {
"Method": "GET",
"Path": "/",
"Response": {
"ContentType": "text/html",
"Body": "<html><body><h1>Hello world!</h1></body></html>"
}
}]
The logging server is most useful for JSON APIs right now. As you can see in the example mock configuration any text content type is also supported.
Some ideas for improvement:
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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.