Skip to content

API Reference parrot_tools.security.cloud_posture_toolkit

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.security.cloud_posture_toolkit

View source

Cloud Security Posture Management Toolkit.

Agent-facing toolkit that wraps Prowler for multi-cloud security scanning. All public async methods automatically become agent tools.

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Class CloudPostureToolkit

Cloud Security Posture Management toolkit powered by Prowler.

Runs multi-cloud security assessments, compliance scans, and posture tracking against AWS, Azure, GCP and Kubernetes.

All public async methods automatically become agent tools.

Parameter Type Default Description
config Optional[ProwlerConfig] None Optional ProwlerConfig. Uses defaults if not provided.
**kwargs {} Additional arguments passed to AbstractToolkit.

Attributes:

Attribute Type Description
name str
description str

Method CloudPostureToolkit.prowler_run_scan

Run a Prowler security scan against cloud infrastructure.

Executes a comprehensive security assessment using Prowler to identify misconfigurations, compliance violations, and security risks.

prowler_run_scan(provider: str = 'aws', services: Optional[list[str]] = None, checks: Optional[list[str]] = None, regions: Optional[list[str]] = None, severity: Optional[list[str]] = None, exclude_passing: bool = False) -> ScanResult

Parameter Type Default Description
provider str 'aws' Cloud provider to scan. Options: aws, azure, gcp, kubernetes.
services Optional[list[str]] None Specific services to scan (e.g., ['s3', 'iam', 'ec2']). If None, scans all available services.
checks Optional[list[str]] None Specific check IDs to run. If None, runs all checks.
regions Optional[list[str]] None AWS regions to scan (e.g., ['us-east-1', 'eu-west-1']). If None, scans all available regions.
severity Optional[list[str]] None Filter by severity levels. Options: critical, high, medium, low.
exclude_passing bool False If True, exclude PASS findings from results.

Returns: ScanResult — ScanResult with normalized findings and summary statistics.

Method CloudPostureToolkit.prowler_compliance_scan

Run a compliance-focused security scan.

Executes Prowler with checks filtered to a specific compliance framework such as CIS, SOC2, HIPAA, PCI-DSS, or GDPR.

prowler_compliance_scan(framework: str, provider: str = 'aws', regions: Optional[list[str]] = None, exclude_passing: bool = True) -> ScanResult

Parameter Type Default Description
framework str Compliance framework to assess. Examples: - AWS: cis_1.5_aws, soc2, hipaa, pci_dss_v4.0, gdpr - Azure: cis_2.0_azure, nist_800_53_revision_5_azure - GCP: cis_2.0_gcp
provider str 'aws' Cloud provider to scan. Options: aws, azure, gcp, kubernetes.
regions Optional[list[str]] None AWS regions to scan. If None, scans all available regions.
exclude_passing bool True If True, exclude PASS findings (default True for compliance scans to focus on violations).

Returns: ScanResult — ScanResult filtered to the specified compliance framework.

Method CloudPostureToolkit.prowler_scan_service

Scan a specific cloud service.

Runs Prowler checks limited to a single service for targeted assessment.

prowler_scan_service(service: str, provider: str = 'aws', regions: Optional[list[str]] = None, exclude_passing: bool = False) -> ScanResult

Parameter Type Default Description
service str Service to scan. Examples: - AWS: s3, iam, ec2, rds, lambda, cloudtrail, kms - Azure: storage, keyvault, sql, network - GCP: compute, storage, iam, bigquery
provider str 'aws' Cloud provider. Options: aws, azure, gcp, kubernetes.
regions Optional[list[str]] None AWS regions to scan. If None, scans all available regions.
exclude_passing bool False If True, exclude PASS findings from results.

Returns: ScanResult — ScanResult with findings limited to the specified service.

Method CloudPostureToolkit.prowler_list_checks

List available Prowler security checks.

Returns metadata about available checks including ID, title, severity, and associated compliance frameworks.

prowler_list_checks(provider: str = 'aws', service: Optional[str] = None) -> list[dict]

