Skip to content

API Reference parrot_tools.cloudsploit.executor

github-actions[bot] edited this page Nov 5, 2026 · 4 revisions

parrot_tools.cloudsploit.executor

View source

CloudSploit executor for running scans via Docker or direct CLI.

Alias CloudProvider

Re-exported from parrot_tools.cloudsploit.models.CloudProvider.

Alias CloudSploitConfig

Re-exported from parrot_tools.cloudsploit.models.CloudSploitConfig.

Class CloudSploitExecutor

Executes CloudSploit scans via Docker or direct CLI.

Supports two execution modes:

  • Docker mode (default): runs CloudSploit inside a Docker container
  • Direct CLI mode: runs CloudSploit directly via Node.js CLI

AWS credentials are passed via environment variables only, never written to files.

Parameter Type Default Description
config CloudSploitConfig

Method CloudSploitExecutor.execute

Run CloudSploit and return output.

execute(args: list[str], volume_mounts: Optional[list[tuple[str, str, Optional[str]]]] = None) -> tuple[str, str, int]

Parameter Type Default Description
args list[str] CloudSploit CLI arguments.
volume_mounts Optional[list[tuple[str, str, Optional[str]]]] None List of (host_dir, container_dir, mode) tuples for Docker bind-mounts. mode may be None, "ro", or "rw". Ignored when use_docker is False.

Returns: tuple[str, str, int] — Tuple of (stdout, stderr, exit_code).

Raises:

  • asyncio.TimeoutError — If execution exceeds configured timeout.

Method CloudSploitExecutor.run_scan

Run a full or targeted CloudSploit scan.

run_scan(plugins: Optional[list[str]] = None, ignore_ok: bool = False, suppress: Optional[list[str]] = None, capture_collection: bool = True, config: Optional[str] = None) -> tuple[str, str, str, str, int]

Parameter Type Default Description
plugins Optional[list[str]] None Specific plugins to run. If None, runs all plugins.
ignore_ok bool False If True, exclude OK (passing) results.
suppress Optional[list[str]] None Regex patterns to suppress specific results.
capture_collection bool True When True, also request the raw cloud provider collection (--collection).
config Optional[str] None Optional path to a CloudSploit JS credentials file. When set, the file must exist on disk (FileNotFoundError is raised otherwise). Under Docker, the file's parent directory is bind-mounted read-only and the path is rewritten; under direct-CLI mode the host path is used verbatim.

Returns: tuple[str, str, str, str, int] — Tuple of (results_json, collection_json, stdout, stderr, exit_code).

Method CloudSploitExecutor.run_compliance_scan

Run a compliance-filtered CloudSploit scan.

run_compliance_scan(framework: ComplianceFramework, ignore_ok: bool = True, capture_collection: bool = True, config: Optional[str] = None) -> tuple[str, str, str, str, int]

Parameter Type Default Description
framework ComplianceFramework Compliance framework to filter by.
ignore_ok bool True If True, exclude OK results (default True for compliance).
capture_collection bool True When True, also request the raw cloud provider collection (--collection).
config Optional[str] None Optional path to a CloudSploit JS credentials file. When set, the file must exist on disk (FileNotFoundError is raised otherwise). Under Docker, the file's parent directory is bind-mounted read-only and the path is rewritten; under direct-CLI mode the host path is used verbatim.

Returns: tuple[str, str, str, str, int] — Tuple of (results_json, collection_json, stdout, stderr, exit_code).

Alias ComplianceFramework

Re-exported from parrot_tools.cloudsploit.models.ComplianceFramework.

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