research
Start or resume an academic research project — idea through literature, methodology, writing, feedback, and publishing
Test security control effectiveness with automated validation
> /plugin marketplace add GRCEngClub/claude-grc-engineeringHow it fires
How this command gets triggered: by you, by Claude, or both.
/test-controlContext preview
What this command does when you run it.
Test security control effectiveness with automated validation
description: Test security control effectiveness with automated validation
Automatically tests whether security controls are properly implemented and effective. Validates configuration, functionality, and compliance with framework requirements.
/grc-engineer:test-control <control-id> [cloud-provider] [options]
# Test access control implementation /grc-engineer:test-control access_control_account_management # Test encryption on AWS with verbose output /grc-engineer:test-control encryption_at_rest aws --verbose # Test logging and auto-fix failures /grc-engineer:test-control logging_and_monitoring --fix-failures # Test all controls (summary) /grc-engineer:test-control all aws
Validates that controls are properly configured:
Verifies controls are actually working:
Checks alignment with framework requirements:
Ensures controls work together:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONTROL TEST RESULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Control: Access Control - Account Management (AC-2)
Frameworks: NIST 800-53, ISO A.9.2, SOC2 CC6.1, PCI 8.1
Cloud Provider: AWS
Test Duration: 12.3s
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONFIGURATION TESTS (5)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ TEST 1: Unique User IDs
Status: PASS
Requirement: All users must have unique identifiers
Result: 47 IAM users found, all with unique IDs
Frameworks: All
✓ TEST 2: Access Approval Process
Status: PASS
Requirement: Documented approval for all user accounts
Result: 100% of users have creator tags with approval timestamps
Evidence: All users tagged with Creator and ApprovedBy
Frameworks: NIST AC-2, SOC2 CC6.1
✗ TEST 3: Quarterly Access Reviews
Status: FAIL
Requirement: Access reviews every 90 days (PCI 8.1.4)
Result: Last review: 2024-11-15 (92 days ago)
Expected: Reviews within last 90 days
Impact: PCI-DSS violation
Frameworks: PCI-DSS 8.1.4
Remediation:
Run quarterly access review immediately:
```bash
aws lambda invoke \
--function-name quarterly-access-review \
--payload '{"trigger":"manual"}' \
response.jsonOr use automated script:
python scripts/access_review.py --immediate
✓ TEST 4: Automated User Provisioning Status: PASS Requirement: Automated account lifecycle management Result: IAM Identity Center configured with SCIM provisioning Frameworks: NIST AC-2(1), SOC2 CC6.2
✓ TEST 5: Least Privilege Enforcement Status: PASS Requirement: Permissions boundaries applied Result: 95% of users have permissions boundaries Note: 2 admin users exempted (documented) Frameworks: NIST AC-6, SOC2 CC6.1
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FUNCTIONALITY TESTS (5) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ TEST 6: CloudTrail Logging Active Status: PASS Requirement: All account management events logged Result: CloudTrail active in all regions Events logged: 1,247 IAM events in last 24 hours Frameworks: NIST AU-2, SOC2 CC7.2
⚠ TEST 7: Inactive Account Detection Status: WARNING Requirement: Detect and disable accounts inactive >90 days Result: 3 users inactive >90 days detected
Inactive users:
Action required: Disable or justify retention Frameworks: PCI-DSS 8.1.4
Remediation:
# Disable inactive users python scripts/disable_inactive_users.py --threshold=90 --execute # Or review individually aws iam list-users | jq '.Users[] | select(.PasswordLastUsed < "2024-09-15")'
✓ TEST 8: Access Analyzer Enabled Status: PASS Requirement: Continuous unused access detection Result: Access Analyzer active, 0 high-priority findings Last scan: 2 hours ago Frameworks: SOC2 CC6.1, NIST AC-2(4)
✓ TEST 9: MFA Enforcement Status: PASS Requirement: Multi-factor authentication required Result:
Frameworks: NIST IA-2(1), PCI 8.3, SOC2 CC6.1
✓ TEST 10: Audit Trail Integrity Status: PASS Requirement: Tamper-proof audit logs Result: CloudTrail log file validation enabled S3 bucket: Object Lock enabled (COMPLIANCE mode) Frameworks: NIST AU-9, SOC2 CC7.3
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ COMPLIANCE TESTS (4) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ TEST 11: Log Retention Period Status: PASS Requirement: 1 year retention (PCI 10.7, SOC2) Result: S3 lifecycle configured for 365 days
Frameworks: PCI-DSS 10.7, SOC2 CC7.3, NIST AU-11
✓ TEST 12: Separation of Duties Status: PASS Requirement: Admin privileges separated Result: No users have both admin and auditor roles Frameworks: NIST AC-5, SOC2 CC6.1
✓ TEST 13: Evidence Availability Status: PASS Requirement: Evidence can be collected on demand Result: Evidence collection script executed successfully Arti
Open-source GRC Engineering resource for Claude. claude-grc-engineering turns technical evidence from cloud, SaaS, code, and security tools into framework-aligned findings, gap reports, remediation guidance, evidence packages, and OSCAL workflows.
Repo: GRCEngClub/claude-grc-engineering
Start or resume an academic research project — idea through literature, methodology, writing, feedback, and publishing
Query AWS for compliance-relevant configuration across IAM, S3, CloudTrail, EBS, and emit findings conforming to the v1 contract.
Install the frdocx-to-froscal-ssp Python pipeline and verify its dependencies. Idempotent.
Retrieve a single AWS Secrets Manager secret value to stdout or a 0600-permission file. Opt-in retrieval mode — never writes to the findings cache.
Run testssl.sh against one or more HTTPS endpoints and emit v1 Findings mapped to SOC 2, NIST 800-53, PCI DSS 4.0.1, ISO 27001, and SCF controls.