Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/buarki/supervised-machine-learning
This repository has the implementation of a Neural Network to solve an imaginary problem of a student trying to predict his linear algebra test score based on the amount of hours of sleep and meditation - yes, no studying here :)
If you just crashed on this repo you can understand all the idea by reading my article where I explain in baby-steps how supervised machine learning works and how to build the main components of it with the mathematical details.
The image above shows the neural network topology. Grey balls represent input neurons, yellow ones represent the weights of the second layer, the green one represents the bias of the second layer, the blue represents the weight of the third layer, and red represents the bias of the third layer.
For the second layer, the forward computations are the following:
For the third layer, the forward computations are the following:
For the third layer, the backward computations are the following:
For the second layer, the backward computations are the following:
go get all
go run *.go
Above images show some predictions after the training, not so bad :)
Did you find some bug? Know how to improve something? Nice! Feel free to open a pull request. All contributions are welcome :)
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.