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
> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.
1---2name: performing-agentless-vulnerability-scanning3description: "Configure and execute agentless vulnerability scanning using network-based tools. Signals: cloud privilege escalation, iam privilege escalation, container privilege escalation."4zh-signals: "Configure and execute agentless vulnerability scanning using network 信号:云提权,iam提权,容器提权。"5when-to-use: Configure and execute agentless vulnerability scanning using network6 protocols, cloud snapshot analysis, and API-based discovery to assess systems without7 installing endpoint agents.8domain: cybersecurity9subdomain: vulnerability-management10tags:11- agentless-scanning12- vulnerability-assessment13- cloud-security14- ssh15- wmi16- snapshot-analysis17- vuls18- tenable19version: '1.0'20author: mahipal21license: Apache-2.022nist_ai_rmf:23- GOVERN-1.124- MEASURE-2.725- MANAGE-3.126nist_csf:27- ID.RA-0128- ID.RA-0229- ID.IM-0230- ID.RA-0631mitre_attack:32- T119033- T120334- T106835- T1078.00436- T153037metadata:38 source: https://skillmd.com/skills/dangeroussong/performing-agentless-vulnerability-scanning39---4041# Performing Agentless Vulnerability Scanning4243## Overview44Agentless 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.454647## When to Use4849- When conducting security assessments that involve performing agentless vulnerability scanning50- When following incident response procedures for related security events51- When performing scheduled security testing or auditing activities52- When validating security controls through hands-on testing5354## Prerequisites55- SSH key-based authentication configured on Linux/Unix targets56- WMI/WinRM access on Windows targets with appropriate credentials57- Cloud provider API credentials (AWS IAM, Azure RBAC, GCP IAM)58- Network access from scanner to target systems on required ports59- Service account with read-only access to target system configurations60- Python 3.8+ for custom scanning automation6162## Core Concepts6364### Agentless vs Agent-Based Scanning6566| Aspect | Agentless | Agent-Based |67|--------|-----------|-------------|68| Deployment | No software installation needed | Agent install on every endpoint |69| Network dependency | Requires network connectivity | Works offline with cloud sync |70| Performance impact | Minimal on target systems | Light continuous overhead |71| Coverage depth | Depends on protocol/credentials | Deep local access |72| Cloud snapshot analysis | Native capability | Not applicable |73| Ideal for | Cloud VMs, IoT, legacy systems, OT | Managed endpoints, laptops |7475### Agentless Scanning Methods7677| Method | Protocol | Target OS | Port | Use Case |78|--------|----------|-----------|------|----------|79| SSH Remote Commands | SSH | Linux/Unix | 22 | Package enumeration, config audit |80| WMI Remote Query | WMI/DCOM | Windows | 135, 445 | Hotfix enumeration, registry checks |81| WinRM PowerShell | WS-Man | Windows | 5985/5986 | Remote command execution |82| SNMP Community | SNMP v2c/v3 | Network devices | 161 | Device fingerprinting, firmware check |83| Cloud Snapshot | Provider API | Cloud VMs | N/A | Disk image analysis |84| Container Registry | HTTPS | Container images | 443 | Image vulnerability scanning |85| API-Based | REST/HTTPS | SaaS/Cloud | 443 | Configuration assessment |8687### Cloud Snapshot Analysis Flow88```891. Scanner requests disk snapshot via cloud API902. Cloud provider creates snapshot of VM root + data disks913. Scanner mounts snapshot in isolated analysis environment924. Scanner examines OS packages, configurations, file system935. Snapshot is deleted after analysis (no persistent copies)946. Results sent to central management console95```9697## Workflow9899### Step 1: SSH-Based Agentless Scanning (Linux)100101```bash102# Create dedicated scan SSH key pair103ssh-keygen -t ed25519 -f /opt/scanner/.ssh/scan_key -N "" \104 -C "vuln-scanner@security.local"105106# Deploy public key to targets via Ansible107# ansible-playbook deploy_scan_key.yml108109> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.