@webdecoy/node 0.25.2 → 0.26.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/README.md CHANGED
@@ -103,6 +103,33 @@ credential is sent. A presentation request is made only when the candidate is
103
103
  an exact local match for the inert token. Retrieval alone remains an ordinary
104
104
  decoy event, and this API never blocks or grants access.
105
105
 
106
+ ### Correlate an offensive model toolchain
107
+
108
+ Instrument an authorized model/MCP gateway with the reviewed helper. It maps
109
+ known tool names into generic families and sends only bounded counts and
110
+ digests. Raw prompts, arguments, results, targets, credentials, and run IDs are
111
+ not included. Use a deployment-held random secret of at least 32 characters for
112
+ `correlationSecret`; do not reuse an API key.
113
+
114
+ ```ts
115
+ const result = await wd.reportOffensiveToolchain({
116
+ sensor: 'mcp-gateway',
117
+ runId: internalRunId,
118
+ correlationSecret: process.env.WEBDECOY_CORRELATION_SECRET!,
119
+ invocations: [
120
+ { tool: 'nmap_scan', redactedArgumentCount: 2 },
121
+ { tool: 'nuclei_scan', redactedArgumentCount: 1 },
122
+ ],
123
+ });
124
+ ```
125
+
126
+ One tool family is retained for coverage but does not create a correlation.
127
+ Two or more reviewed families can create a generic toolchain association. Set
128
+ `orchestrator: 'hexstrike_ai'` only inside an integration that has independently
129
+ verified the official `hexstrike-ai-mcp` orchestrator; common Nmap or Nuclei use
130
+ alone never becomes HexStrike attribution. This API records evidence and never
131
+ blocks or grants access.
132
+
106
133
  ### Monitor first
107
134
 
108
135
  `protect()` only returns a decision. It never writes a response, so nothing is blocked until your code acts on `decision.allowed`. The framework adapters and `createFetchGuard()` follow the same rule: they start in **monitor mode** (`mode: 'monitor'`), record the decision and serve every request. Set `mode: 'enforce'` only after you have reviewed what would have been blocked.
