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/dienakakim/linkedlist
This project contains code implementing a generic doubly linked list in Go. Takes a placeholder element to use as the list's key type, and requires all argument keys to have that type.
func NewLinkedList(key interface{}) LinkedList
NewLinkedList is a factory function creating a new LinkedList with a given element as its keyType.
func (l *LinkedList) InsertBack(key interface{}) (bool, error)
func (l *LinkedList) InsertFront(key interface{}) (bool, error)
func (l *LinkedList) InsertAt(index uint, key interface{}) (bool, error)
Insert methods -- InsertBack inserts at the end of the list, InsertFront inserts at the front, and InsertAt inserts at a given index.
func (l *LinkedList) At(index uint) (interface{}, error)
Retrieves an element at the given index.
func (l *LinkedList) IndexOf(t interface{}) (uint, error)
Finds a given element and returns its index if it is in the list.
func (l *LinkedList) String() string
Returns the list's string representation.
func (l *LinkedList) RemoveBack() (interface{}, error)
func (l *LinkedList) RemoveFront() (interface{}, error)
func (l *LinkedList) RemoveAt(index uint) (interface{}, error)
Remove methods -- same semantics as detailed in insert methods.
func (l *LinkedList) Remove(key interface{}) (bool, error)
Removes a given element from the list if found.
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.