@webdecoy/node 0.30.0 → 0.31.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.
@@ -53,6 +53,8 @@ var BOT_REGISTRY = [
53
53
  { id: "kimibot", name: "KimiBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: true, uaPatterns: ["kimibot"] },
54
54
  { id: "moonshotbot", name: "MoonshotBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: false, uaPatterns: ["moonshotbot"] },
55
55
  { id: "chatglm-spider", name: "ChatGLM-Spider", category: "training_crawler", organization: "Zhipu AI", baseScore: 80, respectsRobots: false, uaPatterns: ["chatglm-spider"] },
56
+ { id: "generalretrievalbot", name: "GeneralRetrievalBot", category: "ai_search_crawler", organization: "General Retrieval", baseScore: 60, respectsRobots: true, uaPatterns: ["generalretrievalbot"] },
57
+ { id: "andi-searchbot", name: "Andi-SearchBot", category: "ai_search_crawler", organization: "Andi", baseScore: 55, respectsRobots: true, uaPatterns: ["andi-searchbot"] },
56
58
  { id: "talarionsearchbot", name: "TalarionSearchBot", category: "ai_search_crawler", organization: "Talarion", baseScore: 65, respectsRobots: false, uaPatterns: ["talarionsearchbot"] },
57
59
  { id: "unfragilebot", name: "UnfragileBot", category: "ai_search_crawler", organization: "Unfragile", baseScore: 65, respectsRobots: true, uaPatterns: ["unfragilebot"] },
58
60
  { id: "aranet-searchbot", name: "Aranet-SearchBot", category: "ai_search_crawler", organization: "Aranet", baseScore: 65, respectsRobots: false, uaPatterns: ["aranet-searchbot"] },
@@ -88,6 +90,9 @@ var BOT_REGISTRY = [
88
90
  { id: "manus-user", name: "Manus-User", category: "ai_agent", organization: "Manus", baseScore: 70, respectsRobots: false, uaPatterns: ["manus-user"] },
89
91
  { id: "multion", name: "MultiOn", category: "ai_agent", organization: "MultiOn", baseScore: 70, respectsRobots: false, uaPatterns: ["multion"] },
90
92
  { id: "opencode-user", name: "OpenCode-User", category: "ai_agent", organization: "OpenCode", baseScore: 75, respectsRobots: false, uaPatterns: ["opencode-user"] },
93
+ { id: "jambot", name: "Jambot", category: "search_crawler", organization: "Jambot", baseScore: 40, respectsRobots: true, uaPatterns: ["jambot"] },
94
+ { id: "fyndbot", name: "fyndbot", category: "search_crawler", organization: "Fynd", baseScore: 40, respectsRobots: true, uaPatterns: ["fyndbot"] },
95
+ { id: "pexelsbot", name: "PexelsBot", category: "search_crawler", organization: "pexels.de", baseScore: 40, respectsRobots: true, uaPatterns: ["pexelsbot"] },
91
96
  { id: "360spider", name: "360Spider", category: "search_crawler", organization: "Qihoo 360", baseScore: 40, respectsRobots: true, uaPatterns: ["360spider"] },
92
97
  { id: "cgmsearchbot", name: "CGMSearchBot", category: "search_crawler", organization: "CGMIMM", baseScore: 40, respectsRobots: true, uaPatterns: ["cgmsearchbot"] },
93
98
  { id: "iboubot", name: "IbouBot", category: "search_crawler", organization: "Ibou", baseScore: 30, respectsRobots: true, uaPatterns: ["iboubot", "ibou-search"] },
@@ -111,6 +116,10 @@ var BOT_REGISTRY = [
111
116
  { id: "coccocbot", name: "Coc Coc", category: "search_crawler", organization: "Coc Coc", baseScore: 35, respectsRobots: true, uaPatterns: ["coccocbot"] },
112
117
  { id: "yisouspider", name: "YisouSpider", category: "search_crawler", organization: "Alibaba", baseScore: 40, respectsRobots: true, uaPatterns: ["yisouspider"] },
113
118
  { id: "yepbot", name: "YepBot", category: "search_crawler", organization: "Ahrefs", baseScore: 30, respectsRobots: true, uaPatterns: ["yepbot"] },
119
+ { id: "agentreadyscan", name: "AgentReadyScan", category: "seo_crawler", organization: "Agent Ready", baseScore: 45, respectsRobots: true, uaPatterns: ["agentreadyscan"] },
120
+ { id: "crawlcheck", name: "CrawlCheck", category: "seo_crawler", organization: "CrawlCheck", baseScore: 45, respectsRobots: true, uaPatterns: ["crawlcheck/"] },
121
+ { id: "kostobot", name: "KostoBot", category: "seo_crawler", organization: "Kosto", baseScore: 50, respectsRobots: true, uaPatterns: ["kostobot"] },
122
+ { id: "keys-so-bot", name: "keys.so", category: "seo_crawler", organization: "Keys.so", baseScore: 50, respectsRobots: false, uaPatterns: ["keys-so-bot"] },
114
123
  { id: "crolbot", name: "CrolBot", category: "seo_crawler", organization: "cloro", baseScore: 50, respectsRobots: false, uaPatterns: ["crolbot"] },
115
124
  { id: "ahrefsbot", name: "AhrefsBot", category: "seo_crawler", organization: "Ahrefs", baseScore: 50, respectsRobots: true, uaPatterns: ["ahrefsbot", "ahrefs"] },
116
125
  { id: "semrushbot", name: "SemrushBot", category: "seo_crawler", organization: "Semrush", baseScore: 50, respectsRobots: true, uaPatterns: ["semrushbot", "semrush"] },
@@ -136,6 +145,10 @@ var BOT_REGISTRY = [
136
145
  { id: "seojuice-searchbot", name: "SEOJuice-SearchBot", category: "seo_crawler", organization: "SEOJuice", baseScore: 50, respectsRobots: true, uaPatterns: ["seojuice-searchbot"] },
137
146
  { id: "trendictionbot", name: "trendictionbot", category: "seo_crawler", organization: "Talkwalker", baseScore: 50, respectsRobots: true, uaPatterns: ["trendictionbot"] },
138
147
  { id: "hubspot-crawler", name: "HubSpot Crawler", category: "seo_crawler", organization: "HubSpot", baseScore: 45, respectsRobots: true, uaPatterns: ["hubspot crawler"] },
148
+ { id: "bitsightbot", name: "BitSightBot", category: "security_scanner", organization: "BitSight", baseScore: 70, respectsRobots: false, uaPatterns: ["bitsightbot"] },
149
+ { id: "leakix", name: "LeakIX", category: "security_scanner", organization: "LeakIX", baseScore: 75, respectsRobots: false, uaPatterns: ["l9scan"] },
150
+ { id: "modatscanner", name: "ModatScanner", category: "security_scanner", organization: "Modat", baseScore: 75, respectsRobots: false, uaPatterns: ["modatscanner"] },
151
+ { id: "umaibot", name: "UmaiBot", category: "security_scanner", organization: "UMAI", baseScore: 60, respectsRobots: true, uaPatterns: ["umaibot"] },
139
152
  { id: "artex", name: "ARTEX", category: "security_scanner", organization: "Open Source", baseScore: 90, respectsRobots: false, uaPatterns: ["artex-enrich/"] },
140
153
  { id: "nessus", name: "Nessus", category: "security_scanner", organization: "Tenable", baseScore: 70, respectsRobots: false, uaPatterns: ["nessus"] },
141
154
  { id: "qualys", name: "Qualys", category: "security_scanner", organization: "Qualys", baseScore: 70, respectsRobots: false, uaPatterns: ["qualys"] },
@@ -190,6 +203,8 @@ var BOT_REGISTRY = [
190
203
  { id: "wayback", name: "Wayback Machine", category: "archiver", organization: "Internet Archive", baseScore: 25, respectsRobots: true, uaPatterns: ["wayback"] },
191
204
  { id: "heritrix", name: "Heritrix", category: "archiver", organization: "Internet Archive", baseScore: 30, respectsRobots: true, uaPatterns: ["heritrix"] },
192
205
  { id: "brozzler", name: "Brozzler", category: "archiver", organization: "Internet Archive", baseScore: 30, respectsRobots: true, uaPatterns: ["brozzler"] },
206
+ { id: "findfiles-linkchecker", name: "FindFiles.net LinkChecker", category: "fetcher", organization: "FindFiles.net", baseScore: 30, respectsRobots: true, uaPatterns: ["findfiles.net-linkchecker"] },
207
+ { id: "hstspreload-bot", name: "hstspreload-bot", category: "fetcher", organization: "Chromium", baseScore: 20, respectsRobots: false, uaPatterns: ["hstspreload-bot"] },
193
208
  { id: "facebookexternalhit", name: "Facebook", category: "fetcher", organization: "Meta", baseScore: 25, respectsRobots: true, uaPatterns: ["facebookexternalhit"] },
194
209
  { id: "facebot", name: "Facebot", category: "fetcher", organization: "Meta", baseScore: 25, respectsRobots: true, uaPatterns: ["facebot"] },
195
210
  { id: "twitterbot", name: "Twitterbot", category: "fetcher", organization: "X Corp", baseScore: 25, respectsRobots: true, uaPatterns: ["twitterbot"] },
@@ -214,6 +229,7 @@ var BOT_REGISTRY = [
214
229
  { id: "libwww-perl", name: "libwww-perl", category: "fetcher", organization: "Perl", baseScore: 50, respectsRobots: false, uaPatterns: ["libwww-perl"] },
215
230
  { id: "lwp", name: "LWP", category: "fetcher", organization: "Perl", baseScore: 50, respectsRobots: false, uaPatterns: ["lwp-"] },
216
231
  { id: "httrack", name: "HTTrack", category: "fetcher", organization: "Open Source", baseScore: 60, respectsRobots: true, uaPatterns: ["httrack"] },
232
+ { id: "truetierbot", name: "TrueTierBot", category: "monitoring", organization: "TrueTier", baseScore: 25, respectsRobots: true, uaPatterns: ["truetierbot"] },
217
233
  { id: "webdecoybot", name: "WebDecoyBot", category: "monitoring", organization: "WebDecoy", baseScore: 5, respectsRobots: true, uaPatterns: ["webdecoybot"] },
218
234
  { id: "uptimerobot", name: "UptimeRobot", category: "monitoring", organization: "UptimeRobot", baseScore: 20, respectsRobots: true, uaPatterns: ["uptimerobot"] },
219
235
  { id: "pingdom", name: "Pingdom", category: "monitoring", organization: "SolarWinds", baseScore: 20, respectsRobots: true, uaPatterns: ["pingdom"] },
@@ -227,6 +243,9 @@ var BOT_REGISTRY = [
227
243
  { id: "nodeping", name: "NodePing", category: "monitoring", organization: "NodePing", baseScore: 20, respectsRobots: true, uaPatterns: ["nodeping"] },
228
244
  { id: "gtmetrix", name: "GTmetrix", category: "monitoring", organization: "GTmetrix", baseScore: 20, respectsRobots: true, uaPatterns: ["gtmetrix"] },
229
245
  { id: "chrome-lighthouse", name: "Lighthouse", category: "monitoring", organization: "Google", baseScore: 20, respectsRobots: true, uaPatterns: ["chrome-lighthouse", "google page speed"] },
246
+ { id: "andifeedbot", name: "AndiFeedBot", category: "feed_reader", organization: "Andi", baseScore: 30, respectsRobots: true, uaPatterns: ["andifeedbot"] },
247
+ { id: "librarianbot", name: "LibrarianBot", category: "feed_reader", organization: "GenioFab", baseScore: 30, respectsRobots: true, uaPatterns: ["librarianbot"] },
248
+ { id: "oursignal", name: "oursignal", category: "feed_reader", organization: "oursignal", baseScore: 25, respectsRobots: true, uaPatterns: ["oursignal/"] },
230
249
  { id: "feedly", name: "Feedly", category: "feed_reader", organization: "Feedly", baseScore: 25, respectsRobots: true, uaPatterns: ["feedly"] },
231
250
  { id: "livelapbot", name: "LivelapBot", category: "feed_reader", organization: "Livelap", baseScore: 30, respectsRobots: true, uaPatterns: ["livelapbot"] },
232
251
  { id: "feedfetcher-google", name: "Feedfetcher-Google", category: "feed_reader", organization: "Google", baseScore: 25, respectsRobots: true, uaPatterns: ["feedfetcher"] },
@@ -237,6 +256,12 @@ var BOT_REGISTRY = [
237
256
  { id: "miniflux", name: "Miniflux", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["miniflux"] },
238
257
  { id: "freshrss", name: "FreshRSS", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["freshrss"] },
239
258
  { id: "commafeed", name: "CommaFeed", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["commafeed"] },
259
+ { id: "tphotobot", name: "tphotobot", category: "commercial_scraper", organization: "Estidraft", baseScore: 50, respectsRobots: true, uaPatterns: ["tphotobot"] },
260
+ { id: "bangobot", name: "BangoBot", category: "commercial_scraper", organization: "Bango API", baseScore: 55, respectsRobots: false, uaPatterns: ["bangobot"] },
261
+ { id: "kamatabot", name: "KamataBot", category: "commercial_scraper", organization: "Kamata", baseScore: 55, respectsRobots: true, uaPatterns: ["kamatabot"] },
262
+ { id: "boehmbot", name: "BoehmBot", category: "commercial_scraper", organization: "b\xF6hm systems", baseScore: 50, respectsRobots: true, uaPatterns: ["boehmbot"] },
263
+ { id: "pipericbot", name: "PipericBot", category: "commercial_scraper", organization: "Piperic", baseScore: 55, respectsRobots: true, uaPatterns: ["pipericbot"] },
264
+ { id: "pandalytics", name: "Pandalytics", category: "commercial_scraper", organization: "Domainsbot", baseScore: 50, respectsRobots: true, uaPatterns: ["pandalytics"] },
240
265
  { id: "spiderling", name: "SpiderLing", category: "commercial_scraper", organization: "Lexical Computing", baseScore: 55, respectsRobots: true, uaPatterns: ["spiderling", "sketchengine"] },
241
266
  { id: "netapi", name: "NetAPI Bot", category: "commercial_scraper", organization: "NetAPI", baseScore: 50, respectsRobots: true, uaPatterns: ["netapi/"] },
242
267
  { id: "anticlonebot", name: "AntiCloneBot", category: "commercial_scraper", organization: "AntiClone", baseScore: 45, respectsRobots: true, uaPatterns: ["anticlonebot"] },
@@ -254,6 +279,7 @@ var BOT_REGISTRY = [
254
279
  { id: "apify", name: "Apify", category: "commercial_scraper", organization: "Apify", baseScore: 65, respectsRobots: true, uaPatterns: ["apify"] },
255
280
  { id: "crawlbase", name: "Crawlbase", category: "commercial_scraper", organization: "Crawlbase", baseScore: 65, respectsRobots: true, uaPatterns: ["crawlbase"] },
256
281
  { id: "webscrapingapi", name: "WebScrapingAPI", category: "commercial_scraper", organization: "WebScrapingAPI", baseScore: 65, respectsRobots: true, uaPatterns: ["webscrapingapi"] },
282
+ { id: "andi-user", name: "Andi-User", category: "ai_assistant", organization: "Andi", baseScore: 60, respectsRobots: false, uaPatterns: ["andi-user"] },
257
283
  { id: "chatgpt-user", name: "ChatGPT-User", category: "ai_assistant", organization: "OpenAI", baseScore: 85, respectsRobots: true, uaPatterns: ["chatgpt-user"] },
258
284
  { id: "perplexity-user", name: "Perplexity-User", category: "ai_assistant", organization: "Perplexity AI", baseScore: 75, respectsRobots: false, uaPatterns: ["perplexity-user"] },
259
285
  { id: "mistralai-user", name: "MistralAI-User", category: "ai_assistant", organization: "Mistral AI", baseScore: 75, respectsRobots: true, uaPatterns: ["mistralai-user"] },
@@ -1,4 +1,4 @@
1
- import { ad as WebDecoyConfig, _ as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-CJ6pmQGy.js';
1
+ import { j as WebDecoyConfig, k as ProtectOptions, D as Decision, W as WebDecoy } from './sdk-DveMEqxl.js';
2
2
 
3
3
  /**
4
4
  * Resolving the client IP address behind a proxy.
@@ -1,4 +1,4 @@
1
- import { ad as WebDecoyConfig, _ as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-CJ6pmQGy.mjs';
1
+ import { j as WebDecoyConfig, k as ProtectOptions, D as Decision, W as WebDecoy } from './sdk-DveMEqxl.mjs';
2
2
 
3
3
  /**
4
4
  * Resolving the client IP address behind a proxy.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
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-CJ6pmQGy.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 ViolationDeliveryStats, ac as ViolationEvent, ad as WebDecoyConfig, ae as classifyUserAgent, af as consoleLogger, ag as createOffensiveToolchainEvidence, ah as deriveKey, ai as fromPino, aj as matchUserAgent, ak as newDecisionId, al as readEdgeVerdict, am as silentLogger } from './sdk-CJ6pmQGy.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-BNq26N9d.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, D as Decision, j as WebDecoyConfig, k as ProtectOptions, l as AgentVerifierOptions, m as AgentRequestInput, n as AgentVerdict, S as SignedAgentDirectory } from './sdk-DveMEqxl.mjs';
2
+ export { o as AgentStatus, p as BOT_CATEGORIES, q as BOT_REGISTRY, r as BotVerdict, C as Characteristic, s as Conclusion, t as CreatedHoneyCredential, u as DEFAULT_CHARACTERISTICS, v as DecisionCache, w as DecisionCacheOptions, x as DecisionInit, y as DecisionMode, E as EDGE_CLASS_HEADER, z as EDGE_CLEARANCE_HEADER, G as EdgeClass, H as EdgeVerdict, I as FrameworkEvidenceObservation, J as HoneyCredentialHandle, K as HoneyCredentialOptions, L as HoneyCredentialPresentationResult, M as HoneyCredentialReceipt, N as IPEnrichmentData, O as LocalAnalysis, Q as LogFields, U as Logger, V as MemoryRateLimitStore, X as OffensiveToolFamily, Y as OffensiveToolInvocation, Z as OffensiveToolchainEvidence, _ as OffensiveToolchainEvidenceInput, $ as OffensiveToolchainObservation, a0 as RequestMetadata, a1 as RuleOutcome, a2 as RuleState, a3 as SDKDetectionRequest, a4 as SDKDetectionResponse, a5 as SSRFCanary, a6 as SSRFCanaryOptions, a7 as SSRFInitiationReceipt, a8 as Span, a9 as SyncRateLimitStore, aa as TLSInfo, ab as Tracer, ac as ViolationDeliveryStats, ad as ViolationEvent, ae as classifyUserAgent, af as consoleLogger, ag as createOffensiveToolchainEvidence, ah as deriveKey, ai as fromPino, aj as matchUserAgent, ak as newDecisionId, al as readEdgeVerdict, am as silentLogger } from './sdk-DveMEqxl.mjs';
3
+ import { T as TrustedProxies } from './detect-and-gate-DWOUDUSY.mjs';
4
+ 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, 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-DWOUDUSY.mjs';
4
5
 
5
6
  /**
6
7
  * The reserved test trigger.
@@ -1361,6 +1362,36 @@ declare function armSiteHoneytoken(sdk: WebDecoy, options: HoneytokenArmingOptio
1361
1362
  */
1362
1363
  declare function deriveAndArm(sdk: WebDecoy, options: HoneytokenArmingOptions): Promise<SiteHoneytoken | null>;
1363
1364
 
1365
+ interface NodeHttpGuardOptions extends WebDecoyConfig, ProtectOptions {
1366
+ /** Monitor serves the request even when the SDK reports a denial. */
1367
+ mode?: 'monitor' | 'enforce';
1368
+ /** Paths excluded from evaluation, such as health checks. */
1369
+ skipPaths?: (string | RegExp)[];
1370
+ /** Defaults to the connection peer. Set this to trust a known proxy chain. */
1371
+ trustProxy?: TrustedProxies;
1372
+ }
1373
+ interface NodeHttpGuardOutcome {
1374
+ decision: Decision;
1375
+ /** Present when enforce mode refuses the request. The caller writes it. */
1376
+ response?: BlockResponse;
1377
+ }
1378
+ /** The request fields read from Node's IncomingMessage. */
1379
+ interface NodeHttpRequest {
1380
+ method?: string;
1381
+ url?: string;
1382
+ headers: Record<string, string | string[] | undefined>;
1383
+ socket: {
1384
+ remoteAddress?: string;
1385
+ };
1386
+ }
1387
+ interface NodeHttpGuard {
1388
+ sdk: WebDecoy;
1389
+ /** Evaluate a request without reading its body. Skipped paths return undefined. */
1390
+ check(request: NodeHttpRequest): Promise<NodeHttpGuardOutcome | undefined>;
1391
+ }
1392
+ /** Evaluate native Node HTTP requests with the same rules as the framework adapters. */
1393
+ declare function createNodeHttpGuard(options?: NodeHttpGuardOptions): NodeHttpGuard;
1394
+
1364
1395
  /**
1365
1396
  * AgentVerifier — the public entry point for local Web Bot Auth verification.
1366
1397
  *
@@ -1781,4 +1812,4 @@ declare function createCaptchaEndpoints(options?: CaptchaEndpointsOptions): {
1781
1812
  };
1782
1813
  type CaptchaEndpoints = ReturnType<typeof createCaptchaEndpoints>;
1783
1814
 
1784
- export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, type DetectionScoringPolicy, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type ScoringComparison, type ScrollJumpObservation, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };
1815
+ export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, Decision, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, type DetectionScoringPolicy, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, type NodeHttpGuard, type NodeHttpGuardOptions, type NodeHttpGuardOutcome, type NodeHttpRequest, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectOptions, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type ScoringComparison, type ScrollJumpObservation, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, TrustedProxies, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, WebDecoyConfig, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, createNodeHttpGuard, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
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-CJ6pmQGy.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 ViolationDeliveryStats, ac as ViolationEvent, ad as WebDecoyConfig, ae as classifyUserAgent, af as consoleLogger, ag as createOffensiveToolchainEvidence, ah as deriveKey, ai as fromPino, aj as matchUserAgent, ak as newDecisionId, al as readEdgeVerdict, am as silentLogger } from './sdk-CJ6pmQGy.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-Dnfo2t3B.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, D as Decision, j as WebDecoyConfig, k as ProtectOptions, l as AgentVerifierOptions, m as AgentRequestInput, n as AgentVerdict, S as SignedAgentDirectory } from './sdk-DveMEqxl.js';
2
+ export { o as AgentStatus, p as BOT_CATEGORIES, q as BOT_REGISTRY, r as BotVerdict, C as Characteristic, s as Conclusion, t as CreatedHoneyCredential, u as DEFAULT_CHARACTERISTICS, v as DecisionCache, w as DecisionCacheOptions, x as DecisionInit, y as DecisionMode, E as EDGE_CLASS_HEADER, z as EDGE_CLEARANCE_HEADER, G as EdgeClass, H as EdgeVerdict, I as FrameworkEvidenceObservation, J as HoneyCredentialHandle, K as HoneyCredentialOptions, L as HoneyCredentialPresentationResult, M as HoneyCredentialReceipt, N as IPEnrichmentData, O as LocalAnalysis, Q as LogFields, U as Logger, V as MemoryRateLimitStore, X as OffensiveToolFamily, Y as OffensiveToolInvocation, Z as OffensiveToolchainEvidence, _ as OffensiveToolchainEvidenceInput, $ as OffensiveToolchainObservation, a0 as RequestMetadata, a1 as RuleOutcome, a2 as RuleState, a3 as SDKDetectionRequest, a4 as SDKDetectionResponse, a5 as SSRFCanary, a6 as SSRFCanaryOptions, a7 as SSRFInitiationReceipt, a8 as Span, a9 as SyncRateLimitStore, aa as TLSInfo, ab as Tracer, ac as ViolationDeliveryStats, ad as ViolationEvent, ae as classifyUserAgent, af as consoleLogger, ag as createOffensiveToolchainEvidence, ah as deriveKey, ai as fromPino, aj as matchUserAgent, ak as newDecisionId, al as readEdgeVerdict, am as silentLogger } from './sdk-DveMEqxl.js';
3
+ import { T as TrustedProxies } from './detect-and-gate-BfL39HDb.js';
4
+ 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, 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-BfL39HDb.js';
4
5
 
5
6
  /**
6
7
  * The reserved test trigger.
@@ -1361,6 +1362,36 @@ declare function armSiteHoneytoken(sdk: WebDecoy, options: HoneytokenArmingOptio
1361
1362
  */
1362
1363
  declare function deriveAndArm(sdk: WebDecoy, options: HoneytokenArmingOptions): Promise<SiteHoneytoken | null>;
1363
1364
 
1365
+ interface NodeHttpGuardOptions extends WebDecoyConfig, ProtectOptions {
1366
+ /** Monitor serves the request even when the SDK reports a denial. */
1367
+ mode?: 'monitor' | 'enforce';
1368
+ /** Paths excluded from evaluation, such as health checks. */
1369
+ skipPaths?: (string | RegExp)[];
1370
+ /** Defaults to the connection peer. Set this to trust a known proxy chain. */
1371
+ trustProxy?: TrustedProxies;
1372
+ }
1373
+ interface NodeHttpGuardOutcome {
1374
+ decision: Decision;
1375
+ /** Present when enforce mode refuses the request. The caller writes it. */
1376
+ response?: BlockResponse;
1377
+ }
1378
+ /** The request fields read from Node's IncomingMessage. */
1379
+ interface NodeHttpRequest {
1380
+ method?: string;
1381
+ url?: string;
1382
+ headers: Record<string, string | string[] | undefined>;
1383
+ socket: {
1384
+ remoteAddress?: string;
1385
+ };
1386
+ }
1387
+ interface NodeHttpGuard {
1388
+ sdk: WebDecoy;
1389
+ /** Evaluate a request without reading its body. Skipped paths return undefined. */
1390
+ check(request: NodeHttpRequest): Promise<NodeHttpGuardOutcome | undefined>;
1391
+ }
1392
+ /** Evaluate native Node HTTP requests with the same rules as the framework adapters. */
1393
+ declare function createNodeHttpGuard(options?: NodeHttpGuardOptions): NodeHttpGuard;
1394
+
1364
1395
  /**
1365
1396
  * AgentVerifier — the public entry point for local Web Bot Auth verification.
1366
1397
  *
@@ -1781,4 +1812,4 @@ declare function createCaptchaEndpoints(options?: CaptchaEndpointsOptions): {
1781
1812
  };
1782
1813
  type CaptchaEndpoints = ReturnType<typeof createCaptchaEndpoints>;
1783
1814
 
1784
- export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, type DetectionScoringPolicy, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type ScoringComparison, type ScrollJumpObservation, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };
1815
+ export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, Decision, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, type DetectionScoringPolicy, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, type NodeHttpGuard, type NodeHttpGuardOptions, type NodeHttpGuardOutcome, type NodeHttpRequest, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectOptions, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type ScoringComparison, type ScrollJumpObservation, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, TrustedProxies, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, WebDecoyConfig, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, createNodeHttpGuard, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };