@node9/policy-engine 2.50.1 → 2.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +797 -53
- package/dist/index.mjs +796 -53
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -674,7 +674,7 @@ declare function inlineExecReason(r: InlineExecReview): string;
|
|
|
674
674
|
* first dangerous finding, or the first unreadable one when none is dangerous.
|
|
675
675
|
* A command with no inline code returns null.
|
|
676
676
|
*/
|
|
677
|
-
declare function inlineExecReview(command: string): InlineExecReview | null;
|
|
677
|
+
declare function inlineExecReview(command: string, jailPaths?: readonly string[]): InlineExecReview | null;
|
|
678
678
|
/**
|
|
679
679
|
* True when `path` is under $HOME (~ or absolute /home/* or /root) AND not in
|
|
680
680
|
* the tool-managed cache allow-list. Used to gate `rm -rf` on home paths.
|
|
@@ -888,6 +888,14 @@ interface PolicyConfig {
|
|
|
888
888
|
/** Where each `checks` value came from (the host's resolution). A pinned,
|
|
889
889
|
* cloud-mandated pack rule follows only a `workspace` value (fw#390). */
|
|
890
890
|
checkSources?: Record<string, 'local' | 'project' | 'workspace'>;
|
|
891
|
+
/**
|
|
892
|
+
* The user's and the organisation's jail paths as given (`/usr`,
|
|
893
|
+
* `~/.gmail-mcp`): the directories whose rules the host injected. The
|
|
894
|
+
* inline-code judge reads them so a jailed directory named as a string
|
|
895
|
+
* inside a script is a read of it (node9Firewall#391). Optional: a caller
|
|
896
|
+
* without a jail builds no list.
|
|
897
|
+
*/
|
|
898
|
+
jailPaths?: string[];
|
|
891
899
|
};
|
|
892
900
|
settings: {
|
|
893
901
|
mode: string;
|
|
@@ -950,6 +958,10 @@ interface PolicyHostHooks {
|
|
|
950
958
|
* holds a `.git` entry. Decides `git -C <dir> add .` (node9Firewall#413).
|
|
951
959
|
* Absent, or no cwd: the stage-all finding stands. */
|
|
952
960
|
isGitWorkTreeTop?: (dir: string, cwd: string) => boolean;
|
|
961
|
+
/** The running daemon's pid from ~/.node9/daemon.pid, or null. A `kill` of
|
|
962
|
+
* that number switches node9 off (commands.node9-disarm). Absent: a numeric
|
|
963
|
+
* kill is never read as the daemon. */
|
|
964
|
+
daemonPid?: () => number | null;
|
|
953
965
|
}
|
|
954
966
|
interface PolicyVerdict {
|
|
955
967
|
decision: 'allow' | 'review' | 'block';
|
|
@@ -1420,6 +1432,10 @@ declare function isRecordOnly(mode: string | undefined): boolean;
|
|
|
1420
1432
|
/** Strict and Block all ask about every inline code call, not only the
|
|
1421
1433
|
* dangerous ones the inline judge finds. */
|
|
1422
1434
|
declare function reviewsEveryInline(mode: string | undefined): boolean;
|
|
1435
|
+
/** Strict and Block all hold a send to an unknown destination while the
|
|
1436
|
+
* daemon is down, since nobody knows what the session read; Standard records
|
|
1437
|
+
* it only (node9Firewall#445 follow-up). */
|
|
1438
|
+
declare function holdsSendsWithoutDaemon(mode: string | undefined): boolean;
|
|
1423
1439
|
/** Block all: ask before any call no check recognised (the catch-all,
|
|
1424
1440
|
* `commands.unknown`) and about a binary of unknown origin. This is what
|
|
1425
1441
|
* `strict` meant before the levels. */
|
|
@@ -2418,7 +2434,7 @@ declare const LONG_OUTPUT_THRESHOLD_BYTES: number;
|
|
|
2418
2434
|
* and fails CI when the hash drifts without a version bump — forgetting
|
|
2419
2435
|
* is loud, not silent.
|
|
2420
2436
|
*/
|
|
2421
|
-
declare const CANONICAL_EXTRACTOR_VERSION = "canonical-
|
|
2437
|
+
declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v38";
|
|
2422
2438
|
/**
|
|
2423
2439
|
* SHA-256 prefix of the detector-source files
|
|
2424
2440
|
* (canonical.ts + pii.ts + destructive-regex.ts).
|
|
@@ -2429,7 +2445,7 @@ declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v36";
|
|
|
2429
2445
|
* files changed, this hash must change too, and you must consciously
|
|
2430
2446
|
* decide whether to bump CANONICAL_EXTRACTOR_VERSION."
|
|
2431
2447
|
*/
|
|
2432
|
-
declare const CANONICAL_EXTRACTOR_HASH = "
|
|
2448
|
+
declare const CANONICAL_EXTRACTOR_HASH = "2d3dfcccff2c2f65";
|
|
2433
2449
|
declare function extractCanonicalFindings(call: ToolCallEntry, ctx: ExtractContext): CanonicalFinding[];
|
|
2434
2450
|
declare function extractSessionLevelFindings(calls: ReadonlyArray<SessionToolCall>, ctx: SessionExtractContext): CanonicalFinding[];
|
|
2435
2451
|
/**
|
|
@@ -2541,5 +2557,5 @@ declare function scanArgumentSecrets(args: unknown): DlpMatch | null;
|
|
|
2541
2557
|
/** Engine version stamped on audit entries for future drift detection. */
|
|
2542
2558
|
declare const ENGINE_VERSION = "1.4.0";
|
|
2543
2559
|
|
|
2544
|
-
export { ACTION_CHECKS, ACTION_TEMPLATES, AGENT_INSTRUCTION_DIRS, AGENT_INSTRUCTION_FILES, APP_SERVER_GLOB, APP_SHIELD_NAMES, APP_SHIELD_SPECS, ARGUMENT_SCAN_LIMITS, ASI, ASI_IDS, AST_FS_REGEX_RULES, BASH_TOOL_NAMES, BUILTIN_DANGEROUS_WORDS, BUILTIN_SHIELDS, CANARY_MIN_LENGTH, CANONICAL_EXTRACTOR_HASH, CANONICAL_EXTRACTOR_VERSION, CHECKS, CHECK_BY_ID, CHECK_GROUPS, CHECK_TEXT, CHECK_VERDICT_RANK, COMMAND_WRAPPERS, CONFIGURABLE_CHECK_IDS, COPY_VERBS, COST_PER_LOOP_ITER_USD, DEFAULT_EGRESS_ALLOWLIST, DESTINATION_ARGS, DESTRUCTIVE_OP_RE, DLP_PATTERNS, DLP_SCAN_LIMITS, ENGINE_VERSION, FILE_TOOLS, FLAGS_WITH_VALUES, FS_READ_TOOLS, GENERAL_ACTION_RULES, KNOB_GOVERNED, LEVELS, LONG_OUTPUT_THRESHOLD_BYTES, LOOP_MAX_RECORDS, LOOP_THRESHOLD_FOR_WASTE, MAP_GOVERNED, MAX_BLAST_PATH, MAX_DESTINATIONS, MODE_VALUES, NET_BINARIES, PATTERN_VERB_NAMES, POSTURE_CATEGORY_OWASP, PRIVILEGE_ESCALATION_RE, REALTIME_PII_PATTERNS, REPLACED_SHIELDS, SCAN_REPO_RULES_WITHOUT_RISK, SCAN_SIGNAL_WEIGHTS, SENSITIVE_PATH_RE, SENSITIVE_PATH_REGEXES, SSRF_MAX_HOST, STARTUP_NAMES, SYSTEM_AUTH_DIRS, SYSTEM_AUTH_FILES, TUNING_FIELDS, VERDICTS, agentFileKind, analyzeFsOperation, analyzeGit, analyzeOutbound, analyzePipeChain, analyzeShellCommand, argumentLeavesText, catalogSettingsFromConfig, checkDangerousSql, checkIdForCheckedBy, checkIdForRule, checkToLegacyPolicy, checkValue, checksFromLegacyPolicy, classifyAuditEntry, classifyRuleSeverity, classifyScanSignal, classifyShellExposure, classifySsrf, collectFileAccesses, computeAgentDeviceScore, computeArgsHash, computeBlendedSecurityScore, computeScanScore, computeSecurityScore, configurableValues, decodeEmbeddedBase64, decodeEmbeddedHex, dedupeCanonicalFindings, derivedWrites, destinationDomain, destinationKind, destinationValue, detectArgsPii, detectDangerousEval, detectDangerousShellExec, detectInlineExec, detectPii, entryDisplay, evaluateEgress, evaluateLoopWindow, evaluatePolicy, evaluateProtectedFileAccess, evaluateSmartConditions, extractAllSshHosts, extractArgDestinations, extractCanonicalFindings, extractContentDestinations, extractNetworkTargets, extractPackageInstalls, extractPositionalArgs, extractRegistryOverrides, extractSessionLevelFindings, extractShellDestTokens, extractShellDestinations, extractToolDestinations, fileAccessView, fileOperandFlagsOf, fileToolOperation, foldHomoglyphs, getCheck, getCompiledRegex, getNestedValue, gitInvocations, gitRepoPath, hashDestination, hostMatches, incompleteFileVerdict, inlineExecDescription, inlineExecReason, inlineExecReview, inspectArgumentSecrets, inspectionEntry, inspectionLayers, isAgentInstructionPath, isAsiId, isBashTool, isBlockAll, isDestructiveToolName, isHashedEntry, isIgnoredTool, isInside, isKnobGoverned, isLegacySystemPath, isLockedCheck, isLoopbackHost, isMaskedKind, isModeValue, isPasswordHashPath, isPrivateHost, isProtectedHomePath, isPublicRegistryHost, isRecordOnly, isShellShapedTool, isShieldVerdict, isStrictGatedTier, isVerdict, knobStatedChecks, levelCheckValue, levelChecks, levelOf, levelPackageSignals, maskDestination, maskPersonalData, maskPersonalValue, matchCanary, matchCanaryArgs, matchSensitivePath, matchesPattern, matchesTrustedEntry, matchesTrustedList, mcpServerFromToolName, narrativeRuleLabel, normalizeCommandForPolicy, normalizeDestination, normalizeFilePath, normalizeForScan, normalizeIpLiteral, normalizePyPiName, normalizeRecipient, normalizeTrustedEntry, packRowOwasp, parseAllSshHostsFromCommand, parseDestHost, patternShapeOf, pipelineTexts, positionedArgs, postureCategoryOwasp, previewArgs, redactText, registryHost, resolveAllChecks, resolveCheck, resolveCheckMap, resolvePinned, resolveShellInput, reviewsEveryInline, ruleServerMatches, safeMessage, sampleCopyCommand, scanArgs, scanArgumentSecrets, scanInjection, scanInstructionWrite, scanRepoRuleOwasp, scanText, scanViews, sensitivePathMatch, shellRuleArgs, shellScriptOperands, ssrfCheckId, ssrfDestinationFloor, ssrfExemptMatches, ssrfFloor, ssrfReason, stripControlChars, stripInvisible, stripTerminalEscapes, suggestFromApprovals, summarizeBlast, summarizeScan, toScanFinding, toolMatchesRule, truncateBlastPath, trustedEntryOf, tuningFromLegacyPolicy, tuningToLegacyPolicy, unwrapCommandHead, unwrapRuleLabel, validateOverrides, validateRegex, validateShieldDefinition };
|
|
2560
|
+
export { ACTION_CHECKS, ACTION_TEMPLATES, AGENT_INSTRUCTION_DIRS, AGENT_INSTRUCTION_FILES, APP_SERVER_GLOB, APP_SHIELD_NAMES, APP_SHIELD_SPECS, ARGUMENT_SCAN_LIMITS, ASI, ASI_IDS, AST_FS_REGEX_RULES, BASH_TOOL_NAMES, BUILTIN_DANGEROUS_WORDS, BUILTIN_SHIELDS, CANARY_MIN_LENGTH, CANONICAL_EXTRACTOR_HASH, CANONICAL_EXTRACTOR_VERSION, CHECKS, CHECK_BY_ID, CHECK_GROUPS, CHECK_TEXT, CHECK_VERDICT_RANK, COMMAND_WRAPPERS, CONFIGURABLE_CHECK_IDS, COPY_VERBS, COST_PER_LOOP_ITER_USD, DEFAULT_EGRESS_ALLOWLIST, DESTINATION_ARGS, DESTRUCTIVE_OP_RE, DLP_PATTERNS, DLP_SCAN_LIMITS, ENGINE_VERSION, FILE_TOOLS, FLAGS_WITH_VALUES, FS_READ_TOOLS, GENERAL_ACTION_RULES, KNOB_GOVERNED, LEVELS, LONG_OUTPUT_THRESHOLD_BYTES, LOOP_MAX_RECORDS, LOOP_THRESHOLD_FOR_WASTE, MAP_GOVERNED, MAX_BLAST_PATH, MAX_DESTINATIONS, MODE_VALUES, NET_BINARIES, PATTERN_VERB_NAMES, POSTURE_CATEGORY_OWASP, PRIVILEGE_ESCALATION_RE, REALTIME_PII_PATTERNS, REPLACED_SHIELDS, SCAN_REPO_RULES_WITHOUT_RISK, SCAN_SIGNAL_WEIGHTS, SENSITIVE_PATH_RE, SENSITIVE_PATH_REGEXES, SSRF_MAX_HOST, STARTUP_NAMES, SYSTEM_AUTH_DIRS, SYSTEM_AUTH_FILES, TUNING_FIELDS, VERDICTS, agentFileKind, analyzeFsOperation, analyzeGit, analyzeOutbound, analyzePipeChain, analyzeShellCommand, argumentLeavesText, catalogSettingsFromConfig, checkDangerousSql, checkIdForCheckedBy, checkIdForRule, checkToLegacyPolicy, checkValue, checksFromLegacyPolicy, classifyAuditEntry, classifyRuleSeverity, classifyScanSignal, classifyShellExposure, classifySsrf, collectFileAccesses, computeAgentDeviceScore, computeArgsHash, computeBlendedSecurityScore, computeScanScore, computeSecurityScore, configurableValues, decodeEmbeddedBase64, decodeEmbeddedHex, dedupeCanonicalFindings, derivedWrites, destinationDomain, destinationKind, destinationValue, detectArgsPii, detectDangerousEval, detectDangerousShellExec, detectInlineExec, detectPii, entryDisplay, evaluateEgress, evaluateLoopWindow, evaluatePolicy, evaluateProtectedFileAccess, evaluateSmartConditions, extractAllSshHosts, extractArgDestinations, extractCanonicalFindings, extractContentDestinations, extractNetworkTargets, extractPackageInstalls, extractPositionalArgs, extractRegistryOverrides, extractSessionLevelFindings, extractShellDestTokens, extractShellDestinations, extractToolDestinations, fileAccessView, fileOperandFlagsOf, fileToolOperation, foldHomoglyphs, getCheck, getCompiledRegex, getNestedValue, gitInvocations, gitRepoPath, hashDestination, holdsSendsWithoutDaemon, hostMatches, incompleteFileVerdict, inlineExecDescription, inlineExecReason, inlineExecReview, inspectArgumentSecrets, inspectionEntry, inspectionLayers, isAgentInstructionPath, isAsiId, isBashTool, isBlockAll, isDestructiveToolName, isHashedEntry, isIgnoredTool, isInside, isKnobGoverned, isLegacySystemPath, isLockedCheck, isLoopbackHost, isMaskedKind, isModeValue, isPasswordHashPath, isPrivateHost, isProtectedHomePath, isPublicRegistryHost, isRecordOnly, isShellShapedTool, isShieldVerdict, isStrictGatedTier, isVerdict, knobStatedChecks, levelCheckValue, levelChecks, levelOf, levelPackageSignals, maskDestination, maskPersonalData, maskPersonalValue, matchCanary, matchCanaryArgs, matchSensitivePath, matchesPattern, matchesTrustedEntry, matchesTrustedList, mcpServerFromToolName, narrativeRuleLabel, normalizeCommandForPolicy, normalizeDestination, normalizeFilePath, normalizeForScan, normalizeIpLiteral, normalizePyPiName, normalizeRecipient, normalizeTrustedEntry, packRowOwasp, parseAllSshHostsFromCommand, parseDestHost, patternShapeOf, pipelineTexts, positionedArgs, postureCategoryOwasp, previewArgs, redactText, registryHost, resolveAllChecks, resolveCheck, resolveCheckMap, resolvePinned, resolveShellInput, reviewsEveryInline, ruleServerMatches, safeMessage, sampleCopyCommand, scanArgs, scanArgumentSecrets, scanInjection, scanInstructionWrite, scanRepoRuleOwasp, scanText, scanViews, sensitivePathMatch, shellRuleArgs, shellScriptOperands, ssrfCheckId, ssrfDestinationFloor, ssrfExemptMatches, ssrfFloor, ssrfReason, stripControlChars, stripInvisible, stripTerminalEscapes, suggestFromApprovals, summarizeBlast, summarizeScan, toScanFinding, toolMatchesRule, truncateBlastPath, trustedEntryOf, tuningFromLegacyPolicy, tuningToLegacyPolicy, unwrapCommandHead, unwrapRuleLabel, validateOverrides, validateRegex, validateShieldDefinition };
|
|
2545
2561
|
export type { ActionTemplateName, AgentFileKind, ApprovalRow, ArgumentInspectionResult, AsiId, AuditEntryForClassify, BlastEnvFinding, BlastFinding, BlastResult, BlastSummary, CanaryHit, CanaryValue, CanaryView, CanonicalAgent, CanonicalFinding, CanonicalFindingType, CanonicalSourceType, CatalogSettings, CheckDef, CheckGroup, CheckSource, CheckText, DerivedWrite, Destination, DestinationKind, DlpMatch, EgressPolicy, EgressVerdict, ExtractContext, FileAccess, FileAccessContext, FsOpVerdict, GitAnalysis, GitFinding, GitInvocation, InjectionConfidence, InjectionContext, InjectionMatch, InlineExecReview, InspectionInput, InspectionLayers, LegacyPolicyKnobs, Level, LoopWindowEvaluation, ModeValue, OutboundAnalysis, OutboundCheckId, OutboundFinding, PackageEcosystem, PackageInstallRequest, PiiPattern, PipeChainAnalysis, PolicyConfig, PolicyContext, PolicyHostHooks, PolicyVerdict, PositionedArg, ProtectedFileVerdict, ProvenanceLookup, ProvenanceTrust, RegistryOverride, ResolvedCheck, RiskMetadata, ScanFinding, ScanSignals, ScanSummary, ScanView, ScoreTier, SessionExtractContext, SessionToolCall, Severity, ShellCommandAnalysis, ShellDestToken, ShellDestination, ShellExposure, ShellInputResolution, ShieldDefinition, ShieldOverrides, ShieldVerdict, SmartCondition, SmartRule, SsrfFloorOptions, SsrfMatch, SsrfTier, SsrfVerdict, SuggestOptions, Suggestion, ToolCallEntry, ToolCallRecord, ToolInspection, ToolInspectionEntry, TuningField, Verdict };
|
package/dist/index.d.ts
CHANGED
|
@@ -674,7 +674,7 @@ declare function inlineExecReason(r: InlineExecReview): string;
|
|
|
674
674
|
* first dangerous finding, or the first unreadable one when none is dangerous.
|
|
675
675
|
* A command with no inline code returns null.
|
|
676
676
|
*/
|
|
677
|
-
declare function inlineExecReview(command: string): InlineExecReview | null;
|
|
677
|
+
declare function inlineExecReview(command: string, jailPaths?: readonly string[]): InlineExecReview | null;
|
|
678
678
|
/**
|
|
679
679
|
* True when `path` is under $HOME (~ or absolute /home/* or /root) AND not in
|
|
680
680
|
* the tool-managed cache allow-list. Used to gate `rm -rf` on home paths.
|
|
@@ -888,6 +888,14 @@ interface PolicyConfig {
|
|
|
888
888
|
/** Where each `checks` value came from (the host's resolution). A pinned,
|
|
889
889
|
* cloud-mandated pack rule follows only a `workspace` value (fw#390). */
|
|
890
890
|
checkSources?: Record<string, 'local' | 'project' | 'workspace'>;
|
|
891
|
+
/**
|
|
892
|
+
* The user's and the organisation's jail paths as given (`/usr`,
|
|
893
|
+
* `~/.gmail-mcp`): the directories whose rules the host injected. The
|
|
894
|
+
* inline-code judge reads them so a jailed directory named as a string
|
|
895
|
+
* inside a script is a read of it (node9Firewall#391). Optional: a caller
|
|
896
|
+
* without a jail builds no list.
|
|
897
|
+
*/
|
|
898
|
+
jailPaths?: string[];
|
|
891
899
|
};
|
|
892
900
|
settings: {
|
|
893
901
|
mode: string;
|
|
@@ -950,6 +958,10 @@ interface PolicyHostHooks {
|
|
|
950
958
|
* holds a `.git` entry. Decides `git -C <dir> add .` (node9Firewall#413).
|
|
951
959
|
* Absent, or no cwd: the stage-all finding stands. */
|
|
952
960
|
isGitWorkTreeTop?: (dir: string, cwd: string) => boolean;
|
|
961
|
+
/** The running daemon's pid from ~/.node9/daemon.pid, or null. A `kill` of
|
|
962
|
+
* that number switches node9 off (commands.node9-disarm). Absent: a numeric
|
|
963
|
+
* kill is never read as the daemon. */
|
|
964
|
+
daemonPid?: () => number | null;
|
|
953
965
|
}
|
|
954
966
|
interface PolicyVerdict {
|
|
955
967
|
decision: 'allow' | 'review' | 'block';
|
|
@@ -1420,6 +1432,10 @@ declare function isRecordOnly(mode: string | undefined): boolean;
|
|
|
1420
1432
|
/** Strict and Block all ask about every inline code call, not only the
|
|
1421
1433
|
* dangerous ones the inline judge finds. */
|
|
1422
1434
|
declare function reviewsEveryInline(mode: string | undefined): boolean;
|
|
1435
|
+
/** Strict and Block all hold a send to an unknown destination while the
|
|
1436
|
+
* daemon is down, since nobody knows what the session read; Standard records
|
|
1437
|
+
* it only (node9Firewall#445 follow-up). */
|
|
1438
|
+
declare function holdsSendsWithoutDaemon(mode: string | undefined): boolean;
|
|
1423
1439
|
/** Block all: ask before any call no check recognised (the catch-all,
|
|
1424
1440
|
* `commands.unknown`) and about a binary of unknown origin. This is what
|
|
1425
1441
|
* `strict` meant before the levels. */
|
|
@@ -2418,7 +2434,7 @@ declare const LONG_OUTPUT_THRESHOLD_BYTES: number;
|
|
|
2418
2434
|
* and fails CI when the hash drifts without a version bump — forgetting
|
|
2419
2435
|
* is loud, not silent.
|
|
2420
2436
|
*/
|
|
2421
|
-
declare const CANONICAL_EXTRACTOR_VERSION = "canonical-
|
|
2437
|
+
declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v38";
|
|
2422
2438
|
/**
|
|
2423
2439
|
* SHA-256 prefix of the detector-source files
|
|
2424
2440
|
* (canonical.ts + pii.ts + destructive-regex.ts).
|
|
@@ -2429,7 +2445,7 @@ declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v36";
|
|
|
2429
2445
|
* files changed, this hash must change too, and you must consciously
|
|
2430
2446
|
* decide whether to bump CANONICAL_EXTRACTOR_VERSION."
|
|
2431
2447
|
*/
|
|
2432
|
-
declare const CANONICAL_EXTRACTOR_HASH = "
|
|
2448
|
+
declare const CANONICAL_EXTRACTOR_HASH = "2d3dfcccff2c2f65";
|
|
2433
2449
|
declare function extractCanonicalFindings(call: ToolCallEntry, ctx: ExtractContext): CanonicalFinding[];
|
|
2434
2450
|
declare function extractSessionLevelFindings(calls: ReadonlyArray<SessionToolCall>, ctx: SessionExtractContext): CanonicalFinding[];
|
|
2435
2451
|
/**
|
|
@@ -2541,5 +2557,5 @@ declare function scanArgumentSecrets(args: unknown): DlpMatch | null;
|
|
|
2541
2557
|
/** Engine version stamped on audit entries for future drift detection. */
|
|
2542
2558
|
declare const ENGINE_VERSION = "1.4.0";
|
|
2543
2559
|
|
|
2544
|
-
export { ACTION_CHECKS, ACTION_TEMPLATES, AGENT_INSTRUCTION_DIRS, AGENT_INSTRUCTION_FILES, APP_SERVER_GLOB, APP_SHIELD_NAMES, APP_SHIELD_SPECS, ARGUMENT_SCAN_LIMITS, ASI, ASI_IDS, AST_FS_REGEX_RULES, BASH_TOOL_NAMES, BUILTIN_DANGEROUS_WORDS, BUILTIN_SHIELDS, CANARY_MIN_LENGTH, CANONICAL_EXTRACTOR_HASH, CANONICAL_EXTRACTOR_VERSION, CHECKS, CHECK_BY_ID, CHECK_GROUPS, CHECK_TEXT, CHECK_VERDICT_RANK, COMMAND_WRAPPERS, CONFIGURABLE_CHECK_IDS, COPY_VERBS, COST_PER_LOOP_ITER_USD, DEFAULT_EGRESS_ALLOWLIST, DESTINATION_ARGS, DESTRUCTIVE_OP_RE, DLP_PATTERNS, DLP_SCAN_LIMITS, ENGINE_VERSION, FILE_TOOLS, FLAGS_WITH_VALUES, FS_READ_TOOLS, GENERAL_ACTION_RULES, KNOB_GOVERNED, LEVELS, LONG_OUTPUT_THRESHOLD_BYTES, LOOP_MAX_RECORDS, LOOP_THRESHOLD_FOR_WASTE, MAP_GOVERNED, MAX_BLAST_PATH, MAX_DESTINATIONS, MODE_VALUES, NET_BINARIES, PATTERN_VERB_NAMES, POSTURE_CATEGORY_OWASP, PRIVILEGE_ESCALATION_RE, REALTIME_PII_PATTERNS, REPLACED_SHIELDS, SCAN_REPO_RULES_WITHOUT_RISK, SCAN_SIGNAL_WEIGHTS, SENSITIVE_PATH_RE, SENSITIVE_PATH_REGEXES, SSRF_MAX_HOST, STARTUP_NAMES, SYSTEM_AUTH_DIRS, SYSTEM_AUTH_FILES, TUNING_FIELDS, VERDICTS, agentFileKind, analyzeFsOperation, analyzeGit, analyzeOutbound, analyzePipeChain, analyzeShellCommand, argumentLeavesText, catalogSettingsFromConfig, checkDangerousSql, checkIdForCheckedBy, checkIdForRule, checkToLegacyPolicy, checkValue, checksFromLegacyPolicy, classifyAuditEntry, classifyRuleSeverity, classifyScanSignal, classifyShellExposure, classifySsrf, collectFileAccesses, computeAgentDeviceScore, computeArgsHash, computeBlendedSecurityScore, computeScanScore, computeSecurityScore, configurableValues, decodeEmbeddedBase64, decodeEmbeddedHex, dedupeCanonicalFindings, derivedWrites, destinationDomain, destinationKind, destinationValue, detectArgsPii, detectDangerousEval, detectDangerousShellExec, detectInlineExec, detectPii, entryDisplay, evaluateEgress, evaluateLoopWindow, evaluatePolicy, evaluateProtectedFileAccess, evaluateSmartConditions, extractAllSshHosts, extractArgDestinations, extractCanonicalFindings, extractContentDestinations, extractNetworkTargets, extractPackageInstalls, extractPositionalArgs, extractRegistryOverrides, extractSessionLevelFindings, extractShellDestTokens, extractShellDestinations, extractToolDestinations, fileAccessView, fileOperandFlagsOf, fileToolOperation, foldHomoglyphs, getCheck, getCompiledRegex, getNestedValue, gitInvocations, gitRepoPath, hashDestination, hostMatches, incompleteFileVerdict, inlineExecDescription, inlineExecReason, inlineExecReview, inspectArgumentSecrets, inspectionEntry, inspectionLayers, isAgentInstructionPath, isAsiId, isBashTool, isBlockAll, isDestructiveToolName, isHashedEntry, isIgnoredTool, isInside, isKnobGoverned, isLegacySystemPath, isLockedCheck, isLoopbackHost, isMaskedKind, isModeValue, isPasswordHashPath, isPrivateHost, isProtectedHomePath, isPublicRegistryHost, isRecordOnly, isShellShapedTool, isShieldVerdict, isStrictGatedTier, isVerdict, knobStatedChecks, levelCheckValue, levelChecks, levelOf, levelPackageSignals, maskDestination, maskPersonalData, maskPersonalValue, matchCanary, matchCanaryArgs, matchSensitivePath, matchesPattern, matchesTrustedEntry, matchesTrustedList, mcpServerFromToolName, narrativeRuleLabel, normalizeCommandForPolicy, normalizeDestination, normalizeFilePath, normalizeForScan, normalizeIpLiteral, normalizePyPiName, normalizeRecipient, normalizeTrustedEntry, packRowOwasp, parseAllSshHostsFromCommand, parseDestHost, patternShapeOf, pipelineTexts, positionedArgs, postureCategoryOwasp, previewArgs, redactText, registryHost, resolveAllChecks, resolveCheck, resolveCheckMap, resolvePinned, resolveShellInput, reviewsEveryInline, ruleServerMatches, safeMessage, sampleCopyCommand, scanArgs, scanArgumentSecrets, scanInjection, scanInstructionWrite, scanRepoRuleOwasp, scanText, scanViews, sensitivePathMatch, shellRuleArgs, shellScriptOperands, ssrfCheckId, ssrfDestinationFloor, ssrfExemptMatches, ssrfFloor, ssrfReason, stripControlChars, stripInvisible, stripTerminalEscapes, suggestFromApprovals, summarizeBlast, summarizeScan, toScanFinding, toolMatchesRule, truncateBlastPath, trustedEntryOf, tuningFromLegacyPolicy, tuningToLegacyPolicy, unwrapCommandHead, unwrapRuleLabel, validateOverrides, validateRegex, validateShieldDefinition };
|
|
2560
|
+
export { ACTION_CHECKS, ACTION_TEMPLATES, AGENT_INSTRUCTION_DIRS, AGENT_INSTRUCTION_FILES, APP_SERVER_GLOB, APP_SHIELD_NAMES, APP_SHIELD_SPECS, ARGUMENT_SCAN_LIMITS, ASI, ASI_IDS, AST_FS_REGEX_RULES, BASH_TOOL_NAMES, BUILTIN_DANGEROUS_WORDS, BUILTIN_SHIELDS, CANARY_MIN_LENGTH, CANONICAL_EXTRACTOR_HASH, CANONICAL_EXTRACTOR_VERSION, CHECKS, CHECK_BY_ID, CHECK_GROUPS, CHECK_TEXT, CHECK_VERDICT_RANK, COMMAND_WRAPPERS, CONFIGURABLE_CHECK_IDS, COPY_VERBS, COST_PER_LOOP_ITER_USD, DEFAULT_EGRESS_ALLOWLIST, DESTINATION_ARGS, DESTRUCTIVE_OP_RE, DLP_PATTERNS, DLP_SCAN_LIMITS, ENGINE_VERSION, FILE_TOOLS, FLAGS_WITH_VALUES, FS_READ_TOOLS, GENERAL_ACTION_RULES, KNOB_GOVERNED, LEVELS, LONG_OUTPUT_THRESHOLD_BYTES, LOOP_MAX_RECORDS, LOOP_THRESHOLD_FOR_WASTE, MAP_GOVERNED, MAX_BLAST_PATH, MAX_DESTINATIONS, MODE_VALUES, NET_BINARIES, PATTERN_VERB_NAMES, POSTURE_CATEGORY_OWASP, PRIVILEGE_ESCALATION_RE, REALTIME_PII_PATTERNS, REPLACED_SHIELDS, SCAN_REPO_RULES_WITHOUT_RISK, SCAN_SIGNAL_WEIGHTS, SENSITIVE_PATH_RE, SENSITIVE_PATH_REGEXES, SSRF_MAX_HOST, STARTUP_NAMES, SYSTEM_AUTH_DIRS, SYSTEM_AUTH_FILES, TUNING_FIELDS, VERDICTS, agentFileKind, analyzeFsOperation, analyzeGit, analyzeOutbound, analyzePipeChain, analyzeShellCommand, argumentLeavesText, catalogSettingsFromConfig, checkDangerousSql, checkIdForCheckedBy, checkIdForRule, checkToLegacyPolicy, checkValue, checksFromLegacyPolicy, classifyAuditEntry, classifyRuleSeverity, classifyScanSignal, classifyShellExposure, classifySsrf, collectFileAccesses, computeAgentDeviceScore, computeArgsHash, computeBlendedSecurityScore, computeScanScore, computeSecurityScore, configurableValues, decodeEmbeddedBase64, decodeEmbeddedHex, dedupeCanonicalFindings, derivedWrites, destinationDomain, destinationKind, destinationValue, detectArgsPii, detectDangerousEval, detectDangerousShellExec, detectInlineExec, detectPii, entryDisplay, evaluateEgress, evaluateLoopWindow, evaluatePolicy, evaluateProtectedFileAccess, evaluateSmartConditions, extractAllSshHosts, extractArgDestinations, extractCanonicalFindings, extractContentDestinations, extractNetworkTargets, extractPackageInstalls, extractPositionalArgs, extractRegistryOverrides, extractSessionLevelFindings, extractShellDestTokens, extractShellDestinations, extractToolDestinations, fileAccessView, fileOperandFlagsOf, fileToolOperation, foldHomoglyphs, getCheck, getCompiledRegex, getNestedValue, gitInvocations, gitRepoPath, hashDestination, holdsSendsWithoutDaemon, hostMatches, incompleteFileVerdict, inlineExecDescription, inlineExecReason, inlineExecReview, inspectArgumentSecrets, inspectionEntry, inspectionLayers, isAgentInstructionPath, isAsiId, isBashTool, isBlockAll, isDestructiveToolName, isHashedEntry, isIgnoredTool, isInside, isKnobGoverned, isLegacySystemPath, isLockedCheck, isLoopbackHost, isMaskedKind, isModeValue, isPasswordHashPath, isPrivateHost, isProtectedHomePath, isPublicRegistryHost, isRecordOnly, isShellShapedTool, isShieldVerdict, isStrictGatedTier, isVerdict, knobStatedChecks, levelCheckValue, levelChecks, levelOf, levelPackageSignals, maskDestination, maskPersonalData, maskPersonalValue, matchCanary, matchCanaryArgs, matchSensitivePath, matchesPattern, matchesTrustedEntry, matchesTrustedList, mcpServerFromToolName, narrativeRuleLabel, normalizeCommandForPolicy, normalizeDestination, normalizeFilePath, normalizeForScan, normalizeIpLiteral, normalizePyPiName, normalizeRecipient, normalizeTrustedEntry, packRowOwasp, parseAllSshHostsFromCommand, parseDestHost, patternShapeOf, pipelineTexts, positionedArgs, postureCategoryOwasp, previewArgs, redactText, registryHost, resolveAllChecks, resolveCheck, resolveCheckMap, resolvePinned, resolveShellInput, reviewsEveryInline, ruleServerMatches, safeMessage, sampleCopyCommand, scanArgs, scanArgumentSecrets, scanInjection, scanInstructionWrite, scanRepoRuleOwasp, scanText, scanViews, sensitivePathMatch, shellRuleArgs, shellScriptOperands, ssrfCheckId, ssrfDestinationFloor, ssrfExemptMatches, ssrfFloor, ssrfReason, stripControlChars, stripInvisible, stripTerminalEscapes, suggestFromApprovals, summarizeBlast, summarizeScan, toScanFinding, toolMatchesRule, truncateBlastPath, trustedEntryOf, tuningFromLegacyPolicy, tuningToLegacyPolicy, unwrapCommandHead, unwrapRuleLabel, validateOverrides, validateRegex, validateShieldDefinition };
|
|
2545
2561
|
export type { ActionTemplateName, AgentFileKind, ApprovalRow, ArgumentInspectionResult, AsiId, AuditEntryForClassify, BlastEnvFinding, BlastFinding, BlastResult, BlastSummary, CanaryHit, CanaryValue, CanaryView, CanonicalAgent, CanonicalFinding, CanonicalFindingType, CanonicalSourceType, CatalogSettings, CheckDef, CheckGroup, CheckSource, CheckText, DerivedWrite, Destination, DestinationKind, DlpMatch, EgressPolicy, EgressVerdict, ExtractContext, FileAccess, FileAccessContext, FsOpVerdict, GitAnalysis, GitFinding, GitInvocation, InjectionConfidence, InjectionContext, InjectionMatch, InlineExecReview, InspectionInput, InspectionLayers, LegacyPolicyKnobs, Level, LoopWindowEvaluation, ModeValue, OutboundAnalysis, OutboundCheckId, OutboundFinding, PackageEcosystem, PackageInstallRequest, PiiPattern, PipeChainAnalysis, PolicyConfig, PolicyContext, PolicyHostHooks, PolicyVerdict, PositionedArg, ProtectedFileVerdict, ProvenanceLookup, ProvenanceTrust, RegistryOverride, ResolvedCheck, RiskMetadata, ScanFinding, ScanSignals, ScanSummary, ScanView, ScoreTier, SessionExtractContext, SessionToolCall, Severity, ShellCommandAnalysis, ShellDestToken, ShellDestination, ShellExposure, ShellInputResolution, ShieldDefinition, ShieldOverrides, ShieldVerdict, SmartCondition, SmartRule, SsrfFloorOptions, SsrfMatch, SsrfTier, SsrfVerdict, SuggestOptions, Suggestion, ToolCallEntry, ToolCallRecord, ToolInspection, ToolInspectionEntry, TuningField, Verdict };
|