跳到正文
Skillpedia
安全35k · #8177

performing-agentless-vulnerability-scanning

它能做什么

这个工具无需在目标设备上安装任何软件,就能检查网络中的电脑和系统是否存在安全漏洞。它会通过远程连接或分析云端磁盘备份等方式查找问题。

适用场景

  • ✓评估网络中各台电脑的安全状况时。
  • ✓调查可能的安全事件时。
  • ✓进行定期安全审计时。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-agentless-vulnerability-scanning/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-agentless-vulnerability-scanning/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请通过 SSH 扫描我的 Linux 服务器,查找已知漏洞。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会通过网络协议连接系统(Linux 常用 SSH,Windows 常用 WMI),或者分析云端磁盘备份。它会检查配置和已安装的软件,找出其中的缺陷。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Performing Agentless Vulnerability Scanning

Overview

Agentless vulnerability scanning assesses systems for security weaknesses without requiring endpoint agent installation. This approach leverages existing network protocols (SSH for Linux, WMI for Windows), cloud provider APIs for snapshot-based analysis, and authenticated remote checks. Modern cloud platforms like Microsoft Defender for Cloud, Wiz, Datadog, and Tenable perform out-of-band analysis by taking disk snapshots and examining OS configurations and installed packages offline. The open-source tool Vuls provides agentless scanning based on NVD and OVAL data for Linux/FreeBSD systems. This skill covers configuring agentless scans across on-premises, cloud, and containerized environments.

When to Use

  • When conducting security assessments that involve performing agentless vulnerability scanning
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

  • SSH key-based authentication configured on Linux/Unix targets
  • WMI/WinRM access on Windows targets with appropriate credentials
  • Cloud provider API credentials (AWS IAM, Azure RBAC, GCP IAM)
  • Network access from scanner to target systems on required ports
  • Service account with read-only access to target system configurations
  • Python 3.8+ for custom scanning automation

Core Concepts

Agentless vs Agent-Based Scanning

Aspect Agentless Agent-Based
Deployment No software installation needed Agent install on every endpoint
Network dependency Requires network connectivity Works offline with cloud sync
Performance impact Minimal on target systems Light continuous overhead
Coverage depth Depends on protocol/credentials Deep local access
Cloud snapshot analysis Native capability Not applicable
Ideal for Cloud VMs, IoT, legacy systems, OT Managed endpoints, laptops

Agentless Scanning Methods

Method Protocol Target OS Port Use Case
SSH Remote Commands SSH Linux/Unix 22 Package enumeration, config audit
WMI Remote Query WMI/DCOM Windows 135, 445 Hotfix enumeration, registry checks
WinRM PowerShell WS-Man Windows 5985/5986 Remote command execution
SNMP Community SNMP v2c/v3 Network devices 161 Device fingerprinting, firmware check
Cloud Snapshot Provider API Cloud VMs N/A Disk image analysis
Container Registry HTTPS Container images 443 Image vulnerability scanning
API-Based REST/HTTPS SaaS/Cloud 443 Configuration assessment

Cloud Snapshot Analysis Flow

1. Scanner requests disk snapshot via cloud API
2. Cloud provider creates snapshot of VM root + data disks
3. Scanner mounts snapshot in isolated analysis environment
4. Scanner examines OS packages, configurations, file system
5. Snapshot is deleted after analysis (no persistent copies)
6. Results sent to central management console

Workflow

Step 1: SSH-Based Agentless Scanning (Linux)

# Create dedicated scan SSH key pair
ssh-keygen -t ed25519 -f /opt/scanner/.ssh/scan_key -N "" \
  -C "vuln-scanner@security.local"

# Deploy public key to targets via Ansible
# ansible-playbook deploy_scan_key.yml

# Test connectivity to target
ssh -i /opt/scanner/.ssh/scan_key -o ConnectTimeout=10 \
  scanner@target-host "cat /etc/os-release && dpkg -l 2>/dev/null || rpm -qa"
import paramiko
import json

class AgentlessLinuxScanner:
    """SSH-based agentless vulnerability scanner for Linux systems."""

    def __init__(self, key_path):
        self.key_path = key_path

    def connect(self, hostname, username="scanner", port=22):
        """Establish SSH connection to target."""
        client = paramiko.SSHClient()
        client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        key = paramiko.Ed25519Key.from_private_key_file(self.key_path)
        client.connect(hostname, port=port, username=username, pkey=key,
                       timeout=30, banner_timeout=30)
        return client

    def get_os_info(self, client):
        """Detect OS type and version."""
        _, stdout, _ = client.exec_command("cat /etc/os-release", timeout=10)
        os_release = stdout.read().decode()
        info = {}

…
常见问题

为什么叫“无代理”(agentless)?

因为它不需要在每台机器上安装软件,既节省时间,也避免给系统增加额外负担。

它能扫描哪些系统?

本地网络中的系统、云端环境(如 AWS、Azure、GCP),甚至是容器镜像,都可以扫描。

我需要特殊权限吗?

需要。工具必须拥有凭证或访问密钥才能连接系统和云平台,通常只需要只读权限即可。

详情

作者的原始描述

Configure and execute agentless vulnerability scanning using network protocols, cloud snapshot analysis, and API-based discovery to assess systems without installing endpoint agents.

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#8177
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能