Skip to content

Commit 388a2f4

Browse files
committed
fix: 收紧误判规则并补充检测兜底
1 parent a2d4fc5 commit 388a2f4

14 files changed

Lines changed: 140 additions & 18 deletions

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.2.64",
4+
"version": "1.2.65",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/analytics-providers.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,15 @@
9696
},
9797
{
9898
"name": "Alibaba Aplus / 阿里统计",
99-
"patterns": ["g\\.alicdn\\.com/alilog", "aplus\\.js", "log\\.mmstat\\.com", "arms-retcode", "__bl"],
100-
"globals": ["goldlog", "__bl"]
99+
"patterns": ["g\\.alicdn\\.com/alilog", "aplus\\.js", "log\\.mmstat\\.com"],
100+
"globals": ["goldlog"]
101+
},
102+
{
103+
"category": "探针 / 监控",
104+
"name": "Alibaba ARMS / 前端 APM",
105+
"kind": "前端性能监控 / APM",
106+
"patterns": ["retcode\\.alicdn\\.com/retcode", "arms-retcode", "__bl"],
107+
"globals": ["__bl"]
101108
}
102109
]
103110
},

public/rules/page/backend-hints-page.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@
6262
"confidence": "",
6363
"patterns": ["yii(?:\\.activeForm|\\.gridView)|yii\\.js"]
6464
},
65+
{
66+
"name": "ThinkPHP",
67+
"confidence": "",
68+
"patterns": [
69+
"thinkphp",
70+
"index\\.php\\?s=",
71+
"(?:^|/)index/(?:index|home|pay|user|api)/[a-z0-9_-]+(?:[?#\\s\"'<>]|$)"
72+
]
73+
},
6574
{
6675
"name": "CakePHP",
6776
"confidence": "",

public/rules/page/dynamic-technologies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
{
9494
"name": "Element UI / Element Plus",
95-
"patterns": ["element-plus", "element-ui", "\\.el-"]
95+
"patterns": ["element-plus", "element-ui", "\\.el-", "(?:^|/)element/(?:index|element-ui|element-plus)(?:\\.min)?\\.(?:js|css)(?:[?#]|$)"]
9696
}
9797
]
9898
},

