Is openai safe?
- Sensitive path / secret-location reference
- Node.js shell/command execution
- Node.js network egress
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
openai is an npm package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 1 risky construct is reported for review. It can: delegated authentication, filesystem read, network egress, scoped identity and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 20/100 (low).
openai 7.60.0
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of openai's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (5)
The component references credential locations like ~/.ssh or .aws/credentials.
const AZURE_IMDS_BASE_URL = 'http://169.254.169.254/metadata/identity/oauth2/token';
const AZURE_IMDS_BASE_URL = 'http://169.254.169.254/metadata/identity/oauth2/token';
const AZURE_IMDS_BASE_URL = 'http://169.254.169.254/metadata/identity/oauth2/token';
Why it matters: Touching secret locations is a common first step before stealing them — confirm why it's needed.
Fix: Verify why the component references credential locations; reading these is a common precursor to secret exfiltration.
The component can run operating-system commands or spawn processes.
const node_child_process_1 = require("node:child_process");const ffplay = (0, node_child_process_1.spawn)('ffplay', ['-autoexit', '-nodisp', '-i', 'pipe:0']);ffmpeg = (0, node_child_process_1.spawn)('ffmpeg', [import { spawn } from 'node:child_process';const ffplay = spawn('ffplay', ['-autoexit', '-nodisp', '-i', 'pipe:0']);ffmpeg = spawn('ffmpeg', [import { spawn } from 'node:child_process';const ffplay = spawn('ffplay', ['-autoexit', '-nodisp', '-i', 'pipe:0']);ffmpeg = spawn(
Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.
The component makes outbound network requests.
const response = await this.fetch(this.tokenExchangeUrl, {const response = await this.fetch(this.tokenExchangeUrl, {tslib_1.__classPrivateFieldSet(this, _OpenAI_x509Fetch, authentication.fetch(), "f");
__classPrivateFieldSet(this, _OpenAI_x509Fetch, authentication.fetch(), "f");
fetch('about:blank', {const request = fetch(targetOrigin, { dispatcher: probe });const response = await fetch(request, { dispatcher, redirect: 'manual' });fetch(): Fetch;
const response = await fetch('data:,');const response = await fetch('data:,');const response = await this.fetch(this.tokenExchangeUrl, {this.#x509Fetch = authentication.fetch();
fetch('about:blank', {const request = fetch(targetOrigin, { dispatcher: probe });const response = await fetch(request, { dispatcher, redirect: 'manual' });fetch(): Fetch {const response = await fetch('data:,');Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential. (9 occurrence(s) shown as evidence).
id: 'urn:ietf:params:oauth:token-type:id_token',
const TOKEN_EXCHANGE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange';
id: 'urn:ietf:params:oauth:token-type:id_token',
const TOKEN_EXCHANGE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange';
const TOKEN_EXCHANGE_GRANT = 'urn:ietf:params:oauth:grant-type:token-exchange';
const TOKEN_EXCHANGE_GRANT = 'urn:ietf:params:oauth:grant-type:token-exchange';
id: 'urn:ietf:params:oauth:token-type:id_token',
const TOKEN_EXCHANGE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange';
const TOKEN_EXCHANGE_GRANT = 'urn:ietf:params:oauth:grant-type:token-exchange';
Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.
A short-lived, scoped, assumed identity was detected - an STS AssumeRole / session token, a cloud managed or workload identity, an impersonated service account, a projected Kubernetes service-account token, or a dynamic-secret broker. Tools authenticate with a narrowly-scoped credential that expires, rather than a long-lived embedded service credential. (25 occurrence(s) shown as evidence).
function k8sServiceAccountTokenProvider(tokenPath = '/var/run/secrets/kubernetes.io/serviceaccount/token', config) {export function k8sServiceAccountTokenProvider(tokenPath = '/var/run/secrets/kubernetes.io/serviceaccount/token', config) {const x509_workload_identity_auth_1 = require("../../internal/auth/x509-workload-identity-auth.js");import { assertX509WebSocketSupported } from "../../internal/auth/x509-workload-identity-auth.mjs";const workload_identity_auth_1 = require("./auth/workload-identity-auth.js");const x509_workload_identity_auth_1 = require("./internal/auth/x509-workload-identity-auth.js");const WORKLOAD_IDENTITY_API_KEY_PLACEHOLDER = 'workload-identity-auth';
import { WorkloadIdentityAuth } from "./auth/workload-identity-auth.mjs";import { X509WorkloadIdentityAuth, assertX509RequestOptions, isX509WorkloadIdentity, snapshotX509RequestOptions, } from "./internal/auth/x509-workload-identity-auth.mjs";const WORKLOAD_IDENTITY_API_KEY_PLACEHOLDER = 'workload-identity-auth';
const x509_workload_identity_auth_1 = require("./x509-workload-identity-auth.js");import { isX509WorkloadIdentity } from "./x509-workload-identity-auth.mjs";const x509_workload_identity_auth_1 = require("../internal/auth/x509-workload-identity-auth.js");import { assertX509WebSocketSupported } from "../internal/auth/x509-workload-identity-auth.mjs";const x509_workload_identity_auth_1 = require("../../internal/auth/x509-workload-identity-auth.js");import { assertX509WebSocketSupported } from "../../internal/auth/x509-workload-identity-auth.mjs";type: 'api_key.created' | 'api_key.updated' | 'api_key.deleted' | 'certificate.created' | 'certificate.updated' | 'certificate.deleted' | 'certificates.activated' | 'certificates.deactivated' | 'checkpoint.permission.created' | 'checkpoint. …
event_types?: Array<'api_key.created' | 'api_key.updated' | 'api_key.deleted' | 'certificate.created' | 'certificate.updated' | 'certificate.deleted' | 'certificates.activated' | 'certificates.deactivated' | 'checkpoint.permission.created' …
export { WorkloadIdentityProviders, type WorkloadIdentityProvider, type WorkloadIdentityProviderDeleted, type WorkloadIdentityProviderCreateParams, type WorkloadIdentityProviderUpdateParams, type WorkloadIdentityProviderListParams, type Wor …var index_4 = require("./workload-identity-providers/index.js");export { WorkloadIdentityProviders, } from "./workload-identity-providers/index.mjs";import * as WorkloadIdentityProvidersAPI from "./workload-identity-providers/workload-identity-providers.js";
import { WorkloadIdentityProvider, WorkloadIdentityProviderCreateParams, WorkloadIdentityProviderDeleted, WorkloadIdentityProviderListParams, WorkloadIdentityProviderUpdateParams, WorkloadIdentityProviders, WorkloadIdentityProvidersPage } f …const WorkloadIdentityProvidersAPI = tslib_1.__importStar(require("./workload-identity-providers/workload-identity-providers.js"));const workload_identity_providers_1 = require("./workload-identity-providers/workload-identity-providers.js");Fix: A scoped, short-lived identity is the smallest-blast-radius execution context. Confirm the assumed role / requested scope grants only the permissions the tool needs, and that the token lifetime is minimal.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in openai.
Maintain openai?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →