
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
sourcegraph-configurable-references
Advanced tools
Lets you configure reference finding using regular expressions
A Sourcegraph extension allowing you to add and configure reference finding for custom entities (for instance HTTP routes, build tasks, string literals...) using regular expressions.
Custom references can be added through the "customReferences" property of the Sourcegraph client settings. Here is an example configuration to add reference finding for HTTP routes in go:
"customReferences": [
{
"name": "HTTP Route",
"preview": ": `\"/$1\"`",
"definitions": [{
"search": "/httpPost\\(ctx, req.Repo, \"$1/",
"capture": "httpPost\\(ctx, req\\.Repo, \"/?([^\"]+)\""
}],
"references": [{
"search": "mux.HandleFunc\\(\\\"\\/$1",
"capture": "mux.HandleFunc\\(\"/([^\"]+)"
}],
"implementations": [],
}
]
With this configuration, hovering HTTP route definitions will trigger a tooltip a tooltip allowing to find references:

If your Sourcegraph configuration does not have a "customReferences" field, the extension will create it, and include by default the configuration for string literal references
FAQs
Lets you configure reference finding using regular expressions
We found that sourcegraph-configurable-references demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.