<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged cloud-security</title>
<link>https://coderlegion.com/tag/cloud-security</link>
<description>Powered by Question2Answer</description>
<item>
<title>EU's Controversial Chat Control Amendment Passed and Potential Security Implications</title>
<link>https://coderlegion.com/22437/eus-controversial-chat-control-amendment-passed-and-potential-security-implications</link>
<description>&lt;p&gt;On July 3rd, 2026, a controversial amendment was passed to an already controversial legislation described by many as a normalization of mass surveillance and undermining legitimate users' privacy online. In this article, we will dive deeper into the security implications for messaging service platforms.&lt;/p&gt;
&lt;h4 id=&quot;scanning-user-messages&quot;&gt;Scanning User Messages&lt;/h4&gt;
&lt;p&gt;As per the new amendment that was passed, platforms will be able to voluntarily scan user messages that are not encrypted end-to-end for any material involving child sexual abuse. This means messaging platforms like those on mainstream social media will be able to run scans over private messages between users, including photos, texts, and maybe even videos, to detect any potentially illegal material.&lt;/p&gt;
&lt;p&gt;In practice, messaging platforms now have a legal basis to read private messages between users and hide behind the new amendment.&lt;/p&gt;
&lt;h4 id=&quot;how-&quot;&gt;How?&lt;/h4&gt;
&lt;p&gt;The big question is more technical rather than legal. However, the implications can be severe for both users and platforms, especially if platforms don't have a properly structured solution.&lt;/p&gt;
&lt;p&gt;The most obvious solution that comes to mind is that they could create a cadence for running all the stored messages to be scanned by an LLM solution and configure alerts for any content that could raise red flags to be reviewed by the platform and potentially reported and delivered to the corresponding authorities either through a legal team or a dedicated platform. I'm not aware at the moment of any platforms that are made for such a purpose, but I'm speculating how this could work in practice.&lt;/p&gt;
&lt;p&gt;If private user messages are encrypted at rest, this means there will also be a considerable computing cost for platforms to decrypt the content during the scanning periods.&lt;/p&gt;
&lt;p&gt;If we take Telegram as an example, Telegram claims that they deliver 15 billion messages per day as of July 13, 2026. We do not know how many of those messages belong to their secret chat feature, so let's assume that the majority of the messages are not encrypted end-to-end.&lt;/p&gt;
&lt;h4 id=&quot;technical-risks&quot;&gt;Technical Risks&lt;/h4&gt;
&lt;p&gt;If we assume that platforms will rely on LLM-based solutions, we have to discuss the risks.&lt;/p&gt;
&lt;h5 id=&quot;ai-false-positives-and-bias&quot;&gt;AI False Positives and Bias&lt;/h5&gt;
&lt;p&gt;LLMs do make mistakes. This is why NIST AI RMF as well as OWASP Top 10 AI Security and Governance standards require human-in-the-loop for sensitive decisions. While human-in-the-loop is considered a best practice for sensitive decisions, bringing AI into the mix also brings with it all the common risks, including overconfidence, LLM bias, and drift.&lt;/p&gt;
&lt;p&gt;Just running an AI scan doesn't mean that it will always properly classify the content. AI would be great for existing content but not for new content if AI isn't trained for it.&lt;/p&gt;
&lt;h5 id=&quot;scanning-tools&quot;&gt;Scanning Tools&lt;/h5&gt;
&lt;p&gt;Effective scanning solutions are usually vendor-provided and bring with them their own risks, since any mistake on the vendor's side could expose all users' private data and even cause a data breach. Scanning tools that use LLM integrations require exposing the decrypted users' private messages to an external party. If not handled securely on both ends of the process (platform and vendor), the risk and potential of data breaches increases further.&lt;/p&gt;
&lt;h5 id=&quot;average-users-think-messages-are-private&quot;&gt;Average Users Think Messages Are Private&lt;/h5&gt;
&lt;p&gt;Let's be honest. The majority of platform users aren't technical. I have personally encountered countless people who use private messages to store secrets such as credit card numbers, passwords, and other personal and sensitive content.&lt;/p&gt;
&lt;p&gt;Platforms have no way to prevent users from using private messages in that capacity, and this is why platforms do not have the incentive to scan users' messages in the first place, as this would arguably impact their profits as well as expose them to legal liabilities.&lt;/p&gt;
&lt;h4 id=&quot;alternative-solutions&quot;&gt;Alternative Solutions&lt;/h4&gt;
&lt;p&gt;One way in which platforms could perform a scan without compromising users' privacy (at least before an alert is triggered) is to instead perform hash-based comparisons.&lt;/p&gt;
&lt;p&gt;If platforms have specific files or texts to monitor for, they could compare the hashes instead of the decrypted content.&lt;/p&gt;
&lt;h4 id=&quot;there-is-no-perfect-solution&quot;&gt;There Is No Perfect Solution&lt;/h4&gt;
&lt;p&gt;Even if we deploy hash-based detection instead of scanning users' private messages, the compute cost would be huge because not only do some platforms have to keep content encrypted at rest but also run hashing algorithm comparisons to detect the content in question if it exists.&lt;/p&gt;
&lt;p&gt;Hashing also can be useful only for common or known content. So hashing wouldn't be that useful to spot modified content.&lt;/p&gt;
&lt;p&gt;AI could do slightly better in terms of spotting patterns. However, this takes us again into the issues and risks mentioned earlier.&lt;/p&gt;
&lt;h4 id=&quot;environmental-impact&quot;&gt;Environmental Impact&lt;/h4&gt;
&lt;p&gt;The sheer volume of messages exchanged daily globally between users is already stressing data centers that are trying to expand their capacity to accommodate both regular companies' needs as well as AI.&lt;/p&gt;
&lt;p&gt;The carbon footprint of scanning users' private messages at scale will only increase the burden on an already heating planet.&lt;/p&gt;
&lt;h4 id=&quot;ethical-considerations&quot;&gt;Ethical Considerations&lt;/h4&gt;
&lt;p&gt;Relying on AI LLMs to flag users could have severe consequences on human rights if someone is flagged or accused of something illegal by mistake or by error. Even with human-in-the-loop, human biases could also lead to discrimination and bias based on the user's legally protected traits such as language, nationality, or religion.&lt;/p&gt;
&lt;p&gt;The fact that human intervention might be needed (platform's forensic or security teams) to manually review flagged content and potentially users' private conversations raises serious implications for users' privacy. Just because an AI flagged a certain user's messages doesn't mean that they are automatically guilty.&lt;/p&gt;
&lt;p&gt;In edge cases, users might accidentally share content that may seem, at surface, like a meme and end up in criminal prosecution. The accusation alone could have severe implications on a person's life in terms of society, their own family, and more.&lt;/p&gt;
&lt;h4 id=&quot;alternative-solutions-1&quot;&gt;Alternative Solutions&lt;/h4&gt;
&lt;p&gt;In my opinion, all children deserve protection. Violation of privacy of individuals or groups online is not protection in the pure sense. A more effective strategy to combat child abuse is by grassroots movements, awareness campaigns, and better legislation that addresses structural problems such as inequality and domestic violence.&lt;/p&gt;
&lt;h4 id=&quot;useful-sources&quot;&gt;Useful Sources&lt;/h4&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://oeil.europarl.europa.eu/oeil/en/document-summary?id=1891790&quot;&gt;https://oeil.europarl.europa.eu/oeil/en/document-summary?id=1891790&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://telegram.org/blog/100-million&quot;&gt;https://telegram.org/blog/100-million&lt;/a&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/22437/eus-controversial-chat-control-amendment-passed-and-potential-security-implications</guid>
<pubDate>Mon, 13 Jul 2026 05:56:00 +0000</pubDate>
</item>
<item>
<title>How Do You Protect Privacy &amp; Security in Cloud Platforms Amid Encryption Risks and AI Threats?</title>
<link>https://coderlegion.com/19797/how-do-you-protect-privacy-security-in-cloud-platforms-amid-encryption-risks-and-threats</link>
<description>&lt;p&gt;Originally inspired by this Quora question:&lt;/p&gt;
&lt;p&gt;“How do you protect the privacy &amp;amp; security in ‘the cloud platforms’&lt;br&gt;
in an era of compromised encryption, government backdoors, &amp;amp; AI-driven&lt;br&gt;
hacking threats to encryption &amp;amp; user confidentiality?”&lt;/p&gt;
&lt;p&gt;Source: &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.quora.com/How-do-you-protect-the-privacy-security-in-the-cloud-platforms-in-an-era-of-compromised-encryption-government-backdoors-AI-driven-hacking-threats-to-encryption-user-confidentiality&quot;&gt;Quora question URL&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nowadays, companies are more gearing towards open-source solutions. While mainstream cloud providers such as AWS, Azure and others are still being used, security best practices still apply regardless of the cloud provider. In addition, companies increasingly adopting a mix between native cloud solutions and open-source for the same reason. This is why containers are important.&lt;/p&gt;
&lt;p&gt;Some companies that adopt a multi-cloud strategy reduce confidentiality risks by having for example encryption keys handled by third party (not with the same cloud provider). This allows them to reduce the risks of vendor’s insider threats.(Check below figure)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=14168524154282217882&quot; alt=&quot;Multi-Cloud Key Management Strategy&quot;&gt;&lt;/p&gt;
&lt;p&gt;This strategy helps isolate the data from the cloud providers and reduce vendor related risks.&lt;/p&gt;
&lt;p&gt;As for encryption, AES 256 based encryptions are still considered strong enough. Quantum computing will definitely require many organizations to change their encryption algorithms but good news is that Quantum resistant encryption is already taking pace in the market.&lt;/p&gt;
&lt;p&gt;AI vulnerabilities are real and this is why companies that are taking structured approach towards AI, are using AI to mitigate AI related risks.&lt;/p&gt;
&lt;p&gt;Government backdoors are a real problem that hurts both businesses and public trust. This is why we will see more and more adoption of End-to-End encryption. Currently a lot of platforms have either true E2E or semi-E2E. End-to-End encryption became now almost a trust standard but some companies unfortunately are using deceptive tactics to promote themselves as E2E when they actually are not.&lt;/p&gt;
&lt;p&gt;To prove that E2E solves the problem of backdoors, there were attempts by the UK government to ban it in 2015 but it didn’t go through. (Ellis, C. (2018). ‘On Backlash: Emotion and the Politicisation of Security.’ Politics, 38(3), pp. 267–284. Political Studies Association, UK.)&lt;/p&gt;
&lt;p&gt;From commercial perspective, no business benefits from having compromised security or government backdoors because it hurts clients’ trust and confidence.&lt;/p&gt;
&lt;p&gt;Organizations quite often think that compromising privacy improves security but as a matter of fact, it doesn’t. There are always other alternative methods that organizations can follow without compromising privacy but it boils down to leaders to be aware of the risks of solutions that compromise privacy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt; Quora question → [https://www.quora.com/How-do-you-protect-the-privacy-security-in-the-cloud-platforms-in-an-era-of-compromised-encryption-government-backdoors-AI-driven-hacking-threats-to-encryption-user-confidentiality]&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/19797/how-do-you-protect-privacy-security-in-cloud-platforms-amid-encryption-risks-and-threats</guid>
<pubDate>Sat, 06 Jun 2026 05:33:38 +0000</pubDate>
</item>
<item>
<title>Understanding Cloud Security with AWS Identity and Access Management (IAM)</title>
<link>https://coderlegion.com/1900/understanding-cloud-security-with-aws-identity-and-access-management-iam</link>
<description>&lt;p&gt;In the &lt;strong&gt;AWS Shared Responsibility Model&lt;/strong&gt;, AWS is responsible for the &lt;strong&gt;security &lt;em&gt;of&lt;/em&gt; the cloud&lt;/strong&gt;, while customers are responsible for &lt;strong&gt;security &lt;em&gt;in&lt;/em&gt; the cloud&lt;/strong&gt;. This means customers are accountable for securing the AWS services they use, such as &lt;strong&gt;Amazon EC2&lt;/strong&gt;, &lt;strong&gt;Amazon S3&lt;/strong&gt;, &lt;strong&gt;Amazon VPC&lt;/strong&gt;, &lt;strong&gt;Amazon DynamoDB&lt;/strong&gt;, &lt;strong&gt;Amazon RDS&lt;/strong&gt;, &lt;strong&gt;Amazon IAM&lt;/strong&gt;, and more.&lt;/p&gt;
&lt;p&gt;In this article, we’ll focus on &lt;strong&gt;Cloud Security with AWS Identity and Access Management (IAM)&lt;/strong&gt;—a powerful tool for controlling access to AWS resources.&lt;/p&gt;
&lt;h3 id=&quot;what-is-aws-iam-&quot;&gt;&lt;strong&gt;What is AWS IAM?&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;AWS Identity and Access Management (IAM)&lt;/strong&gt; is a web service that allows you to securely manage access to AWS resources. With IAM, you define &lt;strong&gt;who&lt;/strong&gt; can access what and under what conditions. It provides the infrastructure necessary to manage &lt;strong&gt;authentication&lt;/strong&gt; (who can sign in) and &lt;strong&gt;authorization&lt;/strong&gt; (what they can do) across your AWS account.&lt;/p&gt;
&lt;h3 id=&quot;identities-in-iam&quot;&gt;&lt;strong&gt;Identities in IAM&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;When you first create an AWS account, you start with a &lt;strong&gt;root user&lt;/strong&gt;—the identity that has full access to all AWS services and resources. This root user is tied to the email address used during account creation.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt; &lt;strong&gt;Security Best Practice:&lt;/strong&gt; Avoid using the root user for day-to-day tasks. Instead, create an &lt;strong&gt;IAM user&lt;/strong&gt; with administrative privileges and use that for regular operations.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;access-management&quot;&gt;&lt;strong&gt;Access Management&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Once a user is created in IAM, they can authenticate using their credentials. IAM evaluates whether the user has permission to access specific AWS resources. This is determined by the &lt;strong&gt;policies&lt;/strong&gt; attached to the user or their group or role.&lt;/p&gt;
&lt;p&gt;For instance, when a user selects a service in the AWS Console, a request is sent to check:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is the user authorized?&lt;/li&gt;
&lt;li&gt;What policies are in place?&lt;/li&gt;
&lt;li&gt;Are there any additional restrictions?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;IAM ensures &lt;strong&gt;only authorized principals&lt;/strong&gt; (users, roles, or federated identities) can access resources.&lt;/p&gt;
&lt;p&gt;With IAM, you can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create users and user groups&lt;/li&gt;
&lt;li&gt;Assign &lt;strong&gt;fine-grained permissions&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Enforce security controls like &lt;strong&gt;MFA&lt;/strong&gt; and password policies&lt;/li&gt;
&lt;li&gt;Define &lt;strong&gt;who can do what&lt;/strong&gt; across your AWS account&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;tags&quot;&gt;&lt;strong&gt;Tags&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Tags&lt;/strong&gt; are key-value pairs used to label AWS resources. They help with identification, organization, and cost tracking.&lt;/p&gt;
&lt;p&gt;For example, if you have two EC2 instances, you might tag one as &lt;code&gt;&quot;Environment: Development&quot;&lt;/code&gt; and the other as &lt;code&gt;&quot;Environment: Production&quot;&lt;/code&gt;—making management and filtering easier.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=7444366846553007841&quot; alt=&quot;Tag Example&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;key-components-of-iam&quot;&gt;&lt;strong&gt;Key Components of IAM&lt;/strong&gt;&lt;/h3&gt;
&lt;h4 id=&quot;iam-users&quot;&gt;&lt;strong&gt;IAM Users&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;These represent individuals who need access to your AWS resources—like you or your teammates.&lt;/p&gt;
&lt;h4 id=&quot;iam-groups&quot;&gt;&lt;strong&gt;IAM Groups&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;User groups (e.g., &quot;Admins&quot;, &quot;Developers&quot;) allow you to manage permissions collectively. Policies attached to a group apply to all its users.&lt;/p&gt;
&lt;h4 id=&quot;iam-roles&quot;&gt;&lt;strong&gt;IAM Roles&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Roles provide &lt;strong&gt;temporary access&lt;/strong&gt; to AWS resources. They're ideal for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Applications running on EC2&lt;/li&gt;
&lt;li&gt;Users from another AWS account&lt;/li&gt;
&lt;li&gt;Federated users from corporate directories&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;iam-policies&quot;&gt;&lt;strong&gt;IAM Policies&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Policies are JSON or Visual Editor documents that define permissions. A policy specifies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Effect&lt;/strong&gt;: &lt;code&gt;Allow&lt;/code&gt; or &lt;code&gt;Deny&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Action&lt;/strong&gt;: What the principal can do (e.g., &lt;code&gt;ec2:StartInstances&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Resource&lt;/strong&gt;: What the action applies to&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example policy:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Allows all actions on a development EC2 instance&lt;/li&gt;
&lt;li&gt;Denies tag creation and deletion&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=16549359099041480947&quot; alt=&quot;IAM Policy Example&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;account-alias&quot;&gt;&lt;strong&gt;Account Alias&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;An &lt;strong&gt;account alias&lt;/strong&gt; is a friendly name you can assign to your AWS account, making sign-in URLs more memorable than using your 12-digit AWS account ID.&lt;/p&gt;
&lt;p&gt;Instead of:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;https://88885770278076.signin.aws.amazon.com/console
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can use:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;https://your-company.signin.aws.amazon.com/console
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=14048944233023037100&quot; alt=&quot;Account Alias Example&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;iam-security-best-practices&quot;&gt;&lt;strong&gt;IAM Security Best Practices&lt;/strong&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Avoid using the root account&lt;/strong&gt; for regular tasks&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Enable Multi-Factor Authentication (MFA)&lt;/strong&gt; for all users&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Follow the principle of least privilege&lt;/strong&gt;—grant only the permissions necessary&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rotate access keys and passwords&lt;/strong&gt; regularly&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Use AWS CloudTrail&lt;/strong&gt; to log and monitor activity&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Use IAM roles&lt;/strong&gt; for applications instead of hardcoding credentials&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;common-iam-use-cases&quot;&gt;&lt;strong&gt;Common IAM Use Cases&lt;/strong&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Grant an EC2 instance access to read/write data in S3&lt;/li&gt;
&lt;li&gt;Allow developers to deploy to Lambda but not modify billing settings&lt;/li&gt;
&lt;li&gt;Share access between AWS accounts using cross-account roles&lt;/li&gt;
&lt;li&gt;Integrate with corporate identity providers using SAML or Active Directory&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;conclusion&quot;&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;IAM is at the heart of AWS security.&lt;/strong&gt; By effectively managing identities and access, you can maintain strong security postures, minimize risks, and ensure only the right people (or systems) have access to the right resources at the right time.&lt;/p&gt;
&lt;p&gt;Security in the cloud starts with smart IAM practices.&lt;/p&gt;
</description>
<category>Identity &amp; Access Management</category>
<guid isPermaLink="true">https://coderlegion.com/1900/understanding-cloud-security-with-aws-identity-and-access-management-iam</guid>
<pubDate>Sun, 20 Apr 2025 10:15:43 +0000</pubDate>
</item>
</channel>
</rss>