Cloud Security & Compliance

What teams get wrong when preparing cloud environments for HIPAA and SOC 2

Five mistakes that weaken HIPAA and SOC 2 readiness on AWS: treating the BAA as a control, broad IAM, unprotected logs, manual secrets and unowned controls.

Written by the ARCO Engineering TeamPublished Last updated 6 min read
Back to insights
In this guide

Teams preparing AWS environments for HIPAA and SOC 2 tend to repeat five mistakes: treating the BAA and security tooling as the control, leaving IAM broad, logging without protection or review, handling secrets by hand, and running controls nobody owns. Neither framework hands out a certificate. HIPAA is a law with no official certification, and SOC 2 is a voluntary attestation issued by a licensed CPA firm, so readiness means controls that operate continuously and records that prove it.

01Analysis

Mistake 1: over-focusing on tools instead of control design

The BAA is a contract, not a configuration. On AWS, the Business Associate Addendum is reviewed and accepted in AWS Artifact, either for a single account or, from the management account, for every account in an AWS Organizations organization. PHI may then be stored, processed or transmitted only in services on AWS's HIPAA-eligible services reference, and everything inside those services, including encryption, access, logging and backups, stays on the customer's side of the shared responsibility model.

Security tooling has the same trap. Enabling AWS Security Hub CSPM, Amazon GuardDuty and an AWS Config conformance pack produces findings, not controls. AWS states that its sample conformance packs, including Operational Best Practices for HIPAA Security, are not designed to fully ensure compliance, and a high Security Hub CSPM score says nothing about whether anyone reviews access or has tested a restore.

Start from the control objective instead. The HIPAA Security Rule groups its standards into administrative, physical and technical safeguards. SOC 2 evaluates controls against the AICPA Trust Services Criteria: Security, expressed as the common criteria, is in every examination, while Availability, Processing Integrity, Confidentiality and Privacy are added when customer commitments call for them. Write each control as one sentence with a named owner, then choose the AWS service that implements or evidences it.

Sources ·AWS Artifact agreements; AWS HIPAA-eligible services; AWS Config HIPAA Security sample conformance pack; HHS Security Rule summary; AICPA 2017 Trust Services Criteria (revised points of focus, 2022).

02Analysis

Mistake 2: weak IAM foundations

Long-lived IAM users with access keys, shared administrator roles and console users that bypass the identity provider are common findings in AWS environments preparing for review. Each one breaks the link between a person, an approval and an action. That link underpins HIPAA's access-control and unique user identification requirements and SOC 2's CC6 logical-access criteria.

Route workforce access through IAM Identity Center, connected to your identity provider with MFA enforced. Grant access through permission sets assigned to groups per account, so accounts holding PHI get narrower sets than development accounts. Keep break-glass access as a separate role with its own approval path and an alert on every use, and shorten the session duration on privileged permission sets.

Then set guardrails above the accounts. Service control policies never grant permissions; they cap what any principal in a member account can do, including the root user. Common guardrails deny stopping CloudTrail, using unapproved Regions and deleting log-archive buckets. SCPs do not apply to the management account, which is one more reason to run no workloads there.

The evidence is operational: permission-set assignment history, joiner and leaver tickets that match it, and dated access reviews signed off by the system owner. IAM Access Analyzer findings for external and unused access give those reviews a defensible starting list.

Sources ·IAM Identity Center permission sets; AWS Organizations service control policies.

03Analysis

Mistake 3: insufficient logging and auditability

Many environments have CloudTrail enabled per account, writing to a bucket that the same administrators can delete. HIPAA's audit controls standard requires mechanisms that record and examine activity in systems containing electronic PHI, and SOC 2's CC7 criteria expect monitoring that detects anomalies and leads to evaluated events. A log that a privileged user can quietly alter supports neither.

Create an organization trail from the management account or a CloudTrail delegated administrator, so every current and future member account is logged and member accounts cannot stop or change it. Deliver it to an S3 bucket in a dedicated log-archive account, enable log file integrity validation so CloudTrail writes signed hourly digest files, and enforce retention with S3 Object Lock. Compliance mode blocks deletion by any user, including root, until retention expires; governance mode allows a tightly held bypass permission.

Treat retention as a documented decision. The Security Rule's six-year retention requirement applies to its required documentation, such as policies, procedures and risk assessments, and is often misread as a log rule. Agree log retention with counsel, record the reasoning, and add CloudTrail data events for S3 buckets that hold PHI where object-level access matters.

Then make sure someone reads the output. Route GuardDuty and Security Hub CSPM findings into a queue with an owner and a response target, and keep the triage decisions. HIPAA's information system activity review and SOC 2's CC7.2 and CC7.3 both depend on evidence that review happened, not only that logs exist.

