<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="https://publishpress.com/"
	>

<channel>
	<title>security audit aws Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist</title>
	<atom:link href="https://www.anujvarma.com/tag/security-audit-aws/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.anujvarma.com/tag/security-audit-aws/</link>
	<description>Production Grade Technical Solutions &#124; Data Encryption and Public Cloud Expert</description>
	<lastBuildDate>Fri, 12 Jun 2020 12:26:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://www.anujvarma.com/wp-content/uploads/anujtech.png</url>
	<title>security audit aws Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist</title>
	<link>https://www.anujvarma.com/tag/security-audit-aws/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>AWS Security Architect Level Audits on AWS Accounts</title>
		<link>https://www.anujvarma.com/security-audits-on-aws-accounts/</link>
					<comments>https://www.anujvarma.com/security-audits-on-aws-accounts/#comments</comments>
		
		<dc:creator><![CDATA[Anuj Varma]]></dc:creator>
		<pubDate>Fri, 12 Jun 2020 12:26:06 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[security audit gcp]]></category>
		<category><![CDATA[auditor aws account]]></category>
		<category><![CDATA[aws guard duty findings]]></category>
		<category><![CDATA[aws security hub findings]]></category>
		<category><![CDATA[governance security aws]]></category>
		<category><![CDATA[monitor security events aws]]></category>
		<category><![CDATA[security audit aws]]></category>
		<category><![CDATA[security reader role aws]]></category>
		<guid isPermaLink="false">https://googlearchitect.com/?p=114</guid>

					<description><![CDATA[<p>As an AWS Security Architect, one of your first tasks would be to go into your customer&#8217;s account (or multiple AWS accounts) and look around for security specific events created [&#8230;]</p>
<p>The post <a href="https://www.anujvarma.com/security-audits-on-aws-accounts/">AWS Security Architect Level Audits on AWS Accounts</a> appeared first on <a href="https://www.anujvarma.com">Anuj Varma, Hands-On Technology Architect, Clean Air Activist</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As an AWS Security Architect, one of your first tasks would be to go into your customer&#8217;s account (or<a href="https://www.linkedin.com/pulse/getting-started-aws-multi-account-structures-landing-zones-anuj-varma/?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_post_details%3BOzSwzXf4Sd2f3uR1AylDCg%3D%3D"> multiple AWS accounts</a>) and look around for security specific events created by services such as GuardDuty, Inspector and Macie. This is a fairly involved task in and of itself. You need to understand WHAT it is that the customer is looking to get audited (security audited) and WHERE to look for that information.</p>
<h3 class="graf graf--h4">What should be audited?</h3>
<p>(Also read,<a href="https://www.anujvarma.com/2-big-differences-between-cloud-kms-and-aws-kms/"> KMS based data encryption on AWS and Google Cloud</a>)</p>
<p class="graf graf--p"><em>CloudTrail logs, CloudWatch log groups, GuardDuty logs, Inspector logs, VPC Flow Logs, Trusted Advisor logs</em> – are just some AWS native services that provide you insight into security events on your AWS account.</p>
<p class="graf graf--p">Each of these services requires a role with it’s own IAM policies, either custom or managed – for access. This is why a majority of AWS admins take a shortcut. They create a role (or a user) and assign a <em class="markup--em markup--p-em">Full Administrator policy </em>to users that need read only access to these logs.</p>
<p class="graf graf--p">That’s the key point — this is meant to be a <em class="markup--em markup--p-em">read only</em> user (or role), and granting full admin is overkill, apart from being a security risk.</p>
<p class="graf graf--p">So — what’s the alternative?</p>
<h3 class="graf graf--h4">An Auditor Role would be cool (FullAdmin Role is a terrible idea)</h3>
<p class="graf graf--p">Wouldn’t it be cool if you could encapsulate all the required IAM policies into a single policy?  And simply create a user (or a role) with that attached policy?</p>
<p class="graf graf--p">This post describes such a Security Auditor role in AWS, with the following attributes.</p>
<ol class="postList">
<li class="graf graf--li">A READ ONLY (auditor) role that is able to access logs and events to investigate potential security breaches or potential malicious activity.</li>
<li class="graf graf--li">The role should have privileges to read and view ANYTHING and EVERYTHING related to security, monitoring and troubleshooting within an AWS environment.</li>
<li class="graf graf--li">This should include GuardDuty logs, CloudTrail logs, CloudWatch events, Inspector logs and more.</li>
<li class="graf graf--li">Optionally, it should also continuously check for compliance vioilations (security related compliance violations &#8211; such as open Security Groups, Public IPs etc.)</li>
</ol>
<h3 class="graf graf--h4">Built in Security policies in AWS IAM ?</h3>
<p class="graf graf--p">Believe it or not, AWS has already thought through the majority of this security audit use case. They have a policy specifically designed to perform this read only auditing role. However, as this post will describe, you may still need an additional policy or two (depending on how comprehensive an auditor role you are defining is).</p>
<p class="graf graf--p">To that end, the policies that I recommend for a full security auditor role in AWS include:</p>
<ul class="postList">
<li class="graf graf--li"><code class="markup--code markup--li-code"><a class="markup--anchor markup--li-anchor" href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_job-functions.html#jf_security-auditor" target="_blank" rel="noopener noreferrer" data-href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_job-functions.html#jf_security-auditor">SecurityAudit</a></code>– MUST have policy, contains all the read only permissions for cloudtrail, cloudwatch, vpc flow logs, inspector logs and more.</li>
<li class="graf graf--li"><code class="markup--code markup--li-code"><a class="markup--anchor markup--li-anchor" href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-access.html" target="_blank" rel="noopener noreferrer" data-href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-access.html">AWSSecurityHubFullAccess</a></code>(as opposed to <code class="markup--code markup--li-code">AWSSecurityHubReadOnlyAccess</code>— Wait, didn’t you say you should avoid FullAccess? This was meant to be a read only role. You are right &#8211; but the SecurityHub full access isn&#8217;t the same as Admin Full Access. In addition, what it buys you, is the ability to automatically check for any compliance violations (See the AWS managed policy AWSSecurityHubFullAccess section below).</li>
</ul>
<h3 class="graf graf--h4">Why do we need this AWS managed policy &#8211;  AWSSecurityHubFullAccess ?</h3>
<p class="graf graf--p"> It is not enough to simply &#8216;read&#8217; security events. Often times, the role of an AWS Security Architect includes remediation of certain security breaches as well as non compliant resources.</p>
<p class="graf graf--p">When you enable Security Hub, it’s assigned a service-linked role named:</p>
<pre class="graf graf--pre">AWSServiceRoleForSecurityHub</pre>
<p class="graf graf--p">This service-linked role includes a trust policy that Security Hub requires to do the following:</p>
<ol class="postList">
<li class="graf graf--li">Detect and aggregate findings from Amazon GuardDuty, Amazon Inspector, and Amazon Macie</li>
<li class="graf graf--li">Configure the requisite AWS Config infrastructure to run supported standards (in this release, CIS AWS Foundations) compliance checks.</li>
</ol>
<blockquote class="graf graf--blockquote"><p>This is why I recommend this policy for all auditor roles. The SecurityAudit policy by itself does not allow the running of supported CIS benchmarks.</p></blockquote>
<h3 class="graf graf--h4">What about Cross Region Security Logs and Cross Account Logs?</h3>
<p class="graf graf--p">The <em>SecurityAuditor</em> role (A role with the SecurityAudit AWS policy attached), provides access to cloudwatch logs, regardless of the region in which they were created. The same applies for all other security related logs, including VPC flow logs, Inspector Logs and GuardDuty logs.</p>
<p class="graf graf--p">For accessing logs across AWS accounts, you have 2 options:</p>
<ol class="postList">
<li class="graf graf--li">Either create the same role in each account and provide cross account ‘assume role’ access to appropriate users in each account.</li>
<li class="graf graf--li">A better solution is to use a <a class="markup--anchor markup--li-anchor" href="https://aws.amazon.com/solutions/centralized-logging/" target="_blank" rel="noopener noreferrer" data-href="https://aws.amazon.com/solutions/centralized-logging/">centralized logging solution in your AWS</a> account. This would channel all logs from all different accounts to a centralized logging account (typically to an S3 resource).</li>
</ol>
<h3 class="graf graf--h4">Are there any Permissions Boundaries for this role?</h3>
<p class="graf graf--p">No permission boundaries are required for this role, since it is designed as a read only role.</p>
<h3 class="graf graf--h4">Other Public Clouds? Azure and Google Cloud Security Auditor Roles</h3>
<p>This post focuses on your role as an AWS Security Architect.</p>
<ul>
<li>In GCP, the equivalent is <em>the IAM Security Reviewer</em> role (<code dir="ltr" translate="no">roles/iam.securityReviewer</code>).</li>
<li>In Azure, the closest is the Security Reader Role.</li>
</ul>
<p>The following table displays roles and allowed actions in Azure Security Center (source<a href="https://docs.microsoft.com/en-us/azure/security-center/security-center-permissions"> Azure docs</a>).</p>
<div class="table-scroll-wrapper">
<table class="table">
<caption class="visually-hidden">TABLE 1</caption>
<thead>
<tr>
<th>Role</th>
<th>Edit security policy</th>
<th>Apply security recommendations for a resource<br />
(including with &#8216;Quick Fix!&#8217;)</th>
<th>Dismiss alerts and recommendations</th>
<th>View alerts and recommendations</th>
</tr>
</thead>
<tbody>
<tr>
<td>Subscription Owner</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
<tr>
<td>Subscription Contributor</td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
<tr>
<td>Resource Group Owner</td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
<tr>
<td>Resource Group Contributor</td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
<tr>
<td>Reader</td>
<td>&#8212;</td>
<td>&#8212;</td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
<tr>
<td>Security Administrator</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
<tr>
<td>Security Reader</td>
<td>&#8212;</td>
<td>&#8212;</td>
<td>&#8212;</td>
<td><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2714.png" alt="✔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></td>
</tr>
</tbody>
</table>
</div>
<h3 class="graf graf--h4">Summary</h3>
<p class="graf graf--p"> Auditing all security related events and logs across an AWS account means auditing multiple logs. Each of these logs can be streamed to a variety of <em class="markup--em markup--p-em">destinations</em>. This makes it challenging to assign IAM policies for accessing each service’s log, especially since it could be going to an S3 bucket today and to an event streaming service tomorrow.</p>
<p class="graf graf--p"> <em class="markup--em markup--p-em">This post details creating a SINGLE role that provides READ ONLY access across all security events and logs – regardless of their source (GuardDuty, VPC Flow Logs, Inspector, Trusted Advisor Logs) or their destination. Also see, <a href="https://googlearchitect.com/2020/06/12/identity-in-azure/">Azure Identity </a></em></p>
<h4 class="graf graf--h4">Looking for a consultant to assist with a Cloud Security Review on AWS, Azure or Google Cloud?</h4>
<p class="graf graf--h4"><a href="https://calendly.com/anujvarma/private-1-on-1-conversation">Set up a 1 on 1 appointment with Anuj to assist with your AWS security architecture and cloud journey.</a></p>
<p>The post <a href="https://www.anujvarma.com/security-audits-on-aws-accounts/">AWS Security Architect Level Audits on AWS Accounts</a> appeared first on <a href="https://www.anujvarma.com">Anuj Varma, Hands-On Technology Architect, Clean Air Activist</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.anujvarma.com/security-audits-on-aws-accounts/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Content Delivery Network via N/A
Minified using Disk

Served from: www.anujvarma.com @ 2026-07-22 12:37:58 by W3 Total Cache
-->