fofa-query-syntax

Generate, rewrite, and validate FOFA queries with correct syntax and asset targeting.

834|81|Updated Dec 14, 2021
One-click install
npx skills add https://github.com/xiecat/fofax --skill fofa-query-syntax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fofa-query-syntax
Source: https://github.com/xiecat/fofax/tree/main/.cursor/skills/fofa-query-syntax
Command: npx skills add https://github.com/xiecat/fofax --skill fofa-query-syntax

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

在进行 FOFA 查询时,用户需要一个一致、可验证的规则来生成、改写并校验查询语句,以降低错误、提升查询效率。

Core Features & Use Cases

  • 统一的 FOFA 查询语法生成、改写与校验
  • 遵循字段与运算符能力约束,输出合法表达式
  • 提供主查询及等价改写(更宽/更窄)以支持不同用例
  • 使用示例覆盖资产测绘、语法速查、查询语句编写与纠错
  • 支持快速上手:给出一个自然语言请求即可得到可执行查询

Quick Start

让我生成、改写或校验符合该技能定义的 FOFA 查询语句。

Frequently Asked Questions about fofa-query-syntax

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a valid FOFA query for asset discovery?

To validate FOFA query syntax, the system checks field validity, operator rules, and potential conflicts to ensure correct asset discovery. It enforces supported field constraints and produces both main and equivalent variant queries for optimization.

What is the best way to rewrite a FOFA query for broader or narrower security analysis?

A FOFA query generator applies operator rules and supported field constraints to validate syntax and detect potential conflicts. It ensures correct asset mapping by producing main and equivalent variant queries, reducing errors during security investigations.

Can I use natural language to generate a FOFA query for security investigations?

Yes, you can use natural language to generate an executable FOFA query for security investigations. The system translates the request into a valid expression, enforcing field constraints and operator rules for accurate asset mapping.

Why does my FOFA query syntax fail during asset mapping?

Your FOFA query syntax fails during asset mapping due to invalid fields, incorrect operator usage, or potential conflicts. Validating the query checks these constraints to ensure supported fields and operator rules are correctly applied for successful asset discovery.

Does FOFA query validation check for potential conflicts in security analysis?

Yes, FOFA query validation checks for potential conflicts by enforcing operator rules and supported field constraints. This ensures the generated or rewritten query is syntactically correct and effective for security analysis, asset discovery, and compliance reporting.