360 Secure SkillHub
360 安全技能中心

HomeNetworkSecurityAgent

通过本地 Python 脚本调用 nmap 等命令,获取默认网关与公网 IP,对局域网做 ping 扫描发现在线设备,并对指定 IP 做快速或深度服务与漏洞扫描并输出开放端口和潜在配置问题。需自行在系统上安装 nmap,公网 IP 查询依赖外部服务。

assix
assix
热度 35.94
最近更新 2026-05-11 17:42:20
分类:安全依赖:代码执行 / 第三方 API应用场景:自动化脚本 / DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add home-network-security-agent
Metadata
name
HomeNetworkSecurityAgent
description
Audits local network infrastructure, identifies active hosts, and scans the gateway/public IP for exposed ports and vulnerabilities.
version
1.0.0
author
assix
keywords
["security","networking","nmap","vulnerability-scanner","agent"]
metadata
{"openclaw":{"requires":{"bins":["python3","nmap","ip"]}}}

HomeNetworkSecurityAgent

This agent performs internal and external security audits of your home network environment. It utilizes nmap to discover devices and footprint exposed services.

Setup

Ensure nmap is installed on the host system:

sudo apt install nmap

User Instructions

  • "Scan my local network and tell me what devices are online."
  • "Find my public IP and gateway, then check if my gateway management ports (like 8443, 443) or DNS resolvers (like port 53) are exposed to the outside."
  • "Run a deep vulnerability scan on my router to see if it needs a firmware update."

Tools

get_network_topology

Retrieves the default gateway IP and the external public IP address of the network.

  • Inputs: None
  • Call: python3 scanner.py --tool get_network_topology

discover_lan_hosts

Performs a ping sweep on the local subnet to identify all connected physical and IoT devices.

  • Inputs: gateway_ip (string)
  • Call: python3 scanner.py --tool discover_lan_hosts --target {{gateway_ip}}

scan_ports_and_vulns

Runs a service detection scan against a target IP (local or public) to list open ports and identify potential misconfigurations.

  • Inputs: ip_address (string), scan_type (string: "fast" or "deep")
  • Call: python3 scanner.py --tool scan_ports_and_vulns --target {{ip_address}} --type {{scan_type}}