
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
@opentelemetry/plugin-dns
Advanced tools
This module provides automatic instrumentation for dns.
For automatic instrumentation see the @opentelemetry/node package.
npm install --save @opentelemetry/plugin-dns
const { NodeTracerProvider } = require('@opentelemetry/node');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const provider = new NodeTracerProvider();
provider.register();
registerInstrumentations({
instrumentations: [
{
plugins: {
dns: {
enabled: true,
// You may use a package name or absolute path to the file.
path: '@opentelemetry/plugin-dns',
// dns plugin options
}
}
},
],
tracerProvider: provider,
});
If you use Zipkin, you must use ignoreHostnames in order to not trace those calls. If the server is local. You can set :
const provider = new NodeTracerProvider();
provider.register();
registerInstrumentations({
instrumentations: [
{
plugins: {
dns: {
enabled: true,
// You may use a package name or absolute path to the file.
path: '@opentelemetry/plugin-dns',
ignoreHostnames: ['localhost']
}
}
},
],
tracerProvider: provider,
});
Dns plugin has currently one option. You can set the following:
| Options | Type | Description |
|---|---|---|
ignoreHostnames | IgnoreMatcher[] | Dns plugin will not trace all requests that match hostnames |
Apache 2.0 - See LICENSE for more information.
FAQs
OpenTelemetry dns automatic instrumentation package.
The npm package @opentelemetry/plugin-dns receives a total of 2,834 weekly downloads. As such, @opentelemetry/plugin-dns popularity was classified as popular.
We found that @opentelemetry/plugin-dns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.