Skip to content

Commit 57ff6c2

Browse files
committed
feat: 补充验证码风控识别规则
扩展 SaaS 页面规则,新增 20 个验证码、Bot 防护和风控服务的匹配规则。 覆盖 Friendly Captcha、MTCaptcha、ALTCHA、BotDetect、腾讯验证码、阿里云验证码、百度验证码、GeeTest、网易易盾、Yandex SmartCaptcha、VK Captcha、Cloudflare Managed Challenge、Capy、KeyCAPTCHA、Solve Media、mCaptcha、Akamai Bot Manager、Imperva Bot Protection、Kasada 和 CHEQ,并补充对应技术链接。 将版本升至 1.1.64。 验证:npx prettier --write .;npx prettier --check .;pnpm run typecheck;pnpm run lint;JSON/正则全量校验;pnpm run build;版本一致性检查;git diff --check。
1 parent 64d7007 commit 57ff6c2

3 files changed

Lines changed: 112 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.1.63",
4+
"version": "1.1.64",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/saas-services-page.json

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@
22722272
},
22732273
{
22742274
"defaults": {
2275-
"kind": "验证码"
2275+
"kind": "验证码 / Bot 防护"
22762276
},
22772277
"rules": [
22782278
{
@@ -2293,6 +2293,96 @@
22932293
],
22942294
"selectors": [".cf-turnstile", "[data-sitekey].cf-turnstile"],
22952295
"globals": ["turnstile"]
2296+
},
2297+
{
2298+
"name": "Friendly Captcha",
2299+
"patterns": ["cdn\\.friendlycaptcha\\.com|friendlycaptcha\\.com/[^\\s\"'<>]*(?:widget|sdk|captcha)|frc-captcha"]
2300+
},
2301+
{
2302+
"name": "MTCaptcha",
2303+
"patterns": ["service\\.mtcaptcha\\.com|mtcaptcha\\.com/[^\\s\"'<>]*(?:mtcaptcha|widget|api)|mtcaptcha\\.min\\.js"]
2304+
},
2305+
{
2306+
"name": "ALTCHA",
2307+
"patterns": [
2308+
"cdn\\.jsdelivr\\.net/npm/altcha|unpkg\\.com/altcha|altcha\\.org/[^\\s\"'<>]*(?:widget|captcha)|altcha(?:\\.min)?\\.js"
2309+
]
2310+
},
2311+
{
2312+
"name": "BotDetect CAPTCHA",
2313+
"patterns": ["captcha\\.com/(?:botdetect|scripts)|botdetectcaptcha|BotDetectCaptcha"]
2314+
},
2315+
{
2316+
"name": "Tencent CAPTCHA",
2317+
"patterns": [
2318+
"turing\\.captcha\\.qcloud\\.com|ssl\\.captcha\\.qq\\.com|captcha\\.qq\\.com|tencentcloud\\.com/[^\\s\"'<>]*(?:captcha|turing)"
2319+
]
2320+
},
2321+
{
2322+
"name": "Alibaba Cloud CAPTCHA",
2323+
"patterns": [
2324+
"captcha\\.aliyuncs\\.com|g\\.alicdn\\.com/AWSC|g\\.alicdn\\.com/sd/ncpc|aliyun\\.com/[^\\s\"'<>]*(?:captcha|risk)"
2325+
]
2326+
},
2327+
{
2328+
"name": "Baidu CAPTCHA",
2329+
"patterns": [
2330+
"passport\\.baidu\\.com/[^\\s\"'<>]*(?:captcha|vcode)|wappass\\.baidu\\.com/[^\\s\"'<>]*captcha|baidu\\.com/[^\\s\"'<>]*(?:captcha|vcode)"
2331+
]
2332+
},
2333+
{
2334+
"name": "GeeTest",
2335+
"patterns": ["static\\.geetest\\.com|api\\.geetest\\.com|get\\.geetest\\.com|geetest\\.com/[^\\s\"'<>]*(?:gt|captcha|static)"]
2336+
},
2337+
{
2338+
"name": "NetEase Yidun CAPTCHA",
2339+
"patterns": [
2340+
"cstaticdun\\.126\\.net|cstaticdun\\.163\\.com|acstatic-dun\\.126\\.net|dun\\.163\\.com/[^\\s\"'<>]*(?:captcha|watchman|yidun)"
2341+
]
2342+
},
2343+
{
2344+
"name": "Yandex SmartCaptcha",
2345+
"patterns": ["smartcaptcha\\.yandexcloud\\.net|captcha-api\\.yandex\\.ru|yandex\\.cloud/[^\\s\"'<>]*smartcaptcha"]
2346+
},
2347+
{
2348+
"name": "VK Captcha",
2349+
"patterns": ["vk\\.com/[^\\s\"'<>]*(?:captcha|widget_captcha)|api\\.vk\\.com/[^\\s\"'<>]*captcha"]
2350+
},
2351+
{
2352+
"name": "Cloudflare Managed Challenge",
2353+
"patterns": ["challenges\\.cloudflare\\.com/cdn-cgi/challenge-platform|cf_chl_|/cdn-cgi/challenge-platform/"]
2354+
},
2355+
{
2356+
"name": "Capy Puzzle CAPTCHA",
2357+
"patterns": ["api\\.capy\\.me|capy\\.me/[^\\s\"'<>]*(?:puzzle|captcha|challenge)|capy_captchakey"]
2358+
},
2359+
{
2360+
"name": "KeyCAPTCHA",
2361+
"patterns": ["backs\\.keycaptcha\\.com|keycaptcha\\.com/[^\\s\"'<>]*(?:captcha|widget|swfs)|s_s_c_user_id"]
2362+
},
2363+
{
2364+
"name": "Solve Media CAPTCHA",
2365+
"patterns": ["api-secure\\.solvemedia\\.com|api\\.solvemedia\\.com|solvemedia\\.com/[^\\s\"'<>]*(?:challenge|papi|captcha)"]
2366+
},
2367+
{
2368+
"name": "mCaptcha",
2369+
"patterns": ["mcaptcha\\.org/[^\\s\"'<>]*(?:widget|captcha)|mcaptcha(?:\\.min)?\\.js|data-mcaptcha-sitekey"]
2370+
},
2371+
{
2372+
"name": "Akamai Bot Manager",
2373+
"patterns": ["akamaihd\\.net/[^\\s\"'<>]*(?:akam|bm|bot)|/akam/[^\\s\"'<>]*(?:sensor|bm)|bm-verify"]
2374+
},
2375+
{
2376+
"name": "Imperva Bot Protection",
2377+
"patterns": ["imperva\\.com/[^\\s\"'<>]*(?:bot|incapsula)|incapsula\\.com/[^\\s\"'<>]*(?:js|resource)|_Incapsula_Resource"]
2378+
},
2379+
{
2380+
"name": "Kasada",
2381+
"patterns": ["kasada\\.io|kpsdk|/ips\\.js|/fp\\?x-kpsdk"]
2382+
},
2383+
{
2384+
"name": "CHEQ",
2385+
"patterns": ["cheqzone\\.com|ob\\.cheqzone\\.com|cheq\\.ai/[^\\s\"'<>]*(?:tag|bot|fraud)"]
22962386
}
22972387
]
22982388
},

