
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
github.com/clockworksoul/go-mwclient
Advanced tools
go-mwclient is a Go package for interacting with the MediaWiki JSON API.
go-mwclient aims to be a thin wrapper around the MediaWiki API that takes care of the most tedious parts of interacting with the API (such as authentication and query continuation), but it does not aim to abstract away all the functionality of the API.
go-mwclient v1 uses version 2 of the MediaWiki JSON API.
The canonical import path for this package is
import cgt.name/pkg/go-mwclient // imports "mwclient"
Documentation:
As of v1.0.0, go-mwclient uses semantic versioning.
The master branch contains the most recent v1.x.x release.
go get -u cgt.name/pkg/go-mwclient
package main
import (
"fmt"
"cgt.name/pkg/go-mwclient"
)
func main() {
// Initialize a *Client with New(), specifying the wiki's API URL
// and your HTTP User-Agent. Try to use a meaningful User-Agent.
w, err := mwclient.New("https://en.wikipedia.org/w/api.php", "myWikibot")
if err != nil {
panic(err)
}
// Log in.
err = w.Login("USERNAME", "PASSWORD")
if err != nil {
panic(err)
}
// Specify parameters to send.
parameters := map[string]string{
"action": "query",
"list": "recentchanges",
"rclimit": "2",
"rctype": "edit",
"continue": "",
}
// Make the request.
resp, err := w.Get(parameters)
if err != nil {
panic(err)
}
// Print the *jason.Object
fmt.Println(resp)
}
Other than the standard library, go-mwclient depends on the following third party, open source packages:
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.
The params package is based on the net/url package from the Go
standard library, which is released under a BSD-style license. See
params/LICENSE.
Contributions to the params package as part of this project are
released to the public domain via CC0, as noted above and specified in
the COPYING file.
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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.