
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@envelop/disable-introspection
Advanced tools
This plugin injects the `NoSchemaIntrospectionCustomRule` validation rule exported from the `graphql` module to the validation phase for disabling introspection.
@envelop/disable-introspectionThis plugin injects the NoSchemaIntrospectionCustomRule validation rule exported from the
graphql module to the validation phase for disabling introspection.
yarn add @envelop/disable-introspection
import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import { envelop, useEngine } from '@envelop/core'
import { useDisableIntrospection } from '@envelop/disable-introspection'
const getEnveloped = envelop({
plugins: [
useEngine({ parse, validate, specifiedRules, execute, subscribe }),
useDisableIntrospection()
]
})
The plugin optionally accepts a configuration object:
{
disableIf?: ({context, params}) => boolean
}
disableIf: A function that allow you to evaluate the need to disable introspection, based on the
incoming operation. If introspection needs to be disabled/enabled based on the dynamic parameter
(GraphQL operation, or, incoming request/headers), use this function to determine when
introspection needs to be disabled. Return true for disabling the introspection for the incoming
operation, or false to allow introspection.FAQs
This plugin injects the `NoSchemaIntrospectionCustomRule` validation rule exported from the `graphql` module to the validation phase for disabling introspection.
The npm package @envelop/disable-introspection receives a total of 20,702 weekly downloads. As such, @envelop/disable-introspection popularity was classified as popular.
We found that @envelop/disable-introspection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.