<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sahil Dubey</title>
    <description>The latest articles on DEV Community by Sahil Dubey (@sahil_dubey_c4ed5879c7eaa).</description>
    <link>https://dev.to/sahil_dubey_c4ed5879c7eaa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1927203%2F113dcfdc-dcbe-4855-bda5-5cf2938c40c2.png</url>
      <title>DEV Community: Sahil Dubey</title>
      <link>https://dev.to/sahil_dubey_c4ed5879c7eaa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sahil_dubey_c4ed5879c7eaa"/>
    <language>en</language>
    <item>
      <title>How to Pass SOC 2 Type 2: A Practical Roadmap (AWS)</title>
      <dc:creator>Sahil Dubey</dc:creator>
      <pubDate>Thu, 30 Jul 2026 13:21:28 +0000</pubDate>
      <link>https://dev.to/sahil_dubey_c4ed5879c7eaa/how-to-pass-soc-2-type-2-a-practical-roadmap-aws-272h</link>
      <guid>https://dev.to/sahil_dubey_c4ed5879c7eaa/how-to-pass-soc-2-type-2-a-practical-roadmap-aws-272h</guid>
      <description>&lt;p&gt;Originally published at sahildubey.us&lt;/p&gt;

&lt;p&gt;Type 2 isn't a test you cram for — it proves your controls operated over months. After 16 years building AWS platforms and taking them through SOC 2, PCI DSS and ISO 27001 audits (CISA, CISM, AWS Solutions Architect Professional), here's the sequence that gets you to a clean report without a fire drill.&lt;/p&gt;

&lt;p&gt;Type 1 vs Type 2 in one line&lt;/p&gt;

&lt;p&gt;Type 1 says your controls are designed correctly at a point in time. Type 2 proves they actually operated over a period — commonly three to twelve months. Type 2 is what most enterprise buyers want, and you can't cram for it: the evidence is generated by controls running day after day.&lt;/p&gt;

&lt;p&gt;The roadmap&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Scope and select criteria&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Decide which Trust Services Criteria apply. Security (the Common Criteria) is mandatory; add Availability, Confidentiality, Processing Integrity or Privacy only if they're relevant to your service.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Gap assessment&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Compare current state to the criteria and produce a prioritised gap register. This is where you learn how far off you really are.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Remediate and implement in AWS&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Turn gaps into real controls: least-privilege IAM and MFA, KMS encryption, CloudTrail and Config, change management through a reviewed CI/CD pipeline, backups with tested restore.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automate evidence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Wire controls so they emit evidence automatically — access reviews, pipeline logs, config snapshots — instead of screenshotting things the night before fieldwork.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick the observation window&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Choose the window (often three to six months for a first Type 2). Controls must operate for the whole period.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Operate and monitor&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Run the controls, catch drift, remediate on an SLA. Consistency over the window is what the auditor tests.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Auditor fieldwork&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The auditor samples evidence across the window and writes the report. Clean evidence collected all along makes this fast.&lt;/p&gt;

&lt;p&gt;The controls auditors actually check&lt;br&gt;
Domain  AWS control Evidence&lt;br&gt;
Access  IAM least-privilege, MFA, SSO   Access-review exports, no long-lived keys&lt;br&gt;
Change mgmt Reviewed CI/CD, IaC Pipeline logs, PR approvals&lt;br&gt;
Monitoring  CloudTrail, Config, GuardDuty   Log retention, alerts fired&lt;br&gt;
Encryption  KMS at rest &amp;amp; in transit    Key policies, TLS config&lt;br&gt;
Resilience  Backups + tested restore    Backup schedule, restore test&lt;br&gt;
Why teams fail (or stall)&lt;br&gt;
Treating it as a document exercise while the account tells a different story.&lt;br&gt;
Collecting evidence manually and burning out before the window ends.&lt;br&gt;
Controls that work in one region but are switched off in another.&lt;br&gt;
No one owning remediation, so drift accumulates.&lt;br&gt;
My take&lt;/p&gt;

&lt;p&gt;The teams that pass Type 2 the first time don't work harder during fieldwork — they front-loaded the controls and automated the evidence, so the observation window ran itself. Build it right once, then let it operate.&lt;/p&gt;

