Fintech

From williamzujkowski/standards · View interactive version

Fintech is an AI agent skill from the GitHub repository williamzujkowski/standards. Payment card security, SOC2 compliance, and financial services regulatory requirements

How to use this skill

Skill file

FinTech Compliance Skill

Overview

Master payment card industry security standards (PCI-DSS v4.0.1), SOC2 Type II compliance, and financial services regulatory requirements for secure payment processing and data protection.


Level 1: Quick Reference (~800-1000 tokens)

PCI-DSS 12 Requirements Overview

Build and Maintain Secure Network and Systems

  1. Install and maintain network security controls
  2. Apply secure configurations to all system components

Protect Account Data

  1. Protect stored account data
  2. Protect cardholder data with strong cryptography during transmission over open, public networks

Maintain Vulnerability Management Program

  1. Protect all systems and networks from malicious software
  2. Develop and maintain secure systems and software

Implement Strong Access Control Measures

  1. Restrict access to system components and cardholder data by business need to know
  2. Identify users and authenticate access to system components
  3. Restrict physical access to cardholder data

Regularly Monitor and Test Networks

  1. Log and monitor all access to system components and cardholder data
  2. Test security of systems and networks regularly

Maintain Information Security Policy

  1. Support information security with organizational policies and programs

SOC2 Trust Service Criteria

Security (Common Criteria)

Availability

Confidentiality

Merchant Levels

| Level | Annual Transactions | Requirements |

|-------|---------------------|--------------|

| 1 | >6M | Annual onsite audit, quarterly network scans |

| 2 | 1M-6M | Annual SAQ, quarterly network scans |

| 3 | 20K-1M (e-commerce) | Annual SAQ, quarterly network scans |

| 4 | <20K (e-commerce) or <1M (other) | Annual SAQ, quarterly network scans (recommended) |

Essential Checklist


Level 2:

📚 Full Examples: See REFERENCE.md for complete code samples, detailed configurations, and production-ready implementations.

Implementation Guide (~4500-5500 tokens)

PCI-DSS v4.0.1 Detailed Requirements

PCI-DSS v4.0.1 Requirements Summary

📚 Complete Requirements: See REFERENCE.md for detailed sub-requirements, implementation guidance, and compliance validation procedures.

Requirements 1-12 Overview:

  1. Network Security Controls: Firewalls, NSCs, CDE isolation
  2. Secure Configurations: Vendor defaults changed, unnecessary services disabled
  3. Protect Stored Data: Encryption at rest, minimize data retention, never store SAD
  4. Protect Data in Transit: TLS 1.2+, strong cryptography for all PAN transmission
  5. Malware Protection: Anti-malware on all systems, kept current, monitored
  6. Secure Development: Threat modeling, secure coding, vulnerability management
  7. Access Control: Least privilege, unique IDs, business need-to-know
  8. Identification & Authentication: MFA for CDE access, strong passwords, credential management
  9. Physical Security: Restricted facility access, badge systems, visitor logs
  10. Logging & Monitoring: Audit trails, centralized logging, 90+ day retention
  11. Security Testing: Quarterly vulnerability scans, annual penetration testing
  12. Security Policy: Documented policies, awareness training, incident response

Each requirement contains multiple sub-requirements - see REFERENCE.md for complete compliance checklist.

Cardholder Data Environment (CDE) Segmentation

Network Segmentation Strategy

See REFERENCE.md for complete implementation.

Key Segmentation Controls:

  1. Firewall rules whitelist only required protocols (HTTPS, database ports)
  2. Network ACLs deny by default, permit by exception
  3. VLANs separate CDE from other networks
  4. Jump boxes/bastion hosts for administrative access
  5. No direct internet access from CDE
  6. Annual penetration testing validates segmentation

Payment Processing Security

Tokenization Implementation

See REFERENCE.md for complete implementation.

Encryption Requirements

| Data State | Requirement | Algorithm | Key Length |

|------------|-------------|-----------|------------|

| At Rest | PAN encrypted | AES | 256-bit minimum |

| In Transit | TLS 1.2+ | ECDHE-RSA-AES256-GCM-SHA384 | 2048-bit RSA minimum |

