
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.
Factorial Program in GO language that can be executed:
(a) on your Mac OS
(b) on a Docker container on Mac OS
(c) on Pivotal Cloud Foundry
(d) on Pivotal Cloud Foundry using a Docker Image
Start with option (a) to make sure you download the program from github
Mac $ go versiongo version go1.14 darwin/amd64Mac $ brew install goOpen a terminal window on your Mac and execute the following command:
Mac $ cd /work
Mac $ git clone https://github.com/rm511130/timer-test
Mac $ cd /work/timer-test
Mac $ go run timer-test.go
2020/03/14 15:55:55 Starting Timer Test...http://localhost:3000/10I counted to 10,000,000,000 in 2.601754 secondsMac $ docker versionversion 19.03.5 for both client and server.On an open terminal window with the familiar Docker Whale icon displayed somewhere at the top of the screen of your Mac, execute the following command:
Mac $ cd /work
Mac $ git clone https://github.com/rm511130/timer-test
Mac $ cd /work/timer-test
Mac $ docker build -t timer-test .
Mac $ docker run --publish 6060:3000 --name timer-test --rm timer-test
You should see a message like this one: 2020/03/14 15:55:55 Starting Timer Test...
You can then test it using a browser: http://localhost:6060/10
And you'll get as a reply: I counted to 10,000,000,000 in 2.601754 seconds
Open a terminal window on your Mac and execute the following command:
$ cd /work/timer-test
$ godeps save
$ ls -a
. .. .git Dockerfile Godeps Procfile README.md timer-test.go
$ cf push timer-test -b https://github.com/cloudfoundry/go-buildpack
You should see the usual creating app, route, binding, uploading ... and: urls: timer-test.cfapps.io
You can now test it: http://timer-test.cfapps.io/10
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.