Skip to main content

Lesson 8 of 10

Compliance & Security Standards

Security compliance frameworks translate regulatory requirements into concrete technical controls. Understanding GDPR, PCI DSS, HIPAA, and SOC 2 requirements is essential for any security engineer working in regulated industries.

40 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Key Compliance Frameworks

  • GDPR (EU General Data Protection Regulation): Applies globally to any organization processing EU citizens' data. Key requirements: Purpose limitation, data minimization, right to erasure ('right to be forgotten'), breach notification within 72 hours, data protection by design
  • PCI DSS (Payment Card Industry Data Security Standard): Required for organizations that process, store, or transmit credit card data. 12 requirements covering network security, encryption, access control, monitoring, and vulnerability management. Quarterly vulnerability scans and annual penetration tests required
  • HIPAA (Health Insurance Portability and Accountability Act): US law protecting health information (PHI). Technical safeguards: access controls, audit logs, transmission security (TLS). Business Associate Agreements (BAAs) required for all vendors handling PHI
  • SOC 2 (Service Organization Control 2): AICPA audit framework covering: Security, Availability, Processing Integrity, Confidentiality, Privacy. Type I: point-in-time assessment. Type II: continuous 6-12 month period assessment. Required by enterprise customers before using SaaS products

Technical Controls for Compliance

Technical Controls for Compliance
# Compliance controls mapped to technical implementations

PCI DSS Requirement 8 - Unique IDs for all users:
  - No shared accounts (every person has separate credentials)
  - Implement: LDAP/AD with individual accounts, MFA for admin access
  - Remove: Default/vendor accounts on all systems

PCI DSS Requirement 10 - Audit logs:
  - Log all access to cardholder data
  - Retain logs for minimum 1 year (3 months immediately available)
  - Implement: Centralized SIEM, immutable log storage (S3 Object Lock)

GDPR Article 32 - Encryption:
  - Encrypt personal data at rest AND in transit
  - Implement: AES-256 for databases, TLS 1.2+ for all connections
  - Document: Data flow diagrams showing where personal data is encrypted  

GDPR Article 33 - Breach notification:
  - Detect and report data breaches within 72 hours
  - Implement: DLP alerts, automated detection rules in SIEM
  - Maintain: Incident response plan with notification procedure

SOC 2 - Monitoring:
  - Continuous monitoring of systems and alerts for security events
  - Implement: Cloud security monitoring (GuardDuty, Security Hub)
  - Evidence: Screenshot monthly security reviews, SIEM dashboards

# Compliance automation tools:
# Vanta, Drata, Secureframe - automated SOC 2 evidence collection
# AWS Config + Security Hub - continuous compliance monitoring
# Open Policy Agent (OPA) - policy-as-code for automated control enforcement

Common Mistakes

  • Treating compliance as a checkbox exercise - compliance frameworks are minimum floors, not security ceilings; organizations that only meet compliance requirements are typically not secure
  • Scoping PCI DSS too broadly - reducing the CDE (Cardholder Data Environment) scope through tokenization and segmentation significantly reduces compliance burden and attack surface
  • Not maintaining continuous compliance evidence - auditors require evidence over the full assessment period; evidence collected only at audit time fails Type II audits

Tip

Tip

Practice Compliance Security Standards in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Diagram
Loading diagram…

The foundational security model: Confidentiality (privacy), Integrity (trust), and Availability (uptime).

Practice Task

Note

Practice Task - (1) Write a working example of Compliance Security Standards from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Quick Quiz

Common Mistake

Warning

A common mistake with Compliance Security Standards is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready cybersecurity code.

Key Takeaways

  • Security compliance frameworks translate regulatory requirements into concrete technical controls.
  • GDPR (EU General Data Protection Regulation): Applies globally to any organization processing EU citizens' data. Key requirements: Purpose limitation, data minimization, right to erasure ('right to be forgotten'), breach notification within 72 hours, data protection by design
  • PCI DSS (Payment Card Industry Data Security Standard): Required for organizations that process, store, or transmit credit card data. 12 requirements covering network security, encryption, access control, monitoring, and vulnerability management. Quarterly vulnerability scans and annual penetration tests required
  • HIPAA (Health Insurance Portability and Accountability Act): US law protecting health information (PHI). Technical safeguards: access controls, audit logs, transmission security (TLS). Business Associate Agreements (BAAs) required for all vendors handling PHI

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/10 done