mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-11 21:54:56 +03:00
3.1 KiB
3.1 KiB
Workflows - Authenticated Scanning with OpenVAS
Workflow 1: Initial Authenticated Scan Setup
Steps
-
Install and initialize GVM
- Install GVM packages or deploy Docker containers
- Run
gvm-setupto initialize database and create admin account - Verify all services with
gvm-check-setup
-
Synchronize vulnerability feeds
- Run
greenbone-feed-syncfor NVT, SCAP, and CERT data - Wait for initial sync to complete (15-30 minutes)
- Verify feed status in GSA dashboard
- Run
-
Create scan credentials
- Create SSH key pair for Linux scanning:
ssh-keygen -t ed25519 -f scan_key - Deploy public key to target hosts:
ssh-copy-id -i scan_key.pub scan_user@target - Create Windows service account with local admin rights for SMB scanning
- Import credentials into GVM via GSA or gvm-cli
- Create SSH key pair for Linux scanning:
-
Define scan targets
- Group hosts by OS type and credential type
- Assign appropriate credentials to each target group
- Configure alive test method (ICMP + TCP-ACK recommended)
-
Select scan configuration
- Use "Full and fast" for production environments
- Use "Full and deep" for pre-production/staging
- Clone and customize for specific compliance requirements
-
Execute initial scan
- Create scan task linking target, config, and schedule
- Run scan during maintenance window for first execution
- Monitor progress through GSA dashboard
-
Validate authentication success
- Check report for authentication NVT results
- Verify SSH/SMB login success indicators
- Compare finding count against unauthenticated baseline
Workflow 2: Recurring Authenticated Scan
Trigger
Weekly schedule (Sunday 2:00 AM UTC).
Steps
- GVM automatically starts scheduled scan task
- Scanner performs alive detection on all target hosts
- For each responding host:
- Authenticate using stored credentials
- Run all applicable NVT checks
- Collect installed package lists, registry keys, configurations
- Results stored in PostgreSQL database
- Compare against previous scan for delta analysis
- Generate report in XML/CSV/PDF format
- Export results to vulnerability management platform (DefectDojo, Jira)
Workflow 3: Scan Result Export Pipeline
Steps
- Scan completes and report is generated
- Python script fetches report via GMP protocol
- Parse XML results and extract:
- CVE identifiers
- CVSS scores
- Affected hosts and ports
- NVT descriptions and remediation guidance
- Transform into standardized format
- Upload to DefectDojo via reimport API
- Create Jira tickets for Critical/High findings
- Update vulnerability SLA tracking database
Workflow 4: Credential Rotation
Trigger
Monthly or upon security policy requirement.
Steps
- Generate new SSH key pair or update service account password
- Deploy new credentials to target hosts via configuration management (Ansible, Puppet)
- Update credential objects in GVM
- Run validation scan on subset of targets
- Verify authentication success in validation report
- If successful, update production scan tasks
- Revoke old credentials from target hosts