| Backups | Encrypted | AES-256 | 256-bit |

| Key Storage| Encrypted KEK | AES-256 | 256-bit |

Key Management Lifecycle

  1. Generation: FIPS 140-2 Level 2+ HSM
  2. Distribution: Encrypted channels, split knowledge
  3. Storage: Separate from encrypted data, access logged
  4. Rotation: Annual minimum, or upon compromise
  5. Destruction: Secure deletion per NIST SP 800-88

SOC2 Type II Compliance

Trust Service Criteria Mapping

CC1: Control Environment

CC2: Communication and Information

CC3: Risk Assessment

CC4: Monitoring Activities

CC5: Control Activities (Logical and Physical Access)

CC6: Logical and Physical Access Controls

CC7: System Operations

CC8: Change Management

CC9: Risk Mitigation

A1: Availability

C1: Confidentiality

Audit Readiness and Evidence Collection

Evidence Requirements by Control Category

| Control Category | Evidence Types | Collection Frequency |

|------------------|----------------|----------------------|

| Access Control | User provisioning logs, access reviews, MFA configs | Quarterly |

| Change Management | Change tickets, approval records, test results | Per change |

| Encryption | Cipher configurations, key rotation logs, TLS scans | Monthly |

| Logging | Log retention verification, SIEM configurations | Monthly |

| Vulnerability Management | Scan reports, remediation tickets, patch schedules | Quarterly |

| Incident Response | Incident tickets, postmortem reports, tabletop exercises | Per incident |

| Physical Security | Badge logs, visitor logs, camera footage samples | Quarterly |

| Vendor Management | SOC2 reports, SLAs, due diligence assessments | Annually |

Automated Evidence Collection

See REFERENCE.md for complete implementation.

Compliance Automation

Continuous Compliance Monitoring Architecture

See REFERENCE.md for complete implementation.

Sample Compliance Rules (AWS Config)

See REFERENCE.md for complete implementation.

Incident Response for Payment Security

Critical Incident Types

  1. Suspected PAN Exposure
  1. CDE Breach
  1. Authentication Bypass
  1. Malware in CDE

Compliance Reporting Timeline

| Incident Type | Notification Deadline | Recipient |

|---------------|----------------------|-----------|

| PAN compromise | 72 hours | Payment brands, acquirer |

| CDE breach | 72 hours | Payment brands, PFI |

| SOC2 control failure | Next report period | Auditor, customers |

| GDPR breach (EU) | 72 hours | Data Protection Authority |

| State breach laws (US) | 30-90 days (varies) | State AG, affected individuals |


Level 3: Deep Dive Resources

Bundled Resources

  1. resources/pci-dss-checklist.md - Complete 78-sub-requirement checklist with validation procedures
  2. templates/soc2-control-mappings.yaml - SOC2 TSC to implementation control mappings
  3. templates/tokenization-implementation.py - Production-ready Stripe/Braintree tokenization
  4. templates/network-segmentation.yaml - CDE network architecture and firewall rules
  5. scripts/audit-evidence-collector.sh - Automated evidence collection for quarterly audits
  6. templates/compliance-dashboard.json - Grafana dashboard for real-time compliance monitoring

Official Standards References

Industry Resources

Complementary Skills


Quick Win: 30-Minute Compliance Assessment

# Run automated compliance scan
git clone https://github.com/prowler-cloud/prowler
cd prowler
./prowler aws --compliance pci_dss_v4.0.1

# Check TLS configurations
nmap --script ssl-enum-ciphers -p 443 payment-api.example.com

# Verify log retention
aws logs describe-log-groups | jq '.logGroups[] | select(.retentionInDays < 90)'

# Review IAM MFA enforcement
aws iam get-account-summary | jq '.SummaryMap | {MFADevices, AccountMFAEnabled}'

# Scan for exposed secrets
trufflehog git https://github.com/yourorg/payment-service --json

Expected Outcomes:

Best Practices


Version: 1.0.0

Last Updated: 2025-10-17

Compliance Standards: PCI-DSS v4.0.1, SOC2 Type II

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.