<?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 Costin Canciu on Medium]]></title>
        <description><![CDATA[Stories by Costin Canciu on Medium]]></description>
        <link>https://medium.com/@costin.canciu?source=rss-ae81416ef85c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*XwouSqWpWv2DdxGS.jpg</url>
            <title>Stories by Costin Canciu on Medium</title>
            <link>https://medium.com/@costin.canciu?source=rss-ae81416ef85c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:22:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@costin.canciu/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[Building scalable SOAR infrastructure]]></title>
            <link>https://medium.com/@costin.canciu/building-scalable-soar-infrastructure-84ecd78624b0?source=rss-ae81416ef85c------2</link>
            <guid isPermaLink="false">https://medium.com/p/84ecd78624b0</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[soar]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Costin Canciu]]></dc:creator>
            <pubDate>Sun, 30 Jan 2022 16:23:44 GMT</pubDate>
            <atom:updated>2022-02-03T19:38:32.191Z</atom:updated>
            <content:encoded><![CDATA[<p>Nowadays, cybersecurity teams are facing massive burden — they need to handle huge number of incidents, which overcomes the amount of available resources. Manual tasks, missing documentation and lack of personnel have left security operations teams struggling to keep up with the growing volume of threats. This is where <strong>security orchestration, automation and response (SOAR) </strong>comes into play. SOAR platforms typically provide case management capabilities for security incidents, in order to support efficient investigation. This helps companies improve overall KPIs and save valuable time and costs. This is done through different automations supported by the platform — playbooks, scripts, enrichment.</p><p><strong>Why do we need scalability?</strong></p><p>Cybersecurity teams have to cope with more vulnerabilities than ever due to the rapidly expanding attack surface. The amount of attack vectors has grown substantially over the past years since data is migrated to the cloud, and this is expected to grow exponentially.</p><p>Large companies can expect a huge number of incidents per year — hundreds of thousands, while the alerts count can exceed one million. In the same time, there will be multiple security analysts working in parallel. This will generate a huge number of simultaneous jobs, resulting in massive load for the SOAR platform.</p><p>Moreover, the number of SOAR scripts and automations will grow over time. The source code needs to be written efficiently in order to achieve resilience and to shorten future development efforts.</p><p><strong>I. Choosing the architecture</strong></p><p>One of the earliest stages and probably the most important is the planning &amp; design phase, when the deployment specifications are buiilt, both hardware and software.</p><p>Most of the SOAR solutions provide the option of a distributed deployment, where multiple servers can be added as “nodes” to load balancing groups. This allows to split the workload between different integrations or instances, and can greatly improve the platform performance.</p><p>Another out of the box feature is setting a backup server for the master server. Users should not experience any downtime when it comes to a platform that handles security incidents. Besides the risk of critical alerts not being handled, this can also lead to inconsistencies in data and reports for historical data. If the SOAR platform does not come with a failover solution, the OS level backup should at least be performed.</p><p><strong>II. Dropping duplicate data</strong></p><p>Since most of the incidents are generated by a SIEM, multiple duplicate alerts might be generated, especially if throttling is not well configured. Those are occupying unnecesary space, and they are also generating unnecesary scripts and automations calls. Having an automated process in place for handling duplicate alerts has a huge impact in the overall incident handling process.</p><p><strong>III. Development</strong></p><p>Most of the SOAR platforms allow the development of scripts &amp; automations using Python. Since Python 2 is no longer maintained, all scripts should be developed using Python 3+ version.</p><p>A critical aspect is ensuring the quality and maintainability of the scripts. Source code must be written according to the clean code principles of programming, such as DRY — Don’t Repeat Yourself or KISS — Keep It Simple and Stupid.</p><p>Naming conventions should be enforced for both scripts and variables, and consistency should be applied across the whole SOAR codebase. A versioning system such as GIT and a CI&amp;CD pipeline can also help in assuring a healthy SOAR development process.</p><p>Higher components should be split into smaller, reusable components. The number of API calls should also be limited as much as possible to remove overhead. In the end, the script should be optimized for high performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84ecd78624b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I built an Android Spyware using Ruby on Rails and Metasploit]]></title>
            <link>https://medium.com/@costin.canciu/how-i-built-an-android-spyware-using-ruby-on-rails-and-metasploit-d7a8993348bc?source=rss-ae81416ef85c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7a8993348bc</guid>
            <category><![CDATA[android-spy-app]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[spyware]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Costin Canciu]]></dc:creator>
            <pubDate>Sat, 06 Nov 2021 15:53:20 GMT</pubDate>
            <atom:updated>2021-11-06T15:54:34.030Z</atom:updated>
            <content:encoded><![CDATA[<p>How I built an Android Spyware using Ruby on Rails and Metasploit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yv9GnGEyJN2T_69Ei4AJaw.png" /></figure><p>Last year I had to present my dissertation paper and I chose to build a spyware tool for Android devices. I got a lot of requests to document the installation process, so feel free to check it if you are passioned about hacking stuff.</p><p><strong>Disclaimer</strong></p><p>This software is for educational purposes only. Using the tool for spying real devices is strictly illegal. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHOR ASSUMES NO RESPONSIBILITY FOR YOUR USAGE.</p><p>We strongly recommend you to have coding and Docker knowledge. Do not hesitate to read the source code and understand the mechanism of the tool.</p><p>The tool, which is education only, spawns a command &amp; control web GUI for spying Android devices, which is built around Metasploit &amp; ADB.</p><p>The tool:</p><ul><li>Uses Docker containers to simulate a Kali Linux environment with the metasploit framework</li><li>Uses RPC calls to communicate with the Metasploit framework API</li><li>Uses ADB to install the payload on the target device &amp; implement additional functionalities (the device must be in the same LAN)</li></ul><p><strong>Installation</strong></p><p>For installation you will need Docker and Chocolatey. Since the application is dependent on many third party tools, Docker helps to deliver the solution without the burden of downloading and configuring all the neccessery packages.</p><p>All the installation steps are available on my Github: <a href="https://github.com/CanciuCostin/android-spyware"><strong>https://github.com/CanciuCostin/android-spyware</strong></a></p><p>Once you’ve installed and started the app, you will be able to initiate different actions such as:</p><ul><li>taking camera pictures</li><li>dumping contacts, phone calls and messages</li><li>accessing file system</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYu8hYxv0RGkMCTTZlgjHA.png" /></figure><p>Don’t hesitate to contact me if you have any questions on how to test the tool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7a8993348bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Exploit Released: Microsoft ‘Zerologon’]]></title>
            <link>https://medium.com/@costin.canciu/windows-exploit-released-microsoft-zerologon-886d5c15d02d?source=rss-ae81416ef85c------2</link>
            <guid isPermaLink="false">https://medium.com/p/886d5c15d02d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Costin Canciu]]></dc:creator>
            <pubDate>Wed, 16 Sep 2020 13:50:15 GMT</pubDate>
            <atom:updated>2020-09-16T13:50:15.200Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*U-2QcDkNSSdFeW6IwjhMMA.jpeg" /></figure><p>Proof-of-concept (PoC) exploit code has been released for a Windows vulnerability, which allows attackers to gain administrative privileges, giving them access to companies’ Active Directory domain controllers (DCs).</p><p>The vulnerability, called“Zerologon,” is a privilege-escalation glitch (<a href="https://www.tenable.com/cve/CVE-2020-1472">CVE-2020–1472</a>) having a CVSS score of 10 out of 10, therefore critical in severity. The flaw was addressed in <a href="https://threatpost.com/microsoft-out-of-band-security-update-windows-remote-access-flaws/158511/">Microsoft’s August 2020 security updates</a>. However, few public PoC exploits for the flaw were released on Github this week<a href="https://github.com/dirkjanm/CVE-2020-1472">,</a> and on Friday, researchers with Secura (who discovered the flaw) published technical details of the vulnerability. One Python POC is available here: <a href="https://github.com/CanciuCostin/CVE-2020-1472">https://github.com/CanciuCostin/CVE-2020-1472</a> .</p><p>“This attack has a huge impact: It basically allows any attacker on the local network (such as a malicious insider or someone who simply plugged in a device to an on-premise network port) to completely compromise the Windows domain,” said researchers with Secura, <a href="https://www.secura.com/pathtoimg.php?id=2055">in a Friday whitepaper</a>. “The attack is completely unauthenticated: The attacker does not need any user credentials.”</p><p>The flaw relies on the Netlogon Remote Protocol, available on Windows domain controllers, which is used for authentication. Specifically, the issue exists in the usage of AES-CFB8 encryption for Netlogon sessions. The AES-CFB8 algorithm requires that each “byte” of plaintext have a randomized initialization vector (IV), blocking attackers from guessing passwords. However, Netlogon’s ComputeNetlogonCredential function sets the IV to a fixed 16 bits, which is not randomized, meaning an attacker could control the deciphered text.</p><p>In a real-world attack, attackers could send a number of Netlogon messages having various fields are filled with zeroes, allowing them to bypass these authentication measures, and access and change the computer password of the domain controller which is stored in the Active Directory (AD), researchers said.</p><p>“Due to incorrect use of an AES mode of operation it is possible to spoof the identity of any computer account (including that of the [Domain Controller] itself) and set an empty password for that account in the domain,” according to Secura researchers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1xKYn-nC5t_xg62qfGn6A.png" /></figure><p>Of note, in order to exploit this vulnerability, the attacker would need to launch the attack from a machine on the same local area network (LAN) as their target, meaning that they would already need a foothold inside the targeted network.</p><p>“A vulnerable client or DC exposed to the internet is not exploitable by itself,” according to researchers with Tenable <a href="https://www.tenable.com/blog/cve-2020-1472-zerologon-vulnerability-in-netlogon-could-allow-attackers-to-hijack-windows">in an analysis of the flaw</a>. “The attack requires that the spoofed login works like a normal domain login attempt. Active Directory (AD) would need to recognize the connecting client as being within its logical topology, which external addresses wouldn’t have.”</p><p>However, in the case when attackers are able to exploit the flaw, they can impersonate the identity of any machine on a network when attempting to authenticate to the Domain Controller, enabling further attacks, including the complete takeover of a Windows domain, researchers said.</p><p>“In a hypothetical attack, one could use this vulnerability to deploy ransomware throughout an organization and maintain a persistent presence if cleanup and restoration efforts miss any additional malicious scripts,” said Tenable researchers. “Organizations with network-accessible backups could end up with a perfect storm if a ransomware group destroys backups to increase their likelihood of payout from the victim organization.”</p><p>Microsoft for its part is addressing the vulnerability in a phased rollout. The initial deployment started with Windows updates being released on August 11, 2020, while the second phase, planned for the first quarter of 2021 however, will be an “enforcement phase.”</p><p>“The DCs will be placed in enforcement mode, which requires all Windows and non-Windows devices to use secure Remote Procedure Call (RPC) with Netlogon secure channel or to explicitly allow the account by adding an exception for any non-compliant device,” said Microsoft.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=886d5c15d02d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>