[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71BCZG8W3XTAPJG2RFHQWGH":3,"skill-same:01M71BCZG8W3XTAPJG2RFHQWGH":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":58,"updatedAt":59,"install":60,"resources":72},"01M71BCZG8W3XTAPJG2RFHQWGH","cyber-performing-agentless-vulnerability-scanning",null,"Configure and execute agentless vulnerability scanning using network protocols, cloud snapshot analysis, and API-based discovery to assess systems without installing endpoint agents.","nexuslinkproductions\u002Fyuri-os","nexuslinkproductions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273246263?v=4","01M718YX9NZRCW50B59B8ZVDKN","Marcel Spatz","01M718YXAQ7530F4B1VKN6SFQV",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcyber-performing-agentless-vulnerability-scanning\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"scanning","cyber performing agentless vulnerability scanning","performing agentless vulnerability scanning","vulnerability scanning","performing","vulnerability","endpoint","security","network","snapshot","cloud-security","vulnerability-scanning","subdomain","api","analysis","configure","false","cybersecurity","assessment","vulnerability-management","2026-11-10 10:12:30",false,"---\nname: cyber-performing-agentless-vulnerability-scanning\ndescription: \"Configure and execute agentless vulnerability scanning using network protocols, cloud snapshot analysis, and API-based discovery to assess systems without installing endpoint agents.\"\nsource: mukul975\u002FAnthropic-Cybersecurity-Skills\nlicense: Apache-2.0\nauthorized_lab: false\norigin_frontmatter: \"name: performing-agentless-vulnerability-scanning | description: Configure and execute agentless vulnerability scanning using network |   protocols, cloud snapshot analysis, and API-based discovery to assess systems without |   installing endpoint agents. | domain: cybersecurity | subdomain: vulnerability-management | tags: | - agentless-scanning | - vulnerability-assessment | - cloud-security | - ssh | - wmi | - snapshot-analysis | - vuls | - tenable | version: '1.0' | author: mahipal | license\"\nhide: true\n---\n\n> Defensive\u002Fanalysis cyber skill. Source: mukul975\u002FAnthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.\n\n# Performing Agentless Vulnerability Scanning\n\n## Overview\nAgentless 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\u002FFreeBSD systems. This skill covers configuring agentless scans across on-premises, cloud, and containerized environments.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing agentless vulnerability scanning\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n- SSH key-based authentication configured on Linux\u002FUnix targets\n- WMI\u002FWinRM access on Windows targets with appropriate credentials\n- Cloud provider API credentials (AWS IAM, Azure RBAC, GCP IAM)\n- Network access from scanner to target systems on required ports\n- Service account with read-only access to target system configurations\n- Python 3.8+ for custom scanning automation\n\n## Core Concepts\n\n### Agentless vs Agent-Based Scanning\n\n| Aspect | Agentless | Agent-Based |\n|--------|-----------|-------------|\n| Deployment | No software installation needed | Agent install on every endpoint |\n| Network dependency | Requires network connectivity | Works offline with cloud sync |\n| Performance impact | Minimal on target systems | Light continuous overhead |\n| Coverage depth | Depends on protocol\u002Fcredentials | Deep local access |\n| Cloud snapshot analysis | Native capability | Not applicable |\n| Ideal for | Cloud VMs, IoT, legacy systems, OT | Managed endpoints, laptops |\n\n### Agentless Scanning Methods\n\n| Method | Protocol | Target OS | Port | Use Case |\n|--------|----------|-----------|------|----------|\n| SSH Remote Commands | SSH | Linux\u002FUnix | 22 | Package enumeration, config audit |\n| WMI Remote Query | WMI\u002FDCOM | Windows | 135, 445 | Hotfix enumeration, registry checks |\n| WinRM PowerShell | WS-Man | Windows | 5985\u002F5986 | Remote command execution |\n| SNMP Community | SNMP v2c\u002Fv3 | Network devices | 161 | Device fingerprinting, firmware check |\n| Cloud Snapshot | Provider API | Cloud VMs | N\u002FA | Disk image analysis |\n| Container Registry | HTTPS | Container images | 443 | Image vulnerability scanning |\n| API-Based | REST\u002FHTTPS | SaaS\u002FCloud | 443 | Configuration assessment |\n\n### Cloud Snapshot Analysis Flow\n```\n1. Scanner requests disk snapshot via cloud API\n2. Cloud provider creates snapshot of VM root + data disks\n3. Scanner mounts snapshot in isolated analysis environment\n4. Scanner examines OS packages, configurations, file system\n5. Snapshot is deleted after analysis (no persistent copies)\n6. Results sent to central management console\n```\n\n## Workflow\n\n### Step 1: SSH-Based Agentless Scanning (Linux)\n\n```bash\n# Create dedicated scan SSH key pair\nssh-keygen -t ed25519 -f \u002Fopt\u002Fscanner\u002F.ssh\u002Fscan_key -N \"\" \\\n  -C \"vuln-scanner@security.local\"\n\n# Deploy public key to targets via Ansible\n# ansible-playbook deploy_scan_key.yml\n\n# Test connectivity to target\nssh -i \u002Fopt\u002Fscanner\u002F.ssh\u002Fscan_key -o ConnectTimeout=10 \\\n  scanner@target-host \"cat \u002Fetc\u002Fos-release && dpkg -l 2>\u002Fdev\u002Fnull || rpm -qa\"\n```\n\n```python\nimport paramiko\nimport json\n\nclass AgentlessLinuxScanner:\n    \"\"\"SSH-based agentless vulnerability scanner for Linux systems.\"\"\"\n\n    def __init__(self, key_path):\n        self.key_path = key_path\n\n    def connect(self, hostname, username=\"scanner\", port=22):\n        \"\"\"Establish SSH connection to target.\"\"\"\n        client = paramiko.SSHClient()\n        client.set_missing_host_key_policy(paramiko.AutoAddPolicy())\n        key = paramiko.Ed25519Key.from_private_key_file(self.key_path)\n        client.connect(hostname, port=port, username=username, pkey=key,\n                       timeout=30, banner_timeout=30)\n        return client\n\n    def get_os_info(self, client):\n        \"\"\"Detect OS type and version.\"\"\"\n        _, stdout, _ = client.exec_command(\"cat \u002Fetc\u002Fos-release\", timeout=10)\n        os_release = stdout.read().decode()\n        info = {}\n        for line in os_release.strip().split(\"\\n\"):\n            if \"=\" in line:\n                key, val = line.split(\"=\", 1)\n                info[key] = val.strip('\"')\n        return info\n\n    def get_installed_packages(self, client):\n        \"\"\"Enumerate installed packages.\"\"\"\n        # Try dpkg (Debian\u002FUbuntu)\n        _, stdout, _ = client.exec_command(\n            \"dpkg-query -W -f='${Package}|${Version}|${Architecture}\\\\n'\",\n            timeout=30\n        )\n        output = stdout.read().decode().strip()\n        if output:\n            packages = []\n            for line in output.split(\"\\n\"):\n                parts = line.split(\"|\")\n                if len(parts) >= 2:\n                    packages.append({\n                        \"name\": parts[0],\n                        \"version\": parts[1],\n                        \"arch\": parts[2] if len(parts) > 2 else \"\",\n                        \"manager\": \"dpkg\"\n                    })\n            return packages\n\n        # Try rpm (RHEL\u002FCentOS\u002FFedora)\n        _, stdout, _ = client.exec_command(\n            \"rpm -qa --queryformat '%{NAME}|%{VERSION}-%{RELEASE}|%{ARCH}\\\\n'\",\n            timeout=30\n        )\n        output = stdout.read().decode().strip()\n        packages = []\n        for line in output.split(\"\\n\"):\n            parts = line.split(\"|\")\n            if len(parts) >= 2:\n                packages.append({\n                    \"name\": parts[0],\n                    \"version\": parts[1],\n                    \"arch\": parts[2] if len(parts) > 2 else \"\",\n                    \"manager\": \"rpm\"\n                })\n        return packages\n\n    def check_kernel_version(self, client):\n        \"\"\"Get running kernel version.\"\"\"\n        _, stdout, _ = client.exec_command(\"uname -r\", timeout=10)\n        return stdout.read().decode().strip()\n\n    def check_listening_ports(self, client):\n        \"\"\"Enumerate listening network services.\"\"\"\n        _, stdout, _ = client.exec_command(\n            \"ss -tlnp 2>\u002Fdev\u002Fnull || netstat -tlnp 2>\u002Fdev\u002Fnull\",\n            timeout=10\n        )\n        return stdout.read().decode().strip()\n\n    def scan_host(self, hostname, username=\"scanner\"):\n        \"\"\"Perform full agentless scan of a host.\"\"\"\n        print(f\"[*] Scanning {hostname}...\")\n        client = self.connect(hostname, username)\n\n        result = {\n            \"hostname\": hostname,\n            \"os_info\": self.get_os_info(client),\n            \"kernel\": self.check_kernel_version(client),\n            \"packages\": self.get_installed_packages(client),\n            \"listening_ports\": self.check_listening_ports(client),\n        }\n\n        client.close()\n        print(f\"  [+] Found {len(result['packages'])} packages on {hostname}\")\n        return result\n```\n\n### Step 2: WinRM-Based Agentless Scanning (Windows)\n\n```python\nimport winrm\n\nclass AgentlessWindowsScanner:\n    \"\"\"WinRM-based agentless vulnerability scanner for Windows.\"\"\"\n\n    def __init__(self, username, password, domain=None):\n        self.username = username\n        self.password = password\n        self.domain = domain\n\n    def connect(self, hostname, use_ssl=True):\n        \"\"\"Create WinRM session.\"\"\"\n        port = 5986 if use_ssl else 5985\n        transport = \"ntlm\"\n        user = f\"{self.domain}\\\\{self.username}\" if self.domain else self.username\n        session = winrm.Session(\n            f\"{'https' if use_ssl else 'http'}:\u002F\u002F{hostname}:{port}\u002Fwsman\",\n            auth=(user, self.password),\n            transport=transport,\n            server_cert_validation=\"ignore\"\n        )\n        return session\n\n    def get_installed_hotfixes(self, session):\n        \"\"\"Get installed Windows updates\u002Fhotfixes.\"\"\"\n        cmd = \"Get-HotFix | Select-Object HotFixID,InstalledOn,Description | ConvertTo-Json\"\n        result = session.run_ps(cmd)\n        if result.status_code == 0:\n            return json.loads(result.std_out.decode())\n        return []\n\n    def get_installed_software(self, session):\n        \"\"\"Enumerate installed software from registry.\"\"\"\n        cmd = \"\"\"\n        $paths = @(\n            'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\*',\n            'HKLM:\\\\SOFTWARE\\\\WOW6432Node\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\*'\n        )\n        Get-ItemProperty $paths -ErrorAction SilentlyContinue |\n            Where-Object {$_.DisplayName} |\n            Select-Object DisplayName, DisplayVersion, Publisher |\n            ConvertTo-Json\n        \"\"\"\n        result = session.run_ps(cmd)\n        if result.status_code == 0:\n            return json.loads(result.std_out.decode())\n        return []\n\n    def get_os_info(self, session):\n        \"\"\"Get Windows OS details.\"\"\"\n        cmd = \"Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,BuildNumber,OSArchitecture | ConvertTo-Json\"\n        result = session.run_ps(cmd)\n        if result.status_code == 0:\n            return json.loads(result.std_out.decode())\n        return {}\n\n    def scan_host(self, hostname):\n        \"\"\"Perform full agentless scan of Windows host.\"\"\"\n        print(f\"[*] Scanning {hostname} via WinRM...\")\n        session = self.connect(hostname)\n\n        result = {\n            \"hostname\": hostname,\n            \"os_info\": self.get_os_info(session),\n            \"hotfixes\": self.get_installed_hotfixes(session),\n            \"software\": self.get_installed_software(session),\n        }\n\n        print(f\"  [+] Found {len(result['hotfixes'])} hotfixes, \"\n              f\"{len(result['software'])} software entries\")\n        return result\n```\n\n### Step 3: Cloud Snapshot Scanning (AWS)\n\n```python\nimport boto3\nimport time\n\nclass AWSSnapshotScanner:\n    \"\"\"AWS EC2 agentless snapshot-based vulnerability scanner.\"\"\"\n\n    def __init__(self, region=\"us-east-1\"):\n        self.ec2 = boto3.client(\"ec2\", region_name=region)\n\n    def create_snapshot(self, volume_id, description=\"Security scan snapshot\"):\n        \"\"\"Create EBS snapshot for analysis.\"\"\"\n        snapshot = self.ec2.create_snapshot(\n            VolumeId=volume_id,\n            Description=description,\n            TagSpecifications=[{\n                \"ResourceType\": \"snapshot\",\n                \"Tags\": [\n                    {\"Key\": \"Purpose\", \"Value\": \"VulnScan\"},\n                    {\"Key\": \"AutoDelete\", \"Value\": \"true\"},\n                ]\n            }]\n        )\n        snapshot_id = snapshot[\"SnapshotId\"]\n        print(f\"  [*] Creating snapshot {snapshot_id} from {volume_id}...\")\n\n        waiter = self.ec2.get_waiter(\"snapshot_completed\")\n        waiter.wait(SnapshotIds=[snapshot_id])\n        print(f\"  [+] Snapshot {snapshot_id} ready\")\n        return snapshot_id\n\n    def delete_snapshot(self, snapshot_id):\n        \"\"\"Clean up snapshot after analysis.\"\"\"\n        self.ec2.delete_snapshot(SnapshotId=snapshot_id)\n        print(f\"  [+] Deleted snapshot {snapshot_id}\")\n\n    def scan_instance(self, instance_id):\n        \"\"\"Scan an EC2 instance via snapshot analysis.\"\"\"\n        print(f\"[*] Agentless scan of instance {instance_id}\")\n\n        instance = self.ec2.describe_instances(\n            InstanceIds=[instance_id]\n        )[\"Reservations\"][0][\"Instances\"][0]\n\n        root_volume = None\n        for bdm in instance.get(\"BlockDeviceMappings\", []):\n            if bdm[\"DeviceName\"] == instance.get(\"RootDeviceName\"):\n                root_volume = bdm[\"Ebs\"][\"VolumeId\"]\n                break\n\n        if not root_volume:\n            print(\"  [!] No root volume found\")\n            return None\n\n        snapshot_id = self.create_snapshot(root_volume)\n        try:\n            # Analysis would be performed here\n            # Mount snapshot, examine packages, check configs\n            result = {\n                \"instance_id\": instance_id,\n                \"snapshot_id\": snapshot_id,\n                \"root_volume\": root_volume,\n                \"platform\": instance.get(\"Platform\", \"linux\"),\n                \"state\": instance[\"State\"][\"Name\"],\n            }\n            return result\n        finally:\n            self.delete_snapshot(snapshot_id)\n```\n\n### Step 4: Vuls Open-Source Agentless Scanner\n\n```toml\n# \u002Fetc\u002Fvuls\u002Fconfig.toml - Vuls configuration for agentless scanning\n\n[servers]\n\n[servers.web-server-01]\nhost = \"192.168.1.10\"\nport = \"22\"\nuser = \"vuls\"\nkeyPath = \"\u002Fopt\u002Fvuls\u002F.ssh\u002Fscan_key\"\nscanMode = [\"fast\"]\n\n[servers.db-server-01]\nhost = \"192.168.1.20\"\nport = \"22\"\nuser = \"vuls\"\nkeyPath = \"\u002Fopt\u002Fvuls\u002F.ssh\u002Fscan_key\"\nscanMode = [\"fast-root\"]\n[servers.db-server-01.optional]\n  [servers.db-server-01.optional.sudo]\n    password = \"\"\n\n[servers.container-host-01]\nhost = \"192.168.1.30\"\nport = \"22\"\nuser = \"vuls\"\nkeyPath = \"\u002Fopt\u002Fvuls\u002F.ssh\u002Fscan_key\"\nscanMode = [\"fast\"]\ncontainersIncluded = [\"${running}\"]\n```\n\n```bash\n# Run Vuls agentless scan\nvuls scan\n\n# Generate report\nvuls report -format-json -to-localfile\n\n# View results\nvuls tui\n```\n\n## Best Practices\n1. Use SSH key-based authentication instead of passwords for Linux scanning\n2. Create dedicated service accounts with minimal read-only privileges for scanning\n3. Always clean up cloud snapshots after analysis to avoid storage costs and data exposure\n4. Combine agentless scanning with agent-based for comprehensive coverage\n5. Schedule scans during low-activity periods to minimize any performance impact\n6. Rotate scanning credentials regularly and store in a secrets vault\n7. Test scanner connectivity before scheduling production scans\n8. Use SNMPv3 with authentication and encryption for network device scanning\n\n## Common Pitfalls\n- Using shared credentials across multiple environments without proper segmentation\n- Not cleaning up temporary snapshots in cloud environments\n- Assuming agentless scanning has zero performance impact (network and CPU are used)\n- Missing WinRM\u002FSSH firewall rules causing scan failures on new deployments\n- Not accounting for SSH host key changes causing authentication failures\n- Scanning OT\u002FICS devices with protocols they cannot safely handle\n\n## Related Skills\n- implementing-rapid7-insightvm-for-scanning\n- implementing-wazuh-for-vulnerability-detection\n- deploying-osquery-for-endpoint-monitoring\n- performing-remediation-validation-scanning\n","> Defensive\u002Fanalysis cyber skill. Source: mukul975\u002FAnthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.\n\n# Performing Agentless Vulnerability Scanning\n\n## Overview\nAgentless 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\u002FFreeBSD systems. This skill covers configuring agentless scans across on-premises, cloud, and containerized environments.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing agentless vulnerability scanning\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n- SSH key-based authentication configured on Linux\u002FUnix targets\n- WMI\u002FWinRM access on Windows targets with appropriate credentials\n- Cloud provider API credentials (AWS IAM, Azure RBAC, GCP IAM)\n- Network access from scanner to target systems on required ports\n- Service account with read-only access to target system configurations\n- Python 3.8+ for custom scanning automation\n\n## Core Concepts\n\n### Agentless vs Agent-Based Scanning\n\n| Aspect | Agentless | Agent-Based |\n|--------|-----------|-------------|\n| Deployment | No software installation needed | Agent install on every endpoint |\n| Network dependency | Requires network connectivity | Works offline with cloud sync |\n| Performance impact | Minimal on target systems | Light continuous overhead |\n| Coverage depth | Depends on protocol\u002Fcredentials | Deep local access |\n| Cloud snapshot analysis | Native capability | Not applicable |\n| Ideal for | Cloud VMs, IoT, legacy systems, OT | Managed endpoints, laptops |\n\n### Agentless Scanning Methods\n\n| Method | Protocol | Target OS | Port | Use Case |\n|--------|----------|-----------|------|----------|\n| SSH Remote Commands | SSH | Linux\u002FUnix | 22 | Package enumeration, config audit |\n| WMI Remote Query | WMI\u002FDCOM | Windows | 135, 445 | Hotfix enumeration, registry checks |\n| WinRM PowerShell | WS-Man | Windows | 5985\u002F5986 | Remote command execution |\n| SNMP Community | SNMP v2c\u002Fv3 | Network devices | 161 | Device fingerprinting, firmware check |\n| Cloud Snapshot | Provider API | Cloud VMs | N\u002FA | Disk image analysis |\n| Container Registry | HTTPS | Container images | 443 | Image vulnerability scanning |\n| API-Based | REST\u002FHTTPS | SaaS\u002FCloud | 443 | Configuration assessment |\n\n### Cloud Snapshot Analysis Flow\n```\n1. Scanner requests disk snapshot via cloud API\n2. Cloud provider creates snapshot of VM root + data disks\n3. Scanner mounts snapshot in isolated analysis environment\n4. Scanner examines OS packages, configurations, file system\n5. Snapshot is deleted after analysis (no persistent copies)\n6. Results sent to central management console\n```\n\n## Workflow\n\n### Step 1: SSH-Based Agentless Scanning (Linux)\n\n```bash\n# Create dedicated scan SSH key pair\nssh-keygen -t ed25519 -f \u002Fopt\u002Fscanner\u002F.ssh\u002Fscan_key -N \"\" \\\n  -C \"vuln-scanner@security.local\"\n\n# Deploy public key to targets via Ansible\n# ansible-playbook deploy_scan_key.yml\n\n# Test connectivity to target\nssh -i \u002Fopt\u002Fscanner\u002F.ssh\u002Fscan_key -o ConnectTimeout=10 \\\n  scanner@target-host \"cat \u002Fetc\u002Fos-release && dpkg -l 2>\u002Fdev\u002Fnull || rpm -qa\"\n```\n\n```python\nimport paramiko\nimport json\n\nclass AgentlessLinuxScanner:\n    \"\"\"SSH-based agentless vulnerability scanner for Linux systems.\"\"\"\n\n    def __init__(self, key_path):\n        self.key_path = key_path\n\n    def connect(self, hostname, username=\"scanner\", port=22):\n        \"\"\"Establish SSH connection to target.\"\"\"\n        client = paramiko.SSHClient()\n        client.set_missing_host_key_policy(paramiko.AutoAddPolicy())\n        key = paramiko.Ed25519Key.from_private_key_file(self.key_path)\n        client.connect(hostname, port=port, username=username, pkey=key,\n                       timeout=30, banner_timeout=30)\n        return client\n\n    def get_os_info(self, client):\n        \"\"\"Detect OS type and version.\"\"\"\n        _, stdout, _ = client.exec_command(\"cat \u002Fetc\u002Fos-release\", timeout=10)\n        os_release = stdout.read().decode()\n        info = {}\n        for line in os_release.strip().split(\"\\n\"):\n            if \"=\" in line:\n                key, val = line.split(\"=\", 1)\n                info[key] = val.strip('\"')\n        return info\n\n    def get_installed_packages(self, client):\n        \"\"\"Enumerate installed packages.\"\"\"\n        # Try dpkg (Debian\u002FUbuntu)\n        _, stdout, _ = client.exec_command(\n            \"dpkg-query -W -f='${Package}|${Version}|${Architecture}\\\\n'\",\n            timeout=30\n        )\n        output = stdout.read().decode().strip()\n        if output:\n            packages = []\n            for line in output.split(\"\\n\"):\n                parts = line.split(\"|\")\n                if len(parts) >= 2:\n                    packages.append({\n                        \"name\": parts[0],\n                        \"version\": parts[1],\n                        \"arch\": parts[2] if len(parts) > 2 else \"\",\n                        \"manager\": \"dpkg\"\n                    })\n            return packages\n\n        # Try rpm (RHEL\u002FCentOS\u002FFedora)\n        _, stdout, _ = client.exec_command(\n            \"rpm -qa --queryformat '%{NAME}|%{VERSION}-%{RELEASE}|%{ARCH}\\\\n'\",\n            timeout=30\n        )\n        output = stdout.read().decode().strip()\n        packages = []\n        for line in output.split(\"\\n\"):\n            parts = line.split(\"|\")\n            if len(parts) >= 2:\n                packages.append({\n                    \"name\": parts[0],\n                    \"version\": parts[1],\n                    \"arch\": parts[2] if len(parts) > 2 else \"\",\n                    \"manager\": \"rpm\"\n                })\n        return packages\n\n    def check_kernel_version(self, client):\n        \"\"\"Get running kernel version.\"\"\"\n        _, stdout, _ = client.exec_command(\"uname -r\", timeout=10)\n        return stdout.read().decode().strip()\n\n    def check_listening_ports(self, client):\n        \"\"\"Enumerate listening network services.\"\"\"\n        _, stdout, _ = client.exec_command(\n            \"ss -tlnp 2>\u002Fdev\u002Fnull || netstat -tlnp 2>\u002Fdev\u002Fnull\",\n            timeout=10\n        )\n        return stdout.read().decode().strip()\n\n    def scan_host(self, hostname, username=\"scanner\"):\n        \"\"\"Perform full agentless scan of a host.\"\"\"\n        print(f\"[*] Scanning {hostname}...\")\n        client = self.connect(hostname, username)\n\n        result = {\n            \"hostname\": hostname,\n            \"os_info\": self.get_os_info(client),\n            \"kernel\": self.check_kernel_version(client),\n            \"packages\": self.get_installed_packages(client),\n            \"listening_ports\": self.check_listening_ports(client),\n        }\n\n        client.close()\n        print(f\"  [+] Found {len(result['packages'])} packages on {hostname}\")\n        return result\n```\n\n### Step 2: WinRM-Based Agentless Scanning (Windows)\n\n```python\nimport winrm\n\nclass AgentlessWindowsScanner:\n    \"\"\"WinRM-based agentless vulnerability scanner for Windows.\"\"\"\n\n    def __init__(self, username, password, domain=None):\n        self.username = username\n        self.password = password\n        self.domain = domain\n\n    def connect(self, hostname, use_ssl=True):\n        \"\"\"Create WinRM session.\"\"\"\n        port = 5986 if use_ssl else 5985\n        transport = \"ntlm\"\n        user = f\"{self.domain}\\\\{self.username}\" if self.domain else self.username\n        session = winrm.Session(\n            f\"{'https' if use_ssl else 'http'}:\u002F\u002F{hostname}:{port}\u002Fwsman\",\n            auth=(user, self.password),\n            transport=transport,\n            server_cert_validation=\"ignore\"\n        )\n        return session\n\n    def get_installed_hotfixes(self, session):\n        \"\"\"Get installed Windows updates\u002Fhotfixes.\"\"\"\n        cmd = \"Get-HotFix | Select-Object HotFixID,InstalledOn,Description | ConvertTo-Json\"\n        result = session.run_ps(cmd)\n        if result.status_code == 0:\n            return json.loads(result.std_out.decode())\n        return []\n\n    def get_installed_software(self, session):\n        \"\"\"Enumerate installed software from registry.\"\"\"\n        cmd = \"\"\"\n        $paths = @(\n            'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\*',\n            'HKLM:\\\\SOFTWARE\\\\WOW6432Node\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\*'\n        )\n        Get-ItemProperty $paths -ErrorAction SilentlyContinue |\n            Where-Object {$_.DisplayName} |\n            Select-Object DisplayName, DisplayVersion, Publisher |\n            ConvertTo-Json\n        \"\"\"\n        result = session.run_ps(cmd)\n        if result.status_code == 0:\n            return json.loads(result.std_out.decode())\n        return []\n\n    def get_os_info(self, session):\n        \"\"\"Get Windows OS details.\"\"\"\n        cmd = \"Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,BuildNumber,OSArchitecture | ConvertTo-Json\"\n        result = session.run_ps(cmd)\n        if result.status_code == 0:\n            return json.loads(result.std_out.decode())\n        return {}\n\n    def scan_host(self, hostname):\n        \"\"\"Perform full agentless scan of Windows host.\"\"\"\n        print(f\"[*] Scanning {hostname} via WinRM...\")\n        session = self.connect(hostname)\n\n        result = {\n            \"hostname\": hostname,\n            \"os_info\": self.get_os_info(session),\n            \"hotfixes\": self.get_installed_hotfixes(session),\n            \"software\": self.get_installed_software(session),\n        }\n\n        print(f\"  [+] Found {len(result['hotfixes'])} hotfixes, \"\n              f\"{len(result['software'])} software entries\")\n        return result\n```\n\n### Step 3: Cloud Snapshot Scanning (AWS)\n\n```python\nimport boto3\nimport time\n\nclass AWSSnapshotScanner:\n    \"\"\"AWS EC2 agentless snapshot-based vulnerability scanner.\"\"\"\n\n    def __init__(self, region=\"us-east-1\"):\n        self.ec2 = boto3.client(\"ec2\", region_name=region)\n\n    def create_snapshot(self, volume_id, description=\"Security scan snapshot\"):\n        \"\"\"Create EBS snapshot for analysis.\"\"\"\n        snapshot = self.ec2.create_snapshot(\n            VolumeId=volume_id,\n            Description=description,\n            TagSpecifications=[{\n                \"ResourceType\": \"snapshot\",\n                \"Tags\": [\n                    {\"Key\": \"Purpose\", \"Value\": \"VulnScan\"},\n                    {\"Key\": \"AutoDelete\", \"Value\": \"true\"},\n                ]\n            }]\n        )\n        snapshot_id = snapshot[\"SnapshotId\"]\n        print(f\"  [*] Creating snapshot {snapshot_id} from {volume_id}...\")\n\n        waiter = self.ec2.get_waiter(\"snapshot_completed\")\n        waiter.wait(SnapshotIds=[snapshot_id])\n        print(f\"  [+] Snapshot {snapshot_id} ready\")\n        return snapshot_id\n\n    def delete_snapshot(self, snapshot_id):\n        \"\"\"Clean up snapshot after analysis.\"\"\"\n        self.ec2.delete_snapshot(SnapshotId=snapshot_id)\n        print(f\"  [+] Deleted snapshot {snapshot_id}\")\n\n    def scan_instance(self, instance_id):\n        \"\"\"Scan an EC2 instance via snapshot analysis.\"\"\"\n        print(f\"[*] Agentless scan of instance {instance_id}\")\n\n        instance = self.ec2.describe_instances(\n            InstanceIds=[instance_id]\n        )[\"Reservations\"][0][\"Instances\"][0]\n\n        root_volume = None\n        for bdm in instance.get(\"BlockDeviceMappings\", []):\n            if bdm[\"DeviceName\"] == instance.get(\"RootDeviceName\"):\n                root_volume = bdm[\"Ebs\"][\"VolumeId\"]\n                break\n\n        if not root_volume:\n            print(\"  [!] No root volume found\")\n            return None\n\n        snapshot_id = self.create_snapshot(root_volume)\n        try:\n            # Analysis would be performed here\n            # Mount snapshot, examine packages, check configs\n            result = {\n                \"instance_id\": instance_id,\n                \"snapshot_id\": snapshot_id,\n                \"root_volume\": root_volume,\n                \"platform\": instance.get(\"Platform\", \"linux\"),\n                \"state\": instance[\"State\"][\"Name\"],\n            }\n            return result\n        finally:\n            self.delete_snapshot(snapshot_id)\n```\n\n### Step 4: Vuls Open-Source Agentless Scanner\n\n```toml\n# \u002Fetc\u002Fvuls\u002Fconfig.toml - Vuls configuration for agentless scanning\n\n[servers]\n\n[servers.web-server-01]\nhost = \"192.168.1.10\"\nport = \"22\"\nuser = \"vuls\"\nkeyPath = \"\u002Fopt\u002Fvuls\u002F.ssh\u002Fscan_key\"\nscanMode = [\"fast\"]\n\n[servers.db-server-01]\nhost = \"192.168.1.20\"\nport = \"22\"\nuser = \"vuls\"\nkeyPath = \"\u002Fopt\u002Fvuls\u002F.ssh\u002Fscan_key\"\nscanMode = [\"fast-root\"]\n[servers.db-server-01.optional]\n  [servers.db-server-01.optional.sudo]\n    password = \"\"\n\n[servers.container-host-01]\nhost = \"192.168.1.30\"\nport = \"22\"\nuser = \"vuls\"\nkeyPath = \"\u002Fopt\u002Fvuls\u002F.ssh\u002Fscan_key\"\nscanMode = [\"fast\"]\ncontainersIncluded = [\"${running}\"]\n```\n\n```bash\n# Run Vuls agentless scan\nvuls scan\n\n# Generate report\nvuls report -format-json -to-localfile\n\n# View results\nvuls tui\n```\n\n## Best Practices\n1. Use SSH key-based authentication instead of passwords for Linux scanning\n2. Create dedicated service accounts with minimal read-only privileges for scanning\n3. Always clean up cloud snapshots after analysis to avoid storage costs and data exposure\n4. Combine agentless scanning with agent-based for comprehensive coverage\n5. Schedule scans during low-activity periods to minimize any performance impact\n6. Rotate scanning credentials regularly and store in a secrets vault\n7. Test scanner connectivity before scheduling production scans\n8. Use SNMPv3 with authentication and encryption for network device scanning\n\n## Common Pitfalls\n- Using shared credentials across multiple environments without proper segmentation\n- Not cleaning up temporary snapshots in cloud environments\n- Assuming agentless scanning has zero performance impact (network and CPU are used)\n- Missing WinRM\u002FSSH firewall rules causing scan failures on new deployments\n- Not accounting for SSH host key changes causing authentication failures\n- Scanning OT\u002FICS devices with protocols they cannot safely handle\n\n## Related Skills\n- implementing-rapid7-insightvm-for-scanning\n- implementing-wazuh-for-vulnerability-detection\n- deploying-osquery-for-endpoint-monitoring\n- performing-remediation-validation-scanning\n",{"hide":49,"name":5,"source":50,"license":15,"description":7,"authorized_lab":45,"origin_frontmatter":51},true,"mukul975\u002FAnthropic-Cybersecurity-Skills","name: performing-agentless-vulnerability-scanning | description: Configure and execute agentless vulnerability scanning using network |   protocols, cloud snapshot analysis, and API-based discovery to assess systems without |   installing endpoint agents. | domain: cybersecurity | subdomain: vulnerability-management | tags: | - agentless-scanning | - vulnerability-assessment | - cloud-security | - ssh | - wmi | - snapshot-analysis | - vuls | - tenable | version: '1.0' | author: mahipal | license","main","4c6d8d65f3d6096e2fc25b0845e481dda73c2794",".claude\u002Fskills\u002Fcyber-performing-agentless-vulnerability-scanning",0,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions","Building deterministic AI governance and continuity systems. Workflow architect + visual storyteller","2026-11-11 16:42:59",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":49},[62,65,68],{"tool":63,"command":64},"npx","npx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-performing-agentless-vulnerability-scanning",{"tool":66,"command":67},"bunx","bunx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-performing-agentless-vulnerability-scanning",{"tool":69,"command":70},"pnpm","pnpm dlx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-performing-agentless-vulnerability-scanning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcyber-performing-agentless-vulnerability-scanning\u002FSKILL.md",[],[74,98,122,150,179,198],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":44},"01M71CG1AME5WC0A79AE65WT0X","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","MIT","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],"zoom out","zoom","with","harness","how","section","re","true","understand","use","perspective","when","you","code","it","context",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":44},"01M71CFY9ATD0BAXV6B14HFG7C","yuri-shura","6-perspective adversarial review for high-stakes turns (architecture decisions, refactor planning, deployment review) — fans out architect, adversary (7-vector attack), maintainer, ops, product, and security perspectives in parallel, then consolidates. Use when user says 'review this decision', '\u002Fshura', 'adversarial review', 'what could go wrong', 'architecture review', or 'deployment review'.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-shura\u002FSKILL.md",[],[105,106,85,107,108,109,110,111,112,113,114,91,115,93,116,117,118,119,120,121],"yuri shura","parallel","architecture review","planning","for","deployment","vector","strategic review","decision","strategic","ops","workflow","decisions","architecture","review","perspectives","adversarial",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":131,"publishedAt":44},"01M71CFTTYW1HA2MNX38EV1GJ5","yuri-sales-intelligence","Unified sales and outreach skill generating cold outreach openers, social selling sequences, objection rebuttals, and ad creative for any paid platform — multi-persona aware, adapting tone and offer frame to buyer type. Use when user says 'write a cold email', 'outreach sequence', 'objection handling', 'ad copy', or 'sales pitch'.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-sales-intelligence\u002FSKILL.md",[128],{"categoryNo":129,"categoryName":130,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000005","邮件与沟通",[132,133,134,135,136,137,138,139,140,93,141,142,143,144,145,146,147,109,148,149],"intelligence","sales intelligence","yuri sales intelligence","sales","cold","paid","social","persona","pitch","cold email","ad creative","write","sequences","sequence","platform","email","cold outreach","frame",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":164,"publishedAt":44},"01M71CFQMBFTFADJNGP0Z2WCYK","yuri-code-intelligence","Unified code quality intelligence layer that diagnoses code smells (Long Method, Feature Envy, design pattern issues), prescribes targeted Fowler refactoring techniques, and reviews code for security, performance, and clarity. Use when user says 'review this code', 'refactor this', 'what's wrong with this method', 'code smells', or 'clean this up'.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-code-intelligence\u002FSKILL.md",[156,159],{"categoryNo":157,"categoryName":158,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":160,"categoryName":161,"taxonomyType":162,"taxonomyTypeDesc":163},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[165,95,166,132,85,167,168,169,109,170,171,172,173,174,175,176,177,178,91,93],"yuri code intelligence","code intelligence","reviews","code quality","feature","performance","code review","long","up","issues","clean","techniques","improve","design",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":44},"01M71CFP32RT6GD3GKNHCJP8VP","yuri-adw","Invoke when user asks to run the ADW loop \u002F agentic engineering loop \u002F software factory workflow.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-adw\u002FSKILL.md",[],[186,187,188,189,190,191,192,193,194,93,195,116,196,197],"yuri adw","run","engineering loop","software factory","software","agentic engineering","factory","loop","invoke","engineering","agentic","user",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":216,"publishedAt":44},"01M71CFK4VPEKY6A73237P7RSN","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[204,207,210,213],{"categoryNo":205,"categoryName":206,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":208,"categoryName":209,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":211,"categoryName":212,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":214,"categoryName":215,"taxonomyType":162,"taxonomyTypeDesc":163},"01JBSEEDCAT000000000000036","内容创作者",[217,218,219,93,116,220,85,221,110,91,222],"writing","writing skills","new","work","editing","Existing"]