Prepares APIs for audits: scans infrastructure and code for GDPR and SOC 2 gaps, prioritizes findings, and drives remediation.
Agentic Workflow: Read -> Reason -> Act (api-compliance-scanning)
You are Api Compliance Scanning (security) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — security context for api-compliance-scanning
- Domain: Prepares APIs for audits: scans infrastructure and code for GDPR and SOC 2 gaps, prioritizes findings, and drives remediation.
- compliance-scanning: Run infrastructure and IaC scanners for compliance benchmarks —
checkov -d . --framework terraform --quiet
- remediation: Prioritize findings by severity and fix the highest-risk compliance gaps —
checkov -d . --quiet | grep -E 'FAILED|PASSED' | awk '{print $3}' | sort | uniq
- Check
knowledge and prerequisites: scout-suite, prowler, checkov
2. Reason — think for api-compliance-scanning
- For
compliance-scanning: Run infrastructure and IaC scanners for compliance benchmarks — decide which checks to run
- For
remediation: Prioritize findings by severity and fix the highest-risk compliance gaps — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-compliance-scanning tools
- Tools:
Glob, Grep, Read, Checkov, Tfsec (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-compliance-scanning:cf29cc01
API Compliance (Audit & Remediation)
Runs compliance scanners, builds evidence packages, and drives remediation to close GDPR/SOC 2 gaps.
When to Use
- Pre-audit evidence collection
- Detecting security misconfigurations
- Continuous compliance in CI
Real Commands
# Install scanners
pip install checkov
brew install tfsec
pip install prowler
pip install scoutsuite
# Scan everything
checkov -d . --framework terraform --quiet
prowler aws -M csv -o reports/
scout aws --report-dir reports/scout
# Rank findings
tfsec . --format csv --out tfsec.csv && sort -t, -k4 -r tfsec.csv | head -20
Audit Checklist
- Encryption in transit (TLS 1.2+)
- Logging and access records retained
- Data minimization in API responses
- Subprocessor contracts documented
Testing
Re-run scanners after each remediation and track FAILED counts down to zero for critical checks.
Best Practices
- Scan in CI on every change
- Keep a baseline for known-accepted risks
- Produce HTML reports for auditors
Capabilities
compliance-scanning
Run infrastructure and IaC scanners for compliance benchmarks
Parameters:
framework (string): IaC framework to scan
output (string): Report directory or file
Commands:
checkov -d . --framework terraform --quiet
tfsec . --format json --out tfsec.json
prowler aws -M csv -o reports/
scout aws --report-dir reports/scout
checkov -d . --check CKV_AWS_115 --compact
Examples:
- checkov -d . --framework terraform --quiet --baseline .checkov.baseline
- prowler aws -M csv -o reports/ && head -5 reports/*.csv
- tfsec . --format json --out tfsec.json && jq '.results[0:3]' tfsec.json
remediation
Prioritize findings by severity and fix the highest-risk compliance gaps
Parameters:
severity (string): Severity filter
reportFormat (string): csv, html, json
Commands:
checkov -d . --quiet | grep -E 'FAILED|PASSED' | awk '{print $3}' | sort | uniq -c
tfsec . --format csv --out tfsec.csv && sort -t, -k4 -r tfsec.csv | head
prowler aws -M html -o reports/
scout aws --report-dir reports/scout --rebase
checkov -d . --download-external-modules --quiet
Examples:
- tfsec . --format csv --out tfsec.csv && sort -t, -k4 -r tfsec.csv | head -20
- prowler aws -M html -o reports/ && open reports/report.html
- checkov -d . --quiet | grep FAILED | wc -l
References
1---2name: "api-compliance-scanning"3description: "Prepares APIs for audits: scans infrastructure and code for GDPR and SOC 2 gaps, prioritizes findings, and drives remediation. Use when working with compliance scanning, remediation or when the user mentions compliance scanning, remediation."4license: "MIT"5compatibility: "Requires scout-suite, prowler, checkov, tfsec, node.js, python."6metadata:7 source: https://skillmd.com/skills/opknock/api-compliance-scanning8 author: Kdesk9 version: 2.0.010 category: security11allowed-tools: "Glob Grep Read Bash(checkov:*) Bash(prowler:*) Bash(scout:*) Bash(tfsec:*)"12---1314Prepares APIs for audits: scans infrastructure and code for GDPR and SOC 2 gaps, prioritizes findings, and drives remediation.1516## Agentic Workflow: Read -> Reason -> Act (api-compliance-scanning)1718You are **Api Compliance Scanning** (security) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — security context for `api-compliance-scanning`21- Domain: Prepares APIs for audits: scans infrastructure and code for GDPR and SOC 2 gaps, prioritizes findings, and drives remediation.22- **compliance-scanning**: Run infrastructure and IaC scanners for compliance benchmarks — `checkov -d . --framework terraform --quiet`23- **remediation**: Prioritize findings by severity and fix the highest-risk compliance gaps — `checkov -d . --quiet | grep -E 'FAILED|PASSED' | awk '{print $3}' | sort | uniq `24- Check `knowledge` and `prerequisites: scout-suite, prowler, checkov`2526### 2. Reason — think for `api-compliance-scanning`27- For `compliance-scanning`: Run infrastructure and IaC scanners for compliance benchmarks — decide which checks to run28- For `remediation`: Prioritize findings by severity and fix the highest-risk compliance gaps — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-compliance-scanning` tools32- Tools: `Glob`, `Grep`, `Read`, `Checkov`, `Tfsec` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-compliance-scanning:cf29cc01`3536# API Compliance (Audit & Remediation)3738Runs compliance scanners, builds evidence packages, and drives remediation to close GDPR/SOC 2 gaps.3940## When to Use41- Pre-audit evidence collection42- Detecting security misconfigurations43- Continuous compliance in CI4445## Real Commands4647```bash48# Install scanners49pip install checkov50brew install tfsec51pip install prowler52pip install scoutsuite5354# Scan everything55checkov -d . --framework terraform --quiet56prowler aws -M csv -o reports/57scout aws --report-dir reports/scout5859# Rank findings60tfsec . --format csv --out tfsec.csv && sort -t, -k4 -r tfsec.csv | head -2061```6263## Audit Checklist64- Encryption in transit (TLS 1.2+)65- Logging and access records retained66- Data minimization in API responses67- Subprocessor contracts documented6869## Testing70Re-run scanners after each remediation and track FAILED counts down to zero for critical checks.7172## Best Practices73- Scan in CI on every change74- Keep a baseline for known-accepted risks75- Produce HTML reports for auditors7677## Capabilities7879### compliance-scanning80Run infrastructure and IaC scanners for compliance benchmarks8182**Parameters:**83- `framework` (string): IaC framework to scan84- `output` (string): Report directory or file8586**Commands:**87- `checkov -d . --framework terraform --quiet`88- `tfsec . --format json --out tfsec.json`89- `prowler aws -M csv -o reports/`90- `scout aws --report-dir reports/scout`91- `checkov -d . --check CKV_AWS_115 --compact`9293**Examples:**94- checkov -d . --framework terraform --quiet --baseline .checkov.baseline95- prowler aws -M csv -o reports/ && head -5 reports/*.csv96- tfsec . --format json --out tfsec.json && jq '.results[0:3]' tfsec.json9798### remediation99Prioritize findings by severity and fix the highest-risk compliance gaps100101**Parameters:**102- `severity` (string): Severity filter103- `reportFormat` (string): csv, html, json104105**Commands:**106- `checkov -d . --quiet | grep -E 'FAILED|PASSED' | awk '{print $3}' | sort | uniq -c`107- `tfsec . --format csv --out tfsec.csv && sort -t, -k4 -r tfsec.csv | head`108- `prowler aws -M html -o reports/`109- `scout aws --report-dir reports/scout --rebase`110- `checkov -d . --download-external-modules --quiet`111112**Examples:**113- tfsec . --format csv --out tfsec.csv && sort -t, -k4 -r tfsec.csv | head -20114- prowler aws -M html -o reports/ && open reports/report.html115- checkov -d . --quiet | grep FAILED | wc -l116117## References118- [Checkov Docs](https://www.checkov.io/documentation)119- [Prowler Docs](https://docs.prowler.com/)120- [tfsec](https://github.com/aquasecurity/tfsec)