public/rules/page/frontend-local-libraries.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@
5454
"name": "LazyLoad",
5555
"patterns": ["(?:^|/)(?:lazyload|lazy-load|vanilla-lazyload)(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"]
5656
},
57+
{
58+
"name": "Layer.js",
59+
"patterns": ["(?:^|/)layer(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"]
60+
},
61+
{
62+
"name": "jQuery UI",
63+
"patterns": [
64+
"(?:^|/)jquery-ui(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)",
65+
"(?:^|/)jquery\\.ui(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"
66+
]
67+
},
68+
{
69+
"name": "jQuery cxCalendar",
70+
"patterns": ["(?:^|/)jquery\\.cxcalendar(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"]
71+
},
5772
{
5873
"name": "Zooming",
5974
"patterns": ["(?:^|/)zooming(?:\\.min)?\\.js(?:[?#].*)?$"]

public/rules/page/languages.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
"confidence": "",
5959
"patterns": ["\\.jsp(?:\\?|#|$)", "\\.jspx(?:\\?|#|$)", "JSESSIONID", "javax\\.servlet\\.jsp", "org\\.apache\\.jsp"]
6060
},
61+
{
62+
"name": "FreeMarker",
63+
"kind": "后端模板语言",
64+
"confidence": "",
65+
"patterns": ["\\.ftl(?:\\?|#|$)", "freemarker", "FreeMarker template error", "org\\.apache\\.freemarker"]
66+
},
6167
{
6268
"name": "Java Servlet",
6369
"kind": "后端 Java Web 技术",

public/rules/page/payment-systems.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
{
4848
"name": "京东支付",
4949
"kind": "国内支付",
50-
"patterns": ["jdpay", "pay\\.jd\\.com", "京东支付"]
50+
"matchIn": ["url", "resources"],
51+
"patterns": ["(?:^|[/?#&_.=-])jdpay(?:[/?#&_.=-]|sdk|$)", "pay\\.jd\\.com"]
5152
},
5253
{
5354
"name": "百度收银台",
@@ -167,7 +168,12 @@
167168
{
168169
"name": "码支付 / CodePay",
169170
"kind": "第四方支付 / 免签聚合支付",
170-
"patterns": ["codepay\\.fateqq\\.com", "codepay", "码支付", "codepay_id", "codepay_key", "pay\\.codepay"]
171+
"patterns": [
172+
"codepay\\.fateqq\\.com",
173+
"pay\\.codepay",
174+
"(?:^|[?&#\\s\"'<>])codepay_(?:id|key)(?:[\\s\"'<>:=&]|$)",
175+
"name=[\"']codepay_(?:id|key)[\"']"
176+
]
171177
},
172178
{
173179
"name": "易支付 / EPay 聚合支付",
@@ -210,7 +216,11 @@
210216
{
211217
"name": "YPay / 源支付",
212218
"kind": "第四方支付 / 聚合支付",
213-
"patterns": ["YPay", "源支付", "ypay", "ypay_order", "YPay聚合支付"]
219+
"patterns": [
220+
"(?:^|/)ypay(?:/|[?#\\s\"'<>]|$)",
221+
"(?:^|[?&#\\s\"'<>])ypay_(?:order|api|notify|return|config)(?:[\\s\"'<>:=&]|$)",
222+
"name=[\"']ypay_(?:order|api|notify|return|config)[\"']"
223+
]
214224
},
215225
{
216226
"defaults": {

public/rules/page/ui-frameworks.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@
7070
},
7171
{
7272
"name": "Element UI / Element Plus",
73-
"patterns": ["element-plus", "element-ui"],
73+
"patterns": [
74+
"element-plus",
75+
"element-ui",
76+
"(?=[\\s\\S]*(?:^|/)element/index(?:\\.min)?\\.js(?:[?#]|[\"'<>\\s]|$))(?=[\\s\\S]*(?:(?:^|/)element/index(?:\\.min)?\\.css(?:[?#]|[\"'<>\\s]|$)|el-(?:button|form|input|table|dialog|select)))"
77+
],
7478
"classPrefixes": ["el-"]
7579
}
7680
]

public/rules/page/website-programs-extra.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
"matchType": "regex",
276276
"patterns": [
277277
"<meta[^>]+name=['\"]?generator['\"]?[^>]+(?:Open edX|openedx)",
278-
"(?:^|/)static/(?:edx|openedx|common|studio)/",
278+
"(?:^|/)static/(?:edx|openedx|studio)/",
279279
"(?:^|/)courses/course-v1:",
280280
"openedx[^\\s\"'<>]*\\.(?:js|css|svg|png)(?:\\?|$)"
281281
],

public/tech-links.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"Unpoly": "https://unpoly.com",
153153
"Bootstrap": "https://getbootstrap.com",
154154
"Tailwind CSS": "https://tailwindcss.com",
155+
"jQuery UI": "https://jqueryui.com",
155156
"shadcn/ui": "https://ui.shadcn.com",
156157
"Material UI": "https://mui.com",
157158
"Ant Design": "https://ant.design",
@@ -396,6 +397,7 @@
396397
"JMS Serializer Bundle": "https://jmsyst.com/bundles/JMSSerializerBundle",
397398
"Twig Components": "https://symfony.com/bundles/ux-twig-component/current/index.html",
398399
"Yii": "https://www.yiiframework.com",
400+
"ThinkPHP": "https://www.thinkphp.cn",
399401
"CodeIgniter": "https://codeigniter.com",
400402
"CakePHP": "https://cakephp.org",
401403
"Laminas / Zend Framework": "https://getlaminas.org",
@@ -444,6 +446,7 @@
444446
"Rust Ntex": "https://ntex.rs",
445447
"Rust Hyper": "https://hyper.rs",
446448
"Java Servlet": "https://jakarta.ee/specifications/servlet",
449+
"FreeMarker": "https://freemarker.apache.org",
447450
"JavaServer Faces": "https://jakarta.ee/specifications/faces",
448451
"Apache Wicket": "https://wicket.apache.org",
449452
"Vaadin Flow": "https://vaadin.com/flow",
@@ -2777,6 +2780,7 @@
27772780
"TalkingData": "https://www.talkingdata.com",
27782781
"Youmeng+ / 友盟+": "https://www.umeng.com",
27792782
"Alibaba Aplus / 阿里统计": "https://www.alibabacloud.com/help/doc-detail/28763.htm",
2783+
"Alibaba ARMS / 前端 APM": "https://www.alibabacloud.com/product/arms",
27802784
"Yandex Metrica": "https://metrica.yandex.com",
27812785
"Adobe Analytics": "https://business.adobe.com/products/analytics/adobe-analytics.html",
27822786
"Adobe Launch": "https://business.adobe.com/products/experience-platform/launch.html",
@@ -3192,6 +3196,7 @@
31923196
"single-spa": "https://single-spa.js.org",
31933197
"pyodide": "https://github.com/pyodide/pyodide",
31943198
"dplayer": "https://dplayer.js.org/#",
3199+
"Layer.js": "https://layer.layui.com",
31953200
"hack-font": "https://sourcefoundry.org/hack",
31963201
"vivus": "https://github.com/maxwellito/vivus",
31973202
"ajv": "https://github.com/epoberezkin/ajv",
@@ -5071,6 +5076,7 @@
50715076
"load-awesome": "http://github.danielcardoso.net/load-awesome",
50725077
"image-picker": "http://rvera.github.com/image-picker",
50735078
"sticky-table-headers": "https://github.com/jmosbech/StickyTableHeaders",
5079+
"jQuery cxCalendar": "https://github.com/ciaoca/cxCalendar",
50745080
"juicer": "http://juicer.name",
50755081
"dom4": "https://github.com/WebReflection/dom4",
50765082
"documentup": "http://documentup.com",

0 commit comments

Comments
 (0)