
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
github.com/serak/go-sysinfo
go-sysinfo is a library for collecting system information. This includes information about the host machine and processes running on the host.
The available features vary based on what has been implemented by the "provider"
for the operating system. At runtime you check to see if additional interfaces
are implemented by the returned Host
or Process
. For example:
process, err := sysinfo.Self()
if err != nil {
return err
}
if handleCounter, ok := process.(types.OpenHandleCounter); ok {
count, err := handleCounter.OpenHandleCount()
if err != nil {
return err
}
log.Printf("%d open handles", count)
}
These tables show what methods are implemented as well as the extra interfaces that are implemented.
Host Features | Darwin | Linux | Windows | AIX/ppc64 |
---|---|---|---|---|
Info() | x | x | x | x |
Memory() | x | x | x | x |
CPUTimer | x | x | x | x |
VMStat | x | |||
NetworkCounters | x |
Process Features | Darwin | Linux | Windows | AIX/ppc64 |
---|---|---|---|---|
Info() | x | x | x | x |
Memory() | x | x | x | x |
User() | x | x | x | x |
Parent() | x | x | x | x |
CPUTimer | x | x | x | x |
Environment | x | x | x | |
OpenHandleEnumerator | x | |||
OpenHandleCounter | x | |||
Seccomp | x | |||
Capabilities | x | |||
NetworkCounters | x |
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 uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.