&lt;p&gt;I'm Sahil Dubey — DevOps, cloud &amp;amp; compliance architect (CISA, CISM, AWS SA Pro). Full version with FAQ: How to pass SOC 2 Type 2, more at sahildubey.us.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>security</category>
      <category>compliance</category>
      <category>startup</category>
    </item>
    <item>
      <title>AWS Compliance Controls Mapping: Services to SOC 2, PCI DSS &amp; ISO 27001</title>
      <dc:creator>Sahil Dubey</dc:creator>
      <pubDate>Thu, 30 Jul 2026 13:18:07 +0000</pubDate>
      <link>https://dev.to/sahil_dubey_c4ed5879c7eaa/aws-compliance-controls-mapping-security-devops-compliance-mapping-services-to-soc-2-pci-dss--5dk2</link>
      <guid>https://dev.to/sahil_dubey_c4ed5879c7eaa/aws-compliance-controls-mapping-security-devops-compliance-mapping-services-to-soc-2-pci-dss--5dk2</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://sahildubey.us/blog/aws-compliance-controls-mapping/" rel="noopener noreferrer"&gt;sahildubey.us&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Engineers think in AWS services; auditors think in controls. The gap between those two languages is where audits stall. After 16 years building AWS platforms and defending them in SOC 2, PCI DSS and ISO 27001 audits (I'm a CISA-certified auditor and AWS Solutions Architect Professional), here's how the core AWS building blocks map to the frameworks — and, just as important, the evidence each one has to produce.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mapping
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;AWS component&lt;/th&gt;
&lt;th&gt;Satisfies (SOC 2 / PCI / ISO)&lt;/th&gt;
&lt;th&gt;Evidence an auditor asks for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;IAM + Identity Center + IRSA&lt;/td&gt;
&lt;td&gt;CC6.1–6.3 / PCI 7,8 / A.9&lt;/td&gt;
&lt;td&gt;Access-review export, MFA policy, no long-lived keys&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VPC + private subnets + SG/NACL&lt;/td&gt;
&lt;td&gt;CC6.6 / PCI 1 / A.13&lt;/td&gt;
&lt;td&gt;Network diagram, SG rules, no 0.0.0.0/0 to sensitive ports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KMS + Secrets Manager&lt;/td&gt;
&lt;td&gt;CC6.7 / PCI 3,4 / A.10&lt;/td&gt;
&lt;td&gt;Key policies, rotation config, encryption-at-rest proof&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CloudTrail + Config + GuardDuty&lt;/td&gt;
&lt;td&gt;CC7.2–7.3 / PCI 10 / A.12&lt;/td&gt;
&lt;td&gt;Log retention, tamper-evidence, alert routing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CodePipeline + Checkov/OPA gate&lt;/td&gt;
&lt;td&gt;CC8.1 / PCI 6 / A.14&lt;/td&gt;
&lt;td&gt;Pipeline definition, failed-build evidence, change tickets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RDS + automated backups&lt;/td&gt;
&lt;td&gt;A1.2 / PCI 10 / A.12&lt;/td&gt;
&lt;td&gt;Backup schedule, tested restore, RTO/RPO doc&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The failure modes
&lt;/h2&gt;

&lt;p&gt;These are the patterns that actually fail audits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Long-lived access keys in CI instead of IRSA or OIDC.&lt;/li&gt;
&lt;li&gt;A public RDS endpoint or open SSH to 0.0.0.0/0.&lt;/li&gt;
&lt;li&gt;Hardcoded secrets and unmanaged encryption keys.&lt;/li&gt;
&lt;li&gt;Logging switched off in one region, so the trail has holes.&lt;/li&gt;
&lt;li&gt;Manual production changes with no pipeline gate or ticket.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  From mapping to evidence
&lt;/h2&gt;

&lt;p&gt;The point of the mapping isn't the table — it's that each row produces evidence &lt;strong&gt;automatically&lt;/strong&gt; when the control is real. IAM Identity Center emits access reviews; the pipeline emits change records; Config emits drift. Wire those outputs into an evidence store and the audit stops being a scramble.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does AWS give you compliance out of the box?
&lt;/h2&gt;

&lt;p&gt;No. AWS provides compliant infrastructure under the shared-responsibility model, but you still have to configure and prove the controls in your own account. AWS being compliant does not make your workload compliant.&lt;/p&gt;

&lt;h2&gt;
  
  
  My take
&lt;/h2&gt;

&lt;p&gt;One well-built AWS control set serves SOC 2, PCI DSS and ISO 27001 at once, because the frameworks overlap far more than they differ. Build the controls to satisfy the strictest requirement, map them to each framework, and you defend three audits with one platform.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Sahil Dubey — DevOps, cloud &amp;amp; compliance architect (CISA, CISM, AWS SA Pro). More at &lt;a href="https://sahildubey.us/" rel="noopener noreferrer"&gt;sahildubey.us&lt;/a&gt;, including the full version of this piece with FAQ: &lt;a href="https://sahildubey.us/blog/aws-compliance-controls-mapping/" rel="noopener noreferrer"&gt;AWS compliance controls mapping&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>aws</category>
      <category>security</category>
      <category>devops</category>
      <category>compliance</category>
    </item>
  </channel>
</rss>
