# Defensive Grc Pci Hipaa

> Use when scoping PCI DSS cardholder data environment controls or HIPAA safeguards for protected health information. Covers scope reduction and segmentation, PCI DSS requirements and evidence, HIPAA administrative, physical, and technical safeguards, risk analysis, business associate agreements, and common gaps found in assessments. Use when handling card payments or health data, when an assessment is approaching, or when scope keeps growing because nobody drew the boundary.

- Skill: `mizazhaider-ceh/defensive-grc-pci-hipaa` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/defensive-grc-pci-hipaa`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/defensive-grc-pci-hipaa/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/defensive-grc-pci-hipaa

---


PCI DSS and HIPAA are different regimes with one shared discipline:
draw the boundary, protect what is inside it, and prove it. PCI DSS
protects cardholder data and applies through card brand contracts
and acquiring bank requirements, enforced by assessment. HIPAA
protects health information and applies by law in the United States
to covered entities and their business associates. Confusing the
two, or assuming one compliance effort covers the other, is a
common and expensive mistake.

This skill is practitioner guidance for defenders and operators
preparing for assessments under either regime. It is not legal
advice, and it does not replace a qualified security assessor or
legal counsel. Work scope first in both regimes, because every
control, evidence item, and cost scales with scope.

## Quick Workflow

1. Determine applicability: does the organization store, process,
   or transmit cardholder data (PCI DSS) or create, receive, or
   transmit protected health information (HIPAA)?
2. Map the data flows end to end: where the data enters, where it
   is stored, every system it touches, and every vendor it passes.
3. Draw the scope boundary and reduce it: tokenize, segment, or
   outsource the risky flow before adding controls to a large scope.
4. Select the assessment path: PCI DSS self-assessment
   questionnaire level or report on compliance, HIPAA risk
   analysis and safeguard review.
5. Map controls to requirements, with an owner and evidence for
   each, and run a pre-assessment gap review.
6. Remediate gaps, prioritizing scope boundary controls and
   access controls, which assessors test first and hardest.
7. Collect evidence continuously through the assessment period,
   and keep the evidence repository under version control.
8. Prepare for the assessor: walkthrough rehearsals, vendor
   evidence (attestations of compliance, business associate
   agreements), and an exception log with owners and dates.

## 1. Scoping and segmentation

Scope is where PCI DSS and HIPAA programs are won or lost. For
PCI DSS, the cardholder data environment (CDE) includes every
system that stores, processes, or transmits cardholder data plus
every system connected to it or that can impact its security.
For HIPAA, scope follows the protected health information (PHI):
every system, workforce member, and business associate that
touches PHI. In both cases, an undocumented connection (a shared
admin workstation, a flat network, a support tool with access)
pulls a system into scope whether you listed it or not.

```yaml
# scope-inventory.yaml - every system, its data, and its boundary status
pci_scope:
  systems_in_cde:
    - name: "Payment application server"
      data: "Cardholder data in transit"
      owner: "Payments engineering"
    - name: "Token vault"
      data: "Tokens only, no cardholder data"
      owner: "Payments engineering"
  segmentation_control: "Firewall ruleset isolating the CDE, reviewed quarterly"
  scope_reduction:
    - "Card entry moved to hosted payment page, cardholder data no longer touches merchant servers"
hipaa_scope:
  systems_with_phi:
    - name: "Electronic health record system"
      data: "PHI, treatment records"
      owner: "Clinical systems lead"
    - name: "Billing system"
      data: "PHI, billing records"
      owner: "Revenue cycle lead"
  business_associates:
    - name: "Cloud hosting provider"
      agreement_status: "Signed business associate agreement on file"
    - name: "Billing vendor"
      agreement_status: "Agreement unsigned, remediation open"
```

Test segmentation, do not assert it. For PCI DSS, penetration
testing must confirm the CDE is isolated from out-of-scope
networks. For HIPAA, access reviews must confirm that only the
minimum necessary workforce members reach each PHI system.

## 2. PCI DSS controls and evidence

PCI DSS v4.x organizes requirements into twelve groups: network
security, secure configurations, stored data protection, data in
transit protection, malware protection, secure development,
identity and access, authentication, access restriction, logging
and monitoring, security testing, and policies. Assessors sample
evidence across all twelve, so a strong firewall story cannot carry
weak logging, and strong logging cannot carry shared credentials.

```csv
requirement,control,owner,evidence,frequency,common_gap
1 - Network security,CDE firewall ruleset reviewed and approved,Network lead,Approved ruleset and review record,Quarterly,Rules never reviewed after change
2 - Secure configurations,Hardening standard applied to CDE systems,Infrastructure lead,Hardening checklist per system,On build,Default credentials on one forgotten host
3 - Stored data protection,Cardholder data encrypted at rest with managed keys,Crypto owner,Key inventory and encryption report,Continuous,Keys stored alongside the data
4 - Data in transit protection,TLS enforced for cardholder data flows,Network lead,TLS configuration scan,Quarterly,Legacy protocol left enabled for one partner
8 - Identity and access,Unique IDs and MFA for CDE access,Identity lead,Access list and MFA enrollment report,Quarterly,Shared admin account for vendor support
10 - Logging and monitoring,Central logging with daily review,Detection lead,Log review records, Daily,Logs collected but never reviewed
11 - Security testing,Quarterly vulnerability scans and annual penetration test,Vuln lead,Scan reports and pen test report,Quarterly,Scan scope excludes a CDE segment
```

## 3. HIPAA safeguards and risk analysis

HIPAA's Security Rule divides safeguards into administrative,
physical, and technical. The risk analysis is the foundation: it
identifies threats to electronic PHI, assesses likelihood and
impact, and drives which safeguards are reasonable and
appropriate. A safeguard marked "addressable" does not mean
optional; it means implement it, or document why it is not
reasonable and appropriate and what alternative you use instead.
That documentation is itself assessed.

```yaml
# hipaa-safeguard-map.yaml - safeguard, implementation, and evidence
administrative:
  - safeguard: "Risk analysis"
    implementation: "Annual risk analysis covering all ePHI systems, updated on change"
    evidence: "Risk analysis report and remediation plan"
  - safeguard: "Workforce training"
    implementation: "Security awareness training at hire and annually"
    evidence: "Training completion records"
  - safeguard: "Business associate agreements"
    implementation: "Agreement required before any vendor touches PHI"
    evidence: "Signed agreements register"
