Skip to content

API Reference parrot_tools.security.models

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

parrot_tools.security.models

View source

Unified security data models for the Security Toolkits Suite.

These models normalize findings from multiple security scanners (Prowler, Trivy, Checkov) into a unified format for cross-tool aggregation and compliance reporting.

Class CloudProvider

Cloud providers supported by scanners.

Class ComparisonDelta

Comparison between two scan results for trend analysis.

Fields:

Field Type Default Description
baseline_timestamp datetime Timestamp of the baseline scan
current_timestamp datetime Timestamp of the current scan
new_findings list[SecurityFinding] Findings present in current but not baseline
resolved_findings list[SecurityFinding] Findings present in baseline but not current
unchanged_findings list[SecurityFinding] Findings present in both scans
severity_trend dict[str, int] Change in count per severity (positive = more, negative = fewer)
summary str '' Human-readable summary of the comparison

Class ComplianceFramework

Supported compliance frameworks for mapping findings.

Class ConsolidatedReport

Consolidated report aggregating results from multiple scanners.

Fields:

Field Type Default Description
scan_results dict[str, ScanResult] Scan results keyed by scanner name (e.g., 'prowler', 'trivy')
total_findings int 0 Total findings across all scanners
findings_by_severity dict[str, int] Count of findings per severity level
findings_by_service dict[str, int] Count of findings per service
findings_by_provider dict[str, int] Count of findings per cloud provider
compliance_coverage dict[str, dict] Compliance framework coverage statistics
generated_at datetime When this report was generated
report_id Optional[str] None Unique identifier for this report
metadata dict Additional report metadata

Class FindingSource

Security scanner sources.

Class ScanResult

Complete results from a single scanner execution.

Fields:

Field Type Default Description
findings list[SecurityFinding] List of security findings
summary ScanSummary Summary statistics for this scan
metadata dict Additional scanner-specific metadata

Class ScanSummary

Summary statistics for a single scanner run.

Fields:

Field Type Default Description
source FindingSource Scanner that produced the results
provider CloudProvider Cloud provider scanned
total_findings int 0 Total number of findings
critical_count int 0 Count of CRITICAL findings
high_count int 0 Count of HIGH findings
medium_count int 0 Count of MEDIUM findings
low_count int 0 Count of LOW findings
info_count int 0 Count of INFO findings
pass_count int 0 Count of PASS findings
scan_timestamp datetime When the scan was executed
scan_duration_seconds Optional[float] None How long the scan took
regions_scanned list[str] List of regions that were scanned
services_scanned list[str] List of services that were scanned
errors list[str] Any errors encountered during scan

Class SecurityFinding

Unified security finding from any scanner.

This model normalizes findings from Prowler, Trivy, and Checkov into a consistent format for aggregation and reporting.

Fields:

Field Type Default Description
id str Unique finding identifier
source FindingSource Scanner that produced this finding
severity SeverityLevel Normalized severity level
title str Short finding title
description Optional[str] None Detailed description of the finding
resource Optional[str] None Affected resource ARN or identifier
resource_type Optional[str] None Type of resource (e.g., 'S3 Bucket', 'EC2 Instance')
region str 'global' Cloud region or 'global'
provider Optional[CloudProvider] None Cloud provider
service Optional[str] None Service name (e.g., 's3', 'iam', 'ec2')
check_id Optional[str] None Scanner-specific check ID
compliance_tags list[str] Compliance framework tags (e.g., 'SOC2-CC6.1', 'HIPAA-164.312')
remediation Optional[str] None Recommended remediation steps
raw Optional[dict] None Original scanner output for reference
timestamp Optional[datetime] None When the finding was detected

Class SeverityLevel

Normalized severity levels across all scanners.

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