Sources ·CloudTrail organization trails; CloudTrail log file integrity validation; Amazon S3 Object Lock; HHS Security Rule summary.

04Analysis

Mistake 4: poor secrets and credential handling

Database passwords in environment files, API keys committed to repositories and long-lived access keys stored in CI systems create exposure that is hard to scope after a leak. They are shared across people and workloads, rarely rotated because rotation risks an outage, and difficult to attribute when used.

Store application secrets in AWS Secrets Manager and turn on rotation: managed rotation for secrets that a service such as Amazon RDS manages for you, or a rotation Lambda function for other credentials. Scope each workload's IAM role to its own secrets, and use CloudTrail GetSecretValue events to show which principals read them. For CI/CD, replace stored access keys with OpenID Connect federation into short-lived IAM roles.

Encryption keys need the same discipline. Use AWS KMS customer managed keys for data stores holding PHI or confidential data, write key policies that separate key administrators from key users, and enable automatic rotation, which defaults to yearly and accepts a custom period. Rotation replaces key material while keeping the key ID and does not re-encrypt existing data, so it is no remedy for a leaked data key.

Reviewers ask for the rotation configuration, RotateKey and secret-rotation events from CloudTrail, the latest key-policy review and the results of secrets scanning across your repositories.

Sources ·AWS Secrets Manager rotation; AWS KMS key rotation.

05Analysis

Mistake 5: compliance without operational ownership

Well-run environments are not defined by the volume of their policy documents. They are the ones where each control has an engineer who can explain it, a cadence and a record of the last time it ran. Without that, controls decay between reviews and evidence gets reconstructed from memory under deadline.

This matters most for SOC 2 Type II, which tests whether controls operated effectively across a review period agreed with the CPA firm, not only whether they were suitably designed at a point in time, as in Type I. A skipped access review or an untested restore inside the period can be reported as an exception. HIPAA carries a parallel expectation: risk analysis, risk management and periodic evaluation are ongoing obligations, not one-time projects.

Keep a control register with the control, owner, AWS implementation, frequency and evidence location. Automate collection where AWS already records the fact, such as AWS Config compliance history, AWS Backup job and restore-testing results, and Security Hub CSPM finding history. Spend human effort on the judgement steps: approving access, accepting risk and closing incidents.

Recovery and network segmentation need owners too. Use AWS Backup plans with Vault Lock so recovery points cannot be deleted before their retention ends, and record the results of scheduled restore tests. Keep PHI workloads in separate accounts or VPCs, scope security groups to required paths, and use VPC endpoints where traffic to AWS services should stay off the internet.

Sources ·AWS Backup Vault Lock; AICPA 2017 Trust Services Criteria (revised points of focus, 2022).

The five mistakes, the AWS controls that address them and the evidence reviewers ask for
The five mistakes, the AWS controls that address them and the evidence reviewers ask for
MistakeAWS controlsEvidence reviewers ask for
Tools treated as controlsBAA accepted in AWS Artifact; HIPAA-eligible services for PHI; Security Hub CSPM and Config conformance packs as monitoringBAA acceptance record, eligibility review of the deployed architecture, control register mapped to safeguards and Trust Services Criteria
Weak IAM foundationsIAM Identity Center with MFA, permission sets per account, SCP guardrails, IAM Access AnalyzerPermission-set assignments, joiner and leaver tickets, dated access reviews, SCP definitions
Insufficient loggingOrganization trail with log file validation, S3 Object Lock in a log-archive account, AWS Config recording, GuardDutyTrail configuration, digest validation output, retention settings, triaged finding tickets
Poor secrets handlingSecrets Manager rotation, KMS customer managed keys with rotation, OIDC federation for CI/CDRotation settings and CloudTrail rotation events, key-policy review, secrets-scan results
No operational ownershipAWS Backup with Vault Lock and restore testing, VPC segmentation, control registerNamed owners, restore-test results, operating evidence across the Type II period, exception log

Sources ·HHS Security Rule summary; AICPA 2017 Trust Services Criteria (revised points of focus, 2022).

Practical checkpoint

Before acting, confirm the owner, evidence, production risk, expected outcome, and validation method for each recommendation.

Written by

ARCO Engineering Team

Published by ARCO

Apply this guidance

Put it into production with ARCO

ARCO can validate the current environment, prioritize the work, and own the approved implementation.

  • Evidence-led assessment
  • Risk-aware implementation
  • Clear ownership and validation

Related services and guidance

HIPAA compliance on AWS
Discuss your environment

From analysis to implementation

Need senior engineers to apply this in production?

We can assess the current environment, validate the priority and implement the approved work with clear scope, ownership and outcome checks.