
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
github.com/Lyimmi/go-clamd
Advanced tools
A Go client for ClamAV daemon over TCP or UNIX socket.
| Go | CalmAv | Description |
|---|---|---|
| Ping | PING | Check the server's state. It should reply with "PONG". |
| Version | VERSION | Print program and database versions. |
| Reload | RELOAD | Reload the virus databases. |
| Shutdown | SHUTDOWN | Perform a clean exit. |
| Scan | SCAN | Scan a file or a directory (recursively) with archive support enabled (if not disabled in clamd.conf). A full path is required. |
| ScanAll | CONTSCAN | Scan file or directory (recursively) with archive support enabled and don't stop the scanning when a virus is found. |
| ScanStream | INSTREAM | Scan a stream of data. The stream is sent to clamd in chunks, after INSTREAM, on the same socket on which the command was sent. This avoids the overhead of establishing new TCP connections and problems with NAT. Note: do not exceed StreamMaxLength as defined in clamd.conf, otherwise clamd will reply with INSTREAM size limit exceeded and close the connection. |
| Stats | STATS | Replies with statistics about the scan queue, contents of scan queue, and memory usage. The exact reply format is subject to change in future releases. |
go get github.com/lyimmi/go-clamd
import (
"fmt"
"github.com/lyimmi/go-clamd"
)
c := clamd.NewClamd()
if ok, _ := c.Ping(ctx); !ok {
fmt.Println("clamd nok")
}
if ok, err := c.Scan(ctx, fileName); !ok {
if err != nil {
panic(err)
}
fmt.Printf("%s has maleware\n", fileName)
}
if ok, err := c.ScanAll(ctx, "/tmp"); !ok {
if err != nil {
panic(err)
}
fmt.Printf("%s has maleware\n", fileName)
}
stats, err := c.Stats(ctx)
if err != nil {
panic(err)
}
d, err := json.MarshalIndent(stats, "", " ")
if err != nil {
panic(err)
}
fmt.Println(string(d))
The MIT License (MIT)
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.