/security-tooling-skills:prisma-cloud-cspm-and-workload-protectionfrom security-tooling-skills
Guides deep, tool-specific use of Palo Alto Networks Prisma Cloud for CSPM across AWS/Azure/GCP, IaC scanning (Terraform/CloudFormation) via checkov, and agent-based workload protection for hosts, containers, and serverless functions.
Ships in security-tooling-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prisma Cloud (Palo Alto Networks) is a combined Cloud Native Application Protection Platform (CNAPP) spanning three distinct capabilities that are easy to conflate but solve different problems: CSPM (Cloud Security Posture Management) continuously evaluates the configuration of connected cloud accounts against policies (public S3 buckets, overly-permissive security groups, IAM users without MFA) using read-only API access — it never touches running workloads. IaC scanning evaluates the same class of misconfiguration before it's ever deployed, against Terraform/CloudFormation/ARM source, using an engine built on the open-source Checkov project. Workload Protection requires installing a Defender agent onto hosts, container runtimes, or serverless functions to observe and enforce behavior at runtime — a fundamentally different data source (agent telemetry) from CSPM's API-polling model. A team that stops at CSPM alone has visibility into configuration drift but zero visibility into what's actually happening inside a running container or host; this skill covers all three capabilities and where each one's blind spots require the others.
checkov CLI
or the Prisma Cloud IaC scan API/GitHub App).roles/viewer
plus specific additional read permissions Prisma documents per
feature) — this is intentionally least-privilege and read-only; it
cannot make changes to the cloud account by design.checkov CLI (Prisma Cloud's IaC scan engine is
built on it) or the Prisma Cloud IaC scan API/CI plugin, plus a
Prisma Cloud access key (API key ID + secret) for API-based scans —
store as CI secrets, never inline. See
secrets-management.Onboard cloud accounts read-only first, using Prisma's provided onboarding template rather than a hand-rolled role, so the granted permissions match exactly what Prisma's policy set expects to evaluate (over- or under-scoping a hand-written role produces either unnecessary exposure or silent gaps in what CSPM can see):
# AWS onboarding (illustrative — use Prisma's current CFT/Terraform module)
aws cloudformation create-stack \
--stack-name prisma-cloud-cspm-readonly \
--template-url https://<prisma-provided-template-url> \
--capabilities CAPABILITY_NAMED_IAM \
--parameters ParameterKey=ExternalId,ParameterValue=<PRISMA_EXTERNAL_ID>
Let the built-in policy set run first before writing custom policies — Prisma ships hundreds of policies mapped to CIS Benchmarks, PCI-DSS, SOC 2, and cloud-provider-specific best practices; triage what's already covered before duplicating it.
Write custom RQL policies for organization-specific rules the built-in set doesn't cover:
config from cloud.resource where
cloud.type = 'aws'
AND api.name = 'aws-s3api-get-bucket-acl'
AND json.rule = 'publicAccessBlockConfiguration does not exist or
(publicAccessBlockConfiguration.blockPublicAcls is false or
publicAccessBlockConfiguration.blockPublicPolicy is false)'
Attach the policy to an alert rule scoped to specific accounts/tags and a severity, and route it to the team's actual notification channel (webhook, ticketing integration) rather than leaving it in the console-only alert feed where it won't be seen promptly.
Add IaC scanning to the pipeline, so misconfiguration is caught
before terraform apply, not only after the fact by CSPM polling a
deployed resource:
# GitHub Actions, using checkov (Prisma Cloud's IaC scan engine)
name: iac-scan
on: [pull_request]
jobs:
checkov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prisma Cloud IaC scan
uses: bridgecrewio/checkov-action@v12
with:
directory: infra/terraform
framework: terraform
api-key: ${{ secrets.PRISMA_CLOUD_API_KEY }}
soft_fail: false
Sample finding:
Check: CKV_AWS_20 "S3 Bucket has an ACL defined which allows public READ access"
FAILED for resource: aws_s3_bucket.data
File: /infra/terraform/s3.tf:5-14
Reconcile IaC findings with CSPM findings on the same resource — the goal is that a CSPM alert on a live resource has a matching IaC guardrail preventing recurrence; if CSPM keeps re-flagging the same class of misconfiguration after a fix, the IaC scan isn't gating the pipeline that actually provisions that resource type (see Common pitfalls).
Deploy Defender agents deliberately, scoped by environment risk — start with production/internet-facing workloads, not a blanket fleet-wide rollout on day one, given the elevated host/runtime access Defender requires:
# Kubernetes Defender DaemonSet (illustrative install pattern)
twistcli defender export kubernetes \
--address https://<prisma-compute-console> \
--cluster-address <cluster-endpoint> \
> defender.yaml
kubectl apply -f defender.yaml
Use Defender for runtime + image scanning together, not CSPM alone, to close the gap between "the Terraform/config looks fine" and "nothing malicious is actually running": Defender scans images at deploy time and observes running container/host behavior (unexpected process execution, network connections, file-system writes) against a behavioral model, distinct from CSPM's config-only view.
Triage by resource criticality and exposure, not raw alert count — tag cloud resources (environment, data classification, internet-facing) so Prisma's alert rules and dashboards can prioritize a public-facing production resource's misconfiguration over an identical finding on an isolated internal dev resource.
Symptom: The same misconfiguration (e.g. a public S3 bucket) keeps getting flagged by CSPM, fixed manually in the console, and re-flagged weeks later on a newly-provisioned resource of the same type. Fix: The fix is being applied to the live resource but not to the Terraform/CloudFormation module that provisions new instances of it — add the equivalent IaC scan check (step 4-5) to the pipeline that actually creates these resources so the class of misconfiguration can't recur, not just the one instance CSPM happened to catch.
Symptom: A first-time CSPM scan against an established AWS organization returns several thousand findings, and the team gives up triaging within the first week. Fix: Filter and prioritize by resource criticality/exposure tags and severity before attempting to work the full list — start with Critical/High severity on internet-facing or production-tagged resources only, and schedule the rest as a longer-term paydown rather than an all-at-once effort.
Symptom: Defender agent deployment to a Kubernetes cluster is blocked or delayed pending a lengthy security review, because it requests privileged/host-level access that the platform team wasn't expecting from what they assumed was "just another monitoring agent." Fix: Review and document the Defender agent's actual required privileges up front as part of onboarding (it needs container-runtime and host-level visibility to do behavioral detection, which is a materially different trust boundary than CSPM's read-only cloud API role) rather than bundling it into a CSPM rollout conversation where the privilege difference goes unnoticed until deployment time.
Symptom: A custom RQL policy compiles and saves but never fires
even against a resource that should clearly match.
Fix: RQL's json.rule clause matches against the exact API
response shape Prisma's connector captured for that resource type —
test the rule against the "Investigate" tab's live resource JSON
first to confirm field names/nesting, rather than guessing from cloud
provider API documentation, which can differ from what Prisma's
connector actually normalizes.
Symptom: IaC scanning in CI passes cleanly, but the same resource is later flagged as misconfigured by CSPM once deployed. Fix: Something changed the resource outside the IaC pipeline (manual console edit, a separate script, another team's Terraform state) after apply — this is exactly the drift detection CSPM exists to catch; investigate the change history/CloudTrail for that resource rather than assuming the IaC scan missed something.
A platform team onboards their AWS organization to Prisma Cloud CSPM, adds an IaC scanning gate for Terraform, and rolls out Defender to their production EKS cluster.
Onboard the AWS org with the Prisma-provided read-only cross-account role (step 1), scoped to all member accounts via AWS Organizations integration.
Initial CSPM scan surfaces 2,400 findings; the team filters to
severity IN (critical, high) AND resource.tags.environment = 'production', reducing the actionable list to 62 findings for the
first remediation sprint.
Add the checkov-action IaC gate (step 4) to the Terraform repo
that provisions the flagged resource types, blocking new
misconfigurations of the same class going forward.
A recurring finding — CKV_AWS_20 (public-read S3 ACL) — is traced
to a shared Terraform module (modules/data-bucket) used by six
services; fixing the module once resolves the CSPM finding across
all six, rather than patching each bucket individually in the
console.
Deploy the Defender DaemonSet to the production EKS cluster (step 6), scoped first to production before extending to staging/dev.
Within two weeks, a Defender runtime alert fires: a pod matching a
payments service unexpectedly spawns a shell process and initiates
an outbound connection to an IP not in any documented dependency —
a detection CSPM's config-only view could never have produced, since
the pod's declared configuration (image, resource limits,
securityContext) was fully compliant.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prisma-cloud, cspm, iac-scanning, checkov, workload-protection, cloud-security
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin security-tooling-skills15 skills in this plugin
/certificate-lifecycle-management-at-scaleGuides managing TLS/mTLS certificate lifecycle across many services and environments beyond a single Kubernetes cluster — enterprise CA integration (ACME private CA, Microsoft AD CS, cloud-managed private CAs), cross-service rotation automation, expiry monitoring/alerting, and CA hierarchy/trust-chain management for a mixed fleet of VMs, on-prem servers, and multiple clusters. Use when the user asks to "automate cert rotation across our whole fleet," "integrate with our enterprise CA," "why do we keep having certificate expiry outages," "design a CA hierarchy for the org," "track every certificate's expiry date across environments," or "cert-manager only covers our Kubernetes clusters, what about everything else." Distinct from cert-manager's Kubernetes-native scope — see `../../../kubernetes-platform/skills/cert-manager-tls-automation/SKILL.md`.
/enterprise-sso-and-idp-federation-configurationGuides configuring enterprise workforce single sign-on — SAML 2.0 and OIDC federation between an identity provider (Okta, Azure AD/Entra ID, Keycloak) and downstream applications, including metadata exchange, attribute/claim mapping, group-to-role provisioning (SCIM), and multi-IdP federation trust. Use when the user asks to "set up SAML SSO with Okta," "configure Azure AD/Entra ID as our OIDC provider," "stand up Keycloak as an internal IdP," "map IdP groups to application roles," "debug a SAML assertion that won't validate," or "federate a second IdP for an acquired company's users." Distinct from cloud-iam-hardening (workload/service IAM in a cloud provider) — this skill is about federating *human workforce* identity into applications for SSO.
/falco-configuration-validationValidates Falco runtime detection rules for false-positive rate and actual firing correctness before trusting them in a channel that pages a human — running new/changed rules in log-only mode against real traffic, measuring alert volume and content, and confirming a rule fires on a deliberate positive-control trigger before promoting it to a higher-severity, paging-routed configuration. Use when the user asks to "validate this Falco rule before enabling it," "why is Falco so noisy," "test our Falco rules don't false-positive on real traffic," "review this rule set before it pages on-call," or "make sure Falco rules aren't about to be enabled in enforce/blocking mode without an audit period." Pairs with falco-runtime-threat-detection-configuration.
/falco-runtime-threat-detection-configurationGuides authoring and deploying Falco runtime threat detection rules — the eBPF/kernel-module-based syscall event stream, Falco's rule syntax (condition/output/priority), writing custom rules for a specific workload's known-good behavior, tuning noisy default rules, and wiring alerts to Falcosidekick outputs. Use when the user asks to "write a Falco rule to detect X," "why is Falco alerting on normal behavior," "detect a shell spawned inside a container at runtime," "set up Falco with eBPF instead of the kernel module," "send Falco alerts to Slack/PagerDuty," or "what's the difference between Falco and admission-control policy engines like OPA/Kyverno." Pairs with falco-configuration-validation for pre-enforcement false-positive testing.
/fortify-static-analysisGuides deep, tool-specific use of OpenText (formerly Micro Focus) Fortify Static Code Analyzer (SCA) and Fortify Audit Workbench for enterprise, on-premises static analysis — the translate/scan build workflow, Fortify Security Rulepacks, audit workbench triage (Not an Issue / Reliability / Suspicious), and how Fortify's on-prem, build-integrated model differs operationally from cloud-native SAST. Use when the user asks to "run a Fortify scan", "configure sourceanalyzer for a build", "triage findings in Fortify Audit Workbench", "integrate Fortify with Jenkins/Azure DevOps", "reduce Fortify SCA false positives", or "compare Fortify against SonarQube/Semgrep for enterprise compliance". Fortify-specific depth on the translate/scan model and enterprise workflow; for the general SAST concept see sast-integration in the devsecops domain.
/kubewarden-admission-policy-configurationGuides configuring Kubewarden as a WASM-based Kubernetes admission policy engine — installing the policy-server and controller, writing or reusing WebAssembly policies from the Kubewarden Policy Hub, ClusterAdmissionPolicy/AdmissionPolicy resources, monitor-mode rollout before enforce, and multi-language policy authoring (Rego, Rust, Go via the SDKs) as an alternative to OPA/Gatekeeper or Kyverno. Use when the user asks to "set up Kubewarden," "write a WASM admission policy," "why use Kubewarden instead of OPA/Kyverno," "reuse a policy from the Kubewarden Policy Hub," "run an admission policy in monitor mode before enforcing it," or "author a Kubernetes admission policy without writing Rego."
Other plugins' skills for the same job