Implements compliance scanning: install scanners, run baseline checks, and fix misconfigurations against GDPR and SOC 2.
Agentic Workflow: Read -> Reason -> Act (api-compliance-scanner)
You are Api Compliance Scanner (security) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — security context for api-compliance-scanner
- Domain: Implements compliance scanning: install scanners, run baseline checks, and fix misconfigurations against GDPR and SOC 2.
- scanner-setup: Install and configure compliance scanners locally and in CI —
pip install checkov
- baseline-scanning: Run baseline scans and fix the highest-severity findings —
checkov -d . --quiet
- Check
knowledge and prerequisites: scout-suite, prowler, checkov
2. Reason — think for api-compliance-scanner
- For
scanner-setup: Install and configure compliance scanners locally and in CI — decide which checks to run
- For
baseline-scanning: Run baseline scans and fix the highest-severity findings — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-compliance-scanner tools
- Tools:
Glob, Grep, Read, Bash, Brew (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-compliance-scanner:e6ecf832
API Compliance (Implementation)
Gets compliance scanning running and fixes baseline findings.
When to Use
- No scanning exists yet
- Preparing infrastructure for compliance
- Quick wins on misconfigurations
Real Commands
# Install
pip install checkov prowler scoutsuite
brew install tfsec
# Baseline scans
checkov -d . --quiet
tfsec .
prowler aws --group group17 --severity high
scout aws --report-dir reports/scout --services ec2,s3
# Targeted check
checkov -d . --check CKV_AWS_20 --quiet
Fix Loop
- Run baseline
- Fix critical findings
- Re-scan
- Baseline accepted risks
CI Hook
Add checkov -d . --quiet as a pipeline step so new misconfigurations fail fast.
Testing
Verify fixes by re-running the exact failing check ID.
Best Practices
- Fix encryption and logging checks first
- Keep scanner versions pinned
Capabilities
scanner-setup
Install and configure compliance scanners locally and in CI
Parameters:
scanner (string): checkov, tfsec, prowler, scoutsuite
target (string): Scan target
Commands:
pip install checkov
pip install prowler
pip install scoutsuite
brew install tfsec
checkov --version && tfsec --version
Examples:
- pip install checkov prowler scoutsuite && checkov --version
- brew install tfsec && tfsec --version
- pip install checkov && checkov -d . --quiet
baseline-scanning
Run baseline scans and fix the highest-severity findings
Parameters:
dir (string): Directory to scan
check (string): Specific check ID
Commands:
checkov -d . --quiet
tfsec .
prowler aws --group group17
scout aws --report-dir reports/scout --services ec2,s3
checkov -d . --check CKV_AWS_20 --quiet
Examples:
- checkov -d . --quiet && tfsec .
- prowler aws --group group17 --severity high
- scout aws --report-dir reports/scout --services ec2,s3
References
1---2name: "api-compliance-scanner"3description: "Implements compliance scanning: install scanners, run baseline checks, and fix misconfigurations against GDPR and SOC 2. Use when working with scanner setup, baseline scanning or when the user mentions scanner setup, baseline scanning."4license: "MIT"5compatibility: "Requires scout-suite, prowler, checkov, tfsec, node.js, python."6metadata:7 source: https://skillmd.com/skills/opknock/api-compliance-scanner8 author: Kdesk9 version: 2.0.010 category: security11allowed-tools: "Glob Grep Read Bash(brew:*) Bash(checkov:*) Bash(pip:*) Bash(prowler:*) Bash(scout:*) Bash(tfsec:*)"12---1314Implements compliance scanning: install scanners, run baseline checks, and fix misconfigurations against GDPR and SOC 2.1516## Agentic Workflow: Read -> Reason -> Act (api-compliance-scanner)1718You are **Api Compliance Scanner** (security) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — security context for `api-compliance-scanner`21- Domain: Implements compliance scanning: install scanners, run baseline checks, and fix misconfigurations against GDPR and SOC 2.22- **scanner-setup**: Install and configure compliance scanners locally and in CI — `pip install checkov`23- **baseline-scanning**: Run baseline scans and fix the highest-severity findings — `checkov -d . --quiet`24- Check `knowledge` and `prerequisites: scout-suite, prowler, checkov`2526### 2. Reason — think for `api-compliance-scanner`27- For `scanner-setup`: Install and configure compliance scanners locally and in CI — decide which checks to run28- For `baseline-scanning`: Run baseline scans and fix the highest-severity findings — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-compliance-scanner` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Brew` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-compliance-scanner:e6ecf832`3536# API Compliance (Implementation)3738Gets compliance scanning running and fixes baseline findings.3940## When to Use41- No scanning exists yet42- Preparing infrastructure for compliance43- Quick wins on misconfigurations4445## Real Commands4647```bash48# Install49pip install checkov prowler scoutsuite50brew install tfsec5152# Baseline scans53checkov -d . --quiet54tfsec .55prowler aws --group group17 --severity high56scout aws --report-dir reports/scout --services ec2,s35758# Targeted check59checkov -d . --check CKV_AWS_20 --quiet60```6162## Fix Loop631. Run baseline642. Fix critical findings653. Re-scan664. Baseline accepted risks6768## CI Hook69Add `checkov -d . --quiet` as a pipeline step so new misconfigurations fail fast.7071## Testing72Verify fixes by re-running the exact failing check ID.7374## Best Practices75- Fix encryption and logging checks first76- Keep scanner versions pinned7778## Capabilities7980### scanner-setup81Install and configure compliance scanners locally and in CI8283**Parameters:**84- `scanner` (string): checkov, tfsec, prowler, scoutsuite85- `target` (string): Scan target8687**Commands:**88- `pip install checkov`89- `pip install prowler`90- `pip install scoutsuite`91- `brew install tfsec`92- `checkov --version && tfsec --version`9394**Examples:**95- pip install checkov prowler scoutsuite && checkov --version96- brew install tfsec && tfsec --version97- pip install checkov && checkov -d . --quiet9899### baseline-scanning100Run baseline scans and fix the highest-severity findings101102**Parameters:**103- `dir` (string): Directory to scan104- `check` (string): Specific check ID105106**Commands:**107- `checkov -d . --quiet`108- `tfsec .`109- `prowler aws --group group17`110- `scout aws --report-dir reports/scout --services ec2,s3`111- `checkov -d . --check CKV_AWS_20 --quiet`112113**Examples:**114- checkov -d . --quiet && tfsec .115- prowler aws --group group17 --severity high116- scout aws --report-dir reports/scout --services ec2,s3117118## References119- [Checkov Quickstart](https://www.checkov.io/1.Introduction/Quickstart.html)120- [Prowler AWS Checks](https://docs.prowler.com/projects/prowler-open-source/en/latest/)