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/mish33/go-calendar
Date manipulation functions.
// IsLeap returns true if year is a leap year. func IsLeap(year int64) bool
// NextDay advance Time structure to the next day. func NextDay(t *time.Time)
// PrevDay adjust Time structure one day behind. func PrevDay(t *time.Time)
// NextMonth advance Time structure one month ahead. func NextMonth(t *time.Time)
// PrevMonth adjust Time structure one month behind. func PrevMonth(t *time.Time)
// Weekday returns day of week number. // // Use Sakamoto's method (valid for dates in Oct 15, 1582 - Dec 31, 9999) // (see http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week ) // // Args: // year (e.g., 1988) // month (1-12) // day of the month (1-31) // Returns: // 0 = Sunday, 1 = Monday, ... // func Weekday(year, month, day int) int
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.