dsh-sherlock 0.0.0-stage → 0.1.1
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/CHANGELOG.md +15 -0
- package/LICENSE +202 -0
- package/NOTICE +11 -0
- package/README.md +135 -2
- package/README.zh.md +136 -0
- package/cordis.patch.yml +3 -0
- package/data/SHERLOCK-LICENSE +21 -0
- package/data/SOURCE.json +14 -0
- package/data/curation.json +87 -0
- package/data/exclusions.txt +47 -0
- package/data/sites.json +11380 -0
- package/icon.svg +8 -0
- package/index.js +1 -0
- package/lib/core/config.js +111 -0
- package/lib/core/engine.js +679 -0
- package/lib/core/manifest.js +175 -0
- package/lib/core/render.js +112 -0
- package/lib/dsh/plugin.js +43 -0
- package/lib/dsh/skill.js +47 -0
- package/lib/dsh/tools.js +267 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +61 -4
- package/skills/sherlock-osint/SKILL.md +114 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1 — 2026-11-08
|
|
4
|
+
|
|
5
|
+
- Initial public release (npm staged-publish path).
|
|
6
|
+
- `sherlock_check` and `sherlock_sites` tools over a pinned Sherlock manifest.
|
|
7
|
+
- Six result states with confidence and evidence.
|
|
8
|
+
- Random negative-control verification for claimed results.
|
|
9
|
+
- Per-host rate limiting, bounded response bodies, cancellation, and an in-memory cache.
|
|
10
|
+
- Optional `sherlock-osint` skill.
|
|
11
|
+
- 481-site data snapshot, 45 curated core names (41 effective), 47 exclusions.
|
|
12
|
+
|
|
13
|
+
## 0.1.0 — 2026-11-08
|
|
14
|
+
|
|
15
|
+
- Internal packaging iteration; not published to npm.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
dsh-sherlock
|
|
2
|
+
Copyright 2026 PerryLink
|
|
3
|
+
|
|
4
|
+
This product includes site manifest data derived from the Sherlock project
|
|
5
|
+
(https://github.com/sherlock-project/sherlock), which is licensed under the
|
|
6
|
+
MIT License. The upstream license text is reproduced in
|
|
7
|
+
data/SHERLOCK-LICENSE.
|
|
8
|
+
|
|
9
|
+
dsh-sherlock is an independent integration and is not affiliated with or
|
|
10
|
+
endorsed by the Sherlock project. The Sherlock name is used only to describe
|
|
11
|
+
compatibility with its site-manifest format.
|
package/README.md
CHANGED
|
@@ -1,3 +1,136 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-sherlock
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Sherlock-compatible public username checks for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH).
|
|
4
|
+
|
|
5
|
+
It turns the [Sherlock](https://github.com/sherlock-project/sherlock) site manifest into a DSH-native bundle with two tools and an on-demand skill. It is deliberately **not** a 1:1 port of the Python CLI: blocked, unknown, and unreliable results stay separate from claimed and available ones.
|
|
6
|
+
|
|
7
|
+
> Not affiliated with or endorsed by the Sherlock project. The name describes compatibility with its site-manifest format.
|
|
8
|
+
|
|
9
|
+
## What it does
|
|
10
|
+
|
|
11
|
+
- `sherlock_check` checks one public handle across a pinned snapshot of 481 sites.
|
|
12
|
+
- `sherlock_sites` lists site names, detector types, and reliability tiers so the model can choose targets.
|
|
13
|
+
- `sherlock-osint` skill explains the six result states, verification, reporting, and boundaries.
|
|
14
|
+
|
|
15
|
+
Default scope is a curated **core set of 41 effective sites** (45 names minus 4 exclusions). `scope: "all"` broadens the sample, but a single call is capped at **120** sites. NSFW sites are off by default.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# npm
|
|
21
|
+
dsh plugin --profile <profile> add dsh-sherlock
|
|
22
|
+
|
|
23
|
+
# GitHub (no build step, no allowBuilds)
|
|
24
|
+
dsh plugin --profile <profile> add github:PerryLink/dsh-sherlock#<40-hex-sha>
|
|
25
|
+
|
|
26
|
+
# local checkout
|
|
27
|
+
dsh plugin --profile <profile> add ./dsh-sherlock
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Verify the layer:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
dsh --profile <profile> --dump-config | grep -A2 dsh-sherlock
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Then ask DSH:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
Check whether the handle "alice" exists on the core sites and summarize the leads.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Or call the tool directly in PTC:
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
await tools.sherlock_check({ username: 'alice', scope: 'core' })
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Result states
|
|
49
|
+
|
|
50
|
+
| State | Meaning | How to treat it |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| `claimed` | A profile-shaped response | A lead, not proof of identity |
|
|
53
|
+
| `available` | The site's not-found signal | Not proof the handle is unused everywhere |
|
|
54
|
+
| `unknown` | Timeout, DNS/TLS, 5xx, detector mismatch | Could not check; do not infer absence |
|
|
55
|
+
| `blocked` | 401/403/429/999 or WAF | Blocked; do not infer absence |
|
|
56
|
+
| `illegal` | Handle fails the site's `regexCheck` | Site does not allow this format |
|
|
57
|
+
| `unreliable` | The random control handle was also "claimed" | Site rule is broken for this query |
|
|
58
|
+
|
|
59
|
+
`confidence` is `high`, `medium`, or `low`; `evidence` records the HTTP status, detector, redirects, and control result without returning page HTML.
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
Set config on the plugin row in your profile patch:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
- insert:
|
|
67
|
+
- id: dsh-sherlock
|
|
68
|
+
name: dsh-sherlock
|
|
69
|
+
config:
|
|
70
|
+
defaultScope: core
|
|
71
|
+
maxSites: 120
|
|
72
|
+
concurrency: 10
|
|
73
|
+
perHostDelayMs: 350
|
|
74
|
+
timeoutMs: 10000
|
|
75
|
+
toolTimeoutMs: 180000
|
|
76
|
+
maxResponseBytes: 524288
|
|
77
|
+
maxVerify: 30
|
|
78
|
+
cacheTtlMs: 600000
|
|
79
|
+
includeNsfw: false
|
|
80
|
+
honorExclusions: true
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| Key | Default | Notes |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| `defaultScope` | `core` | `core` or `all` |
|
|
86
|
+
| `maxSites` | `120` | Hard cap |
|
|
87
|
+
| `concurrency` | `10` | 1–50 |
|
|
88
|
+
| `perHostDelayMs` | `350` | Per-host serialization + delay |
|
|
89
|
+
| `timeoutMs` | `10000` | Per request |
|
|
90
|
+
| `toolTimeoutMs` | `180000` | Cooperative tool deadline |
|
|
91
|
+
| `maxResponseBytes` | `524288` | Body cap; message matching stops at the cap |
|
|
92
|
+
| `maxVerify` | `30` | Random negative-control probes for claimed results |
|
|
93
|
+
| `cacheTtlMs` | `600000` | Claimed/available; blocked/unknown use at most 60s |
|
|
94
|
+
| `includeNsfw` | `false` | Deployment default |
|
|
95
|
+
| `honorExclusions` | `true` | Upstream false-positive exclusions |
|
|
96
|
+
| `userAgent` | package UA | Transparent by default |
|
|
97
|
+
| `manifestPath` | bundled data | Advanced/testing; no model-supplied URL |
|
|
98
|
+
|
|
99
|
+
Network proxies are handled by DSH: export `HTTPS_PROXY` / `HTTP_PROXY` before launching `dsh`; the plugin uses plain `fetch` and inherits the process-wide dispatcher. Do not pass a proxy from the model.
|
|
100
|
+
|
|
101
|
+
## Safety
|
|
102
|
+
|
|
103
|
+
- Public pages only; no login, paywall, captcha bypass, or credential use.
|
|
104
|
+
- The tool never returns raw HTML; fetch a profile page separately with `web_fetch` if you need to verify it.
|
|
105
|
+
- URL templates are vendored and validated; redirects are checked; private/loopback destinations are rejected unless a test explicitly enables them.
|
|
106
|
+
- Header allowlist: `Cookie`, `Authorization`, and `Host` are dropped.
|
|
107
|
+
- Per-host rate limiting, a 512 KB body cap, and bounded concurrency are on by default.
|
|
108
|
+
- No bulk scanning, WAF evasion, or high-impact decision support.
|
|
109
|
+
|
|
110
|
+
Use responsibly and follow the target sites' terms and applicable law.
|
|
111
|
+
|
|
112
|
+
## Data
|
|
113
|
+
|
|
114
|
+
`data/sites.json` is a normalized snapshot of the Sherlock manifest. It records the upstream commit, raw SHA-256, and counts in `data/SOURCE.json`. The data is MIT-licensed; see `data/SHERLOCK-LICENSE` and `NOTICE`.
|
|
115
|
+
|
|
116
|
+
The data is pinned so installs are reproducible. Update it with `scripts/sync-sherlock.mjs` (maintainers) and publish a patch release after review. Do not fetch the manifest at model-call time.
|
|
117
|
+
|
|
118
|
+
## Development
|
|
119
|
+
|
|
120
|
+
Requires Node 24.9+.
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
npm test # node --test, fixture server only
|
|
124
|
+
npm run check # data-pack validation
|
|
125
|
+
npm run pack:check # npm pack --dry-run
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Tests cover status codes, messages, response URLs, WAF, redirects, POST payloads, custom headers, timeouts, body caps, exclusions, negative controls, caching, tool schemas, and data integrity. The real DSH schema validator can be used with:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
DSH_TOOLS_PATH=/path/to/dsh-tools/lib/index.js npm test
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## License
|
|
135
|
+
|
|
136
|
+
Apache-2.0 for the plugin code; MIT for the Sherlock-derived data. See `LICENSE`, `NOTICE`, and `data/SHERLOCK-LICENSE`.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# dsh-sherlock
|
|
2
|
+
|
|
3
|
+
面向 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(DSH)的 Sherlock 兼容用户名检查插件。
|
|
4
|
+
|
|
5
|
+
它把 [Sherlock](https://github.com/sherlock-project/sherlock) 的站点清单变成一个 DSH 原生 bundle:两个工具 + 一个按需加载的 skill。它不是 Python CLI 的 1:1 移植——**被拦截、未知、不可信**会和已占用、可用明确分开。
|
|
6
|
+
|
|
7
|
+
> 与 Sherlock 项目无隶属或背书关系;名字只表示兼容其站点清单格式。
|
|
8
|
+
|
|
9
|
+
## 能做什么
|
|
10
|
+
|
|
11
|
+
- `sherlock_check`:用固定快照检查一个公开 handle,覆盖 481 个站点。
|
|
12
|
+
- `sherlock_sites`:列出站点名、检测器类型和可靠性,供模型选择目标。
|
|
13
|
+
- `sherlock-osint` skill:解释六态、复核、报告模板和边界。
|
|
14
|
+
|
|
15
|
+
默认范围是 curated **core 41 个有效站点**(45 个名字扣除 4 个排除项)。`scope: "all"` 扩大范围,但单次最多 **120** 个站点;NSFW 默认关闭。
|
|
16
|
+
|
|
17
|
+
## 安装
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# npm
|
|
21
|
+
dsh plugin --profile <profile> add dsh-sherlock
|
|
22
|
+
|
|
23
|
+
# GitHub(无构建步骤,不需要 allowBuilds)
|
|
24
|
+
dsh plugin --profile <profile> add github:PerryLink/dsh-sherlock#<40-hex-sha>
|
|
25
|
+
|
|
26
|
+
# 本地
|
|
27
|
+
dsh plugin --profile <profile> add ./dsh-sherlock
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
验证:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
dsh --profile <profile> --dump-config | grep -A2 dsh-sherlock
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
然后对 DSH 说:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
检查 handle "alice" 在 core 站点上是否存在,并总结线索。
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
PTC 里也可以直接调用:
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
await tools.sherlock_check({ username: 'alice', scope: 'core' })
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 六态
|
|
49
|
+
|
|
50
|
+
| 状态 | 含义 | 应该怎么用 |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| `claimed` | 检测到 profile 形状 | 是线索,不是身份证明 |
|
|
53
|
+
| `available` | 命中站点的 not-found 信号 | 不代表全网不存在 |
|
|
54
|
+
| `unknown` | 超时/DNS/TLS/5xx/检测器不匹配 | 没查成,不能推断不存在 |
|
|
55
|
+
| `blocked` | 401/403/429/999 或 WAF | 被拦截,不能推断不存在 |
|
|
56
|
+
| `illegal` | 不匹配站点 `regexCheck` | 该站点不允许这个格式 |
|
|
57
|
+
| `unreliable` | 随机对照 handle 也被 claimed | 站点规则失效,这个 lead 不可信 |
|
|
58
|
+
|
|
59
|
+
`confidence` 为 `high`/`medium`/`low`;`evidence` 记录 HTTP 状态、检测器、重定向和对照结果,不返回页面 HTML。
|
|
60
|
+
|
|
61
|
+
## 配置
|
|
62
|
+
|
|
63
|
+
在 profile patch 的插件行上配置:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
- insert:
|
|
67
|
+
- id: dsh-sherlock
|
|
68
|
+
name: dsh-sherlock
|
|
69
|
+
config:
|
|
70
|
+
defaultScope: core
|
|
71
|
+
maxSites: 120
|
|
72
|
+
concurrency: 10
|
|
73
|
+
perHostDelayMs: 350
|
|
74
|
+
timeoutMs: 10000
|
|
75
|
+
toolTimeoutMs: 180000
|
|
76
|
+
maxResponseBytes: 524288
|
|
77
|
+
maxVerify: 30
|
|
78
|
+
cacheTtlMs: 600000
|
|
79
|
+
includeNsfw: false
|
|
80
|
+
honorExclusions: true
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| 配置 | 默认 | 说明 |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| `defaultScope` | `core` | `core` 或 `all` |
|
|
86
|
+
| `maxSites` | `120` | 硬上限 |
|
|
87
|
+
| `concurrency` | `10` | 1–50 |
|
|
88
|
+
| `perHostDelayMs` | `350` | 同一 host 串行 + 间隔 |
|
|
89
|
+
| `timeoutMs` | `10000` | 单请求 |
|
|
90
|
+
| `toolTimeoutMs` | `180000` | 工具截止时间 |
|
|
91
|
+
| `maxResponseBytes` | `524288` | 响应体上限;匹配到上限为止 |
|
|
92
|
+
| `maxVerify` | `30` | claimed 的随机负样本上限 |
|
|
93
|
+
| `cacheTtlMs` | `600000` | claimed/available;blocked/unknown 最多 60s |
|
|
94
|
+
| `includeNsfw` | `false` | 部署级默认 |
|
|
95
|
+
| `honorExclusions` | `true` | 上游 false-positive 排除项 |
|
|
96
|
+
| `userAgent` | 包默认 UA | 默认透明 |
|
|
97
|
+
| `manifestPath` | 包内数据 | 高级/测试用;不接受模型给 URL |
|
|
98
|
+
|
|
99
|
+
网络代理由 DSH 处理:启动 `dsh` 前 export `HTTPS_PROXY` / `HTTP_PROXY`,插件用 plain `fetch` 自动继承进程级 dispatcher;不要让模型传 proxy。
|
|
100
|
+
|
|
101
|
+
## 安全边界
|
|
102
|
+
|
|
103
|
+
- 只查公开页面;不登录、不绕付费墙/验证码、不使用凭据。
|
|
104
|
+
- 工具不返回原始 HTML;需要看 profile 页面时单独用 `web_fetch`。
|
|
105
|
+
- URL 模板来自包内数据并校验;重定向逐跳检查;默认拒绝私有/回环地址(测试开关除外)。
|
|
106
|
+
- Header allowlist:丢弃 `Cookie`、`Authorization`、`Host`。
|
|
107
|
+
- 默认 per-host 限速、512 KB body cap、并发上限。
|
|
108
|
+
- 不做批量扫号、WAF 绕过或高风险决策。
|
|
109
|
+
|
|
110
|
+
请遵守目标站点条款和适用法律。
|
|
111
|
+
|
|
112
|
+
## 数据
|
|
113
|
+
|
|
114
|
+
`data/sites.json` 是 Sherlock manifest 的归一化快照;`data/SOURCE.json` 记录 upstream commit、raw SHA-256 和计数。数据为 MIT;见 `data/SHERLOCK-LICENSE` 与 `NOTICE`。
|
|
115
|
+
|
|
116
|
+
数据固定随包发布,保证可复现;维护者用 `scripts/sync-sherlock.mjs` 更新、review 后发 patch 版本。不要在模型调用时拉取 manifest。
|
|
117
|
+
|
|
118
|
+
## 开发
|
|
119
|
+
|
|
120
|
+
需要 Node 24.9+。
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
npm test # node --test,只用本地 fixture
|
|
124
|
+
npm run check # 数据校验
|
|
125
|
+
npm run pack:check # npm pack --dry-run
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
测试覆盖状态码、message、response_url、WAF、重定向、POST payload、自定义 header、超时、body cap、排除项、负样本、缓存、工具 schema 和数据完整性。真实 DSH schema 校验:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
DSH_TOOLS_PATH=/path/to/dsh-tools/lib/index.js npm test
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## 许可
|
|
135
|
+
|
|
136
|
+
插件代码 Apache-2.0;Sherlock 派生数据 MIT。见 `LICENSE`、`NOTICE`、`data/SHERLOCK-LICENSE`。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Sherlock Project
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/data/SOURCE.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"project": "sherlock-project/sherlock",
|
|
3
|
+
"upstreamCommit": "c588d7c8b476df9f9c84912a05d1430fb8cdcdae",
|
|
4
|
+
"fetchedAt": "2026-11-08T10:29:51.582Z",
|
|
5
|
+
"rawSha256": "3fdfc6694c5cd99798881215554b09e617c6d5284a6219fae309882566a9fb30",
|
|
6
|
+
"rawSites": 481,
|
|
7
|
+
"exportedSites": 481,
|
|
8
|
+
"excluded": 47,
|
|
9
|
+
"nsfw": 19,
|
|
10
|
+
"core": 45,
|
|
11
|
+
"effectiveDefault": 417,
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"licenseFile": "data/SHERLOCK-LICENSE"
|
|
14
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"lastReviewed": "2026-11-08",
|
|
4
|
+
"core": [
|
|
5
|
+
"About.me",
|
|
6
|
+
"AllMyLinks",
|
|
7
|
+
"Bandcamp",
|
|
8
|
+
"Behance",
|
|
9
|
+
"BitBucket",
|
|
10
|
+
"Blogger",
|
|
11
|
+
"Bluesky",
|
|
12
|
+
"BuyMeACoffee",
|
|
13
|
+
"Codeberg",
|
|
14
|
+
"Codecademy",
|
|
15
|
+
"Docker Hub",
|
|
16
|
+
"Dribbble",
|
|
17
|
+
"Duolingo",
|
|
18
|
+
"Flickr",
|
|
19
|
+
"GitBook",
|
|
20
|
+
"GitHub",
|
|
21
|
+
"GitLab",
|
|
22
|
+
"Gitea",
|
|
23
|
+
"Gitee",
|
|
24
|
+
"GoodReads",
|
|
25
|
+
"Gravatar",
|
|
26
|
+
"HackerNews",
|
|
27
|
+
"HackerRank",
|
|
28
|
+
"Hugging Face",
|
|
29
|
+
"Kaggle",
|
|
30
|
+
"Keybase",
|
|
31
|
+
"LeetCode",
|
|
32
|
+
"Letterboxd",
|
|
33
|
+
"Linktree",
|
|
34
|
+
"Medium",
|
|
35
|
+
"Patreon",
|
|
36
|
+
"Pinterest",
|
|
37
|
+
"ProductHunt",
|
|
38
|
+
"PyPi",
|
|
39
|
+
"Reddit",
|
|
40
|
+
"SoundCloud",
|
|
41
|
+
"Spotify",
|
|
42
|
+
"Telegram",
|
|
43
|
+
"Twitch",
|
|
44
|
+
"Vimeo",
|
|
45
|
+
"WordPress",
|
|
46
|
+
"YouTube",
|
|
47
|
+
"last.fm",
|
|
48
|
+
"mastodon.social",
|
|
49
|
+
"npm"
|
|
50
|
+
],
|
|
51
|
+
"lowReliability": [
|
|
52
|
+
"APClips",
|
|
53
|
+
"AdmireMe.Vip",
|
|
54
|
+
"All Things Worn",
|
|
55
|
+
"BongaCams",
|
|
56
|
+
"ChaturBate",
|
|
57
|
+
"Discord",
|
|
58
|
+
"Dribbble",
|
|
59
|
+
"Erome",
|
|
60
|
+
"Forum Ophilia",
|
|
61
|
+
"Heavy-R",
|
|
62
|
+
"Image Fap",
|
|
63
|
+
"Instagram",
|
|
64
|
+
"LinkedIn",
|
|
65
|
+
"LushStories",
|
|
66
|
+
"Medium",
|
|
67
|
+
"Motherless",
|
|
68
|
+
"PocketStars",
|
|
69
|
+
"Pornhub",
|
|
70
|
+
"RedTube",
|
|
71
|
+
"Reddit",
|
|
72
|
+
"RocketTube",
|
|
73
|
+
"TikTok",
|
|
74
|
+
"TnAFlix",
|
|
75
|
+
"Twitch",
|
|
76
|
+
"Twitter",
|
|
77
|
+
"Xvideos",
|
|
78
|
+
"YouPorn",
|
|
79
|
+
"YouTube",
|
|
80
|
+
"threads",
|
|
81
|
+
"xHamster"
|
|
82
|
+
],
|
|
83
|
+
"notes": {
|
|
84
|
+
"core": "Curated default set: broad, public, and likely to survive a plain HTTP client. Excluded names are filtered at runtime.",
|
|
85
|
+
"lowReliability": "Heuristic: WAF/login wall or fragile detector. Results are still returned, but confidence is capped by the engine."
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Airliners
|
|
2
|
+
Apple Developer
|
|
3
|
+
Apple Discussions
|
|
4
|
+
Archive.org
|
|
5
|
+
Blogger
|
|
6
|
+
Championat
|
|
7
|
+
Chatujme.cz
|
|
8
|
+
Codolio
|
|
9
|
+
DeviantArt
|
|
10
|
+
Discord.bio
|
|
11
|
+
GaiaOnline
|
|
12
|
+
GeeksforGeeks
|
|
13
|
+
HackerNews
|
|
14
|
+
Hashnode
|
|
15
|
+
Hubski
|
|
16
|
+
HudsonRock
|
|
17
|
+
Instapaper
|
|
18
|
+
Minecraft
|
|
19
|
+
ObservableHQ
|
|
20
|
+
Odysee
|
|
21
|
+
PCGamer
|
|
22
|
+
Rarible
|
|
23
|
+
Realmeye
|
|
24
|
+
Reddit
|
|
25
|
+
ReverbNation
|
|
26
|
+
RocketTube
|
|
27
|
+
Scribd
|
|
28
|
+
Shelf
|
|
29
|
+
SlideShare
|
|
30
|
+
Splice
|
|
31
|
+
Spotify
|
|
32
|
+
TnAFlix
|
|
33
|
+
Trakt
|
|
34
|
+
TryHackMe
|
|
35
|
+
Velomania
|
|
36
|
+
Vero
|
|
37
|
+
YandexMusic
|
|
38
|
+
authorSTREAM
|
|
39
|
+
dailykos
|
|
40
|
+
fixya
|
|
41
|
+
hunting
|
|
42
|
+
igromania
|
|
43
|
+
interpals
|
|
44
|
+
mercadolivre
|
|
45
|
+
opennet
|
|
46
|
+
phpRU
|
|
47
|
+
social.tchncs.de
|