@hostclubeos/miraos 0.0.4-beta → 0.0.5-beta

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.
Files changed (147) hide show
  1. package/bundled/bug-hunter/SKILL.md +7 -0
  2. package/chunks/{acpAgent-F4OT4AQQ.js → acpAgent-UHWDA3W7.js} +2 -2
  3. package/chunks/{chunk-ECNTMKHI.js → chunk-2GVKPBW5.js} +1 -1
  4. package/chunks/{chunk-HPGUQCRQ.js → chunk-2TDRP3IX.js} +1 -1
  5. package/chunks/{chunk-C24YTZET.js → chunk-4IVYVCCU.js} +1 -1
  6. package/chunks/{chunk-CKBEAZAV.js → chunk-62DMHXLL.js} +1 -1
  7. package/chunks/{chunk-AYU4PDSQ.js → chunk-744QTJR2.js} +2 -2
  8. package/chunks/{chunk-4XV2522J.js → chunk-D3YOXHQF.js} +1 -1
  9. package/chunks/{chunk-5SJFYZQJ.js → chunk-FRADUGRC.js} +1 -1
  10. package/chunks/{chunk-WDLXS4A3.js → chunk-FXANOHXI.js} +3 -3
  11. package/chunks/{chunk-JM46SKXF.js → chunk-MQWKOOSR.js} +1 -1
  12. package/chunks/{chunk-4TJKJ2LG.js → chunk-MUS4ADP7.js} +1 -1
  13. package/chunks/{chunk-FUIRLSNA.js → chunk-N4RIISOE.js} +1 -1
  14. package/chunks/{chunk-PUPIORBU.js → chunk-NKWATWMD.js} +1 -1
  15. package/chunks/{chunk-7LXU4NUI.js → chunk-NYM67KKZ.js} +1 -1
  16. package/chunks/{chunk-TIWH3MUJ.js → chunk-PXBJPUGN.js} +1 -1
  17. package/chunks/{chunk-LISKSG7B.js → chunk-QEIX42MZ.js} +1 -1
  18. package/chunks/{chunk-BZMSTSKY.js → chunk-RKFNQQNA.js} +1 -1
  19. package/chunks/{chunk-AXBNQS6C.js → chunk-SK3QOQR4.js} +1 -1
  20. package/chunks/{chunk-33G7MOU6.js → chunk-XZNF4YNN.js} +1 -1
  21. package/chunks/{daemon-status-provider-NBPLE4JN.js → daemon-status-provider-F6KB2LNG.js} +1 -1
  22. package/chunks/{fast-path-66F2TWKE.js → fast-path-DWPD5EGQ.js} +1 -1
  23. package/chunks/{llm-LZ3HARC2.js → llm-RBI7KXDE.js} +3 -3
  24. package/chunks/{local-6KBSW7N2.js → local-HSG47CNJ.js} +1 -1
  25. package/chunks/{managed-local-serve-2N3IAB3D.js → managed-local-serve-YE4JDFNP.js} +1 -1
  26. package/chunks/{managed-runtime-bootstrap-M4P43K7W.js → managed-runtime-bootstrap-SHEXUEZN.js} +1 -1
  27. package/chunks/{managed-runtime-ssh-worker-WWZ7SJ7U.js → managed-runtime-ssh-worker-BZNJV7IB.js} +1 -1
  28. package/chunks/{memory-D62BXIJW.js → memory-JTDN5AEA.js} +1 -1
  29. package/chunks/{nonInteractiveCli-Z4A7THMG.js → nonInteractiveCli-BXHX6EIU.js} +1 -1
  30. package/chunks/{review-LM7KW6Y5.js → review-PC4IDLCG.js} +1 -1
  31. package/chunks/{run-qwen-serve-77UZS4JA.js → run-qwen-serve-XRWVWOZK.js} +1 -1
  32. package/chunks/{serve-RHO7RZ45.js → serve-JCUT4WK7.js} +1 -1
  33. package/chunks/{server-5HEOZG3T.js → server-HMTRZJF7.js} +1 -1
  34. package/chunks/{session-RT7VH6GE.js → session-RGLZU6KY.js} +1 -1
  35. package/chunks/{start-opentui-ui-I2XXWTJS.js → start-opentui-ui-YNTPK7LX.js} +1 -1
  36. package/chunks/{startInteractiveUI-774LJIJD.js → startInteractiveUI-MWA2VYTJ.js} +1 -1
  37. package/chunks/{validateNonInterActiveAuth-633WYCVH.js → validateNonInterActiveAuth-3433WFLE.js} +1 -1
  38. package/chunks/{version-77KBVA2F.js → version-XCFKTEY3.js} +1 -1
  39. package/cli.js +1 -1
  40. package/package.json +2 -2
  41. package/bundled/bug-hunter/references/apk-redteam-pipeline/SKILL.md +0 -407
  42. package/bundled/bug-hunter/references/bb-local-toolkit/SKILL.md +0 -1558
  43. package/bundled/bug-hunter/references/bb-methodology/SKILL.md +0 -513
  44. package/bundled/bug-hunter/references/bug-bounty/SKILL.md +0 -1604
  45. package/bundled/bug-hunter/references/bugcrowd-reporting/SKILL.md +0 -331
  46. package/bundled/bug-hunter/references/cloud-iam-deep/SKILL.md +0 -521
  47. package/bundled/bug-hunter/references/enterprise-vpn-attack/SKILL.md +0 -356
  48. package/bundled/bug-hunter/references/evidence-hygiene/SKILL.md +0 -401
  49. package/bundled/bug-hunter/references/exploit-completion/SKILL.md +0 -155
  50. package/bundled/bug-hunter/references/hunt-api-misconfig/SKILL.md +0 -268
  51. package/bundled/bug-hunter/references/hunt-aspnet/SKILL.md +0 -277
  52. package/bundled/bug-hunter/references/hunt-ato/SKILL.md +0 -140
  53. package/bundled/bug-hunter/references/hunt-auth-bypass/SKILL.md +0 -449
  54. package/bundled/bug-hunter/references/hunt-brute-force/SKILL.md +0 -297
  55. package/bundled/bug-hunter/references/hunt-business-logic/SKILL.md +0 -237
  56. package/bundled/bug-hunter/references/hunt-cache-poison/SKILL.md +0 -338
  57. package/bundled/bug-hunter/references/hunt-captcha-bypass/SKILL.md +0 -92
  58. package/bundled/bug-hunter/references/hunt-cicd/SKILL.md +0 -267
  59. package/bundled/bug-hunter/references/hunt-clickjacking/SKILL.md +0 -66
  60. package/bundled/bug-hunter/references/hunt-cloud-misconfig/SKILL.md +0 -195
  61. package/bundled/bug-hunter/references/hunt-cors/SKILL.md +0 -291
  62. package/bundled/bug-hunter/references/hunt-csrf/SKILL.md +0 -374
  63. package/bundled/bug-hunter/references/hunt-deserialization/SKILL.md +0 -178
  64. package/bundled/bug-hunter/references/hunt-dispatch/SKILL.md +0 -380
  65. package/bundled/bug-hunter/references/hunt-dom/SKILL.md +0 -279
  66. package/bundled/bug-hunter/references/hunt-exceptional-conditions/SKILL.md +0 -67
  67. package/bundled/bug-hunter/references/hunt-file-upload/SKILL.md +0 -158
  68. package/bundled/bug-hunter/references/hunt-fintech-graphql/SKILL.md +0 -245
  69. package/bundled/bug-hunter/references/hunt-forgot-password/SKILL.md +0 -70
  70. package/bundled/bug-hunter/references/hunt-graphql/SKILL.md +0 -368
  71. package/bundled/bug-hunter/references/hunt-grpc/SKILL.md +0 -273
  72. package/bundled/bug-hunter/references/hunt-host-header/SKILL.md +0 -265
  73. package/bundled/bug-hunter/references/hunt-html-injection/SKILL.md +0 -62
  74. package/bundled/bug-hunter/references/hunt-http-smuggling/SKILL.md +0 -87
  75. package/bundled/bug-hunter/references/hunt-idor/SKILL.md +0 -389
  76. package/bundled/bug-hunter/references/hunt-jwt-crypto/SKILL.md +0 -177
  77. package/bundled/bug-hunter/references/hunt-k8s/SKILL.md +0 -293
  78. package/bundled/bug-hunter/references/hunt-laravel/SKILL.md +0 -211
  79. package/bundled/bug-hunter/references/hunt-ldap/SKILL.md +0 -307
  80. package/bundled/bug-hunter/references/hunt-lfi/SKILL.md +0 -266
  81. package/bundled/bug-hunter/references/hunt-llm-ai/SKILL.md +0 -245
  82. package/bundled/bug-hunter/references/hunt-mfa-bypass/SKILL.md +0 -134
  83. package/bundled/bug-hunter/references/hunt-misc/SKILL.md +0 -333
  84. package/bundled/bug-hunter/references/hunt-nextjs/SKILL.md +0 -255
  85. package/bundled/bug-hunter/references/hunt-nodejs/SKILL.md +0 -219
  86. package/bundled/bug-hunter/references/hunt-nosqli/SKILL.md +0 -166
  87. package/bundled/bug-hunter/references/hunt-ntlm-info/SKILL.md +0 -270
  88. package/bundled/bug-hunter/references/hunt-oauth/SKILL.md +0 -414
  89. package/bundled/bug-hunter/references/hunt-open-redirect/SKILL.md +0 -179
  90. package/bundled/bug-hunter/references/hunt-race-condition/SKILL.md +0 -485
  91. package/bundled/bug-hunter/references/hunt-rag-vector/SKILL.md +0 -167
  92. package/bundled/bug-hunter/references/hunt-rce/SKILL.md +0 -494
  93. package/bundled/bug-hunter/references/hunt-saml/SKILL.md +0 -112
  94. package/bundled/bug-hunter/references/hunt-session/SKILL.md +0 -298
  95. package/bundled/bug-hunter/references/hunt-shadow-api/SKILL.md +0 -153
  96. package/bundled/bug-hunter/references/hunt-sharepoint/SKILL.md +0 -437
  97. package/bundled/bug-hunter/references/hunt-source-leak/SKILL.md +0 -301
  98. package/bundled/bug-hunter/references/hunt-spa-api/SKILL.md +0 -123
  99. package/bundled/bug-hunter/references/hunt-springboot/SKILL.md +0 -241
  100. package/bundled/bug-hunter/references/hunt-sqli/SKILL.md +0 -422
  101. package/bundled/bug-hunter/references/hunt-ssrf/SKILL.md +0 -514
  102. package/bundled/bug-hunter/references/hunt-ssti/SKILL.md +0 -117
  103. package/bundled/bug-hunter/references/hunt-subdomain/SKILL.md +0 -335
  104. package/bundled/bug-hunter/references/hunt-tls-network/SKILL.md +0 -355
  105. package/bundled/bug-hunter/references/hunt-websocket/SKILL.md +0 -285
  106. package/bundled/bug-hunter/references/hunt-xss/SKILL.md +0 -450
  107. package/bundled/bug-hunter/references/hunt-xxe/SKILL.md +0 -422
  108. package/bundled/bug-hunter/references/ios-redteam-pipeline/SKILL.md +0 -287
  109. package/bundled/bug-hunter/references/m365-entra-attack/SKILL.md +0 -384
  110. package/bundled/bug-hunter/references/meme-coin-audit/SKILL.md +0 -358
  111. package/bundled/bug-hunter/references/mid-engagement-ir-detection/SKILL.md +0 -353
  112. package/bundled/bug-hunter/references/offensive-osint/README.md +0 -98
  113. package/bundled/bug-hunter/references/offensive-osint/SKILL.md +0 -399
  114. package/bundled/bug-hunter/references/offensive-osint/references/breach-and-credentials.md +0 -128
  115. package/bundled/bug-hunter/references/offensive-osint/references/dork-corpus.md +0 -180
  116. package/bundled/bug-hunter/references/offensive-osint/references/helpers-and-automation.md +0 -231
  117. package/bundled/bug-hunter/references/offensive-osint/references/identity-fabric.md +0 -305
  118. package/bundled/bug-hunter/references/offensive-osint/references/people-osint.md +0 -105
  119. package/bundled/bug-hunter/references/offensive-osint/references/probes-and-wordlists.md +0 -1266
  120. package/bundled/bug-hunter/references/offensive-osint/references/recon-stack.md +0 -282
  121. package/bundled/bug-hunter/references/offensive-osint/references/recon-techniques.md +0 -341
  122. package/bundled/bug-hunter/references/offensive-osint/references/saas-public-surfaces.md +0 -138
  123. package/bundled/bug-hunter/references/offensive-osint/references/secret-patterns.md +0 -67
  124. package/bundled/bug-hunter/references/offensive-osint/references/secret-validators.md +0 -329
  125. package/bundled/bug-hunter/references/offensive-osint/references/sector-notes.md +0 -72
  126. package/bundled/bug-hunter/references/offensive-osint/references/severity-matrix.md +0 -108
  127. package/bundled/bug-hunter/references/offensive-osint/references/specialized-osint.md +0 -199
  128. package/bundled/bug-hunter/references/offensive-osint/references/tooling-install.md +0 -188
  129. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/FONT-LICENSE.txt +0 -13
  130. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/archivo-black.woff2 +0 -0
  131. package/bundled/bug-hunter/references/offensive-osint/scripts/dashboard.py +0 -968
  132. package/bundled/bug-hunter/references/offensive-osint/scripts/h1_reference.py +0 -402
  133. package/bundled/bug-hunter/references/offensive-osint/scripts/secret_scan.py +0 -180
  134. package/bundled/bug-hunter/references/okta-attack/SKILL.md +0 -397
  135. package/bundled/bug-hunter/references/osint-methodology/README.md +0 -66
  136. package/bundled/bug-hunter/references/osint-methodology/SKILL.md +0 -1704
  137. package/bundled/bug-hunter/references/recon-scope-triage/SKILL.md +0 -89
  138. package/bundled/bug-hunter/references/redteam-mindset/SKILL.md +0 -401
  139. package/bundled/bug-hunter/references/redteam-report-template/SKILL.md +0 -347
  140. package/bundled/bug-hunter/references/regression-hunting/SKILL.md +0 -98
  141. package/bundled/bug-hunter/references/report-writing/SKILL.md +0 -568
  142. package/bundled/bug-hunter/references/security-arsenal/SKILL.md +0 -912
  143. package/bundled/bug-hunter/references/supply-chain-attack-recon/SKILL.md +0 -648
  144. package/bundled/bug-hunter/references/triage-validation/SKILL.md +0 -418
  145. package/bundled/bug-hunter/references/vmware-vcenter-attack/SKILL.md +0 -372
  146. package/bundled/bug-hunter/references/web2-recon/SKILL.md +0 -698
  147. package/bundled/bug-hunter/references/web3-audit/SKILL.md +0 -606