public/tech-links.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,26 @@
15631563
"Google reCAPTCHA": "https://www.google.com/recaptcha/about",
15641564
"hCaptcha": "https://www.hcaptcha.com",
15651565
"Cloudflare Turnstile": "https://www.cloudflare.com/products/turnstile",
1566+
"Friendly Captcha": "https://friendlycaptcha.com",
1567+
"MTCaptcha": "https://www.mtcaptcha.com",
1568+
"ALTCHA": "https://altcha.org",
1569+
"BotDetect CAPTCHA": "https://captcha.com",
1570+
"Tencent CAPTCHA": "https://cloud.tencent.com/product/captcha",
1571+
"Alibaba Cloud CAPTCHA": "https://www.aliyun.com/product/security/captcha",
1572+
"Baidu CAPTCHA": "https://cloud.baidu.com",
1573+
"GeeTest": "https://www.geetest.com",
1574+
"NetEase Yidun CAPTCHA": "https://dun.163.com",
1575+
"Yandex SmartCaptcha": "https://yandex.cloud/en/services/smartcaptcha",
1576+
"VK Captcha": "https://vk.com",
1577+
"Cloudflare Managed Challenge": "https://developers.cloudflare.com/cloudflare-challenges",
1578+
"Capy Puzzle CAPTCHA": "https://www.capy.me",
1579+
"KeyCAPTCHA": "https://www.keycaptcha.com",
1580+
"Solve Media CAPTCHA": "https://www.solvemedia.com",
1581+
"mCaptcha": "https://mcaptcha.org",
1582+
"Akamai Bot Manager": "https://www.akamai.com/products/bot-manager",
1583+
"Imperva Bot Protection": "https://www.imperva.com",
1584+
"Kasada": "https://www.kasada.io",
1585+
"CHEQ": "https://cheq.ai",
15661586
"Optimizely": "https://www.optimizely.com",
15671587
"VWO": "https://vwo.com",
15681588
"LaunchDarkly": "https://launchdarkly.com",

0 commit comments

Comments
 (0)