Install
openclaw skills install space-query-skillBuild search queries for network asset discovery platforms (space测绘). Use when users want to find network assets, discover attack surfaces, investigate vulnerabilities (CVE), or search for specific services/servers/websites. Triggers on: 空间测绘, FOFA, 鹰图, ZoomEye, Shodan, CVE, 漏洞, asset discovery, network search, or similar queries.
openclaw skills install space-query-skillMulti-platform query builder for FOFA, Quake, ZoomEye, and Shodan.
| Platform | Best For | Syntax Style |
|---|---|---|
| FOFA | Global coverage, protocol details | field="value" |
| Quake (鹰图) | China data, threat intel | field:value |
| ZoomEye | Service fingerprints | field:value |
| Shodan | IoT,漏洞关联 | field:value |
FOFA: product="Redis" && port="6379" && country="CN"
Quake: app:Redis AND port:6379 AND country:China
Shodan: product:Redis port:6379 country:CN
FOFA: (title="登录" || title="admin" || title="后台") && country="CN"
Quake: (keyword:登录 OR keyword:admin) AND country:China
Shodan: title:"login" country:CN
FOFA: (body="plupload" || body="webuploader" || title="上传") && country="CN"
Shodan: http.html:"type=\"file\"" country:CN
FOFA: cert.is_expired=true && country="CN"
Shodan: ssl.cert.expired:true country:CN
Critical: Always extract features from CVE info and use platform-specific product identifiers.
┌─────────────────────────────────────────────────────────────┐
│ Step 1: WebSearch for official queries │
│ Search: "[Platform] CVE-XXXX-XXXX" or "[CVE] + FOFA" │
└─────────────────────────┬───────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────┐
│ Step 2: Find official source │
│ - Platform blog (en.fofa.info, quake.360.net/blog) │
│ - Security sites (securityonline.info, nvd.nist.gov) │
│ - GitHub PoC repos often contain platform queries │
└─────────────────────────┬───────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────┐
│ Step 3: Extract platform-specific product ID │
│ - FOFA uses app="product-name" │
│ - Quake uses app:product-name │
│ - Shodan uses product:product-name │
└─────────────────────────┬───────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────┐
│ Step 4: Build query │
└─────────────────────────────────────────────────────────────┘
When given a CVE, ALWAYS use WebSearch first:
# Search for platform-specific queries
web_search: "CVE-2024-38819 FOFA query"
web_search: "CVE-2024-38819 fofa.info"
web_search: "CVE-2024-38819 Quake 360"
web_search: "CVE-2024-38819 PoC github"
# Search for official platform announcements
web_search: "site:en.fofa.info CVE-2024-38819"
web_search: "site:quake.360.net CVE"
Official Sources to Check:
| Source | URL | What to Find |
|---|---|---|
| FOFA Blog | en.fofa.info | Official queries with exact app IDs |
| Quake Blog | quake.360.net/blog | Threat intel announcements |
| NVD | nvd.nist.gov | CVE details, affected products |
| SecurityOnline | securityonline.info | PoC with platform queries |
| GitHub | github.com | PoC exploits often include FOFA/Quake queries |
Step 1: WebSearch
Search: "CVE-2024-38819 FOFA"
Result: en.fofa.info shows "app="vmware-Spring-Framework""
Step 2: Official Query Found
FOFA: app="vmware-Spring-Framework" (25k+ results)
Step 3: Cross-platform translation
FOFA: app="vmware-Spring-Framework"
Shodan: product:"Spring Framework"
Quake: app:Spring
ZoomEye: app:spring
Wrong (lazy):
body="CVE-2024-38819" ❌ CVE ID in body, no results
product="Spring" ❌ Wrong product ID for most platforms
Correct (official product ID):
app="vmware-Spring-Framework" ✅ FOFA official query
| CVE | Affects | FOFA | Shodan | Quake |
|---|---|---|---|---|
| CVE-2024-38819 | Spring Framework | app="vmware-Spring-Framework" | product:"Spring Framework" | app:Spring |
| CVE-2021-44228 | Apache Log4j | app="Apache-log4j2" | product:log4j | app:log4j |
| CVE-2019-0708 | Windows RDP | app="Microsoft-RDP" | vuln:CVE-2019-0708 | app:RDP |
| CVE-2022-22965 | Spring4Shell | app="vmware-Spring-Framework" | product:Spring | app:Spring |
Rule: When you find an official query from a trusted source (platform blog, security site, verified PoC), use that exact query.
() > == > = > != > && > ||
Rule: Always wrap multiple OR conditions with ().
Present queries using this structure:
## Query
**Platform:** [Platform]
[Query Here]
### Explanation
- **Target:** What this finds
- **Fields:** Main fields used
- **Logic:** AND/OR relationship
### Suggestions
- Additional filters to consider
- Known limitations
- Alternative approaches
See resources/fields.md for complete field lists per platform.
(A || B) && C not A || B && C=" while others use :country="中国" works in FOFA, prefer English elsewhereafter/before in FOFA/Quake| Issue | Solution |
|---|---|
| No results | Add status_code="200" or remove strict filters |
| Too many results | Add country, time, or product filters |
| Wrong syntax | Check platform in reference files |