prowler-sdk-check
БесплатноЗапускает вложенные скриптыНе проверенCreates and updates Prowler SDK security checks (implementation, metadata, fixers, configurable checks). Trigger: When creating or updating a Prowler SDK…
Об этом скилле
Check Structure
prowler/providers/{provider}/services/{service}/{check_name}/
├── __init__.py
├── {check_name}.py # class {check_name}(Check)
├── {check_name}.metadata.json
└── {check_name}_fixer.py # optional, see Fixers
Naming: {service}_{resource}_{security_control} (e.g. s3_bucket_object_versioning). Tests go in tests/providers/{provider}/services/{service}/{check_name}/{check_name}_test.py (see prowler-test-sdk).
Hard Rules (enforced in code)
Check.__init__ and CheckMetadata (prowler/lib/check/models.py) reject the check at load time if any of these fail:
| Rule | Enforced by |
|---|---|
CheckID == class name == file name (without .py) |
Check.__init__ |
CheckID has no - |
valid_check_id |
ServiceName == CheckID.split("_")[0] and lowercase (so the AWS Lambda service is awslambda) |
validate_service_name |
CheckTitle <= 150 chars and does not start with Ensure |
validate_check_title |
Description and Risk <= 400 chars each |
validate_description, validate_risk |
CheckType is [] for every provider except AWS; AWS values must be paths in prowler/providers/aws/config/check_types.json |
validate_check_type |
RelatedUrl is "" (deprecated, use AdditionalURLs) |
validate_related_url |
Remediation.Recommendation.Url is empty or starts with https://hub.prowler.com/ (use https://hub.prowler.com/check/{check_id}) |
validate_recommendation_url |
Remediation.Code.CLI is not a URL |
valid_cli_command |
ResourceType non-empty |
valid_resource_type |
ResourceGroup in VALID_RESOURCE_GROUPS (or "") |
validate_resource_group |
Every Categories item in VALID_CATEGORIES |
valid_category |
AdditionalURLs has no empty or duplicate items |
validate_additional_urls |
Severity in critical, high, medium, low, informational |
Severity enum |
Tool-wrapper providers (iac, llm, image, or plug-ins with is_external_tool_provider = True) skip most of these.
Validate a metadata file without running a scan:
uv run python -c "import sys; from prowler.lib.check.models import CheckMetadata; CheckMetadata.parse_file(sys.argv[1]); print('OK')" prowler/providers/{provider}/services/{service}/{check_name}/{check_name}.metadata.json
Check Implementation
from prowler.lib.check.models import Check, Check_Report_AWS
from prowler.providers.aws.services.s3.s3_client import s3_client
class s3_bucket_object_versioning(Check):
"""S3 buckets have object versioning enabled."""
def execute(self) -> list[Check_Report_AWS]:
findings = []
for bucket in s3_client.buckets.values():
if not bucket.versioning_retrieved:
continue # unreadable: no finding, the service already logged the error
report = Check_Report_AWS(metadata=self.metadata(), resource=bucket)
if bucket.versioning:
report.status = "PASS"
report.status_extended = f"S3 Bucket {bucket.name} has versioning enabled."
else:
report.status = "FAIL"
report.status_extended = f"S3 Bucket {bucket.name} has versioning disabled."
findings.append(report)
return findings
- Only use the service client (
{service}_client); never call the provider SDK from a check. If data is missing, extend the service (seeprowler-provider). execute()returns a list (empty if there are no resources), one report per audited resource.status_extendedmust end with a period and identify the resource.resource=accepts a dict, a Pydantic model, a dataclass or an object withto_dict(); anything else becomes{}and logs an error.- Severity can be adjusted per finding with
report.check_metadata.Severity = "..."when the risk depends on the scenario. - Secret-scanning checks use a dedicated batched structure: read
docs/developer-guide/secret-scanning-checks.mdxfirst.
Report Class per Provider (prowler/lib/check/models.py)
| Provider | Class | Fields set from resource |
|---|---|---|
| aws | Check_Report_AWS |
resource_id (id or name), resource_arn, region |
| azure | Check_Report_Azure |
resource_name, resource_id, location; set report.subscription yourself |
| gcp | Check_Report_GCP |
resource_id, resource_name, project_id, location; also accepts location=, resource_name=, resource_id=, project_id= kwargs |
| kubernetes | Check_Report_Kubernetes |
resource_id (uid), resource_name, namespace |
| oraclecloud | Check_Report_OCI |
resource_id, resource_name, compartment_id, region |
| all others | CheckReport<Name> (e.g. CheckReportGithub, CheckReportM365, CheckReportStackIT, CheckReportMongoDBAtlas, CheckReportAlibabaCloud) |
grep ^class CheckReport in models.py for the exact name and const |
Установить prowler-sdk-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditWriteGlobGrepBashWebFetchWebSearchTaskВложенные файлы
FAQ
Что делает скилл prowler-sdk-check?
Creates and updates Prowler SDK security checks (implementation, metadata, fixers, configurable checks). Trigger: When creating or updating a Prowler SDK security check or its metadata.json for any provider (AWS, Azure, GCP, Kubernetes, GitHub, M365, etc.), adding a check fixer, or making a check configurable via audit_config.
Как установить скилл prowler-sdk-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prowler-sdk-check запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic