UNPKG

@nodesecure/js-x-ray

Version:
22 lines 825 B
import type { ESTree } from "meriyah"; import type { ProbeContext, ProbeMainContext } from "../ProbeRunner.js"; /** * @description Detect serialization of process.env which could indicate environment variable exfiltration * @example * JSON.stringify(process.env) * JSON.stringify(process["env"]) * JSON.stringify(process["env"]) * JSON.stringify(process[`env`]) */ declare function validateNode(node: ESTree.Node, ctx: ProbeContext): [boolean, any?]; declare function main(node: ESTree.Node, ctx: ProbeMainContext): symbol; declare function initialize(ctx: ProbeContext): void; declare const _default: { name: string; validateNode: typeof validateNode; initialize: typeof initialize; main: typeof main; breakOnMatch: boolean; }; export default _default; //# sourceMappingURL=isSerializeEnv.d.ts.map