Parameter Type Default Description
provider str 'aws' Cloud provider. Options: aws, azure, gcp, kubernetes.
service Optional[str] None Filter checks to a specific service. If None, lists all.

Returns: list[dict] — List of check metadata dictionaries with keys:

  • check_id: Unique check identifier
  • title: Human-readable check name
  • severity: Check severity level
  • service: Associated service
  • compliance: List of compliance frameworks

Method CloudPostureToolkit.prowler_list_services

List scannable services for a cloud provider.

Returns the list of services that Prowler can scan for the given provider.

prowler_list_services(provider: str = 'aws') -> list[str]

Parameter Type Default Description
provider str 'aws' Cloud provider. Options: aws, azure, gcp, kubernetes.

Returns: list[str] — List of service names (e.g., ['s3', 'iam', 'ec2', ...]).

Method CloudPostureToolkit.prowler_get_summary

Get summary statistics from the last scan.

Returns aggregated metrics from the most recent scan including finding counts by severity, services scanned, and compliance status.

prowler_get_summary() -> dict

Returns: dict — Dictionary with summary statistics:

  • total_findings: Total number of findings
  • critical_count: Critical severity findings
  • high_count: High severity findings
  • medium_count: Medium severity findings
  • low_count: Low severity findings
  • pass_count: Passing checks
  • services_scanned: List of scanned services
  • provider: Cloud provider that was scanned Returns empty dict if no scan has been run.

Method CloudPostureToolkit.prowler_get_findings

Get findings from the last scan with optional filters.

Retrieves security findings from the most recent scan, optionally filtered by severity, service, or status.

prowler_get_findings(severity: Optional[str] = None, service: Optional[str] = None, status: Optional[str] = None, limit: Optional[int] = None) -> list[SecurityFinding]

Parameter Type Default Description
severity Optional[str] None Filter by severity level. Options: CRITICAL, HIGH, MEDIUM, LOW, INFO, PASS.
service Optional[str] None Filter by service name (e.g., 's3', 'iam').
status Optional[str] None Filter by finding status. Options: FAIL, PASS, MANUAL.
limit Optional[int] None Maximum number of findings to return.

Returns: list[SecurityFinding] — List of SecurityFinding objects matching the filters. Returns empty list if no scan has been run.

Method CloudPostureToolkit.prowler_generate_report

Generate a report from the last scan results.

Creates a formatted report file from the most recent scan findings.

prowler_generate_report(output_path: str, format: str = 'html') -> str

Parameter Type Default Description
output_path str Path where the report file will be saved.
format str 'html' Report format. Options: html, json, csv.

Returns: str — Path to the generated report file.

Raises:

  • ValueError — If no scan has been run yet.

Method CloudPostureToolkit.prowler_compare_scans

Compare current scan results against a baseline.

Identifies new findings (regressions), resolved findings (improvements), and unchanged findings between the current scan and a saved baseline.

prowler_compare_scans(baseline_path: str) -> ComparisonDelta

Parameter Type Default Description
baseline_path str Path to the baseline scan result JSON file.

Returns: ComparisonDelta — ComparisonDelta with:

  • new_findings: Findings in current but not in baseline
  • resolved_findings: Findings in baseline but not in current
  • unchanged_findings: Findings present in both

Raises:

  • ValueError — If no current scan results or baseline cannot be loaded.

Alias ComparisonDelta

Re-exported from parrot_tools.security.models.ComparisonDelta.

Alias ProwlerConfig

Re-exported from parrot_tools.security.prowler.config.ProwlerConfig.

Alias ProwlerExecutor

Re-exported from parrot_tools.security.prowler.executor.ProwlerExecutor.

Alias ProwlerParser

Re-exported from parrot_tools.security.prowler.parser.ProwlerParser.

Alias ScanResult

Re-exported from parrot_tools.security.models.ScanResult.

Alias SecurityFinding

Re-exported from parrot_tools.security.models.SecurityFinding.

Alias SeverityLevel

Re-exported from parrot_tools.security.models.SeverityLevel.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally