network-recon

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

A network troubleshooting guide that uses built-in Go tools and Linux's /proc information to inspect hosts, ports, connections, routes, processes, and traffic changes. It is designed for minimal systems where common tools such as nmap, ss, or tcpdump may be unavailable.

In plain words
What is it for?
Use it to test reachability, list listening ports and active connections, inspect routes and ARP data, scan ports, review processes and memory, and detect changes in network flows.
Why use it?
It lets an investigator check network and host state without installing those utilities on the target machine. When packet capture is unavailable, it can compare traffic snapshots instead.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/asaotomo/deepsentry/network-recon
Any agent
npx skills add asaotomo/DeepSentry --skill network-recon
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 network-recon

README.md
[![agentmods](https://agentmods.dev/badge/skills/asaotomo/deepsentry/network-recon.svg)](https://agentmods.dev/skills/asaotomo/deepsentry/network-recon)
Your own site
<a href="https://agentmods.dev/skills/asaotomo/deepsentry/network-recon"><img src="https://agentmods.dev/badge/skills/asaotomo/deepsentry/network-recon.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00524
Opus 5 $0.00017 $0.00262
Sonnet 5 $0.00007 $0.00105
Haiku 4.5 $0.00003 $0.00052

Measured 5d ago against content hash c1aa2f8dae7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

network-recon scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/network-recon/SKILL.md · 44 lines

What it actually says

网络排查 Skill (BusyBox 模式)

核心原则

DeepSentry 工具是 Go 原生实现,不依赖目标系统的 nmap/ping/ss/netstat/tcpdump/ps。

极简/嵌入式 Linux 只需:

  • 内核暴露 /proc(几乎所有 Linux 都有)
  • SSH + SFTP(DeepSentry 直读文件,连 cat 都不需要)

工具选用

场景 工具 说明
主机可达 ping Go TCP 探活,无需 ping 命令
当前连接 net_connections 解析 /proc/net/tcp
监听端口 port_listen /proc LISTEN
路由/ARP route_table, arp_table /proc 解析
端口扫描 nmap_scan Go TCP 扫描,无需 nmap 🔴
TCP 探活 netcat_probe Go net.Dial
抓包替代 flow_snapshot /proc 快照对比,无需 tcpdump
进程/内存 process_list, mem_info /proc 直读

远程排查注意

  • 目标本机状态(连接/监听/进程):用 net_connections/port_listen/process_list(读目标 /proc)
  • 从外部分扫描目标端口nmap_scan/ping 从 DeepSentry 控制端发起,需填目标 IP(非 127.0.0.1)
  • 无 tcpdump 时:packet_capture 自动降级为 flow_snapshot

示例

{"action":"tool","tool_name":"net_connections","tool_args":{"filter":"established"}}
{"action":"tool","tool_name":"port_listen"}
{"action":"tool","tool_name":"process_list","tool_args":{"limit":"30"}}
{"action":"tool","tool_name":"flow_snapshot","tool_args":{"interval":"3"}}
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. 5d ago First seen · 44 lines · 34 tokens per session scan A c1aa2f8dae7b

Subscribe to this mod's changes

network-recon is a skill published in the GitHub repository asaotomo/DeepSentry (25 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 524 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

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

stack-trace-go-probe

Internal helper for meta-stack-trace-investigator. Use when a Go panic or stack trace needs Go-specific nil/error checks, go test reproducer guidance, and patch targets.

opensquilla/opensquilla · 42 tokens

golang-expert

Go programming expert for goroutines, channels, interfaces, modules, and concurrency patterns.

RightNow-AI/openfang · 21 tokens

数据处理器

数据处理与分析技能。当用户需要对知识库检索结果进行数据分析、统计计算、格式转换、数据提取或生成报告时使用此技能。支持 Python 脚本执行进行高级数据处理。.

Tencent/WeKnora · 51 tokens