<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kevin Sanghvi on Medium]]></title>
        <description><![CDATA[Stories by Kevin Sanghvi on Medium]]></description>
        <link>https://medium.com/@kvnsanghvi?source=rss-a8c871fd56f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*wFMSD9sziZ8-ajANEDSNnA.jpeg</url>
            <title>Stories by Kevin Sanghvi on Medium</title>
            <link>https://medium.com/@kvnsanghvi?source=rss-a8c871fd56f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:08:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kvnsanghvi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hybrid Integration of Google Workspace & O365]]></title>
            <link>https://medium.com/@kvnsanghvi/hybrid-integration-of-google-workspace-o365-d655f1688aa4?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d655f1688aa4</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[google-workspace]]></category>
            <category><![CDATA[azure-active-directory]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Tue, 10 Aug 2021 20:37:36 GMT</pubDate>
            <atom:updated>2021-08-10T21:43:41.186Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello IT Admins,</p><p>Hope you’re safe and enjoying Work from Home with your family :-).</p><p>We recently worked on a Use case connecting Google Workspace (GW) &amp; Office 365 (O365) users leveraging Coexistence and Identity features to achieve Collaboration &amp; cross functioning.</p><p>Let’s say, O365 users are on O365domain.com &amp; GW users are on gwdomain.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*5EONmDn-gh8HjQ-q" /><figcaption><strong>Current Tech Landscape</strong></figcaption></figure><p><strong>Goals:</strong></p><ol><li>O365 &amp; GW users can see each other Free Busy status on Calendar- Requires setting up Calendar Interop.</li><li>Sync GW Directory contacts to O365 accounts - Requires setting up Mail enabled contacts / connect 2 Azure AD tenants via FIM method.</li><li>O365 users can Collaborate on Drive, Meet with GW Users - Requires User provisioning via GCDS / G Suite connector &amp; Password Sync via GSPS or configure partial SSO for O365 backed Google accounts keeping O365 as a IDP.</li><li>Sync O365 Directory contacts to GW accounts - Requires setting up GCDS Shared contacts on O365domain.com local AD with SA of GW.</li></ol><p>We came up with 2 solutions for Goals 3 &amp; 4 with the following assumptions.</p><ul><li>GW Instance is in a Partial Domain licensing scenario with multiple SKU(s).</li><li>It is assumed that O365domain.com is registered as a secondary domain under GW Instance.</li><li>Cloud Identity Free edition is used to provision Google accounts for O365 users.</li></ul><p><strong>Solution 1</strong> (Create O365 users on GW using GCDS &amp; GSPS)</p><ul><li>Authorized GCDS &amp; GSPS on O365 Local Active Directory with Super Admin credentials of GW.</li><li>Mapped AD OU with GCDS &amp; enabled Licensing feature via Security group, this will provision users directly to GW OU where Auto Licensing is OFF by default.</li><li>At this stage, O365 user NOW has another account with similar naming convention, on a similar domain but a Google one.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uK3B0Bd_CFan0pQR" /></figure><p><strong>Solution 2</strong> (Federated Identity using G Suite Connector &amp; Partial SSO from GWS)</p><ul><li>Authorized G Suite connector on Azure AD with GW Super Admin.</li><li>Turn on Automatic Provisioning on the G Suite connector which will create all the users from O365 to GW with @O365domain.com identity on GW.</li><li>To ensure that all O365 backed Google accounts stay in one particular OU on GW, the fixed OrgUnit path attribute is mapped into the G Suite Connector.</li><li>On this OU, Auto License assignment was turned OFF to prevent override of any SKU other than Cloud Identity Free.</li><li>Enable Partial SSO on GW with Azure AD IDP URL(s) and Certificate only on that OU.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fsE5nkzyIR-p1VrA" /></figure><p><strong>Acronyms:</strong></p><ul><li>GW = Google Workspace = googledomain.com.</li><li>O365 = Office 365 = O365domain.com.</li><li>SA = Super Admin of Google Workspace</li><li>Calendar Interop = Syncs Calendar Free Busy Status between GW &amp; O365.</li><li>GSPS = G Suite Password Sync (Windows Password sync from AD to Google)</li><li>GCDS = Google Cloud Directory Sync (Unidirectional Users and other LDAP resources sync to Google)</li><li>SKU(s) = Type of Google Workspace License.</li><li>Partial Domain Licensing = Single Google Workspace tenant having multiple SKU(s).</li><li>AD = Active Directory.</li><li>DC = Domain Controller.</li><li>OU = Google Organization Unit containing the Users.</li></ul><p><strong>References:</strong></p><ul><li><a href="https://cloud.google.com/architecture/identity/federating-gcp-with-azure-ad-configuring-provisioning-and-single-sign-on">G Suite Connector</a></li><li><a href="https://support.google.com/a/answer/2611859?hl=en">GSPS</a></li><li><a href="https://support.google.com/a/answer/106368?hl=en">GCDS</a></li><li><a href="https://support.google.com/a/answer/7444958?hl=en">Calendar Interop</a></li><li><a href="https://workspaceupdates.googleblog.com/2021/07/saml-partial-sso-beta.html">Partial SSO</a></li></ul><p>We hope this will help you with a similar use-case. If you think there is a better way to achieve above goals without involving any additional cost do let us know.</p><p>This wonderful recipe couldn’t have been sailed without the contribution <a href="https://medium.com/u/6bb72ff4e137"><strong>Abhishek Mehta</strong></a><strong>.</strong></p><p>Happy to hear your suggestions/ideas :-).</p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d655f1688aa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify G Suite OU(s) with Okta]]></title>
            <link>https://medium.com/@kvnsanghvi/simplify-g-suite-ou-s-with-okta-e15fe929b861?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e15fe929b861</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[okta]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Tue, 15 Sep 2020 19:26:40 GMT</pubDate>
            <atom:updated>2020-09-15T19:26:40.748Z</atom:updated>
            <content:encoded><![CDATA[<p>Organization Units (OU) in G Suite is a feature to Group users based on their common attributes like Location, Department or Designation or may be you want to keep Generic users separately as they ONLY need IMAP functionality or C-Level executives are only allowed to Chat outside the domain. All these because of different users have different policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*772xvh7Sv49BkkTM.png" /></figure><p>As a part of G Suite Administration, different level of activities are performed during employee lifecycle, such as during an On boarding a User needs to be moved to it’s relevant OU, or Once a User is under notice period it will be moved to an OU where sending Outside email is not required.</p><p>I would like to share my learning, on how this process can be leveraged by making sure there is no Administration overhead for an Organization using Okta as their Single Sign On solution.</p><p><strong>Current Scenario of Employee Onboarding:</strong></p><ol><li>Administrator creates a User in AD.</li><li>Move the User to a Security Group.</li><li>Imports the User to Okta via AD Import.</li><li>G Suite Application is assigned.</li><li>User is synced with G Suite from Okta.</li><li>Administrator moves the User to relevant G Suite OU.</li></ol><p>This process is long and requires manual efforts especially when employee onboarding happens on day to day basis.</p><p><strong>Goal: </strong>Once the User is created in AD &amp; Added to Security Group, let steps 4–6 manage by Okta through a simple one-time configuration.</p><p><em>Step 1:</em> Create a Group Rule in Okta that would source the Users from AD to Okta Group. This process is Okta mastered and it also allows a flexibility to exclude some users in this sync process, for e.g the Generic Users or the User not part of normal policies within a department, so those users would be unaffected by this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/0*6_w0N7aTdE_LB37h.png" /></figure><p><em>Step 2:</em> Go to Applications &gt; G Suite &gt; Assignments &gt; Assign &gt; Groups &gt; Select Okta Group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*TQOvcBIGgyRQ7NyF.png" /></figure><p><em>Step 3: </em>Select the G Suite OU for Mapping. Other options like Suspension of User once it is suspended from AD, Assignment of license is optional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*jZucxEldoXMq-zHb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*eJ6d-SI_TBRLBBPg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OwQdltjsOkJm1K0p.png" /></figure><p>Our Goal of assigning G Suite Application automatically with it’s OU is achieved here! If you’re not using AD, then Group Rule is also possible based on User profile attributes. All these process would be managed via AD / SSO.</p><p>Hope it was helpful for you. Please share your feedback.</p><p>Stay Home. Stay Safe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e15fe929b861" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify G Suite Groups Membership with Okta]]></title>
            <link>https://medium.com/@kvnsanghvi/simplify-g-suite-groups-membership-with-okta-e263550c6c7e?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e263550c6c7e</guid>
            <category><![CDATA[okta]]></category>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[google-groups]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Fri, 11 Sep 2020 18:43:19 GMT</pubDate>
            <atom:updated>2020-09-11T19:03:05.893Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I was working on a Use case of an Enterprise customer with a Goal to achieve Google Group Membership easier without much Admin intervention. Considering their current Infrastructure, Okta is a single source of authentication with Users mastered from Active Directory (AD) with one of the SAML 2.0 apps added as G Suite.</p><p>Since, their User base is spread across multiple regions, and multiple departments, the need of communicating via G Suite Groups was a very routine task. Imagine, Admin need to be manage Active directory groups and Groups created in G Suite MANUALLY that too lot of configuration related changes, this might have chances of human error.</p><p>There is a nice feature in Okta which could make lives of Admin a lot more easier. Let’s see how it works:</p><p>Assuming you’re maintaining User attributes in AD. If this is the case, then it would populate the information while doing an AD Import to Okta or update User attributes in AD. We are going to use logic of User — Department.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*A5Bis8rTuJJdCMSR89owQg.png" /><figcaption>Sample User Properties</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*jR0rDnpP4PH8M8tVR8ot4w.png" /><figcaption>AD Import to Okta</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*lJHc9ild8SENFYxlMcDuQw.png" /><figcaption>Result of AD Import to Okta</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*D3H9oFPYHs-wFz3EYl-qZA.png" /><figcaption>It’s updated in our Sample Okta User Profile</figcaption></figure><p>Till now, our Sample User Department value is updated in Okta. Now, let’s see how to Push this to G Suite on New / Existing Group. Before we do this, this process is “Okta” mastered that means, we would create an Okta Group based on the Attribute to sync with G Suite. You can also simply map AD Group to G Suite group however this is not recommended approach and result you would have to create more groups in AD itself and maintenance would be more tough. In Okta Group rules, there are lot of filters available to customize the memberships before it syncs to G Suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*LuK0AyapUOMyt8oMJ4pWfQ.png" /><figcaption>Create a Group from Okta Admin console &gt; Directory &gt; Groups &gt; Add Group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*-WSZ4-H2CQxWjnnaMOKW8w.png" /><figcaption>Create a Group Rule from Okta Admin console &gt; Directory &gt; Groups &gt; Add Rule</figcaption></figure><p>This Group rule would mean any user with Department as IT would by synced to “IT_Okta” group with exception of 1 User. There are Total 3 Members in IT department. Now let’s Activate the Group Rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*639zhK9fxtwn08LuL2SiQQ.png" /></figure><p>We have the Okta Group created and ready to Push to G Suite. Finally !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*eMpG-VxXHM_I-ZehHhIrdQ.png" /></figure><p>Go to Applications &gt; G Suite &gt; Push Groups &gt; Search Group by Name &gt; Provide Name to newly created G Suite Group / Link with existing G Suite Group (don’t worry it won’t delete existing members)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M0Zsj-Lti-VO0SzAxrSxqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Rier6CPGaCohWz40vekO8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t-iUQq8znJAkUqzULdGnWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovjQyvFOqXlY26_f6drjaA.png" /><figcaption>Okta Logs showing the Groups Push</figcaption></figure><p>Let’s check whether our IT Department group in G Suite:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MN0_bK3S1jOVoDQGVsaig.png" /></figure><p>Any subsequent User profile updates would trigger the Group rules and it would update update our G Suite Group. Group rules in Okta is very useful feature to Okta create groups based on multiple conditions and same can be used to assign other Applications as well. Lastly, there might be certain membership changes required either manually or via a command line tool — Google Apps Manager in synced G Suite group in case you need to change to Member/Manager or change the posting permission, since this process would only sync the Member role.</p><p><strong>References:</strong></p><p><a href="https://help.okta.com/en/prod/Content/Topics/users-groups-profiles/usgp-enable-group-push.htm">Groups Push</a></p><p><a href="https://help.okta.com/en/prod/Content/Topics/users-groups-profiles/usgp-create-group-rules.htm">Group Rules</a></p><p><a href="https://developer.okta.com/docs/reference/okta-expression-language/">Okta Expression Library</a></p><p>Hope it was helpful. Please share your feedback/suggestions :)</p><p>Stay Home. Stay Safe. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e263550c6c7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Forwarding with a Timer]]></title>
            <link>https://medium.com/@kvnsanghvi/email-forwarding-with-a-timer-f1f282325a1e?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1f282325a1e</guid>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[administration]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[forwarding]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Wed, 27 May 2020 20:06:25 GMT</pubDate>
            <atom:updated>2020-05-27T20:19:03.268Z</atom:updated>
            <content:encoded><![CDATA[<p>One to One or Many, Email Forwarding is one of the very routine task performed by a G Suite Administrator whether it could be forwarding emails of a Deleted / Suspended User to the Replacement User, Catch-all or Active User to Active User Forwarding or some specific use-case when there is a need of creating Multiple rules from Admin console.</p><p>So, Recently I was working on this use-case to forward the emails from one user to another to achieve the requirement in such a way that it should after X. no of days (Max 30 days in this use case), post this duration, the email forwarding logic should automatically STOP.</p><p>For e.g. Email forwarding started on 15th May, 2020 should be stopped automatically on 31st May, 2020.</p><p>We couldn’t go ahead with End User Gmail Forwarding since it has a possibility of manually disable by end user or there might be a different unknown forwarding account in a situation due to Security concerns. Finally, we developed a handy Regular expression that picks up Date (numeric) range in combination with Month of the year.</p><p>This is where Content compliance usage became extremely helpful.</p><ol><li>We will use Raw Message part to look for the Date and Recipient ID.</li><li>We would pick the Common pattern (Red) and Convert to Regex pattern.</li><li>We would bind Regex pattern with Recipients Header.</li><li>In Add More Recipients add the Destination Forwarding accounts(s).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KG4L22UCPAh0mct9A50WXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*v2pXlcJTbOKp4-7QqrwlZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*Ju2oI3xOUbfSYUZT6CCChQ.png" /></figure><p><strong>Let’s Breakdown the Regex:</strong></p><p><strong>(\W|^)Date:\s[a-zA-Z]{3},\s(1[5–9]|2[0–9]|3[01])\sMay\s\d{4}</strong></p><p>(\W|^) — Matches any non-word character — that is, any character that’s not a letter, digit, or underscore OR define the start of the String.</p><p>Date: — Is a Static content and probably would never change.</p><p>\s — Is a Space</p><p>[a-zA-Z]{3} ,— Denotes a 3 Letter Month abbreviation</p><p>\s — Again a Space</p><p>(1[5–9]|2[0–9]|3[01]) — Regex of 15th to 31st May 2020</p><p>\s — Again a Space</p><p>May — Is a Dynamic Month value that needs to change Month by Month</p><p>\s — Again a Space</p><p>\d{4} — Denotes a 4 letter Year number.</p><p>This is now automated to a very high extent and the only thing is Admin need to be disable the Content compliance otherwise once the date passes the rule itself would stop working!</p><p>Hope you find this Use-case helpful. Feel free to share your feedback :)</p><p>Stay Safe, Stay Home.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1f282325a1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inspect Email Logs using BigQuery]]></title>
            <link>https://medium.com/@kvnsanghvi/inspect-email-logs-using-bigquery-1ce1be1fa10c?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ce1be1fa10c</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[gsuite-integration]]></category>
            <category><![CDATA[messaging]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 20:17:31 GMT</pubDate>
            <atom:updated>2020-04-11T20:40:26.365Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://support.google.com/a/answer/7233312?hl=en"><strong>Inspecting Email Logs</strong></a> is one of the key task performed by an Enterprise Admin on a day to day basis, whether it’s knowing, <em>How many Spam emails have arrived</em>, <em>Top Sending domains, Domain wide Subject based search, Top Rules triggered by an email and many others.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*uX3YHjqT_fx9-vwk.png" /></figure><p>This is where Google Cloud — BigQuery can help to inspect large amount of data in a very short amount of time with flexibility of exporting to popular analysis tools like Data Studio, Sheets. This would ideally take lot of hour efforts using Email Log Search feature and that too with pre-defined fields like Subject, Sender, Recipient, IP, Subject and Message-ID. Email Log search retention is for 30 days.</p><p>In this blog, I would share how to setup this feature with some examples and I am using Google Cloud Platform (GCP) Free Trial of $300 and there is a limited always free Quota for Big Query usage.</p><p><a href="https://cloud.google.com/free"><strong>How to setup GCP Free Trial</strong></a> &amp; <a href="https://cloud.google.com/free/docs/gcp-free-tier"><strong>Always Free Quota Info</strong></a></p><h4>Step 1</h4><p>Create a new <a href="https://support.google.com/cloud/answer/6251787#create-a-project">Google Cloud Console Project</a> once the Free Trial is activated, select the project and add a Project Editor from <a href="https://console.cloud.google.com/iam-admin/iam/">IAM &amp; Admin</a> section.</p><h4>Step 2</h4><p>Login to G Suite — Super Admin console and go to Apps &gt; Gmail &gt; Setup and enable the option by mentioning your GCP Project you created in Step 1 with a Dataset name and save changes. After few minutes, you would your Dataset is created in GCP under your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnjOt8E_NeKzHhROkpQQdA.png" /></figure><h4>Step 3</h4><p>This is the Dataset created in Step 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*q5-8dQR6zzIxFCKU-qpLsg.png" /></figure><p>We would need to verify whether this is also shared with required Service accounts, for that, click on Share Dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZQ0GGZnEh8OtsYRulq1rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*7lHRTxBX-xAE3sN-qq3gkg.png" /></figure><h4><strong>Step 4</strong></h4><p>We would need to wait for approximately an hour, so that a table called daily_date would be created on which SQL queries would be performed. We’re all set to Drive! :)</p><p><strong>Example:</strong> To know details of Spam emails using Big Query Editor.</p><p>SELECT TIMESTAMP_MICROS(event_info.timestamp_usec) as timestamp,<br> message_info.subject,<br> message_info.source.address as source,<br> destination.address as destination,<br> message_info.rfc2822_message_id<br>FROM <strong>myBQdataset.daily_20200411</strong> d, d.message_info.destination<br>WHERE message_info.is_spam <br>LIMIT 1000</p><p>myBQdataset — Name of the dataset &amp; daily_20200411 is the Name of table with limit of 1000 results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UMTxcKwIYA5P8pNQsu2LaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSm3lXXrkhbSPfjxP34dRg.png" /></figure><p><strong>Example:</strong> To know detail of Spam emails using Big Query connector using Google Sheets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*l1nuFrSo8wPoUnYzzL3KKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*TucS6U0GaT0kWZyRMwgM1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*dhJgbwetdAuUN9oWSErwXQ.png" /></figure><p>Reference for <a href="https://support.google.com/a/answer/7234657?hl=en&amp;ref_topic=7233311"><strong>Example SQL Queries</strong></a> &amp; <a href="https://support.google.com/a/answer/7230050?hl=en&amp;ref_topic=7233311"><strong>Schema for Custom SQL queries</strong></a>.</p><h3>FAQ(s)</h3><p><strong>What is BigQuery?</strong></p><p>BigQuery is an <a href="https://cloud.google.com/solutions/bigquery-data-warehouse">enterprise data warehouse</a> that solves this problem by enabling super-fast SQL queries using the processing power of Google’s infrastructure.</p><p><strong>What is BigQuery Dataset?</strong></p><p>A dataset is contained within a specific <a href="https://cloud.google.com/bigquery/docs/projects">project</a>. Datasets are top-level containers that are used to organize and control access to your <a href="https://cloud.google.com/bigquery/docs/tables">tables</a> and <a href="https://cloud.google.com/bigquery/docs/views">views</a>. A table or view must belong to a dataset, so you need to create at least one dataset before <a href="https://cloud.google.com/bigquery/loading-data-into-bigquery">loading data into BigQuery</a>.</p><p><strong>Which G Suite Edition supports Gmail Logs to BigQuery?</strong></p><p>G Suite Enterprise &amp; G Suite Enterprise for Education.</p><p><strong>What is the default table expiration time with this feature?</strong></p><p>It’s 60 days and can be <a href="https://cloud.google.com/bigquery/docs/updating-datasets#table-expiration">extended</a>.</p><p><strong>What if my table gets deleted?</strong></p><p>It can be <a href="https://cloud.google.com/bigquery/docs/managing-tables#undeletetable">restored</a> within 2 days.</p><p><strong>How to export BigQuery Data?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*iAxOoqhv5J6iMwV5q3-Gsw.png" /></figure><p><strong>Note: </strong>It’s important to note that BigQuery has a maximum row size limit of 1MB. For this reason, some fields are truncated to make the log shorter than 1MB — 1KB, so that it can be inserted successfully into BigQuery. The 1KB is intentionally left as a buffer.</p><p>This analysis is also possible via <a href="https://support.google.com/a/answer/7575955?hl=en">Security Investigation Tool</a> however the flexibility of SQL queries customization and analysis on your favorite editors is also very comfortable.</p><p>Thank you. I hope this would provide you a Basic level understanding on using this feature. Feel free to share your feedback which would always motivate me for doing more :)</p><p>Stay Safe, Stay Indoors !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ce1be1fa10c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imaging Secure Mobile Workforce with G Suite]]></title>
            <link>https://medium.com/@kvnsanghvi/imaging-secure-mobile-workforce-with-g-suite-6be683c51bd?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be683c51bd</guid>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[mobility]]></category>
            <category><![CDATA[device-management]]></category>
            <category><![CDATA[mdm]]></category>
            <category><![CDATA[g-suite]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 17:32:49 GMT</pubDate>
            <atom:updated>2020-04-07T17:32:49.521Z</atom:updated>
            <content:encoded><![CDATA[<p>A <a href="https://miro.com/blog/features/remote-work-report/?zd_source=hrt&amp;zd_campaign=5621&amp;zd_term=chiradeepbasumallick"><em>recent</em></a> survey says — <strong>91% of employees had a remote meeting in the last 7 days</strong>. This shows the growing use of working remotely and increased usage of Mobile Apps especially after COVID-19 situation and in a way to increase the communication and collaboration among employees and customers, anytime and anywhere where <a href="https://gsuite.google.com/features/"><strong>G Suite</strong></a> plays a pivotal role. This also becomes a Security caution for Administrators on managing those devices with Security needs.</p><p>In this Blog, we will see the flexible and easy to implement options for your Mobile Workforce specifically- <strong>Mobile Device Management (MDM) with G Suite.</strong></p><p>Before jumping to type of flavors, let’s see in how many ways you can access your G Suite account from a Mobile Device.</p><p><strong>Managed Methods</strong>— Means Administrator have more control over your device and these methods are recommended since they are not slopy to reach <a href="https://support.google.com/a/answer/2751577?hl=en">Bandwith limits</a>.</p><ol><li>Android Sync — Access account using Gmail App on Android.</li><li>IOS Sync- Access account using Gmail App on IOS.</li><li>Google Sync (Exchange) — Access access using native Mail client using m.google.com:443.</li></ol><p><strong>Unmanaged Methods- </strong>Means Administrator have less control over your device and these methods are not recommended and your device won’t be tracked with Admin policies.</p><ol><li>IMAP</li><li>POP</li><li>Browser</li><li>OAuth (Still controllable using OAuth Whitelisting for 3rd party Apps but not with policies)</li></ol><p><strong>Types of Management flavors:</strong></p><p><strong>Basic (a.k.a Agent less)</strong> — Once this option is enabled by Admin, you can simply setup your G Suite account. The requirement here is to, have a screenlock (which most of us have) and Account wipe of Corporate data when user is leaving the organization. <em>A NO objection model for BYOD workforce :)</em></p><p><strong>Advanced</strong> — Once this option is enabled by Admin, you can setup your G Suite account with a pre-requisite of Google Device Policy (It’s an Agent which pushes Admin set policies to your Device). For e.g. Setting up a strong screenlock, Wipe the device after Failed attempts, Apps Management, Disable Camera and Setup a Device approval. Best supported on Android 6.0+.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/174/0*3gia9qWRbc_FLomg" /><figcaption>Google Device Policy (image source: play.google.com)</figcaption></figure><p><strong>Android for Work (a.k.a Containerization, Only for Android) </strong>— It separates your Work Apps and Personal Apps. In Work profile, Admins can restrict users to take screen capture, copy/paste data from Work to Personal space, Restriction users to download the Apps from Work play store. Best supported on Android 6.0+ with stock OS experience. You can also integrate a 3rd party EMM to manage your devices like Airwatch, Mass 360 etc. Question is why to invest in additional tools? :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*sI9MKZ_N4gx02HIAslpo4w.png" /><figcaption>Glimpse of Work Profile separated Briefcase icons (image Source: android.com)</figcaption></figure><p><strong>Company Owned Containerization: </strong>The only difference as compared to Android for Work is here you provide ownership of whole device to your Organization where it is fully controlled. Ideal option for companies providing Mobile devices /Handled devices to their employees. This is possible either via explicitly making Device owner option while setting up or uploading the serial number. Please note, this configuration is only supported after Factory reset of the device. Some of the key policies here is- Disable addition of Google accounts, Restrict USB transfer &amp; Bluetooth.</p><p>Lastly, Some of the Admin level snaps about Controlling the devices &amp; Reporting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gb7vc_HijwywuwSTFb7WA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjQdBrtMw9HZNaWIl3bVng.jpeg" /></figure><p><a href="https://support.google.com/a/answer/7425191?hl=en"><strong>G Suite Enterprise edition</strong></a> also provides a functionality to Automate Mobile Management tasks once any specific event like let’s say, rooted O.S. is detected then Block the device or Approve the Device based on Make of O.S.</p><p><strong><em>By the way</em></strong>, Google has extended it’s G Suite Enterprise Edition premium features to other G Suite editions, such as Live Streaming upto 100,000 participants, Recording a Meeting and Hangouts Meet call upto 250 participants until July 1, 2020 due to COVID-19 situation to make remote working even smoother. [<a href="https://gsuiteupdates.googleblog.com/2020/03/enabling-hangouts-meet-premium-features.html">Reference</a>]</p><p>Thank you. Hope this Blog would help you re-align / set a starting point to understand and execute Device Management functionalities with G Suite.</p><p>Your feedback would be very important for me :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be683c51bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Files Data Protection with G Suite]]></title>
            <link>https://medium.com/@kvnsanghvi/files-data-protection-with-g-suite-189e590cce2d?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/189e590cce2d</guid>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[data-breach]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[dlp]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 17:51:24 GMT</pubDate>
            <atom:updated>2020-03-11T17:51:24.177Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>A Worried Security Administrator says..</strong> A potential or A probable data leak may cost you a million or save you a fortune IF right tools and monitoring is in place and these are one of the many cyber security breaches which are on all time high!</blockquote><p>In this blog, I am going to share my thoughts on new Data Protection feature (a.k.a. new Drive DLP) released on <strong>Jan 28, 2020</strong> and this is available to <strong>G Suite Enterprise, G Suite for Education, G Suite Enterprise for Education, and Drive Enterprise editions </strong>which scans your Google Drive Files for DLP reasons.</p><p>In my opinion, this feature (Located at — <em>Admin console &gt; Security &gt; Data Protection) </em>introduces massive amount of enhancements over Legacy Drive Files DLP (<em>Located at — Admin console &gt; Rules) </em>due to following reasons:</p><ul><li>It now scans selectively on sections — <strong>Title, Body, Suggestions</strong> rather also whole file. (I’ll cover this with an example shortly).</li><li>Sections can be grouped with <strong>AND OR NOT</strong> conditions for precise scans.</li><li>Wider list of <strong>Predefined Content Matchers</strong> such as Indian Aadhar Number (:O), PAN Number, URL, IP Address, URL, DOB, Phone number and many of other International identities Passport, ICD numbers in addition to word scanning which was already available.</li><li><strong>Minimum Match count</strong> is introduced which is available till now with policy like Content Compliance to reduce the number of false positives by considering same more than one vs <strong>Unique count</strong> and set a definite count on it.</li><li><strong>Policy alerts</strong> can also set out to <strong>Non Admin Users</strong> such as Individual recipients or Google Groups for e.g.<em> infosecurity</em>.</li><li>Audit Rule directly in the <strong>Security Investigation Tool</strong>. This tool is highly customization in terms of search conditions and you can save and share Investigations to other Delegated Admins having Rule &amp; Drive view privileges.</li><li>View <strong>Top Incident Reports </strong>graph in Security Dashboard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*bQuynvpQUFDetd7W.png" /><figcaption><strong>Conditions Page</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*uJ8yogGqA65g56ZD.png" /><figcaption><strong>Top Incidents under Security Dashboard</strong></figcaption></figure><p><strong>Scenario:</strong> We want Monitor the Files which has Short File Names i.e. Title &lt;5 characters, to avoid mostly the naming conventions like Test, Abcd, Draft etc.</p><p>To execute this scenario — We would need to create a Regular expression under Security &gt; Data protection &gt; Detectors like this ^([A-Za-z0–9]{0,5})$.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*B4PfOTpwWlcTpk8HtXiO4g.png" /><figcaption><strong>Detectors</strong></figcaption></figure><p>Now, we will create a New Rule from <em>Security &gt; Data protection &gt; Rules &gt; New Rule.</em></p><p>Select the OU or Groups you want to apply the Rule or apply on whole domain <em>(It would only apply to relevant SKU users in Partial domain licensing)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*gKq8hPRK2Rutgu4yBCsf5w.png" /><figcaption><strong>Select the Regular Expression created earlier from Detectors</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*vDIPcrsHfG8lpos9dj-z2w.png" /><figcaption><strong>Leave Action as it is to start in Monitoring mode and Add email recipients (Non Admin / Security Group)</strong></figcaption></figure><p>Once you set the Rule to Active it would start Auditing the files and you can Investigate Rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*0uiaMGKCtEc_I1dU9JALCw.png" /><figcaption><strong>Audit Rule</strong></figcaption></figure><p>Hope you’ve find this Blog useful. Feel free to share your feedback/suggestions to make this even better next time :)</p><p>Thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=189e590cce2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience on SMTP with G Suite — 1]]></title>
            <link>https://medium.com/@kvnsanghvi/my-experience-on-smtp-with-g-suite-1-4216b79eb366?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4216b79eb366</guid>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[relay]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[smtp]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Sun, 08 Mar 2020 15:53:29 GMT</pubDate>
            <atom:updated>2020-03-08T15:53:29.650Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Experience on SMTP with G Suite — 1</h3><p>An Organization using <strong>G Suite as a Platform </strong>to improve their Productivity, Collaboration, might have a lot of <em>Internal or Customer facing</em> <em>Apps </em>responsible to regularly send notification/alerts for Business continuity or proactive actions, such as an <strong>HR </strong>Application sending Payroll data, Leave, Holiday announcements, <strong>Firewall/Network</strong> application to send Critical alerts about Server up-down time, <strong>Printer </strong>Application to report the number of scans happening across the users or an <strong>Accounting</strong> application to send Finance related data etc. All have a common purpose to send notification/alerts — this is where <a href="https://support.google.com/a/answer/176600?hl=en">G Suite SMTP hostnames</a> can be leveraged according to your requirements.</p><p>As the saying goes, Design phase is the most important so it’s crucial to Discover aspects about your Business needs for using an SMTP otherwise changes post implementation might involve complexities as the system would already be live. Here are, those parameters I’ve used to identify which SMTP Hostname suits the best.</p><ul><li>Business need of using SMTP:</li><li>Name and Version of the Application:</li><li># of emails to be send Per day in Implementation:</li><li># of emails to be send Per day after 3 months:</li><li># of emails to be send in Peak traffic:</li><li>Direction of emails — Internal / External:</li><li>IP Address / Mask of the Application:</li><li>SSL / TLS Support:</li></ul><p><strong>Option 1 — Restricted Gmail SMTP Server </strong>(aspmx.l.google.com)</p><p><strong>Quick Intro about Me:</strong></p><ul><li>I was designed to send emails only within G Suite &amp; Gmail environment.</li><li>I run on port 25 which is the easiest configuration without any Authentication.</li><li>I do not have Sending limits.</li><li>User <strong><em>Receiving limits</em></strong> per user per day gets applied.</li><li>Per Minute — 60, Per Hour — 3600, Per Day — 86400</li><li>Application IP is required to add in SPF Record.</li><li>I am the recommended option to serve Internal alerts.</li></ul><p><strong>Option 2 — Gmail SMTP Server</strong> (smtp.gmail.com)</p><p><strong>Quick Intro about Me:</strong></p><ul><li>I was designed to send emails upto 2000 emails. (Internal &amp; External)</li><li>I run on port 465 &amp; 587.</li><li>I need User &amp; Pass for Authentication.</li><li>Use App Specific Password or Enable Captcha &amp; Less Secure App to Sign-In.</li><li>I am the recommended option for Customer facing Application.</li></ul><p><strong>Option 3 — G Suite SMTP Relay </strong>(smtp-relay.gmail.com)</p><p><strong>Quick Intro about Me:</strong></p><ul><li>I was designed to send emails upto 10000 emails with a catch. (Internal + External)</li><li>I run on port 25, 465, 587.</li><li>I definitely need an IP Address to Authenticate myself with your Application.</li><li>I may or may not need User &amp; Pass for Authentication.</li><li>I am recommended option for your Mission Critical Customer Facing Application such as SAP.</li></ul><p>To understand my sending limits, let’s take an example of an Organization with 99 Licenses (domain.com).</p><p>IF you’re using G Suite User as your From: Address in Application:</p><ul><li>Send emails to 10,000 unique Recipients.</li><li>Unique Recipient is defined as:</li><li>10 Emails sent to john@domain.com count as 1.</li></ul><p>IF you’re using Non G Suite User as your From: Address in Application:</p><ul><li>Send emails to 12870 Total Recipients (130 * 99) per day.</li><li>Send emails to 891 Total Recipients per 10 minute (9 * 99)</li><li>Total Recipient is defined as:</li><li>10 Emails sent to john@domain.com counts as 10.</li></ul><p><strong>Important:</strong> All of the Limits are hard-coded. Spam filters still apply and it is recommended to use <a href="https://support.google.com/a/answer/81126?hl=en">Bulk Sender Guidelines</a>.</p><p>Well, this Blog was about understanding the SMTP configuration. At the end of the day, it really depends upon No. &amp; Type of Applications you’ve and how well it is segregated based on Traffic. I would be covering How to Troubleshoot &amp; Use cases in my next Blog.</p><p>Thank you, please share your valuable feedback. Stay Tuned :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4216b79eb366" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Security 101: Puzzled DLP]]></title>
            <link>https://medium.com/@kvnsanghvi/email-security-101-puzzled-dlp-c2db4a2650ba?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2db4a2650ba</guid>
            <category><![CDATA[dlp]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[email-security]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[regex]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Fri, 27 Jul 2018 19:24:04 GMT</pubDate>
            <atom:updated>2018-07-27T19:37:39.345Z</atom:updated>
            <content:encoded><![CDATA[<p>Designing and Maintaining a Security framework is essential part for most of the Software Apps these days whether it could be Cloud or On Premise.</p><p>Primarily because user tends to receive high number of Spam emails than ever before.</p><p><strong>What is a Spam Email?</strong></p><p><em>irrelevant or unsolicited messages sent over the Internet, typically to a large number of users, for the purposes of advertising, phishing, spreading malware, etc.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*hyaG6F9ZNugLW798" /><figcaption>Spam Story</figcaption></figure><p>Examples:</p><p><strong>i.e.</strong> Design of a look alike fake login page which attracts user to click on some hyperlink and asked for credentials leading to account compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*5iuLpUMD88OkHcLC15F5eQ.png" /></figure><p><strong>i.e.</strong> Wire (Money) transfer requests which happens mostly between CFO &amp; CEO. This emails are so neatly crafted that most of us would be attracted to response on the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*h7n4Cz_5Dok5Jmr7g5lczw.png" /></figure><p><strong>i.e.</strong> Harmful attachment emails which might your entire network and locking all the files (Ransomware).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r043S4jULDxHkOEw.png" /></figure><p>It’s important to develop a Security incident response plan and there should be some level of user Security training to understand the basic patterns of Spam vs Non Spam emails based on Subject, Signature, Fonts, Type of attachment and last but not the least — Email Headers.</p><p>Security incident response plan can be a reactive measure and Security awareness is an ongoing process which is dependent on end users. Having said this, Implementing Admin level controls can be worth doing and one of the important aspects is <strong>DLP (Data Loss Prevention)</strong> to collectively address this scenario.</p><p>DLP not only mitigates your Security issues from external threats, it can also be used to protect your critical business related information. I would rather call it as an ECG view of your data flowing in/out from systems.</p><p>There are many types of DLP whether it could be <strong>End Point DLP</strong> (Hardware based), <strong>Gateway DLP</strong>(Scanning of emails using 3rd party systems) and the <strong>Email DLP</strong> which comes in built with your Email server and we would focus more on this today.</p><p><strong>Content Policies</strong></p><p>These are the policies to scan your email based on words, let’s say — if <strong>keywords </strong>like confidential, malware, wire transfer, resume etc. are found in the email then it should be rejected upfront or it is held for review in Quarantine. With any security system you can always mitigate the issue and that’s why there are chances of <strong>false positives</strong>, so slowly deploy and modify your policies by noticing user patterns.</p><p><strong>Regular Expressions</strong></p><p>Going one step ahead, which is the basic skills in programming — yes that’s Regular expressions (RE). RE is useful to define patterns, patterns which are common across the characters. For e.g. A Credit Card/PAN Card is normally of 16 digit but varies from user to user, grouping of keywords and detecting a hyperlink etc.</p><p><strong>Regular expressions can provide you accurate matches and key point in learning any DLP system.</strong></p><p><strong>Use case :</strong> To detect Indian PAN Card Number</p><p><strong>Sample PAN Card</strong>: ABCD12345H</p><p><strong>Sample Regular Expression:</strong> ^[A-Za-z]{4}[0–9]{4}[A-Za-z]{1}$</p><p><strong>Smart Regular Expression: </strong>^[A-Za-z]{4}[/-.][0–9]{4}[A-Za-z]{1}$</p><p><em>Explanation:</em></p><p>^-start of the string</p><p>[A-Za-z]{4}- Match Caps/Small Alphabets 4 times.</p><p>[0–9]{4}-Match Numbers from 0–9 4 times.</p><p>[A-Za-z]{1}- Match Caps/Small Alphabets once.</p><p>$-End of the String</p><p><strong>Note:</strong> Smart Regular expression can catch variety of combinations as shown in the example which matches additional characters <strong>/-.</strong></p><p><strong>OCR (Optical Character Recognition)</strong></p><p>OCR converts images to text so there is additional layer of protection for images data. Regular expressions can also be applied here.</p><p>I hope you’ve enjoyed this article. Please do comment, like and share.</p><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2db4a2650ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Security 101: Dissected DMARC]]></title>
            <link>https://medium.com/@kvnsanghvi/email-security-101-dissected-dmarc-593ae5b4c4da?source=rss-a8c871fd56f------2</link>
            <guid isPermaLink="false">https://medium.com/p/593ae5b4c4da</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[dmarc]]></category>
            <dc:creator><![CDATA[Kevin Sanghvi]]></dc:creator>
            <pubDate>Mon, 09 Jul 2018 12:27:55 GMT</pubDate>
            <atom:updated>2018-08-05T14:25:06.992Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Email Security 101: Dissected DMARC</strong></p><p>Email is the fundamental mode of communication almost in every industry. Keeping this in mind, it is easy to exchange workplace communication on the go and within no time. Thanks to the internet!</p><p>However, with any digital solution there is a need to maintain the Security considering the rise of Security attacks such as Spoofing, Phishing, Ransomware etc.</p><p>One of the basic parameter for any domain is to implement DMARC.</p><p>Okay! So, let’s begin.</p><p><strong>Thumb Rule</strong>: The underlying thing for DMARC to succeed is Email Authentication is the combination of SPF &amp; DKIM. In Some cases, it’s only SPF / DKIM.</p><p><strong>SPF (Sender Policy Framework)</strong></p><p>Type of TXT record. Whitelists your Outbound Traffic. One of the main factor in identifying whether the email should be marked as Spam or not.</p><p><strong>DKIM (Domain Keys Identified Mechanism)</strong></p><p>Signs your Outbound emails, making sure recipients can verify the signature on their end such that email isn’t manipulated in transit.</p><p>DMARC stands for <em>Domain-based Message Authentication, Reporting &amp; Conformance.</em></p><p><strong>Why DMARC</strong></p><p>Spammers can sometimes forge the “<strong>From</strong>” address on email messages so the spam appears to come from a legit in your domain. To help prevent this sort of abuse, DMARC record is created. By defining a policy, you can help<strong> combat phishing</strong> to protect u<strong>sers and your reputation.</strong></p><p><strong>DMARC Light Bulbs:</strong></p><ul><li>DMARC is free to use.</li><li>DMARC builds on top of SPF + DKIM.</li><li>DMARC actions on From: address and Outbound Email Traffic of your domain.</li><li>Scenario: DMARC is evaluated for google.com while it is not for g00gle.com as both domains are different and that changes the server.</li><li>DMARC increases your domain reputation.</li><li>DMARC is a recommended pick compared to IP Lock because IP Lock only applies to G Suite Internal Recipients while DMARC can be evaluated by every recipient domain since it works on DNS.</li><li>It’s recommended to use Quarantine mode considering lot of false positives in Reject mode.</li></ul><p><strong>Stages of DMARC</strong></p><ol><li><strong>Monitoring (p=none)</strong> first and foremost stage to evaluate your outbound email traffic in case you’re using tons of Application servers, for smaller organization it’s a fairly easy setup. This is just to identify SPF, DKIM alignment.</li><li><strong>Spam (p=quarantine)</strong> Once SPF, DKIM is in place, spam stage can be configured to route any emails sent out from your domain that fails SPF, DKIM checks would be reaching in Spam.</li><li><strong>Reject (p=reject) </strong>As the name suggests — instead of routing to spam it can be directly be rejected so in the case sender would get a bounce back message.</li></ol><p><strong>Typical DMARC record (TXT record)</strong></p><ul><li>v=DMARC1; Version</li><li>p=quarantine; Stage</li><li>rua=mailto:group@domain.com; DMARC reports email</li><li>pct=25 only 25% / 100 % would be reaching Spam</li></ul><p>Feel free to put your comments / feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=593ae5b4c4da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>