physical:
  - safeguard: "Facility access controls"
    implementation: "Badge access to areas housing ePHI systems, visitor escort"
    evidence: "Access logs and visitor register"
  - safeguard: "Device and media controls"
    implementation: "Media disposal procedure with destruction certificates"
    evidence: "Disposal log and certificates"
technical:
  - safeguard: "Access control"
    implementation: "Unique user IDs, role-based access, automatic logoff"
    evidence: "Access review reports"
  - safeguard: "Audit controls"
    implementation: "Central audit logging with regular review"
    evidence: "Audit log review records"
  - safeguard: "Transmission security"
    implementation: "Encryption for ePHI in transit, integrity controls"
    evidence: "Encryption configuration reports"
```

The Privacy Rule sits alongside the Security Rule: minimum
necessary access, patient rights (access, amendment, accounting
of disclosures), and breach notification. A security program that
ignores the privacy side will pass a technical review and fail
the organization when a patient requests their records or a
breach triggers notification duties.

## 4. Common gaps and pre-assessment preparation

The gaps assessors find most often are unglamorous: an unsigned
business associate agreement, a vendor with standing access nobody
reviewed, a backup that was never restore-tested, a firewall rule
nobody can explain, a log source that stopped forwarding months
ago. Run a pre-assessment that hunts exactly these, using the
assessor's own sampling logic: pick a sample of users, systems,
and vendors and trace each one end to end.

```markdown
# Pre-assessment checklist - every box checked before the assessor arrives
- [ ] Data flow diagrams current and signed off, PCI DSS and HIPAA flows separate
- [ ] Segmentation tested, penetration test report confirms CDE isolation
- [ ] Business associate agreements signed for every vendor touching PHI
- [ ] PCI DSS service provider attestations collected for every in-scope vendor
- [ ] Access reviews complete for CDE and PHI systems, exceptions remediated
- [ ] MFA enforced for all remote and administrative access to in-scope systems
- [ ] Logging complete for all in-scope systems, review records current
- [ ] Vulnerability scans cover the full scope, findings within SLA
- [ ] Incident response plan tested, breach notification procedure rehearsed
- [ ] Prior assessment findings closed or carried forward with owners and dates
- [ ] Evidence repository access granted to the assessor, read only
- [ ] Every control owner rehearsed, including the failure path
```

When both regimes apply to one organization (a healthcare
provider that takes card payments, for example), keep two scope
documents and two evidence sets with a shared control map where
one control satisfies both. Shared evidence is efficient; shared
scope documents are a confusion risk, because the boundaries
differ and the assessor for each regime will test their own.

## Edge cases

- A vendor stores cardholder data on your behalf: the vendor's
  attestation of compliance covers their environment, not your
  responsibility for the data flow, so keep your own scope and
  monitoring.
- A business associate refuses to sign: stop sharing PHI with
  them or find an alternative, and document the decision, since
  unsigned sharing is a violation, not a paperwork delay.
- Cardholder data appears in logs: that log system enters PCI
  DSS scope immediately, so mask or truncate the data at the
  source and treat the historical logs as in-scope until purged.
- A breach involves both cardholder data and PHI: run both
  notification tracks (card brands and acquiring bank, plus
  HIPAA breach notification), since the duties and timelines differ.
- A system is decommissioned mid-assessment: document the
  decommissioning, data destruction, and scope change, and keep
  the evidence for the period it was in scope.
- Tokenization or hosted payment pages reduce scope: verify the
  reduction with the assessor before claiming it, because the
  merchant environment often retains more scope than expected.

## Key references

- PCI Security Standards Council, PCI DSS requirements and testing
  procedures (https://www.pcisecuritystandards.org)
- PCI SSC guidance on scoping, segmentation, and tokenization
- US Department of Health and Human Services, HIPAA Security Rule
  guidance (https://www.hhs.gov/hipaa)
- NIST SP 800-66 guidance on implementing the HIPAA Security Rule
- Your qualified security assessor's request list and your legal
  counsel's breach notification guidance, which override generic
  templates once engaged
- Related skills in this repo: network-segmentation-design,
  endpoint-hardening-baseline, backup-security