@@ -1,1266 +0,0 @@
1
- # Probes & Wordlists
2
-
3
- > Reference content for the `offensive-osint` skill. Originally §16 of the monolithic SKILL.md (refactored 2026-05-02 for size/load efficiency).
4
-
5
- ## 16. Pre-built Wordlists & Probe Paths
6
-
7
- Copy-pasteable arsenals, severity-annotated where relevant.
8
-
9
- ### 16.1 Swagger / OpenAPI discovery — 28 paths
10
-
11
- Probe each path on every alive webapp. GET (or HEAD if rate-limited).
12
-
13
- ```
14
- swagger.json
15
- swagger.yaml
16
- swagger/v1/swagger.json
17
- swagger/v2/swagger.json
18
- swagger-ui.html
19
- swagger-ui/
20
- swagger-resources
21
- api-docs
22
- api-docs.json
23
- api/swagger
24
- api/swagger.json
25
- api/swagger-ui.html
26
- api/v1/swagger.json
27
- api/v2/swagger.json
28
- api/v3/api-docs
29
- v2/api-docs
30
- v3/api-docs
31
- openapi.json
32
- openapi.yaml
33
- openapi/v1
34
- openapi/v3
35
- docs
36
- redoc
37
- rapidoc
38
- api/docs
39
- api/documentation
40
- .well-known/openapi
41
- ```
42
-
43
- **Severity:**
44
- - Reachable Swagger/OpenAPI spec without auth → **HIGH** `LEAKY_API_SPEC` (full endpoint enumeration leaks; often reveals undocumented internal APIs).
45
- - Behind auth but accessible to any authenticated user → MEDIUM (still discloses internal API surface).
46
-
47
- ### 16.2 GraphQL discovery — 13 paths
48
-
49
- ```
50
- graphql
51
- graphiql
52
- api/graphql
53
- v1/graphql
54
- v2/graphql
55
- query
56
- api/query
57
- gql
58
- altair
59
- playground
60
- subscriptions
61
- graphql/console
62
- api/v1/graphql
63
- ```
64
-
65
- **Standard introspection POST body:**
66
- ```json
67
- {
68
- "operationName": "IntrospectionQuery",
69
- "query": "query IntrospectionQuery { __schema { types { name kind fields { name type { name kind } } } queryType { name } mutationType { name } subscriptionType { name } } }"
70
- }
71
- ```
72
-
73
- **Severity:**
74
- - Introspection returns schema without auth → **HIGH** `OPEN_GRAPHQL_API`.
75
- - Field-suggestion enumeration possible (server returns "did you mean" for typo'd field names) → **MEDIUM** (re-derive partial schema even when introspection is disabled).
76
- - `/graphql` accepts batched queries (`[...]` request body) → MEDIUM (rate-limit bypass surface; auth bypass via mixed batches).
77
-
78
- UI markers (lower severity but still discoverable):
79
- - HTML response contains `graphiql`, `playground`, `apollo studio`, `altair` → GraphiQL UI exposed (often shipped accidentally on prod).
80
-
81
- ### 16.3 High-risk ports — 35 services
82
-
83
- For each open port, emit a finding with the severity and "why an attacker cares" below. Source for the open-port observation: Shodan InternetDB (free, 1 req/sec) is the recommended starting point.
84
-
85
- | Port | Service | Severity | Why it matters |
86
- |---|---|---|---|
87
- | 21 | FTP | HIGH | Anonymous read often enabled; cleartext creds. |
88
- | 22 | SSH | LOW | Banner discloses version; brute-force surface. |
89
- | 23 | Telnet | HIGH | Cleartext protocol; should never be exposed. |
90
- | 25 | SMTP | LOW | Open relay risk; version banner. |
91
- | 53 | DNS | LOW | Recursion = DDoS amplifier; AXFR opportunism. |
92
- | 80 | HTTP | INFO | Standard. |
93
- | 110 | POP3 | LOW | Cleartext if no STARTTLS. |
94
- | 111 | rpcbind | MEDIUM | NFS exports enumeration. |
95
- | 135 | MS RPC | HIGH | Enum via Impacket. |
96
- | 139 | NetBIOS-SSN | HIGH | File/printer enum. |
97
- | 143 | IMAP | LOW | Cleartext if no STARTTLS. |
98
- | 161 | SNMP | HIGH | Community strings often `public`/`private`; full device enum. |
99
- | 389 | LDAP | HIGH | Anonymous bind = full directory dump. |
100
- | 443 | HTTPS | INFO | Standard. |
101
- | 445 | SMB | **CRITICAL** | EternalBlue, SMB relay, anonymous shares. |
102
- | 465 | SMTPS | LOW | Banner. |
103
- | 514 | rsyslog | MEDIUM | Log injection / DoS. |
104
- | 587 | SMTP-MSA | LOW | Banner. |
105
- | 631 | IPP/CUPS | MEDIUM | Print server enum / RCE in old CUPS. |
106
- | 873 | rsync | HIGH | Modules often listable; backup data exposure. |
107
- | 1433 | MSSQL | HIGH | Brute-force; xp_cmdshell. |
108
- | 1521 | Oracle TNS | HIGH | Brute-force; SID enum. |
109
- | 2049 | NFS | HIGH | World-readable exports. |
110
- | 2375 | Docker API (unencrypted) | **CRITICAL** | Unauthenticated container/host takeover. |
111
- | 2376 | Docker API (TLS) | HIGH | Cert validation bypass risk. |
112
- | 3000 | Common dev / Grafana | MEDIUM | Often Grafana / Express dev with default creds. |
113
- | 3306 | MySQL | HIGH | Brute-force; default `root:""`. |
114
- | 3389 | RDP | **CRITICAL** | BlueKeep / DejaBlue / NLA bypass. |
115
- | 5432 | PostgreSQL | HIGH | Brute-force; default `postgres:postgres`. |
116
- | 5601 | Kibana | HIGH | Often unauthenticated; Elasticsearch pivot. |
117
- | 5900 | VNC | HIGH | Often unauthenticated or weak password. |
118
- | 5984 | CouchDB | HIGH | Default no auth; admin party. |
119
- | 6379 | Redis | **CRITICAL** | No auth default; write `authorized_keys` for SSH. |
120
- | 7001 | WebLogic | HIGH | Frequent CVEs (CVE-2020-14882, etc.). |
121
- | 8000 | Common dev | MEDIUM | Django, common dev servers. |
122
- | 8080 | HTTP-alt | MEDIUM | Tomcat, Jenkins, common proxy. |
123
- | 8443 | HTTPS-alt | MEDIUM | Same as 8080. |
124
- | 8888 | Common dev / Jupyter | HIGH | Jupyter often exposes interactive shell. |
125
- | 9090 | Cockpit / Prometheus | HIGH | Server admin UI / metrics scraping. |
126
- | 9200 | Elasticsearch | **CRITICAL** | Typically no auth. |
127
- | 9300 | Elasticsearch transport | HIGH | Cluster join + RCE. |
128
- | 11211 | memcached | MEDIUM | UDP DDoS amp; data dump. |
129
- | 27017 | MongoDB | **CRITICAL** | No auth by default. |
130
- | 50070 | Hadoop NameNode | HIGH | HDFS browse. |
131
-
132
- When Shodan InternetDB returns `vulns[]` for a port, escalate the finding severity by one tier and include the CVE list in evidence.
133
-
134
- ### 16.4 Missing security headers — 6 findings
135
-
136
- For every alive webapp, audit response headers. Each missing header below = one finding.
137
-
138
- | Header | Severity (default) | Severity (sensitive path) | Notes |
139
- |---|---|---|---|
140
- | `Strict-Transport-Security` | MEDIUM | **HIGH** | Sensitive paths: `/login`, `/signin`, `/sso`, `/admin`, `/auth`. |
141
- | `Content-Security-Policy` | MEDIUM | MEDIUM | XSS impact mitigation gone. |
142
- | `X-Frame-Options` | LOW | LOW | Clickjacking. (CSP `frame-ancestors` is the modern replacement.) |
143
- | `X-Content-Type-Options` | LOW | LOW | MIME-sniff XSS. |
144
- | `Referrer-Policy` | INFO | INFO | Outbound link leakage. |
145
- | `Permissions-Policy` | INFO | INFO | Feature-policy hardening. |
146
-
147
- ### 16.5 Always-on HTTP checks — 15 paths
148
-
149
- Run these against every alive webapp regardless of Nuclei availability. Cheap; high signal.
150
-
151
- | Path | Finding | Severity | Match logic |
152
- |---|---|---|---|
153
- | `/.git/config` | Exposed `.git` repo | **CRITICAL** | Body contains `[core]`, `[remote`, `repositoryformatversion` |
154
- | `/.git/HEAD` | Exposed `.git/HEAD` | HIGH | Body matches `^ref:\s` |
155
- | `/.env` | Exposed `.env` | **CRITICAL** | Multiline regex `^\s*[A-Z_][A-Z0-9_]*\s*=` |
156
- | `/server-status` | Apache server-status | MEDIUM | Body contains `Apache Server Status` or matching title |
157
- | `/server-info` | Apache mod_info | MEDIUM | Body contains `Apache Server Information` |
158
- | `/.DS_Store` | Exposed `.DS_Store` | LOW | Byte signature `\x00\x00\x00\x01Bud1` |
159
- | `/phpinfo.php` | phpinfo() leak | HIGH | Body contains `phpinfo()`, `PHP Version`, or matching title |
160
- | `/info.php` | phpinfo() (alt path) | HIGH | Same as above |
161
- | `/actuator/env` | Spring Boot `/actuator/env` | **CRITICAL** | Body contains `"propertySources"`, `systemProperties`, `systemEnvironment` |
162
- | `/actuator/heapdump` | Spring Boot heapdump | **CRITICAL** | HPROF magic bytes / large binary download |
163
- | `/_cat/indices` | Elasticsearch open | HIGH | Returns index list |
164
- | `/console` | Jenkins script console | HIGH | Body contains `Jenkins`/`Script Console` |
165
- | `/manager/html` | Tomcat Manager | HIGH | Body contains `Tomcat Web Application Manager` |
166
- | `/wp-admin/install.php` | Orphaned WP install | LOW | Body contains `WordPress Installation` |
167
- | `/.well-known/security.txt` | Disclosure policy info | INFO | Parse contact + policy fields |
168
-
169
- Plus parse `/robots.txt` for `Disallow:` paths — those become the next-tier wordlist for that target.
170
-
171
- ### 16.6 SAML metadata — 5 paths
172
-
173
- ```
174
- /saml/metadata
175
- /FederationMetadata/2007-06/FederationMetadata.xml
176
- /federationmetadata/2007-06/federationmetadata.xml
177
- /simplesaml/saml2/idp/metadata.php
178
- /auth/saml2/metadata
179
- ```
180
-
181
- Reachable SAML metadata XML reveals: `EntityID`, signing certs (often pinned → cert-reuse pivot), `SingleSignOnService` URL, `NameIDFormat`. Mark as `MISCONFIG` (LOW severity unless metadata leaks internal hostnames or non-public certs, then MEDIUM).
182
-
183
- ### 16.7 SSO subdomain prefixes — 8 prefixes
184
-
185
- Probe each against root domain + every sibling brand domain:
186
- ```
187
- auth.{domain}
188
- login.{domain}
189
- sso.{domain}
190
- idp.{domain}
191
- iam.{domain}
192
- identity.{domain}
193
- accounts.{domain}
194
- oauth.{domain}
195
- ```
196
-
197
- Plus probe `/.well-known/openid-configuration` on every alive subdomain (regardless of prefix).
198
-
199
- ### 16.8 Cloud bucket permutation arsenal
200
-
201
- **6 prefixes:**
202
- ```
203
- "" # bare candidate
204
- backup-
205
- assets-
206
- static-
207
- dev-
208
- prod-
209
- ```
210
-
211
- **15 suffixes:**
212
- ```
213
- "" # bare candidate
214
- -backup
215
- -assets
216
- -static
217
- -media
218
- -data
219
- -uploads
220
- -dev
221
- -prod
222
- -staging
223
- -logs
224
- -private
225
- -public
226
- -dump
227
- -archive
228
- ```
229
-
230
- **47 generic stems** (filter unless combined with target-identifying token):
231
- ```
232
- www, mail, email, app, apps, web, webmail, ftp, cdn, static, assets, media, img, images,
233
- videos, download, downloads, upload, uploads, data, files, docs, support, help, kb,
234
- blog, news, dev, test, staging, stg, qa, uat, sandbox, preprod, preview, vpn,
235
- mx, smtp, imap, pop, dns, ns, ns1, ns2, mx1, mx2
236
- ```
237
-
238
- **Provider URL templates:**
239
-
240
- S3:
241
- ```
242
- https://{candidate}.s3.amazonaws.com/
243
- https://{candidate}.s3-{region}.amazonaws.com/ # try us-east-1, us-west-2, eu-west-1, ap-southeast-1 first
244
- https://s3.{region}.amazonaws.com/{candidate}/
245
- ```
246
-
247
- GCS:
248
- ```
249
- https://{candidate}.storage.googleapis.com/
250
- https://storage.googleapis.com/{candidate}/
251
- ```
252
-
253
- Azure Blob:
254
- ```
255
- https://{candidate}.blob.core.windows.net/
256
- ```
257
-
258
- **Probe technique:** HEAD first → 200/301 = exists, 403 = exists private, 404 = skip. On exists, GET root → if XML/JSON object listing returns, **CRITICAL** `PUBLIC_CLOUD_BUCKET`. Direct-URL object reads but not listable → **HIGH** `PUBLIC_CLOUD_BUCKET_OBJECT_READ`.
259
-
260
- ### 16.9 JS guess-paths for endpoint discovery
261
-
262
- Probe these paths on every alive webapp (in addition to scraped `<script src=...>`):
263
-
264
- ```
265
- /main.js
266
- /app.js
267
- /bundle.js
268
- /runtime.js
269
- /index.js
270
- /vendor.js
271
- /_next/static/_buildManifest.js
272
- /_next/static/_ssgManifest.js
273
- /static/js/main.js
274
- /static/js/bundle.js
275
- /assets/index.js
276
- /static/js/main.<hash>.js # try hash discovery via 404 patterns
277
- ```
278
-
279
- For every found JS, also try `<jsfile>.map` for sourcemap leaks (HIGH `INFO_DISCLOSURE`).
280
-
281
- ### 16.10 Endpoint extraction regex tiers
282
-
283
- Three tiers, run in order on every JS body + every sourcesContent[] blob:
284
-
285
- **Tier 1 — generic quoted paths:**
286
- ```regex
287
- ['"`](/[A-Za-z0-9_\-./{}\[\]?=&%:]+)['"`]
288
- ```
289
- Match group: the path. High recall, lots of false positives — apply allowlist downstream.
290
-
291
- **Tier 2 — API-ish paths (biased filter on tier 1):**
292
- ```regex
293
- ['"`](/(?:api|graphql|gql|v\d+|swagger|openapi|rest|services|internal|admin|auth|oauth|user|users|account|accounts|search|export|upload|file|files|download|webhook|hooks|callback|admin)/[A-Za-z0-9_\-./{}\[\]?=&%:]+)['"`]
294
- ```
295
-
296
- **Tier 3 — fully-qualified URLs:**
297
- ```regex
298
- \bhttps?://[A-Za-z0-9.\-]+\.[A-Za-z]{2,}(?::\d+)?[/A-Za-z0-9_\-./{}\[\]?=&%:#]*
299
- ```
300
-
301
- Dedup on `(method, normalized-path-template)` where the template replaces `/123/` with `/{id}/` etc.
302
-
303
- ### 16.11 Internal-host leakage regexes
304
-
305
- Run on every JS body + sourcesContent + APK strings + manifest:
306
-
307
- **RFC1918:**
308
- ```regex
309
- \b(?:10\.(?:\d{1,3}\.){2}\d{1,3}|172\.(?:1[6-9]|2\d|3[01])\.(?:\d{1,3})\.(?:\d{1,3})|192\.168\.(?:\d{1,3})\.(?:\d{1,3})|127\.(?:\d{1,3}\.){2}\d{1,3})\b
310
- ```
311
-
312
- **Internal DNS suffixes:**
313
- ```regex
314
- \b[A-Za-z0-9][A-Za-z0-9\-]{0,62}\.(?:internal|corp|lan|intranet|local|prod|staging|dev|qa|test)\b
315
- ```
316
-
317
- **Kubernetes service DNS:**
318
- ```regex
319
- \b[A-Za-z0-9\-]+\.[A-Za-z0-9\-]+\.svc(?:\.cluster\.local)?\b
320
- ```
321
-
322
- Each match → MEDIUM `INFO_DISCLOSURE`. Aggregate per host: if many matches share the same internal subdomain, that's a recon seed for any future internal phase.
323
-
324
- ### 16.12 Subdomain-takeover provider fingerprints (summary, 27 providers)
325
-
326
- Watch for these CNAME targets + the corresponding "available for claim" response signature:
327
-
328
- | Provider | CNAME pattern | Takeover signature |
329
- |---|---|---|
330
- | GitHub Pages | `*.github.io` | `There isn't a GitHub Pages site here.` |
331
- | Heroku | `*.herokuapp.com` | `No such app` |
332
- | AWS S3 | `*.s3*.amazonaws.com` | `NoSuchBucket` |
333
- | AWS CloudFront | `*.cloudfront.net` | `Bad request` w/ specific X-Amz error |
334
- | Azure (multiple) | `*.azurewebsites.net`, `*.blob.core.windows.net`, `*.cloudapp.net`, `*.trafficmanager.net` | Various per-product 404 patterns |
335
- | Shopify | `shops.myshopify.com` | `Sorry, this shop is currently unavailable.` |
336
- | Squarespace | `*.squarespace.com` | `No Such Account` |
337
- | Tumblr | `*.tumblr.com` | `Whatever you were looking for doesn't currently exist.` |
338
- | WordPress | `*.wordpress.com` | `Do you want to register *.wordpress.com?` |
339
- | Fastly | various | Fastly-specific 404 |
340
- | Pantheon | `*.pantheonsite.io` | `The gods are wise, but do not know of the site...` |
341
- | Surge.sh | `*.surge.sh` | `project not found` |
342
- | Bitbucket Pages | `*.bitbucket.io` | Repository not found |
343
- | Tilda | `*.tilda.ws` | `Please renew your subscription` |
344
- | Strikingly | `*.s.strikinglydns.com` | `PAGE NOT FOUND` |
345
- | Smartling | `*.smartling.com` | Domain is not configured |
346
- | Ngrok | `*.tunnel.example.com` | Tunnel not found |
347
- | Webflow | `*.webflow.io` | Site not found |
348
- | Zendesk | `*.zendesk.com` | `Help Center Closed` |
349
- | Cargo | `*.cargocollective.com` | `404 Not Found` (with cargo branding) |
350
- | Statuspage | `*.statuspage.io` | Not found |
351
- | Intercom | `*.intercom.help` | Not found |
352
- | Helpjuice | `*.helpjuice.com` | Not found |
353
- | Helpscout | `*.helpscoutdocs.com` | Not found |
354
- | Tictail | `*.tictail.com` | Not found |
355
- | Brightcove | `*.brightcovegallery.com` | Not found |
356
- | Smugmug | various | Not found |
357
-
358
- For full per-provider detection signatures + edge cases, use SubdomainX or Subzy/Subjack against a freshly-fetched fingerprint database.
359
-
360
- ---
361
-
362
- ### 16.13 Copy-Paste Probes (curl one-liners)
363
-
364
- Every probe path in §16.1–16.12 with a runnable curl. Defaults: `-sk` (silent + ignore TLS errors), `-m 10` (10s max), `-o /tmp/r` (response body to disk), `-w '%{http_code}\n'` (print status code), `-A "Mozilla/5.0"` (UA — change per persona).
365
-
366
- **Always-on HTTP checks (§16.5):**
367
-
368
- ```bash
369
- T="https://target.example"
370
-
371
- # .git/config (CRITICAL)
372
- curl -sk -m 10 "$T/.git/config" | grep -E '\[core\]|\[remote|repositoryformatversion'
373
-
374
- # .git/HEAD (HIGH)
375
- curl -sk -m 10 "$T/.git/HEAD" | grep -E '^ref:'
376
-
377
- # .env (CRITICAL)
378
- curl -sk -m 10 "$T/.env" | grep -E '^[[:space:]]*[A-Z_][A-Z0-9_]*[[:space:]]*='
379
-
380
- # Apache /server-status (MEDIUM)
381
- curl -sk -m 10 "$T/server-status" | grep -i 'Apache Server Status'
382
-
383
- # Apache /server-info (MEDIUM)
384
- curl -sk -m 10 "$T/server-info" | grep -i 'Apache Server Information'
385
-
386
- # .DS_Store (LOW)
387
- curl -sk -m 10 "$T/.DS_Store" -o /tmp/dsstore && file /tmp/dsstore | grep -i 'data'
388
-
389
- # phpinfo.php (HIGH)
390
- curl -sk -m 10 "$T/phpinfo.php" | grep -E 'phpinfo\(\)|PHP Version'
391
-
392
- # info.php (HIGH)
393
- curl -sk -m 10 "$T/info.php" | grep -E 'phpinfo\(\)|PHP Version'
394
-
395
- # Spring Boot /actuator/env (CRITICAL)
396
- curl -sk -m 10 "$T/actuator/env" | grep -E '"propertySources"|systemProperties|systemEnvironment'
397
-
398
- # Spring Boot /actuator/heapdump (CRITICAL — saves binary; check size)
399
- curl -sk -m 30 "$T/actuator/heapdump" -o /tmp/heap && file /tmp/heap | grep -i 'HPROF\|data'
400
-
401
- # Elasticsearch open (HIGH)
402
- curl -sk -m 10 "$T/_cat/indices?v"
403
-
404
- # Jenkins script console (HIGH)
405
- curl -sk -m 10 "$T/script" | grep -iE 'Jenkins|Script Console'
406
-
407
- # Tomcat manager (HIGH)
408
- curl -sk -m 10 "$T/manager/html" -w '%{http_code}\n' | tail -1 # 401 = present + auth-gated; 200 = no auth
409
-
410
- # WordPress orphan installer (LOW)
411
- curl -sk -m 10 "$T/wp-admin/install.php" | grep -i 'WordPress Installation'
412
-
413
- # security.txt (INFO)
414
- curl -sk -m 10 "$T/.well-known/security.txt"
415
- ```
416
-
417
- **SSO subdomain prefixes (§16.7):**
418
-
419
- ```bash
420
- D="target.example"
421
- for prefix in auth login sso idp iam identity accounts oauth; do
422
- echo "=== ${prefix}.${D} ==="
423
- curl -sk -m 10 "https://${prefix}.${D}/.well-known/openid-configuration" -o /dev/null -w '%{http_code}\n'
424
- done
425
-
426
- # Generic OIDC discovery on any host:
427
- curl -sk -m 10 "https://${HOST}/.well-known/openid-configuration" | jq .
428
- ```
429
-
430
- **SAML metadata paths (§16.6):**
431
-
432
- ```bash
433
- H="target.example.com"
434
- for p in /saml/metadata \
435
- /FederationMetadata/2007-06/FederationMetadata.xml \
436
- /federationmetadata/2007-06/federationmetadata.xml \
437
- /simplesaml/saml2/idp/metadata.php \
438
- /auth/saml2/metadata; do
439
- echo "=== $p ==="
440
- curl -sk -m 10 "https://${H}${p}" -o /dev/null -w '%{http_code} %{size_download}\n'
441
- done
442
- ```
443
-
444
- **Cloud bucket probes (§16.8):**
445
-
446
- ```bash
447
- B="candidate-bucket-name"
448
-
449
- # S3 (us-east-1 first)
450
- curl -sk -m 10 -I "https://${B}.s3.amazonaws.com/" -w 'STATUS:%{http_code}\n' | head -20
451
- # If 200/301: list objects
452
- curl -sk -m 10 "https://${B}.s3.amazonaws.com/?list-type=2" | head -50
453
-
454
- # S3 region-specific
455
- for r in us-east-1 us-west-2 eu-west-1 ap-southeast-1; do
456
- curl -sk -m 10 -I "https://${B}.s3-${r}.amazonaws.com/" -w "${r}: %{http_code}\n"
457
- done
458
-
459
- # GCS
460
- curl -sk -m 10 -I "https://${B}.storage.googleapis.com/"
461
- curl -sk -m 10 "https://storage.googleapis.com/${B}/"
462
-
463
- # Azure Blob
464
- curl -sk -m 10 -I "https://${B}.blob.core.windows.net/"
465
- curl -sk -m 10 "https://${B}.blob.core.windows.net/?comp=list"
466
- ```
467
-
468
- **GraphQL introspection POST (§16.2):**
469
-
470
- ```bash
471
- H="https://target.example/graphql"
472
-
473
- curl -sk -m 15 -X POST "$H" \
474
- -H 'Content-Type: application/json' \
475
- -d '{
476
- "operationName":"IntrospectionQuery",
477
- "query":"query IntrospectionQuery { __schema { types { name kind fields { name type { name kind } } } queryType { name } mutationType { name } subscriptionType { name } } }"
478
- }' | jq '.data.__schema.types | length'
479
- ```
480
-
481
- **Read-only secret validators (§23):**
482
-
483
- ```bash
484
- # Postman PMAK
485
- curl -sk -m 10 -H "X-Api-Key: PMAK-..." https://api.getpostman.com/me | jq .
486
-
487
- # AWS (use boto3 instead of curl — pre-signing complexity)
488
- python3 -c "import boto3; print(boto3.client('sts', aws_access_key_id='AKIA...', aws_secret_access_key='...').get_caller_identity())"
489
-
490
- # GitHub PAT (note scope header)
491
- curl -sk -m 10 -H "Authorization: token ghp_..." https://api.github.com/user -D /tmp/h | jq -r '.login,.email'
492
- grep -i 'X-OAuth-Scopes' /tmp/h
493
-
494
- # Slack
495
- curl -sk -m 10 -H "Authorization: Bearer xoxb-..." -X POST https://slack.com/api/auth.test | jq .
496
-
497
- # Anthropic (read-only validation)
498
- curl -sk -m 10 -H "x-api-key: sk-ant-..." -H "anthropic-version: 2023-06-01" https://api.anthropic.com/v1/models | jq '.data | length'
499
-
500
- # OpenAI
501
- curl -sk -m 10 -H "Authorization: Bearer sk-..." https://api.openai.com/v1/models | jq '.data | length'
502
-
503
- # npm
504
- curl -sk -m 10 -H "Authorization: Bearer npm_..." https://registry.npmjs.org/-/whoami | jq .
505
-
506
- # Atlassian (account)
507
- curl -sk -m 10 -u "email:ATATT3xFfGF0_..." https://your-domain.atlassian.net/rest/api/3/myself | jq .
508
-
509
- # DataDog (API + APP key both required)
510
- curl -sk -m 10 -H "DD-API-KEY: ..." -H "DD-APPLICATION-KEY: ..." https://api.datadoghq.com/api/v1/validate | jq .
511
- ```
512
-
513
- **Bulk webapp triage (httpx, faster than curl loop):**
514
-
515
- ```bash
516
- # Install: go install github.com/projectdiscovery/httpx/cmd/httpx@latest
517
- echo "target.example" | httpx -sc -title -tech-detect -web-server -ip -cdn -follow-redirects
518
-
519
- # With probe list
520
- cat subdomains.txt | httpx -sc -title -tech-detect -path /actuator/env,/.git/config,/.env -mc 200,301,403
521
- ```
522
-
523
- **Save responses for evidence:**
524
-
525
- ```bash
526
- mkdir -p evidence/$(date -u +%Y%m%d)
527
- T="https://target.example"
528
- P="/actuator/env"
529
- TS=$(date -u +%Y%m%dT%H%M%SZ)
530
- SAFE_NAME=$(echo "${T}${P}" | tr '/:' '_')
531
- curl -sk -m 10 "$T$P" -o "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}.body" \
532
- -D "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}.headers"
533
- sha256sum "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}".* > "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}.sha256"
534
- ```
535
-
536
- ---
537
-
538
- ### 16.14 Email Security Analysis (SPF/DMARC/DKIM/BIMI/MTA-STS/DNSSEC)
539
-
540
- Spoof feasibility + SaaS tenant inference from a target's email DNS.
541
-
542
- **SPF lookup + parsing:**
543
-
544
- ```bash
545
- D="target.example"
546
- dig +short TXT "$D" | grep -i 'v=spf1'
547
- ```
548
-
549
- **Common SPF parsing checklist:**
550
- - Ends in `-all` (hardfail) → strict; major providers reject spoofs.
551
- - Ends in `~all` (softfail) → spam folder for spoofs.
552
- - Ends in `?all` or no `all` → permissive; spoofs likely deliver.
553
- - Includes (`include:`) reveal SaaS tenants:
554
- - `include:_spf.google.com` → Google Workspace.
555
- - `include:spf.protection.outlook.com` → Microsoft 365.
556
- - `include:_spf.salesforce.com` → Salesforce.
557
- - `include:mail.zendesk.com` → Zendesk customer.
558
- - `include:sendgrid.net` → SendGrid customer.
559
- - `include:mailgun.org` → Mailgun customer.
560
- - `include:_spf.atlassian.net` → Atlassian Cloud.
561
- - `include:amazonses.com` → AWS SES.
562
- - `include:mktomail.com` → Marketo.
563
- - `include:_spf.intuit.com` → Intuit (QuickBooks/Mailchimp).
564
- - `include:spf.mandrillapp.com` → Mandrill.
565
- - `include:_spf.workday.com` → Workday.
566
-
567
- If SPF includes ≥10 mechanisms (max-lookups limit) → SPF eval likely fails → spoofs may pass. Tools: `spfquery`, `spftools` (online), `dig +trace`.
568
-
569
- **DMARC policy + alignment:**
570
-
571
- ```bash
572
- dig +short TXT "_dmarc.${D}"
573
- ```
574
-
575
- Parse for:
576
- - `p=` → primary policy (`none`, `quarantine`, `reject`).
577
- - `sp=` → subdomain policy (defaults to `p=`).
578
- - `aspf=` / `adkim=` → alignment mode (`r`=relaxed, `s`=strict).
579
- - `pct=` → percentage of mail to which policy applies.
580
- - `rua=` / `ruf=` → reporting addresses (often reveals SaaS DMARC vendors: dmarcian, valimail, Agari, easydmarc).
581
-
582
- **Severity:**
583
- - `p=none` → spoof-feasible, downgrade trust → MEDIUM finding.
584
- - `p=quarantine pct<100` → partial enforcement → LOW.
585
- - `p=reject` + `aspf=s` + `adkim=s` → well-postured → no finding.
586
-
587
- **DKIM key discovery:**
588
-
589
- DKIM selectors aren't well-known; common patterns:
590
- ```bash
591
- for selector in default google selector1 selector2 mail email k1 dkim s1 s2 mta1 mta2 \
592
- amazonses 20240101 20230101 mailchimp sendgrid mxvault; do
593
- echo "=== ${selector} ==="
594
- dig +short TXT "${selector}._domainkey.${D}"
595
- done
596
- ```
597
-
598
- If a key returns: extract `p=<base64>` and check key length. RSA-1024 → MEDIUM (deprecated; should be 2048+). Missing or rotated infrequently → LOW finding.
599
-
600
- **BIMI (Brand Indicators for Message Identification):**
601
-
602
- ```bash
603
- dig +short TXT "default._bimi.${D}"
604
- ```
605
-
606
- If present + `p=reject` DMARC → brand-impersonation defense in inbox UI. Absence is LOW only (operational, not exploitable).
607
-
608
- **MTA-STS (Mail Transfer Agent Strict Transport Security):**
609
-
610
- ```bash
611
- dig +short TXT "_mta-sts.${D}"
612
- curl -sk -m 10 "https://mta-sts.${D}/.well-known/mta-sts.txt"
613
- ```
614
-
615
- If neither responds → MX-server TLS not enforced; MITM-able. LOW finding. If `mode=enforce` present and policy file matches → well-postured.
616
-
617
- **TLS-RPT (TLS Reporting):**
618
- ```bash
619
- dig +short TXT "_smtp._tls.${D}"
620
- ```
621
-
622
- **DNSSEC validation:**
623
-
624
- ```bash
625
- dig +dnssec "${D}" SOA | grep -E 'flags|RRSIG'
626
- delv "${D}" 2>&1 | grep -i 'fully validated\|insecur'
627
- ```
628
-
629
- If `delv` returns "insecure" → DNSSEC not enabled (LOW finding; doesn't enable spoof but is hardening gap).
630
-
631
- **MX → IdP / mail-host inference:**
632
-
633
- ```bash
634
- dig +short MX "${D}"
635
- ```
636
-
637
- | MX pattern | IdP / hosting |
638
- |---|---|
639
- | `aspmx.l.google.com`, `*.googlemail.com` | Google Workspace |
640
- | `*.mail.protection.outlook.com` | Microsoft 365 |
641
- | `*.mail.eo.outlook.com` | Microsoft 365 (older) |
642
- | `*.zoho.com` | Zoho Mail |
643
- | `*.yandex.net` | Yandex 360 |
644
- | `*.fastmail.com` | Fastmail |
645
- | `*.proofpoint.com`, `*.pphosted.com` | Proofpoint (M365 user with Proofpoint inbound) |
646
- | `*.mimecast.com`, `*.mimecast-eu.com` | Mimecast |
647
- | `*.barracudanetworks.com` | Barracuda |
648
- | Self-hosted IPs in target ASN | On-prem mail server (often Exchange) |
649
-
650
- **DMARC reporting-vendor inference (parse `rua=` / `ruf=`):**
651
-
652
- | RUA/RUF host | Vendor | Implication |
653
- |---|---|---|
654
- | `*.dmarcian.com` | dmarcian | DMARC reporting customer |
655
- | `*.valimail.com`, `*.dmarc-rua.com` | Valimail | DMARC reporting customer |
656
- | `*.kdmarc.com` | Kratikal kDMARC | Indian DMARC vendor; common in IN orgs |
657
- | `*.agari.com` | Agari (Fortra) | Email security vendor |
658
- | `*.easydmarc.com` | EasyDMARC | DMARC reporting customer |
659
- | `*.dmarcanalyzer.com` | DMARC Analyzer | Reporting customer |
660
- | `*.postmarkapp.com` | Postmark | DMARC reporting addon |
661
- | `<addr>@<target-domain>` | Self-hosted reporting | Internal mailbox; sometimes leaks team-name (`itg@`, `secops@`, `dmarc@`) |
662
-
663
- Capture the vendor + the internal RUA mailbox. Both are leak surfaces (vendor compromise = DMARC bypass; internal mailbox = phishing target).
664
-
665
- **Windows / PowerShell parallel for the entire §16.14 audit:**
666
-
667
- PS 5.1 `Resolve-DnsName` does **not** accept `-Type CAA` (use PowerShell 7+ or `nslookup -type=CAA <domain>`). Otherwise:
668
-
669
- ```powershell
670
- $D = "target.example"
671
- "=== SPF ==="; (Resolve-DnsName $D -Type TXT -EA SilentlyContinue | ? { $_.Strings -match 'v=spf1' }).Strings
672
- "=== DMARC ==="; (Resolve-DnsName "_dmarc.$D" -Type TXT -EA SilentlyContinue).Strings
673
- "=== MTA-STS ==="; (Resolve-DnsName "_mta-sts.$D" -Type TXT -EA SilentlyContinue).Strings
674
- "=== TLS-RPT ==="; (Resolve-DnsName "_smtp._tls.$D" -Type TXT -EA SilentlyContinue).Strings
675
- "=== BIMI ==="; (Resolve-DnsName "default._bimi.$D" -Type TXT -EA SilentlyContinue).Strings
676
- "=== MX ==="; Resolve-DnsName $D -Type MX -EA SilentlyContinue | Select NameExchange,Preference
677
- "=== DKIM common selectors ==="
678
- foreach ($s in @("default","google","selector1","selector2","mail","email","k1","dkim","s1","s2","amazonses","mailchimp","sendgrid","mxvault","20240101","zoho","zmail","outlook","o365")) {
679
- $r = Resolve-DnsName "$s._domainkey.$D" -Type TXT -EA SilentlyContinue
680
- if ($r) { "${s}: FOUND" }
681
- }
682
- "=== CAA (PS 5.1 fallback) ==="; nslookup -type=CAA $D 2>$null
683
- ```
684
-
685
- ### 16.15 Origin Discovery / CDN Bypass
686
-
687
- If the target is behind Cloudflare/Akamai/Fastly/CloudFront, their CDN IPs are well-defined. Find IPs **not** in those ranges that serve the same site = origin.
688
-
689
- **Cloudflare IPv4 ranges:**
690
- ```
691
- https://www.cloudflare.com/ips-v4
692
- ```
693
- **Akamai ASNs:** AS16625, AS20940, AS21342, AS21357.
694
- **Fastly:** AS54113.
695
- **AWS CloudFront:** published in `https://ip-ranges.amazonaws.com/ip-ranges.json` filter `service:CLOUDFRONT`.
696
-
697
- **Origin discovery via DNS history:**
698
-
699
- ```bash
700
- # SecurityTrails (paid)
701
- curl -sk -H "APIKEY: ..." \
702
- "https://api.securitytrails.com/v1/history/${D}/dns/a" | jq '.records[] | {ip:.values[].ip, first_seen, last_seen}'
703
- ```
704
-
705
- Free alternatives:
706
- ```bash
707
- # Validin
708
- curl -sk "https://app.validin.com/api/axon/${D}/dns" | jq .
709
-
710
- # RiskIQ Community (free tier; auth required)
711
- curl -sk -u "user:apikey" "https://api.riskiq.net/pt/v2/dns/passive?query=${D}" | jq .
712
- ```
713
-
714
- Filter the result: any historical A record IP **not** in current CDN ranges = origin candidate.
715
-
716
- **Origin via certificate SAN pivot (Censys):**
717
-
718
- ```bash
719
- # Censys (free 250 queries/month with key)
720
- censys search "services.tls.certificates.leaf_data.subject.common_name:${D} AND NOT services.tls.certificates.leaf_data.issuer.common_name:'Cloudflare'"
721
- ```
722
-
723
- Or via crt.sh + manual IP check:
724
- ```bash
725
- curl -sk "https://crt.sh/?q=%25.${D}&output=json" | jq -r '.[].name_value' | sort -u
726
- ```
727
-
728
- **Origin via favicon hash (Shodan):**
729
-
730
- ```bash
731
- # Compute favicon mmh3
732
- python3 -c "
733
- import urllib.request, codecs, mmh3
734
- data = urllib.request.urlopen('https://target.example/favicon.ico').read()
735
- b64 = codecs.encode(data, 'base64')
736
- print(mmh3.hash(b64))"
737
-
738
- # Search Shodan
739
- shodan search "http.favicon.hash:<computed-hash>" --fields ip_str,port,org
740
- ```
741
-
742
- Cross-reference with CDN ranges; non-CDN matches = origin candidates.
743
-
744
- **Origin via JARM:**
745
-
746
- ```bash
747
- # Compute JARM
748
- python3 -c "
749
- import jarm
750
- print(jarm.scan('target.example'))
751
- " 2>/dev/null || echo "Install: pip install pyjarm"
752
-
753
- # Search Shodan for matching JARM
754
- shodan search "ssl.jarm:<jarm-hash>" --fields ip_str,port
755
- ```
756
-
757
- **Origin via Host-header probe (validate candidate):**
758
-
759
- ```bash
760
- CANDIDATE_IP="203.0.113.42"
761
- curl -sk -m 10 -H "Host: target.example.com" "https://${CANDIDATE_IP}/" -o /tmp/candidate.html
762
- diff <(curl -sk -m 10 https://target.example.com/) /tmp/candidate.html | head -50
763
- ```
764
-
765
- If small/no diff → confirmed origin. Document with detectability=low.
766
-
767
- **Origin via auxiliary subdomains (often skip CDN):**
768
-
769
- ```bash
770
- for sub in mail smtp ftp sftp cpanel webmail direct origin direct-connect noproxy \
771
- dev staging stg uat preprod sandbox preview origin-www old-www legacy \
772
- server srv host1 host2 vps server1; do
773
- echo "=== ${sub}.${D} ==="
774
- dig +short A "${sub}.${D}"
775
- done | grep -vE '^(===|$)' | sort -u
776
- ```
777
-
778
- Cross-reference any returned IP against CDN ranges.
779
-
780
- **Origin via email-header bounce:**
781
-
782
- Send mail to `<random>@${D}` from a sock-puppet account. The bounce often includes `Received:` headers showing the inbound mail server's actual IP — sometimes co-located with web origin.
783
-
784
- **Origin via misconfigured CDN error pages:**
785
-
786
- Some CDN 5xx error pages historically leaked upstream details. Trigger errors and inspect:
787
- ```bash
788
- # Trigger CDN-side 5xx (oversized request, malformed Host)
789
- curl -sk -m 10 -H "Host: " "https://target.example/" -o /tmp/err.html
790
- curl -sk -m 10 -H "X-Forwarded-For: $(python3 -c 'print("a"*8000)')" "https://target.example/"
791
- grep -iE 'origin|upstream|server|backend|cf-ray' /tmp/err.html
792
- ```
793
-
794
- ### 16.16 Vendor Product Fingerprints
795
-
796
- Common edge appliances / products on the target's perimeter, with fingerprint paths and notes on common CVEs.
797
-
798
- | Product | Fingerprint paths | Notes |
799
- |---|---|---|
800
- | **Citrix Netscaler / Gateway** | `/vpn/index.html`, `/logon/LogonPoint/tmindex.html`, `/citrix/` | Version in HTML; CVE-2023-3519 (RCE), CVE-2019-19781 (path traversal RCE) — both KEV-listed. |
801
- | **F5 BIG-IP TMUI** | `/tmui/login.jsp`, `/mgmt/tm/sys/` | Banner reveals version; CVE-2022-1388 (auth bypass), CVE-2023-46747 — KEV-listed. |
802
- | **Cisco ASA / AnyConnect** | `/+CSCOE+/`, `/CSCOE/index.html`, `/webvpn.html`, `/+CSCOE+/portal.html` | CVE-2020-3452 (file read), CVE-2018-0101 (RCE). |
803
- | **Pulse Secure / Ivanti Connect** | `/dana-na/`, `/dana-na/auth/url_default/welcome.cgi`, `/api/v1/` | CVE-2024-21887 (KEV), CVE-2023-46805 (KEV) — chained command injection. |
804
- | **FortiGate / FortiOS** | `/remote/login`, `/remote/info`, `/api/v2/` | CVE-2022-42475 (RCE, KEV), CVE-2024-21762 (RCE, KEV). |
805
- | **PaloAlto GlobalProtect** | `/global-protect/`, `/global-protect/portal/css/login.css`, `/api/?type=keygen` | CVE-2024-3400 (RCE, KEV), CVE-2019-1579. |
806
- | **VMware Horizon** | `/portal/info.jsp`, `/broker/xml`, `/login.jsp` | log4shell exposure (CVE-2021-44228, KEV). |
807
- | **VMware vCenter** | `/sdk`, `/ui/`, `/vsphere-client/`, `/websso/SAML2/` | CVE-2021-21972 (RCE, KEV), CVE-2021-22005. |
808
- | **VMware ESXi** | `/sdk`, `/ui/`, `/folder` | CVE-2021-21974 (heap overflow → ESXiArgs ransomware, KEV). |
809
- | **Microsoft Exchange OWA** | `/owa/`, `/ews/exchange.asmx`, `/ecp/` | ProxyShell (CVE-2021-34473), ProxyLogon (CVE-2021-26855), ProxyNotShell (CVE-2022-41040) — all KEV. |
810
- | **WatchGuard Firebox** | `/auth/`, `/wgcgi.cgi` | CVE-2022-26318 (CGI). |
811
- | **SonicWall SMA** | `/cgi-bin/welcome`, `/__api__/v1/`, `/diagnostics/` | CVE-2021-20016, CVE-2024-40766 (KEV). |
812
- | **Sophos UTM/XG/XGS** | `/userportal/`, `/webconsole/`, `/cgi-bin/` | CVE-2022-1040 (RCE, KEV). |
813
- | **Check Point R80/R81** | `/sslvpn/portal/`, `/clients/` | CVE-2024-24919 (KEV). |
814
- | **Zoho ManageEngine** | `/RestAPI/Login`, `/api/json/v2/` | Multiple RCE CVEs; check version. |
815
- | **Atlassian Confluence** | `/confluence/`, `/login.action`, `/rest/api/space` | CVE-2022-26134 (OGNL RCE, KEV), CVE-2023-22515 (KEV). |
816
- | **Atlassian Jira** | `/secure/Dashboard.jspa`, `/rest/api/2/serverInfo` | Multiple CVEs; check version. |
817
- | **GitLab self-hosted** | `/users/sign_in`, `/-/oauth/applications`, `/help` | Version in HTML footer; CVE-2021-22205 (RCE, KEV). |
818
- | **Telerik UI** | `/Telerik.Web.UI.WebResource.axd?type=rau` | CVE-2017-9248, CVE-2019-18935 — old but still found. |
819
- | **ConnectWise ScreenConnect** | `/SetupWizard.aspx`, `/Bin/SetupWizard.aspx` | CVE-2024-1709 (auth bypass, KEV). |
820
- | **SolarWinds Orion** | `/Orion/Login.aspx` | SUNBURST supply-chain (CVE-2020-10148). |
821
- | **Kaseya VSA** | `/dl.asp`, `/userFilterTableRpt.asp` | CVE-2021-30116 (REvil supply-chain). |
822
- | **Microsoft IIS / OWA misc** | `Server: Microsoft-IIS/<version>` | Old versions = old CVEs; check. |
823
- | **Cisco Smart Install** | port 4786 open | CVE-2018-0171 (smart install client mode RCE). |
824
-
825
- **Per-vendor probe pattern:**
826
-
827
- ```bash
828
- T="https://target.example"
829
- # Citrix
830
- curl -sk -m 10 "$T/vpn/index.html" -o /tmp/c1 -w '%{http_code}\n'
831
- grep -iE 'NetScaler|Citrix|version' /tmp/c1
832
- # F5
833
- curl -sk -m 10 "$T/tmui/login.jsp" -o /tmp/c2 -w '%{http_code}\n'
834
- grep -iE 'BIG-IP|version' /tmp/c2
835
- # (etc — repeat per product)
836
- ```
837
-
838
- **Auto-fingerprint with Nuclei:**
839
-
840
- ```bash
841
- nuclei -u $T -t http/technologies/ -severity info,low,medium,high,critical
842
- nuclei -u $T -t http/cves/ -severity high,critical -etags fuzz
843
- ```
844
-
845
- ### 16.17 Cloud-Native Service Fingerprints
846
-
847
- Modern apps deploy on serverless / managed services. Fingerprint the platform from the URL pattern.
848
-
849
- | Provider | URL pattern | Notes |
850
- |---|---|---|
851
- | **AWS Lambda Function URL** | `*.lambda-url.<region>.on.aws` | Direct invocation; check IAM auth posture. |
852
- | **AWS App Runner** | `*.<region>.awsapprunner.com` | Managed container; usually behind auth. |
853
- | **AWS API Gateway** | `*.execute-api.<region>.amazonaws.com` | REST/HTTP/WebSocket; check authorizer config. |
854
- | **AWS CloudFront** | `d{14}\.cloudfront\.net` | Distribution; origin behind it (see §16.15). |
855
- | **AWS ALB / ELB** | `*.elb.<region>.amazonaws.com` | Behind = EC2 / ECS. |
856
- | **AWS Amplify** | `*.amplifyapp.com` | Static + Lambda backend. |
857
- | **Google Cloud Run** | `*.run.app` (and `*.<region>.run.app`) | Container; check public-vs-IAM auth. |
858
- | **Google Cloud Functions** | `*.cloudfunctions.net`, `*.<region>-<project>.cloudfunctions.net` | Serverless. |
859
- | **Google App Engine** | `*.appspot.com` | Older serverless. |
860
- | **Azure Functions** | `*.azurewebsites.net` (also App Service) | Function App behind same domain pattern. |
861
- | **Azure Container Apps** | `*.azurecontainerapps.io` | Containers. |
862
- | **Azure Static Web Apps** | `*.azurestaticapps.net` | Static + Functions. |
863
- | **Vercel** | `*.vercel.app`, `*.now.sh` (legacy) | Frontend + serverless. |
864
- | **Netlify** | `*.netlify.app`, `*.netlify.com` | Frontend + functions. |
865
- | **Cloudflare Workers** | `*.workers.dev` | Edge functions. |
866
- | **Cloudflare Pages** | `*.pages.dev` | Static + functions. |
867
- | **Heroku** | `*.herokuapp.com` | Dynos. |
868
- | **Render** | `*.onrender.com` | Container/static. |
869
- | **Fly.io** | `*.fly.dev` | Edge containers. |
870
- | **Railway** | `*.railway.app` | App platform. |
871
- | **DigitalOcean App Platform** | `*.ondigitalocean.app` | Static + container. |
872
-
873
- **For each pattern:**
874
- - Confirm public vs auth-required (HEAD / GET).
875
- - Check CORS posture.
876
- - For Lambda Function URLs / Cloud Run / Cloud Functions: check whether IAM auth is enforced (anonymous invocation = HIGH finding).
877
- - For static + functions hybrids (Vercel/Netlify/Cloudflare Pages): the function paths are usually `/api/*`; enumerate via JS extraction.
878
-
879
- ### 16.18 Container & Kubernetes Exposure
880
-
881
- Increasingly common; often forgotten when behind a NAT.
882
-
883
- | Target | Port | Probe | Severity if exposed |
884
- |---|---|---|---|
885
- | **Docker API (unencrypted)** | 2375 | `curl -sk -m 5 http://${IP}:2375/v1.40/info` | CRITICAL (container/host takeover) |
886
- | **Docker API (TLS)** | 2376 | `curl -sk -m 5 https://${IP}:2376/v1.40/info` | HIGH (cert validation bypass possible) |
887
- | **Kubernetes API server** | 6443 / 8443 | `curl -sk -m 5 https://${IP}:6443/api` | HIGH if `system:anonymous` returns non-403 |
888
- | **Kubernetes Dashboard** | 8001 / 9090 / 30000+ | `curl -sk -m 5 http://${IP}:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard` | HIGH if reachable |
889
- | **kubelet** | 10250 (HTTPS), 10255 (HTTP, deprecated) | `curl -sk -m 5 https://${IP}:10250/pods` | CRITICAL (no auth = pod exec) |
890
- | **etcd** | 2379 (client), 2380 (peer) | `curl -sk -m 5 https://${IP}:2379/v2/keys/` (v2) or `etcdctl --endpoints=${IP}:2379 get /` (v3) | CRITICAL (cluster state + secrets) |
891
- | **kube-proxy** | 10256 | `curl http://${IP}:10256/healthz` | INFO |
892
- | **kube-controller-manager** | 10257 | `curl https://${IP}:10257/metrics` | MEDIUM |
893
- | **kube-scheduler** | 10259 | `curl https://${IP}:10259/metrics` | MEDIUM |
894
- | **cAdvisor** | 4194 (deprecated) | `curl http://${IP}:4194/metrics` | LOW (resource metrics) |
895
- | **Helm Tiller** (Helm 2 — deprecated but found) | 44134 | `helm --host ${IP}:44134 list` | HIGH (Tiller had cluster-admin) |
896
-
897
- **Public container registries to check for leaks:**
898
-
899
- | Registry | Search pattern |
900
- |---|---|
901
- | Docker Hub | `https://hub.docker.com/search?q=<target-keyword>&type=image` |
902
- | Quay (Red Hat) | `https://quay.io/search?q=<target-keyword>` |
903
- | GitHub Container Registry (GHCR) | enumerable via GitHub API: `https://api.github.com/orgs/<org>/packages?package_type=container` |
904
- | Amazon ECR Public | `https://gallery.ecr.aws/?searchTerm=<keyword>` |
905
- | Azure Container Registry (public) | varies; check for `*.azurecr.io` |
906
- | Google Container Registry (public) | `https://console.cloud.google.com/gcr/images/<project>?project=<project>` |
907
-
908
- **Per-image scan workflow:**
909
- 1. `docker pull <registry>/<image>:<tag>` (or `skopeo inspect`).
910
- 2. `docker save <image> -o /tmp/img.tar`.
911
- 3. Extract layers; scan with secret catalog (§17).
912
- 4. Inspect `Dockerfile` history (`docker history <image>`) — sometimes reveals build args or COPY of secrets.
913
-
914
- ### 16.19 CI/CD Platform Exposure
915
-
916
- | Platform | Common exposure | Probe |
917
- |---|---|---|
918
- | **Jenkins** | `/script` (Groovy console = RCE if no auth), `/asynchPeople/`, `/jnlpJars/jenkins-cli.jar`, `/computer/`, `/job/<name>/api/json` | `curl -sk -m 10 "${T}/script"` and `curl -sk -m 10 "${T}/asynchPeople/api/json"` |
919
- | **GitLab self-hosted** | `/users/sign_in` (version in HTML), `/-/oauth/applications` (auth-required), `/api/v4/version`, `/-/snippets/<id>/raw` | `curl -sk -m 10 "${T}/api/v4/version"` |
920
- | **GitHub Actions workflow files** | `.github/workflows/*.yml` in any public repo | Search via GitHub code search: `path:.github/workflows extension:yml secrets` |
921
- | **CircleCI config** | `.circleci/config.yml` in any repo | Search: `path:.circleci/config.yml` |
922
- | **TeamCity** | `/login.html`, `/agent.html?agentId=*`, `/admin/admin.html` | `curl -sk -m 10 "${T}/login.html" \| grep -i 'TeamCity'` — version disclosure. CVE-2024-27198 (KEV). |
923
- | **Bamboo (Atlassian)** | `/userlogin.action`, `/rest/api/latest/info` | `curl -sk -m 10 "${T}/rest/api/latest/info"` |
924
- | **Drone CI** | `/api/info`, `/login` | `curl -sk -m 10 "${T}/api/info"` |
925
- | **Travis CI (legacy)** | `.travis.yml` in repos; `https://api.travis-ci.com/repos/<owner>/<repo>` | API often exposes build env. |
926
- | **Argo CD** | `/api/version`, `/applications` | `curl -sk -m 10 "${T}/api/version"`. Check anonymous-auth posture. |
927
- | **Tekton** | `/apis/tekton.dev/v1beta1/pipelineruns` (K8s native) | Enumerate via K8s API. |
928
- | **Spinnaker** | `/gate/info`, `/applications` | `curl -sk -m 10 "${T}/gate/info"` |
929
- | **Buildkite** | per-org dashboards; usually behind auth. | Check public agents page. |
930
-
931
- **GitHub Actions secret-leak patterns to look for in workflows:**
932
-
933
- ```yaml
934
- # Anti-pattern: secret echoed to log
935
- run: echo "${{ secrets.MY_API_KEY }}"
936
-
937
- # Anti-pattern: secret in environment without mask
938
- env:
939
- KEY: ${{ secrets.MY_API_KEY }}
940
- run: ./deploy.sh # script may echo $KEY
941
-
942
- # Anti-pattern: pull_request_target with checkout of fork code (CVE class)
943
- on: pull_request_target
944
- jobs:
945
- test:
946
- steps:
947
- - uses: actions/checkout@v3
948
- with:
949
- ref: ${{ github.event.pull_request.head.sha }} # checks out fork code with secrets in env
950
- ```
951
-
952
- ### 16.20 Documentation / Wiki Leak Paths
953
-
954
- Public-share features on collaboration platforms regularly leak.
955
-
956
- | Platform | URL pattern | What's exposed |
957
- |---|---|---|
958
- | **Notion (publish page)** | `*.notion.site/<slug>` or `notion.so/<workspace>/<page-id>` | Public page; sometimes whole workspaces published by accident. |
959
- | **Confluence Cloud (anonymous)** | `<target>.atlassian.net/wiki/spaces/` | Public spaces; check `/wiki/display/<SPACE>/`. |
960
- | **Atlassian Service Desk** | `<target>.atlassian.net/servicedesk/customer/portal/<N>` | Sometimes lists all internal request types. |
961
- | **Trello board** | `https://trello.com/b/<id>/<slug>` | Public board with cards; check via Google `site:trello.com "${target}"`. |
962
- | **Asana public project** | `https://app.asana.com/0/<id>/<id>` | Public project view. |
963
- | **ReadTheDocs** | `<project>.readthedocs.io` | Hosted docs; "private builds" sometimes default to public. |
964
- | **GitBook** | `<workspace>.gitbook.io/<book>/` | Published docs; sometimes contain internal SOPs. |
965
- | **MkDocs / Docusaurus on subdomain** | `docs.<target>` | Often contains internal architecture diagrams + setup notes. |
966
- | **Slab** | `<workspace>.slab.com/posts/<id>` | Published posts. |
967
- | **Coda** | `coda.io/d/<doc-id>` | Public docs. |
968
- | **Miro** | `https://miro.com/app/board/<id>/` | Public boards (often architecture diagrams). |
969
- | **Lucidchart** | `https://lucid.app/lucidchart/<id>/view` | Public diagrams. |
970
- | **Figma** | `https://www.figma.com/file/<key>/` | Public design files; sometimes leak product spec. |
971
- | **GitHub Wiki** | `github.com/<org>/<repo>/wiki` | Public wikis; check stale ones. |
972
- | **Linear** | `linear.app/<workspace>/issue/<id>` | Public issues (rare but happens). |
973
- | **Confluence anonymous server** | `<target>/confluence/`, `<target>/wiki/` (self-hosted) | Anonymous read sometimes left on. |
974
- | **Monday.com** | `view.monday.com/<id>` | Shared boards. |
975
- | **Wrike** | `app.wrike.com/external/<id>` | External-shared spaces. |
976
-
977
- **Dork-driven discovery:**
978
- ```
979
- site:notion.site "{target}"
980
- site:notion.so "{target}"
981
- site:atlassian.net "{target}"
982
- site:trello.com "{target}"
983
- site:miro.com "{target}"
984
- site:lucid.app "{target}"
985
- site:figma.com "{target}"
986
- site:asana.com "{target}"
987
- site:gitbook.io "{target}"
988
- site:readthedocs.io "{target}"
989
- ```
990
-
991
- ### 16.21 WHOIS / RDAP / Historical
992
-
993
- WHOIS gives current registrant; RDAP is the structured replacement; historical WHOIS is the pivot gold.
994
-
995
- **Current WHOIS:**
996
-
997
- ```bash
998
- whois target.example # standard CLI
999
- curl -sk -m 10 "https://www.whois.com/whois/${D}" # web fallback
1000
- ```
1001
-
1002
- **RDAP (RFC 7480, structured JSON):**
1003
-
1004
- ```bash
1005
- # IANA bootstrap → returns the registry RDAP server
1006
- curl -sk "https://rdap.org/domain/${D}" | jq .
1007
- curl -sk "https://www.iana.org/rdap" | jq . # bootstrap registry
1008
- ```
1009
-
1010
- What to extract from WHOIS / RDAP:
1011
- - Registrant: name, org, email, phone, address (often redacted post-GDPR but not always for non-EU registrants).
1012
- - Registrar: enables registrar-account pivot for related domains.
1013
- - Created / updated / expiry dates: pattern of bulk registrations = same registrant.
1014
- - Nameservers: NS reuse pivot.
1015
- - Status flags (`clientHold`, `clientTransferProhibited`, etc.) = posture indicators.
1016
- - Abuse contact: useful for responsible disclosure (§30).
1017
-
1018
- **Historical WHOIS:**
1019
-
1020
- Pre-GDPR records often have unredacted contact info. Sources:
1021
-
1022
- | Source | Notes |
1023
- |---|---|
1024
- | **DomainTools** | Paid; gold-standard; full WHOIS history. |
1025
- | **WhoisXML API** | Paid; bulk + history. |
1026
- | **SecurityTrails** | Paid; WHOIS + DNS history. |
1027
- | **viewdns.info** | Free WHOIS history (limited). |
1028
- | **whoisology.com** | Paid; reverse WHOIS by registrant email. |
1029
-
1030
- **Reverse-WHOIS pivots:**
1031
-
1032
- If you have a registrant email, search "every domain registered by this email":
1033
- ```bash
1034
- # DomainTools (paid)
1035
- curl -sk -H "X-API-Username: ..." -H "X-API-Key: ..." \
1036
- "https://api.domaintools.com/v1/reverse-whois/?terms=admin@target.example"
1037
- ```
1038
-
1039
- This finds adjacent corporate assets (subsidiary domains, brand variations, employee personal projects on corp email).
1040
-
1041
- ### 16.22 DNS Record Catalog (TXT verification tokens, MX→IdP)
1042
-
1043
- For every target domain, dump all common record types:
1044
-
1045
- ```bash
1046
- D="target.example"
1047
- for rtype in A AAAA MX TXT NS SOA CAA SRV CNAME PTR; do
1048
- echo "=== ${rtype} ==="
1049
- dig +short "${D}" "${rtype}"
1050
- done
1051
- ```
1052
-
1053
- **TXT record verification token catalog** (each token reveals a SaaS tenancy):
1054
-
1055
- | TXT pattern | SaaS / service | Implication |
1056
- |---|---|---|
1057
- | `google-site-verification=<token>` | Google Workspace / Search Console / Analytics | Google tenancy. |
1058
- | `MS=ms<digits>` | Microsoft 365 (older) | M365 tenancy. |
1059
- | `apple-domain-verification=<token>` | Apple Business Manager / iCloud Calendar | Apple ecosystem. |
1060
- | `atlassian-domain-verification=<token>` | Atlassian Cloud (Jira/Confluence/etc.) | Atlassian customer. |
1061
- | `facebook-domain-verification=<token>` | Facebook Business / Pixel | FB Business. |
1062
- | `adobe-idp-site-verification=<token>` | Adobe Sign / Creative Cloud | Adobe customer. |
1063
- | `docusign=<token>` | DocuSign | DocuSign customer. |
1064
- | `dropbox-domain-verification=<token>` | Dropbox Business | Dropbox customer. |
1065
- | `box-verification=<token>` | Box | Box customer. |
1066
- | `webexdomainverification.<id>` | Webex | Cisco Webex. |
1067
- | `zoom_verify_<id>` | Zoom | Zoom customer (admin domain). |
1068
- | `notion=<token>` (rare) | Notion workspace | Notion enterprise. |
1069
- | `slack-domain-verification=<token>` | Slack Enterprise Grid | Slack EG. |
1070
- | `asana-domain-verification=<token>` | Asana Enterprise | Asana customer. |
1071
- | `mongodb-site-verification=<token>` | MongoDB Atlas | DB tenant. |
1072
- | `_dnsauth.<token>` | Many ACME / Let's Encrypt CAs | DNS-01 challenge in progress. |
1073
- | `pinterest-site-verification=<token>` | Pinterest Business | Marketing surface. |
1074
- | `cisco-ci-domain-verification=<token>` | Cisco Spark / Webex | Cisco. |
1075
- | `_globalsign-domain-verification=<token>` | GlobalSign cert authority | Cert provider. |
1076
- | `mailru-verification:<token>` | Mail.ru | RU presence. |
1077
- | `yandex-verification:<token>` | Yandex services | RU presence. |
1078
- | `zscaler-verification-<id>-<date>-<random>` | Zscaler (ZIA / ZPA / ZDX) | **Web SSE / SASE customer**; the date suffix is the verification-issued date. |
1079
- | `cloudflare-verify=<token>` | Cloudflare (Zero Trust / Access / WARP) | Cloudflare org-tier customer. |
1080
- | `autosect-site-verification=<token>` | AutoSect (security tooling) | Security vendor on tenant. |
1081
- | `cisco-site-verification=<token>` | Cisco (various products) | Cisco vendor. |
1082
- | `mscid=<token>` | Microsoft (newer M365 verification) | M365 tenancy (newer format). |
1083
- | `_amazonses=<token>` | AWS SES sender verification | SES sender. |
1084
- | `salesforce-domain-verification=<token>` | Salesforce | SF customer. |
1085
- | `workday-domain-verification=<token>` | Workday | Workday customer (HR + Finance). |
1086
- | `shopify-domain-verification=<token>` | Shopify | E-commerce customer. |
1087
- | `klaviyo-domain-verification=<token>` | Klaviyo | Marketing automation. |
1088
- | `mailchimp-domain-verification=<token>` | Mailchimp | Marketing email. |
1089
- | `hubspot-domain-verification=<token>` | HubSpot | CRM / marketing. |
1090
- | `zendesk-verification=<token>` | Zendesk | Support tenancy (also see §43). |
1091
- | `freshworks-verification=<token>` | Freshworks | Support / CRM customer. |
1092
- | `intercom-verification=<token>` | Intercom | Messaging tenancy. |
1093
- | `loom-site-verification=<token>` | Loom | Video. |
1094
- | `miro-site-verification=<token>` | Miro | Whiteboard tenancy. |
1095
- | `gitlab-domain-verification=<token>` | GitLab | Self-hosted or cloud verification. |
1096
-
1097
- Each discovered tenancy is a separate attack surface (own credentials, own MFA posture, own data).
1098
-
1099
- **Autodiscover-as-confirmation pattern:**
1100
-
1101
- `autodiscover.<domain>` resolving to Microsoft IP space (`40.96.0.0/13`, `52.96.0.0/14`, `13.107.0.0/16`) is **definitive proof** of M365 Exchange Online tenancy — even when MX records are obscured by Mimecast/Proofpoint/Barracuda inbound filtering. Probe:
1102
-
1103
- ```powershell
1104
- Resolve-DnsName "autodiscover.$D" -Type A | Select Name,IPAddress
1105
- ```
1106
-
1107
- If IPs are in Microsoft ranges → `M365_CONFIRMED`. Cross-reference with `getuserrealm.srf` (§22.1) for tenant GUID extraction.
1108
-
1109
- **CAA records:**
1110
- ```bash
1111
- dig +short CAA "${D}"
1112
- ```
1113
- Lists which CAs are allowed to issue certs. Absence = LOW finding (any CA can mis-issue). Presence + restrictive list = good posture.
1114
-
1115
- **SOA serial pattern analysis:**
1116
- ```bash
1117
- dig +short SOA "${D}"
1118
- ```
1119
- Serial format `YYYYMMDDNN` reveals last-edit date. Pattern across multiple zones can correlate ownership.
1120
-
1121
- ### 16.23 Wayback CDX Deep Usage
1122
-
1123
- The Wayback Machine has a structured query API.
1124
-
1125
- **Basic CDX query:**
1126
- ```bash
1127
- D="target.example"
1128
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*&output=json&fl=timestamp,original&limit=10000"
1129
- ```
1130
-
1131
- Returns JSON array of `[timestamp, original_url]` tuples.
1132
-
1133
- **Useful filters:**
1134
- - `&from=20200101&to=20231231` — date range.
1135
- - `&filter=mimetype:application/json` — only JSON responses (often APIs).
1136
- - `&filter=mimetype:application/javascript` — JS bundles.
1137
- - `&filter=statuscode:200` — only successful captures.
1138
- - `&filter=urlkey:.*api.*` — only URLs containing "api".
1139
- - `&collapse=urlkey` — dedup by URL.
1140
- - `&collapse=digest` — dedup by content (catches identical pages re-archived).
1141
-
1142
- **Get specific snapshot:**
1143
- ```bash
1144
- TS="20231215120000"
1145
- URL="https://target.example/admin/dashboard"
1146
- curl -sk "https://web.archive.org/web/${TS}/${URL}"
1147
- ```
1148
-
1149
- **Diff snapshot vs live:**
1150
- ```bash
1151
- LIVE=$(curl -sk -m 10 "${URL}")
1152
- ARCHIVED=$(curl -sk -m 10 "https://web.archive.org/web/${TS}/${URL}")
1153
- diff <(echo "$LIVE") <(echo "$ARCHIVED") | head -100
1154
- ```
1155
-
1156
- **Save current page:**
1157
- ```bash
1158
- curl -sk -X POST "https://pragma.archivelab.org/" \
1159
- -H 'Content-Type: application/json' \
1160
- -d '{"url":"https://target.example/admin"}'
1161
- ```
1162
-
1163
- **Find every archived JS:**
1164
- ```bash
1165
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.js&output=json&fl=timestamp,original&filter=statuscode:200" | \
1166
- jq -r '.[1:][] | "\(.[0]) \(.[1])"'
1167
- ```
1168
-
1169
- For each, fetch the archived JS and run the secret catalog (§17). Old JS often had hard-coded keys later removed.
1170
-
1171
- **Legacy-app pivot (when `*.js` returns empty):**
1172
-
1173
- Static brochure-ware sites (older corporate sites, especially pre-2015) often have **zero archived JS** because the frontend was server-rendered. Pivot to legacy file extensions:
1174
-
1175
- ```bash
1176
- # ASP / ASP.NET classic
1177
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.asp&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=500"
1178
-
1179
- # PHP
1180
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.php&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=500"
1181
-
1182
- # JSP / .NET aspx / CGI / Coldfusion
1183
- for ext in aspx jsp cgi cfm; do
1184
- echo "=== .$ext ==="
1185
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.${ext}&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=200"
1186
- done
1187
-
1188
- # JSON / XML config (sometimes leaks endpoints + creds)
1189
- for ext in json xml yml yaml ini conf; do
1190
- echo "=== .$ext ==="
1191
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.${ext}&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=100"
1192
- done
1193
-
1194
- # Anything indexed (broad sweep — useful for legacy enumeration)
1195
- curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=10000"
1196
- ```
1197
-
1198
- Legacy `.asp` / `.cfm` / `.jsp` URLs often reveal: forgotten admin panels, old user-enum endpoints, legacy auth flows, SQL-injection-prone parameters. Cross-reference with current DNS — many legacy hosts now NXDOMAIN but the URL paths sometimes survive on a renamed host.
1199
-
1200
- ### 16.24 Common-Prefix Subdomain Sweep (active, low-detectability)
1201
-
1202
- Empirically: **passive cert-transparency enumeration (crt.sh / VirusTotal / Subfinder) misses 20–40% of high-value subdomains** because (a) many internal hosts use wildcard certs that don't expose the FQDN, (b) some hosts have never been issued public certs (HTTP-only or self-signed), (c) very-recently-provisioned hosts haven't propagated to CT log mirrors yet.
1203
-
1204
- **Always pair passive enum with an active prefix-probe.** Detectability: low (single A-record query per host; no port scan, no HTTP).
1205
-
1206
- **The high-yield prefix list (ordered by hit-rate from real engagements):**
1207
-
1208
- ```
1209
- www, mail, webmail, smtp, imap, pop, owa, autodiscover, ftp, sftp,
1210
- vpn, sslvpn, gateway, gp, globalprotect, citrix, fortinet, anyconnect,
1211
- api, app, apps, mobile, m,
1212
- portal, login, sso, idp, iam, identity, accounts, oauth, auth, adfs,
1213
- admin, manage, console, dashboard, cp, cpanel,
1214
- intranet, internal, hr, payroll, finance, sap, erp, crm, helpdesk, servicedesk,
1215
- support, help, kb, status, monitoring, grafana, kibana, prometheus,
1216
- docs, wiki, confluence, jira, bitbucket, gitlab, jenkins, sonar, nexus,
1217
- git, svn, repo, code,
1218
- dev, test, staging, stg, qa, uat, sandbox, preprod, preview, demo,
1219
- careers, jobs, vacancies, recruit, eapps,
1220
- shop, store, ecommerce, checkout, payments, pay, billing,
1221
- old, legacy, archive, backup, beta, v1, v2, classic,
1222
- cdn, static, assets, media, img, files, downloads, public,
1223
- ns, ns1, ns2, dns, mx, mx1, mx2,
1224
- zoom, teams, slack, lync, sip, voice, meet,
1225
- eproc, tender, tenders, suppliers, vendor, vendors, procurement, purchase
1226
- ```
1227
-
1228
- **One-liner (PowerShell):**
1229
- ```powershell
1230
- $D = "target.example"
1231
- $prefixes = @("www","mail","webmail","owa","autodiscover","ftp","vpn","sslvpn","gateway","api","app","portal","login","sso","idp","iam","identity","accounts","oauth","auth","adfs","admin","intranet","hr","sap","erp","crm","support","help","status","grafana","kibana","docs","wiki","jira","jenkins","gitlab","dev","test","staging","stg","qa","uat","sandbox","preprod","preview","careers","jobs","eapps","old","legacy","beta","tender","suppliers","procurement")
1232
- foreach ($p in $prefixes) {
1233
- $r = Resolve-DnsName "$p.$D" -Type A -ErrorAction SilentlyContinue
1234
- if ($r) {
1235
- $ips = ($r | ? {$_.IPAddress}).IPAddress -join ","
1236
- "$p.$D -> $ips"
1237
- }
1238
- }
1239
- ```
1240
-
1241
- **One-liner (bash + dig):**
1242
- ```bash
1243
- D="target.example"
1244
- for p in www mail webmail owa autodiscover ftp vpn sslvpn gateway api app portal login sso idp iam identity accounts oauth auth adfs admin intranet hr sap erp crm support help status grafana kibana docs wiki jira jenkins gitlab dev test staging stg qa uat sandbox preprod preview careers jobs eapps old legacy beta tender suppliers procurement; do
1245
- IP=$(dig +short A "$p.$D" | head -1)
1246
- [ -n "$IP" ] && echo "$p.$D -> $IP"
1247
- done
1248
- ```
1249
-
1250
- **Mass DNS approach (faster for large prefix lists):**
1251
- ```bash
1252
- # Generate candidate FQDNs from a wordlist; resolve in parallel via puredns
1253
- puredns resolve <(awk -v d="$D" '{print $1"."d}' assetnote-best-dns-wordlist.txt) -r resolvers.txt
1254
- ```
1255
-
1256
- **What to extract from each hit:**
1257
- - IP / IP block → ASN lookup (§28.1) → confirms target-owned vs hosted-elsewhere.
1258
- - For `vpn.*` / `gateway.*` / `gp.*` / `globalprotect.*` / `citrix.*` → flag for active vendor fingerprint (§16.16) under separate engagement scope.
1259
- - For `api.*` / `app.*` → seed for §16.1–16.10 webapp probes.
1260
- - For `staging.*` / `dev.*` / `uat.*` → seed for §16.5 always-on HTTP checks (often weaker auth + debug endpoints).
1261
- - For `intranet.*` / `eapps.*` / `eproc.*` / similar internal-app shortnames → public-intranet finding (often MEDIUM; per §40).
1262
-
1263
- **Real-engagement validation:** in an internal smoke test, prefix-sweep found `vpn.`, `api.`, `intranet.`, `staging.`, `support.`, `eapps.`, `eproc.`, `autodiscover.` — all of which crt.sh missed (or returned 502 for). Treat passive + active as **complementary, not alternatives**.
1264
-
1265
- ---
1266
-