Chuyển đến nội dung
Skillpedia
Bảo mật35k · #8177

performing-agentless-vulnerability-scanning

Skill này làm gì

Công cụ này kiểm tra máy tính và hệ thống trong mạng để tìm điểm yếu bảo mật mà không cần cài bất kỳ phần mềm nào lên chúng. Nó dùng các phương pháp như truy cập từ xa hoặc phân tích bản sao lưu đám mây để tìm vấn đề.

Khi nào nên dùng

  • ✓Khi đánh giá bảo mật của các máy tính trong mạng.
  • ✓Khi điều tra một sự cố bảo mật tiềm ẩn.
  • ✓Khi thực hiện kiểm toán bảo mật định kỳ.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-agentless-vulnerability-scanning/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy quét máy chủ Linux của tôi để tìm lỗ hổng đã biết bằng SSH.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kết nối với hệ thống bằng các giao thức mạng (như SSH cho Linux hoặc WMI cho Windows) hoặc phân tích bản sao lưu ổ đĩa đám mây. Nó kiểm tra cấu hình và phần mềm đã cài để tìm lỗi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 = {}

…
Câu hỏi thường gặp

Vì sao dùng “agentless”?

Vì không phải cài phần mềm lên từng máy, giúp tiết kiệm thời gian và tránh làm quá tải hệ thống.

Công cụ có thể quét những hệ thống nào?

Nó có thể quét hệ thống trong mạng cục bộ, trên đám mây (như AWS, Azure, GCP) và cả các image container.

Tôi có cần quyền đặc biệt không?

Có. Công cụ cần thông tin đăng nhập hoặc khóa truy cập để kết nối với hệ thống và nền tảng đám mây, thường với quyền chỉ đọc.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#8177
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự