fofamap

fofamap is a skill for Claude Code, Codex from asaotomo/DeepSentry. It costs 94 tokens per session (821 once invoked), scanned A, original, Apache-2.0.

A toolset for FOFA, an internet asset-search service, with query checking, public-host searches, asset profiles, statistics, exports, and authorized Nuclei scans.

In plain words
What is it for?
Searching exposed assets, reviewing hosts, exporting results, and scanning explicitly authorized targets for known issues.
Why use it?
It helps security teams find and organize internet-facing systems while checking search rules before using search credits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Searching exposed assets, reviewing hosts, exporting results, and scanning explicitly authorized targets for known issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asaotomo/deepsentry/fofamap
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add asaotomo/DeepSentry --skill fofamap
Clone the repo
git clone --depth 1 https://github.com/asaotomo/DeepSentry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fofamap

README.md
[![agentmods](https://agentmods.dev/badge/skills/asaotomo/deepsentry/fofamap/github.svg)](https://agentmods.dev/skills/asaotomo/deepsentry/fofamap)
Your own site
<a href="https://agentmods.dev/skills/asaotomo/deepsentry/fofamap"><img src="https://agentmods.dev/badge/skills/asaotomo/deepsentry/fofamap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fofamap

Your own site · 80×15
<a href="https://agentmods.dev/skills/asaotomo/deepsentry/fofamap"><img src="https://agentmods.dev/badge/skills/asaotomo/deepsentry/fofamap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 821 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.00821
Opus 5.5 $0.00038 $0.00328
Sonnet 5.5 $0.00019 $0.00164
Haiku 4.5 $0.00009 $0.00082

Measured 1mo ago against content hash 51bd8ae76d20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fofamap scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

致远/OA/VPN、导出 CSV 时必须先 load_skill 本 skill。不要用 curl 打 FOFA API。
skills/fofamap/SKILL.md · 46 lines

What it actually says

FofaMap MCP

FofaMap 已出现在本会话工具列表中就等于已经连通。工具名以本会话前缀为准 (常见 fofamap__fofa_search)。这是 FofaMap MCP v2.0.1(mcp_server.py 的 15 个工具),不是 ClawHub 市场里那个跑 scripts/fofa_recon.py 的 Skill 包装。 禁止 execute python3 scripts/fofa_recon.py,禁止 curl FOFA API,禁止把 API Key 写进报告。

工作流

  1. fofa_account + fofa_fields。看 vip_level:注册用户无 Host API;个人/教育账户无 stats API。
  2. 用户点名产品、OA、VPN、中间件、摄像头、CMS 时,先 fofa_rules,原样使用返回的 query。空 keyword 列出内置目录,不耗额度。禁止编造 app=。
  3. 耗额度查询前 fofa_validate_query。语法不对先修,再 fofa_search。
  4. 第一页用最小字段集和 size。翻页把返回的 next_cursor 原样传给 fofa_search_next 的 cursor(DeepSentry 也会把 next_cursor 映射成 cursor)。
  5. fofa_host_profile / fofa_stats 必须先确认账户有对应 API。
  6. 大批量结果用 fofa_export,再 fofa_job_status 或 mcp_resource action=read uri=fofamap://jobs/{id} 取本地绝对路径。不要把大表贴进对话。
  7. 宽泛中英文发现用 fofa_agent_run。组织官网结果保留 website_candidates 的 corroborated / observed / candidate,不要拍板成已确认归属。
  8. 只有用户明确要求对已授权范围做主动扫描时才 nuclei_plan。核对目标、模板、severity 后,把一次性 plan_id + approval_token 原样交给 nuclei_execute。不得跳过 plan,不得复用令牌。

参数兼容

fofa_export 和 nuclei_plan 的 MCP schema 需要嵌套 request 对象。可以:

{"action":"tool","tool_name":"fofa_export","tool_args":{"query":"domain=\"example.com\"","format":"jsonl"}}
{"action":"tool","tool_name":"nuclei_plan","tool_args":{"targets":"https://example.com"}}

DeepSentry 会把扁平参数包进 request。fields / targets 可传 JSON 数组或逗号分隔。

安全

  • 搜索、画像、统计是被动情报,仍要遵守用户授权范围。
  • 认证失败、额度耗尽、超时不是空结果。
  • FOFA 命中 ≠ 漏洞,也 ≠ 法律上的资产归属。
  • 不要把 FOFA_API_KEY、approval token 写入报告或记忆。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 46 lines · 94 tokens per session scan A 51bd8ae76d20

Subscribe to this mod's changes

fofamap is a skill published in the GitHub repository asaotomo/DeepSentry (35 stars, last pushed 22d ago), licensed Apache-2.0. It adds 94 tokens to every session and 821 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

go-expert

Expert-level Go development with Go 1.22+ features, concurrency, standard library, and production-grade best practices. Use when the user mentions concurrency, microservices, or backend, or when the task involves idiomatic Go, goroutines and channels, context-based cancellation, or writing an HTTP server.

personamanagmentlayer/pcl · 65 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

image-generation

Generate or edit images from text prompts. Use when the user asks to create, draw, design, or edit an image, illustration, photo, icon, poster, or any visual content.

zhayujie/CowAgent · 41 tokens

ax-go-gen

Use when writing Go code with github.com/ax-llm/ax/packages/go for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.

ax-llm/ax · 54 tokens