code-review
Comprehensive code review with actionable feedback using extended thinking
Comprehensive security audit with deep thinking and parallel analysis
> /plugin marketplace add aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrockHow it fires
How this command gets triggered: by you, by Claude, or both.
/security-scanContext preview
What this command does when you run it.
Comprehensive security audit with deep thinking and parallel analysis
name: security-scan description: Comprehensive security audit with deep thinking and parallel analysis version: 1.0.0 argument-hint: "[target] [--deep|--quick] [--focus:<vulnerability-type>]"
You are a security expert. When this command is invoked, perform a comprehensive security audit.
$ARGUMENTS
Parse arguments to determine:
If no target specified, scan the entire codebase for security vulnerabilities.
Deploy specialized subagents for concurrent analysis: @security-reviewer @system-designer @qa-engineer
These subagents operate independently, then findings are consolidated:
# Check Python dependencies safety check pip-audit # Check Node dependencies npm audit snyk test # Check for known CVEs trivy fs .
1. Broken Access Control 2. Cryptographic Failures 3. Injection 4. Insecure Design 5. Security Misconfiguration 6. Vulnerable Components 7. Authentication Failures 8. Data Integrity Failures 9. Logging Failures 10. SSRF
1. **Initial Assessment**
scan_areas = {
"authentication": check_auth_mechanisms(),
"authorization": verify_access_controls(),
"input_validation": scan_input_handlers(),
"cryptography": audit_crypto_usage(),
"dependencies": check_vulnerable_deps(),
"configurations": review_security_configs(),
"secrets": detect_exposed_secrets()
}2. **Deep Analysis**
3. **Generate Fixes**
for vulnerability in vulnerabilities:
fix = generate_security_fix(vulnerability)
test = generate_security_test(vulnerability)
priority = calculate_cvss_score(vulnerability)# Security Scan Report ## Executive Summary - Total vulnerabilities: X - Critical: X, High: X, Medium: X, Low: X - Immediate action required: [list] ## Critical Vulnerabilities ### CVE-XXXX-XXXX: [Title] - **Severity**: Critical (CVSS: 9.8) - **Location**: file:line - **Impact**: Description - **Fix**: Remediation steps - **Code**: ```python # Fixed code example
1. Immediate fixes (24 hours) 2. Short-term fixes (1 week) 3. Long-term improvements
## Command Options ```bash # Quick scan /security-scan --quick # Full deep scan /security-scan --deep # Specific area scan /security-scan --area authentication /security-scan --area dependencies # With auto-fix /security-scan --auto-fix # Compliance focused /security-scan --compliance GDPR,PCI-DSS
The command integrates with:
When `--auto-fix` is enabled:
1. **Apply Security Patches**
def apply_security_fix(vulnerability):
if vulnerability.has_patch:
apply_patch(vulnerability.patch)
elif vulnerability.has_workaround:
implement_workaround(vulnerability.workaround)
else:
add_security_todo(vulnerability)2. **Update Dependencies**
# Update vulnerable packages pip install --upgrade vulnerable-package==safe-version npm update vulnerable-package
3. **Fix Configurations**
# Example: Fix insecure headers
security_headers = {
"X-Frame-Options": "DENY",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Strict-Transport-Security": "max-age=31536000",
"Content-Security-Policy": "default-src 'self'"
}Always check for:
If critical vulnerabilities are found: 1. Alert the security team immedi
This guidance enables enterprise deployment of Claude Code and Claude Cowork on Amazon Bedrock across command-line (CLI) and desktop surfaces — with secure single sign-on (SSO), usage monitoring, and cost controls.
Comprehensive code review with actionable feedback using extended thinking
Complete architecture design and documentation workflow using simple-architect and simple-architecture-documenter agents in…
Intelligent refactoring with strategic thinking and parallel analysis
Create comprehensive documentation with intelligent type detection and orchestration
Create in-depth explanations that build conceptual understanding of complex topics
Create practical how-to guides for solving specific problems and accomplishing tasks