@@ -237,7 +264,8 @@ const wd = new WebDecoy({
237
264
  apiKey: process.env.WEBDECOY_API_KEY, // optional; without it, local rules only
238
265
  rules: [tripwire()], // optional; default [tripwire()], [] to opt out
239
266
  apiUrl: 'https://in.webdecoy.com', // optional (default shown)
240
- threatScoreThreshold: 80, // optional, 0-100 (default 80)
267
+ decisionMode: 'legacy', // use 'unified_v1' to opt in
268
+ threatScoreThreshold: 80, // optional minimum confidence, default 80 in legacy mode
241
269
  timeout: 5000, // optional, ms (default 5000)
242
270
  enableTLSFingerprinting: true, // optional (default true)
243
271
  tlsRejectUnauthorized: true, // optional (default true)
@@ -250,6 +278,14 @@ Also accepted: `characteristics` (what identifies the same caller for rate limit
250
278
 
251
279
  `protect()` also takes per-request options: `threshold`, `skipLocalAnalysis` and `metadata`.
252
280
 
281
+ ### Unified cloud decisions
282
+
283
+ Set `decisionMode: 'unified_v1'` on `WebDecoy`, `createFetchGuard()`, or the Express, Fastify, Hono, and Next.js adapters. Adapter monitor mode exposes the verdict on `webdecoyDecision` while serving the request. `decision.detection.unified_score` is the score at request time. Later enrichment can update the detection in the dashboard.
284
+
285
+ Ingest applies its own confidence gates. An explicit `threshold`, `threatScoreThreshold`, or Next.js Pages `blockThreshold` can add a minimum confidence. Cloud-eligible requests each get their own unified verdict, including repeats from the same caller. During a cloud outage or an invalid response, the request proceeds with an `ERROR` decision.
286
+
287
+ Local rules decide first. The cloud gate forwards requests with a local bot signal, TLS material, or an explicit `skipLocalAnalysis` bypass. A datacenter IP or a missing Sec-CH-UA alone stays local. With `tracer` configured, count `webdecoy.cloud.admission` by `webdecoy.cloud.decision_mode`. The `local_gate` outcome includes two booleans for the datacenter and missing Sec-CH-UA observations. `cloud` records requests handed to the client and `backoff` records calls skipped during an outage. These attributes contain only bounded outcomes and booleans.
288
+
253
289
  Without an API key no request leaves your server. With one, a request goes to WebDecoy only when local analysis flags it as needing verification (or carries TLS details); that call is awaited, bounded by `timeout`, and fails open on error.
254
290
 
255
291
  ## Client IP behind a proxy
@@ -2636,6 +2636,100 @@ function isTestTriggerUserAgent(userAgent) {
2636
2636
  return userAgent.trimStart().toLowerCase().startsWith(TEST_TRIGGER_UA_PREFIX.toLowerCase());
2637
2637
  }
2638
2638
 
2639
+ // src/offensive-toolchain.ts
2640
+ var TOOLCHAIN_REGISTRY_REVISION = 1;
2641
+ var FRAMEWORK_REGISTRY_REVISION = 5;
2642
+ var reviewedTools = Object.freeze({
2643
+ nmap_scan: "network_reconnaissance",
2644
+ nmap_advanced_scan: "network_reconnaissance",
2645
+ masscan_scan: "network_reconnaissance",
2646
+ nuclei_scan: "vulnerability_scanning",
2647
+ sqlmap_scan: "injection_testing",
2648
+ metasploit_run: "exploitation"
2649
+ });
2650
+ async function createOffensiveToolchainEvidence(input) {
2651
+ const sensor = input.sensor.trim();
2652
+ if (!/^[a-z0-9][a-z0-9_.-]{0,127}$/i.test(sensor)) {
2653
+ throw new Error("sensor must be a 1-128 character stable identifier");
2654
+ }
2655
+ if (!input.runId || input.runId.length > 1024) {
2656
+ throw new Error("runId must be 1-1024 characters");
2657
+ }
2658
+ if (input.correlationSecret.length < 32 || input.correlationSecret.length > 4096) {
2659
+ throw new Error("correlationSecret must be 32-4096 characters");
2660
+ }
2661
+ if (!Array.isArray(input.invocations) || input.invocations.length === 0 || input.invocations.length > 256) {
2662
+ throw new Error("invocations must contain 1-256 entries");
2663
+ }
2664
+ const sequence = [];
2665
+ let redactedArgumentCount = 0;
2666
+ let droppedToolCount = 0;
2667
+ for (const invocation of input.invocations) {
2668
+ if (!invocation.tool || invocation.tool.length > 128) {
2669
+ throw new Error("tool must be 1-128 characters");
2670
+ }
2671
+ const redacted = invocation.redactedArgumentCount ?? 0;
2672
+ if (!Number.isInteger(redacted) || redacted < 0 || redacted > 1024) {
2673
+ throw new Error("redactedArgumentCount must be an integer from 0 through 1024");
2674
+ }
2675
+ const family = reviewedTools[invocation.tool.trim().toLowerCase()];
2676
+ if (!family) {
2677
+ droppedToolCount++;
2678
+ continue;
2679
+ }
2680
+ sequence.push(family);
2681
+ redactedArgumentCount += redacted;
2682
+ if (redactedArgumentCount > 1024) throw new Error("redacted argument count exceeds 1024");
2683
+ }
2684
+ if (sequence.length === 0) throw new Error("no reviewed offensive tools were observed");
2685
+ const families = [...new Set(sequence)].sort();
2686
+ const offensive_toolchain = {
2687
+ schema_version: 1,
2688
+ registry_revision: TOOLCHAIN_REGISTRY_REVISION,
2689
+ plane: "model_api",
2690
+ sensor,
2691
+ run_correlation_id: await hmacSha256Hex(input.correlationSecret, input.runId),
2692
+ tool_families: families,
2693
+ invocation_count: sequence.length,
2694
+ family_set_sha256: await fingerprintIDs(families),
2695
+ sequence_sha256: await sha256Hex(sequence.join("\n")),
2696
+ redacted_argument_count: redactedArgumentCount,
2697
+ dropped_tool_count: droppedToolCount
2698
+ };
2699
+ const evidence = { offensive_toolchain };
2700
+ if (input.orchestrator === "hexstrike_ai") {
2701
+ evidence.framework_evidence = await hexStrikeEvidence();
2702
+ }
2703
+ return evidence;
2704
+ }
2705
+ async function hexStrikeEvidence() {
2706
+ const family = {
2707
+ family_id: "orchestrator_identity",
2708
+ count: 1,
2709
+ sha256: await fingerprintIDs(["hexstrike-ai-mcp"])
2710
+ };
2711
+ return {
2712
+ schema_version: 1,
2713
+ registry_revision: FRAMEWORK_REGISTRY_REVISION,
2714
+ framework: "hexstrike_ai",
2715
+ plane: "model_api",
2716
+ evidence: [family],
2717
+ observation_sha256: await fingerprintEvidence([family])
2718
+ };
2719
+ }
2720
+ async function fingerprintIDs(values) {
2721
+ const canonical = [
2722
+ ...new Set(values.map((value) => value.trim().toLowerCase()).filter(Boolean))
2723
+ ].sort();
2724
+ return sha256Hex(canonical.join("\n"));
2725
+ }
2726
+ async function fingerprintEvidence(evidence) {
2727
+ const canonical = evidence.map(
2728
+ (value) => `${value.family_id.trim().toLowerCase()}\0${value.count}\0${value.sha256.trim().toLowerCase()}`
2729
+ );
2730
+ return fingerprintIDs(canonical);
2731
+ }
2732
+
2639
2733
  // src/report-headers.ts
2640
2734
  var CREDENTIAL_HEADER = /cookie|auth|token|secret|passw|session|credential|csrf|xsrf|api[-_]?key|access[-_]?key|private[-_]?key/i;
2641
2735
  var CLEARANCE_COOKIE = "wd_clearance";
@@ -2785,7 +2879,11 @@ var WebDecoyClient = class {
2785
2879
  }
2786
2880
  throw new Error(`API request failed: HTTP ${response.status}`);
2787
2881
  }
2788
- return response.data;
2882
+ const detection = response.data;
2883
+ if (request.decision_mode === "unified_v1" && (detection?.decision_mode !== "unified_v1" || !(typeof detection.unified_score === "number" && Number.isInteger(detection.unified_score) && detection.unified_score >= 0 && detection.unified_score <= 100) || !(Number.isInteger(detection.confidence) && detection.confidence >= 0 && detection.confidence <= 100) || !["allow", "challenge", "block"].includes(detection.decision) || typeof detection.detection_id !== "string" || !detection.detection_id)) {
2884
+ throw new Error("WebDecoy did not return a valid unified decision");
2885
+ }
2886
+ return detection;
2789
2887
  }
2790
2888
  async createSSRFCanary(options) {
2791
2889
  const response = await this.request("POST", "/api/v1/sdk/ssrf/markers", {
@@ -3390,7 +3488,8 @@ var WebDecoy = class {
3390
3488
  apiKey: config.apiKey,
3391
3489
  apiUrl: config.apiUrl || "https://in.webdecoy.com",
3392
3490
  enableTLSFingerprinting: config.enableTLSFingerprinting ?? true,
3393
- threatScoreThreshold: config.threatScoreThreshold ?? 80,
3491
+ decisionMode: config.decisionMode ?? "legacy",
3492
+ threatScoreThreshold: config.threatScoreThreshold,
3394
3493
  timeout: config.timeout ?? 5e3,
3395
3494
  debug: config.debug ?? false,
3396
3495
  tlsRejectUnauthorized: config.tlsRejectUnauthorized ?? true,
@@ -3412,7 +3511,7 @@ var WebDecoy = class {
3412
3511
  }
3413
3512
  this.webBotAuthOptions = config.webBotAuth;
3414
3513
  this.characteristics = config.characteristics ?? DEFAULT_CHARACTERISTICS;
3415
- this.decisionCache = config.decisionCache === false ? null : new DecisionCache(config.decisionCache ?? {});
3514
+ this.decisionCache = config.decisionCache === false || this.config.decisionMode === "unified_v1" ? null : new DecisionCache(config.decisionCache ?? {});
3416
3515
  const rules = config.rules ?? [tripwire()];
3417
3516
  if (rules.length > 0) {
3418
3517
  this.ruleEngine = new RuleEngine(rules);
@@ -3635,6 +3734,38 @@ var WebDecoy = class {
3635
3734
  honeyCredentialFingerprint(tokenId, bearer) {
3636
3735
  return hmacSha256Hex(this.config.apiKey, `webdecoy/honey-credential/v1\0${tokenId}\0${bearer}`);
3637
3736
  }
3737
+ /**
3738
+ * Report a privacy-bounded model-plane tool run. The helper sends only
3739
+ * reviewed generic families, counts, and digests; it never sends prompts,
3740
+ * arguments, results, credentials, targets, or the raw run ID.
3741
+ */
3742
+ async reportOffensiveToolchain(input) {
3743
+ if (!this.client) {
3744
+ throw new Error("An apiKey is required to report an offensive toolchain");
3745
+ }
3746
+ const evidence = await createOffensiveToolchainEvidence(input);
3747
+ return this.client.detect({
3748
+ request_metadata: {
3749
+ method: "MODEL",
3750
+ path: "/model-toolchain",
3751
+ // The existing SDK route requires an address. Model-plane evidence has
3752
+ // no target client IP, so use the unspecified address rather than
3753
+ // inventing an identity that could enter actor correlation.
3754
+ ip: "0.0.0.0",
3755
+ headers: {},
3756
+ timestamp: Date.now()
3757
+ },
3758
+ local_analysis: {
3759
+ suspicious_headers: false,
3760
+ missing_sec_ch_ua: false,
3761
+ datacenter_ip: false,
3762
+ local_score: 0,
3763
+ needs_verification: true,
3764
+ flags: ["model_plane_toolchain"]
3765
+ },
3766
+ ...evidence
3767
+ });
3768
+ }
3638
3769
  /**
3639
3770
  * Whether this SDK instance has filter rules that need async enrichment
3640
3771
  */
@@ -3661,7 +3792,8 @@ var WebDecoy = class {
3661
3792
  this.referralCounter?.observe(metadata);
3662
3793
  const span = startSpan(this.tracer, "webdecoy.protect");
3663
3794
  try {
3664
- const decision = (await this.decide(metadata, options)).withEdge(edge);
3795
+ setAttribute(span, "webdecoy.cloud.decision_mode", this.config.decisionMode);
3796
+ const decision = (await this.decide(metadata, options, span)).withEdge(edge);
3665
3797
  setAttribute(span, "webdecoy.decision.id", decision.id);
3666
3798
  setAttribute(span, "webdecoy.decision.conclusion", decision.conclusion);
3667
3799
  setAttribute(span, "webdecoy.decision.allowed", decision.allowed);
@@ -3685,7 +3817,7 @@ var WebDecoy = class {
3685
3817
  endSpan(span);
3686
3818
  }
3687
3819
  }
3688
- async decide(metadata, options = {}) {
3820
+ async decide(metadata, options, span) {
3689
3821
  const id = newDecisionId();
3690
3822
  let key = metadata.ip || "unknown";
3691
3823
  try {
@@ -3696,6 +3828,7 @@ var WebDecoy = class {
3696
3828
  metadata.timestamp = Date.now();
3697
3829
  }
3698
3830
  if (isTestTriggerUserAgent(metadata.user_agent)) {
3831
+ setAttribute(span, "webdecoy.cloud.admission", "test_trigger");
3699
3832
  return this.reportTestTrigger(metadata, id);
3700
3833
  }
3701
3834
  const needsAsync = this._hasFilterRules || this._hasAgentRules || this._preparingRules.length > 0;
@@ -3704,6 +3837,7 @@ var WebDecoy = class {
3704
3837
  const agentVerdict = context.agent;
3705
3838
  const ruleResult = this.ruleEngine ? this.runRules(context) : null;
3706
3839
  if (ruleResult && ruleResult.action !== "ALLOW") {
3840
+ setAttribute(span, "webdecoy.cloud.admission", "local_rule");
3707
3841
  const throttled = ruleResult.action === "THROTTLE";
3708
3842
  return new Decision({
3709
3843
  conclusion: "DENY",
@@ -3724,6 +3858,7 @@ var WebDecoy = class {
3724
3858
  });
3725
3859
  }
3726
3860
  if (!this.client) {
3861
+ setAttribute(span, "webdecoy.cloud.admission", "no_api_key");
3727
3862
  return new Decision({
3728
3863
  conclusion: "ALLOW",
3729
3864
  detection: {
@@ -3742,7 +3877,10 @@ var WebDecoy = class {
3742
3877
  });
3743
3878
  }
3744
3879
  const cached = this.decisionCache?.get(key);
3745
- if (cached) return cached.asCached();
3880
+ if (cached) {
3881
+ setAttribute(span, "webdecoy.cloud.admission", "cached");
3882
+ return cached.asCached();
3883
+ }
3746
3884
  const localAnalysis = options.skipLocalAnalysis ? {
3747
3885
  suspicious_headers: false,
3748
3886
  missing_sec_ch_ua: false,
@@ -3752,12 +3890,11 @@ var WebDecoy = class {
3752
3890
  flags: ["local_analysis_skipped"]
3753
3891
  } : analyzeRequest(metadata);
3754
3892
  this.log.debug("Local analysis", { ...localAnalysis });
3755
- const detectionRequest = {
3756
- request_metadata: metadata,
3757
- local_analysis: localAnalysis
3758
- };
3759
3893
  const shouldCallServer = localAnalysis.needs_verification || this.config.enableTLSFingerprinting && metadata.tls_info;
3760
3894
  if (!shouldCallServer) {
3895
+ setAttribute(span, "webdecoy.cloud.admission", "local_gate");
3896
+ setAttribute(span, "webdecoy.cloud.gate_datacenter_ip", localAnalysis.datacenter_ip);
3897
+ setAttribute(span, "webdecoy.cloud.gate_missing_sec_ch_ua", localAnalysis.missing_sec_ch_ua);
3761
3898
  return new Decision({
3762
3899
  conclusion: "ALLOW",
3763
3900
  detection: {
@@ -3775,8 +3912,14 @@ var WebDecoy = class {
3775
3912
  key
3776
3913
  });
3777
3914
  }
3778
- const detection = await this.client.detect(detectionRequest);
3779
- const threshold = options.threshold ?? this.config.threatScoreThreshold;
3915
+ const unified = this.config.decisionMode === "unified_v1";
3916
+ setAttribute(span, "webdecoy.cloud.admission", "cloud");
3917
+ const detection = await this.client.detect({
3918
+ request_metadata: metadata,
3919
+ local_analysis: localAnalysis,
3920
+ ...unified && { decision_mode: "unified_v1" }
3921
+ });
3922
+ const threshold = options.threshold ?? this.config.threatScoreThreshold ?? (unified ? 0 : 80);
3780
3923
  const allowed = detection.decision === "allow" || detection.confidence < threshold;
3781
3924
  this.log.debug("Server detection", {
3782
3925
  decision: detection.decision,
@@ -3786,7 +3929,7 @@ var WebDecoy = class {
3786
3929
  const conclusion = allowed ? "ALLOW" : detection.decision === "challenge" ? "CHALLENGE" : "DENY";
3787
3930
  const decision = new Decision({
3788
3931
  conclusion,
3789
- reason: allowed ? void 0 : `Threat score ${detection.confidence} (threshold ${threshold})`,
3932
+ reason: allowed ? void 0 : unified ? `Unified verdict ${detection.decision} (score ${detection.unified_score}, confidence ${detection.confidence})` : `Threat score ${detection.confidence} (threshold ${threshold})`,
3790
3933
  detection,
3791
3934
  id,
3792
3935
  results: ruleResult?.results ?? [],
@@ -3798,6 +3941,9 @@ var WebDecoy = class {
3798
3941
  if (this.decisionCache) this.decisionCache.set(key, decision);
3799
3942
  return decision;
3800
3943
  } catch (error) {
3944
+ if (error instanceof WebDecoyUnavailableError) {
3945
+ setAttribute(span, "webdecoy.cloud.admission", "backoff");
3946
+ }
3801
3947
  const log = error instanceof WebDecoyUnavailableError ? this.log.debug.bind(this.log) : this.log.error.bind(this.log);
3802
3948
  log("Protection error", {
3803
3949
  error: error instanceof Error ? error.message : String(error)
@@ -3851,6 +3997,7 @@ var WebDecoy = class {
3851
3997
  try {
3852
3998
  const detection = await this.client.detect({
3853
3999
  request_metadata: metadata,
4000
+ ...this.config.decisionMode === "unified_v1" && { decision_mode: "unified_v1" },
3854
4001
  local_analysis: {
3855
4002
  suspicious_headers: false,
3856
4003
  missing_sec_ch_ua: false,
@@ -3998,5 +4145,6 @@ export {
3998
4145
  TEST_TRIGGER_UA_PREFIX,
3999
4146
  TEST_TRIGGER_USER_AGENT,
4000
4147
  isTestTriggerUserAgent,
4148
+ createOffensiveToolchainEvidence,
4001
4149
  WebDecoy
4002
4150
  };
@@ -4,7 +4,7 @@ import {
4
4
  isInjectableHtml,
5
5
  siteHoneytoken,
6
6
  tripwire
7
- } from "./chunk-AUHVIVMA.mjs";
7
+ } from "./chunk-2SIFEEYE.mjs";
8
8
 
9
9
  // src/client-ip.ts
10
10
  var IPV4 = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;
@@ -1,4 +1,4 @@
1
- import { a5 as WebDecoyConfig, O as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-UlKzxL3L.js';
1
+ import { ac as WebDecoyConfig, _ as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-Dh8Jj07-.js';
2
2
 
3
3
  /**
4
4
  * Resolving the client IP address behind a proxy.
@@ -1,4 +1,4 @@
1
- import { a5 as WebDecoyConfig, O as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-UlKzxL3L.mjs';
1
+ import { ac as WebDecoyConfig, _ as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-Dh8Jj07-.mjs';
2
2
 
3
3
  /**
4
4
  * Resolving the client IP address behind a proxy.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-UlKzxL3L.mjs';
2
- export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, r as CreatedHoneyCredential, D as DEFAULT_CHARACTERISTICS, s as Decision, t as DecisionCache, u as DecisionCacheOptions, v as DecisionInit, E as EDGE_CLASS_HEADER, w as EDGE_CLEARANCE_HEADER, x as EdgeClass, y as EdgeVerdict, H as HoneyCredentialHandle, z as HoneyCredentialOptions, G as HoneyCredentialPresentationResult, I as HoneyCredentialReceipt, J as IPEnrichmentData, L as LocalAnalysis, K as LogFields, M as Logger, N as MemoryRateLimitStore, O as ProtectOptions, Q as RequestMetadata, U as RuleOutcome, V as RuleState, X as SDKDetectionRequest, Y as SDKDetectionResponse, Z as SSRFCanary, _ as SSRFCanaryOptions, $ as SSRFInitiationReceipt, a0 as Span, a1 as SyncRateLimitStore, a2 as TLSInfo, a3 as Tracer, a4 as ViolationEvent, a5 as WebDecoyConfig, a6 as classifyUserAgent, a7 as consoleLogger, a8 as deriveKey, a9 as fromPino, aa as matchUserAgent, ab as newDecisionId, ac as readEdgeVerdict, ad as silentLogger } from './sdk-UlKzxL3L.mjs';
3
- export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-B1HMK-Sd.mjs';
1
+ import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-Dh8Jj07-.mjs';
2
+ export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, r as CreatedHoneyCredential, D as DEFAULT_CHARACTERISTICS, s as Decision, t as DecisionCache, u as DecisionCacheOptions, v as DecisionInit, w as DecisionMode, E as EDGE_CLASS_HEADER, x as EDGE_CLEARANCE_HEADER, y as EdgeClass, z as EdgeVerdict, G as FrameworkEvidenceObservation, H as HoneyCredentialHandle, I as HoneyCredentialOptions, J as HoneyCredentialPresentationResult, K as HoneyCredentialReceipt, L as IPEnrichmentData, M as LocalAnalysis, N as LogFields, O as Logger, Q as MemoryRateLimitStore, U as OffensiveToolFamily, V as OffensiveToolInvocation, X as OffensiveToolchainEvidence, Y as OffensiveToolchainEvidenceInput, Z as OffensiveToolchainObservation, _ as ProtectOptions, $ as RequestMetadata, a0 as RuleOutcome, a1 as RuleState, a2 as SDKDetectionRequest, a3 as SDKDetectionResponse, a4 as SSRFCanary, a5 as SSRFCanaryOptions, a6 as SSRFInitiationReceipt, a7 as Span, a8 as SyncRateLimitStore, a9 as TLSInfo, aa as Tracer, ab as ViolationEvent, ac as WebDecoyConfig, ad as classifyUserAgent, ae as consoleLogger, af as createOffensiveToolchainEvidence, ag as deriveKey, ah as fromPino, ai as matchUserAgent, aj as newDecisionId, ak as readEdgeVerdict, al as silentLogger } from './sdk-Dh8Jj07-.mjs';
3
+ export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-NBeqXdH6.mjs';
4
4
 
5
5
  /**
6
6
  * The reserved test trigger.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-UlKzxL3L.js';
2
- export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, r as CreatedHoneyCredential, D as DEFAULT_CHARACTERISTICS, s as Decision, t as DecisionCache, u as DecisionCacheOptions, v as DecisionInit, E as EDGE_CLASS_HEADER, w as EDGE_CLEARANCE_HEADER, x as EdgeClass, y as EdgeVerdict, H as HoneyCredentialHandle, z as HoneyCredentialOptions, G as HoneyCredentialPresentationResult, I as HoneyCredentialReceipt, J as IPEnrichmentData, L as LocalAnalysis, K as LogFields, M as Logger, N as MemoryRateLimitStore, O as ProtectOptions, Q as RequestMetadata, U as RuleOutcome, V as RuleState, X as SDKDetectionRequest, Y as SDKDetectionResponse, Z as SSRFCanary, _ as SSRFCanaryOptions, $ as SSRFInitiationReceipt, a0 as Span, a1 as SyncRateLimitStore, a2 as TLSInfo, a3 as Tracer, a4 as ViolationEvent, a5 as WebDecoyConfig, a6 as classifyUserAgent, a7 as consoleLogger, a8 as deriveKey, a9 as fromPino, aa as matchUserAgent, ab as newDecisionId, ac as readEdgeVerdict, ad as silentLogger } from './sdk-UlKzxL3L.js';
3
- export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-B4KDPdyP.js';
1
+ import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-Dh8Jj07-.js';
2
+ export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, r as CreatedHoneyCredential, D as DEFAULT_CHARACTERISTICS, s as Decision, t as DecisionCache, u as DecisionCacheOptions, v as DecisionInit, w as DecisionMode, E as EDGE_CLASS_HEADER, x as EDGE_CLEARANCE_HEADER, y as EdgeClass, z as EdgeVerdict, G as FrameworkEvidenceObservation, H as HoneyCredentialHandle, I as HoneyCredentialOptions, J as HoneyCredentialPresentationResult, K as HoneyCredentialReceipt, L as IPEnrichmentData, M as LocalAnalysis, N as LogFields, O as Logger, Q as MemoryRateLimitStore, U as OffensiveToolFamily, V as OffensiveToolInvocation, X as OffensiveToolchainEvidence, Y as OffensiveToolchainEvidenceInput, Z as OffensiveToolchainObservation, _ as ProtectOptions, $ as RequestMetadata, a0 as RuleOutcome, a1 as RuleState, a2 as SDKDetectionRequest, a3 as SDKDetectionResponse, a4 as SSRFCanary, a5 as SSRFCanaryOptions, a6 as SSRFInitiationReceipt, a7 as Span, a8 as SyncRateLimitStore, a9 as TLSInfo, aa as Tracer, ab as ViolationEvent, ac as WebDecoyConfig, ad as classifyUserAgent, ae as consoleLogger, af as createOffensiveToolchainEvidence, ag as deriveKey, ah as fromPino, ai as matchUserAgent, aj as newDecisionId, ak as readEdgeVerdict, al as silentLogger } from './sdk-Dh8Jj07-.js';
3
+ export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-Ay294Lr2.js';
4
4
 
5
5
  /**
6
6
  * The reserved test trigger.