<?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 Enes Emre Yaşar on Medium]]></title>
        <description><![CDATA[Stories by Enes Emre Yaşar on Medium]]></description>
        <link>https://medium.com/@enesemreyasar?source=rss-3463bc042a27------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*inQeeBoAdOzbIZB9lUghTw.jpeg</url>
            <title>Stories by Enes Emre Yaşar on Medium</title>
            <link>https://medium.com/@enesemreyasar?source=rss-3463bc042a27------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:43:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@enesemreyasar/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[When the Zero-Day Hits: Building a PHP Inventory in Hours]]></title>
            <link>https://medium.com/@enesemreyasar/when-the-zero-day-hits-building-a-php-inventory-in-hours-d5e5ea70b621?source=rss-3463bc042a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5e5ea70b621</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability-management]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Enes Emre Yaşar]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 09:03:15 GMT</pubDate>
            <atom:updated>2026-10-23T09:03:15.816Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A practical guide to answering “Are we affected?” quickly and reliably during an incident like PHP2Shell</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bUY4UASGk4MucjRHOTY4vQ.png" /></figure><p>In October 2026, details of two critical vulnerabilities in PHP’s core (CVE-2026–109618 and CVE-2026–109619) leaked online before a patch was available. Dubbed “PHP2Shell,” the flaws allowed unauthenticated remote code execution. PHP only patched its supported release branches. In situations like this, the first question every security team faces is always the same: <strong>Where is PHP running in our environment?</strong></p><p>In most organizations, that question is harder to answer than it seems. This article describes a method for answering it quickly and reliably.</p><h3>Rule one: Read first</h3><p>When inspecting production systems during a crisis, the most important rule is to change nothing during the discovery phase. Commands that don’t install packages, restart services, or write files let you scan many systems without worry. Every step that requires a change should go through a separate approval process.</p><h3>An empty result doesn’t mean “nothing there”</h3><p>The most insidious failure of inventory scripts is that they fail silently. A docker ps run without root returns a permission error. If errors are suppressed, the output looks empty and you conclude “no containers.” Similarly, an unsupported parameter on an older PowerShell version can skip a search step entirely. Make your scripts explicitly report their privilege level and version constraints, and always question empty results.</p><h3>Linux: Scanning without asking the container runtime</h3><p>Docker, Podman, and containerd each require different commands and different privileges. In some environments the client tool isn’t even installed, and some images don’t contain a shell. A more robust approach is to use Linux’s /proc filesystem. Every process exposes the filesystem it sees through /proc/&lt;PID&gt;/root, with read-only access. By visiting each unique mount namespace once, you can scan the host and all containers with a single method:</p><pre>F=&quot;&quot;; S=&quot; &quot;<br>[ &quot;$(id -u)&quot; = 0 ] || F=&quot;WARNING: not root, results may be incomplete&quot;<br>P=$(ps -eo comm= | grep -E &#39;^(php|lsphp)&#39; | sort | uniq -c | tr -s &#39; &#39; | head -3 | tr &#39;\n&#39; &#39;;&#39;)<br>[ -n &quot;$P&quot; ] &amp;&amp; F=&quot;$F|[PROCESS] $P&quot;<br>for d in /proc/[0-9]*; do<br>  m=$(readlink $d/ns/mnt 2&gt;/dev/null) || continue<br>  case &quot;$S&quot; in *&quot; $m &quot;*) continue;; esac<br>  S=&quot;$S$m &quot;<br>  for f in $d/root/usr/bin/php* $d/root/usr/local/bin/php* \<br>           $d/root/usr/sbin/php-fpm* $d/root/usr/local/sbin/php-fpm*; do<br>    case &quot;$f&quot; in *config*|*ize*|*&#39;*&#39;*) continue;; esac<br>    if [ -L &quot;$f&quot; ] || [ -f &quot;$f&quot; ]; then<br>      F=&quot;$F|[FILE] pid ${d#/proc/}: ${f#$d/root}&quot;; break<br>    fi<br>  done<br>  x=$(grep -RlsE &#39;^\s*(fastcgi_pass|php_fastcgi)&#39; $d/root/etc/nginx $d/root/etc/caddy 2&gt;/dev/null | head -1)<br>  [ -n &quot;$x&quot; ] &amp;&amp; F=&quot;$F|[ROUTING] pid ${d#/proc/}: ${x#$d/root}&quot;<br>done<br>echo &quot;===== $(hostname) =====&quot;<br>if echo &quot;$F&quot; | grep -q &#39;\[&#39;; then echo &quot;&gt;&gt;&gt; PHP FOUND &lt;&lt;&lt;&quot;; else echo &quot;&gt;&gt;&gt; NO PHP &lt;&lt;&lt;&quot;; fi<br>echo &quot;$F&quot; | tr &#39;|&#39; &#39;\n&#39; | sed &#39;/^$/d&#39; | head -15</pre><p>The ^\s* in the fastcgi_pass search, which filters out commented lines, matters. Official nginx images ship with a commented-out sample PHP block that produces false positives in a careless search.</p><h3>“Running” and “installed” are different questions</h3><p>It’s hard to get the full picture from a single tool. If your organization has an EDR solution, you can search its event logs for devices that have recently run PHP processes. This also catches PHP running inside containers. But it only sees what is <strong>running</strong>, and it’s limited by the log retention period. A PHP installation that hasn’t run in months won’t appear.</p><p>An inventory management tool, on the other hand, shows what is <strong>installed</strong>. The “installed programs” list is a good starting point. But PHP extracted from a zip file or bundled inside other products won’t appear there. For those, you need a scan that looks at the filesystem. On Windows, a simple script that reads the file’s version information without executing PHP is enough:</p><pre>$patterns = @(<br>  &#39;C:\php*\php.exe&#39;, &#39;C:\php*\*\php.exe&#39;, &#39;C:\xampp*\php\php.exe&#39;,<br>  &#39;C:\wamp*\bin\php\*\php.exe&#39;, &#39;C:\laragon\bin\php\*\php.exe&#39;,<br>  &#39;C:\Program Files\*\php.exe&#39;, &#39;C:\Program Files\*\*\php.exe&#39;,<br>  &#39;C:\Program Files (x86)\*\php.exe&#39;, &#39;C:\Program Files (x86)\*\*\php.exe&#39;<br>)<br>Get-Item -Path $patterns -ErrorAction SilentlyContinue | ForEach-Object {<br>  [PSCustomObject]@{ Path = $_.FullName; Version = $_.VersionInfo.ProductVersion }<br>}</pre><p>Using both methods together gives you a picture neither can provide alone: where PHP exists, and which of those installations are actually in use.</p><h3>Three places that get overlooked</h3><p>Three categories are most often missed in a PHP inventory. First, <strong>PHP bundled inside other products.</strong> Phone systems, management servers for network and security products, and various off-the-shelf applications may ship their own PHP. These don’t appear in package lists, and only the product vendor can update them. Second, <strong>local installations on developer machines.</strong> Packages like XAMPP bring a web server and a database along with PHP, and with default settings they may be reachable from the network. Third, <strong>end-of-life versions.</strong> No official patch will ever be released for them. They should be tracked as a separate list.</p><h3>Risk assessment: Version alone isn’t enough</h3><p>Finding an affected PHP version doesn’t automatically mean critical risk. The real question is whether that PHP processes incoming web requests. PHP invoked from the command line by a product’s internal scripts doesn’t carry the same risk as PHP-FPM behind an internet-facing website. To find out, check which modules the web server loads and where requests are routed. Don’t draw conclusions from indirect clues such as the build type.</p><h3>No patch? Disable, restrict, contain</h3><p>For PHP that isn’t being used, the best solution is to disable or remove it. No patch is faster or more definitive. For systems without a patch, mitigations should be layered: restricting internet access, adding an extra authentication layer, and, as in the PHP2Shell case, configuration changes that close the known attack path. Most of these settings provide only partial protection, and decision-makers need to be told that clearly.</p><p>A word of caution when changing settings in containers: always check how the container is started. A setting written inside a container that is rebuilt from its image on every start will be lost on the first restart. Persistent changes belong in configuration files mounted into the container from outside, or in the image itself.</p><h3>Don’t say “done” without verifying</h3><p>A software deployment tool reporting “success” doesn’t necessarily mean an uninstall actually happened. Some uninstallers leave files or registry entries behind. After every intervention, verify the result at the source, directly on the system itself. And before any deletion, visually confirm that a backup of user data actually exists.</p><h3>Quick checklist</h3><p><strong>Start discovery with read-only commands.</strong> Fast, safe scanning, with changes approved separately.</p><ol><li><strong>Run scripts with sufficient privileges and question empty results.</strong> Privilege and version errors can silently produce “nothing found.”</li><li><strong>Scan containers independently of the runtime.</strong> Different environments behave differently.</li><li><strong>Look for “running” and “installed” with separate methods.</strong> Each covers the other’s blind spot.</li><li><strong>Don’t forget bundled PHP and developer machines.</strong> The most commonly overlooked places.</li><li><strong>Assess risk by how PHP is used, not just by version.</strong> Not every affected version carries the same risk.</li><li><strong>Disable what isn’t used.</strong> The fastest and most definitive fix.</li><li><strong>Verify every intervention at the source.</strong> A tool saying “success” isn’t enough.</li></ol><p>When the next zero-day arrives, the answer to “<strong>Where do we have it?</strong>” should already be ready. The best way to make that happen is to build your inventory before the crisis, not during it.</p><p><em>Keep your inventory current and your logs on. See you next time.</em></p><h3>Zero-Day Geldiğinde: PHP Envanterini Saatler İçinde Çıkarmak</h3><p><em>PHP2Shell gibi bir açıkta “etkileniyor muyuz?” sorusuna hızlı ve güvenilir cevap vermek için pratik bir rehber</em></p><p>Ekim 2026&#39;da PHP’nin çekirdeğindeki iki kritik açığın (CVE-2026–109618 ve CVE-2026–109619) ayrıntıları, yama yayımlanmadan önce internete sızdı. “PHP2Shell” adı verilen açıklar, kimlik doğrulaması olmadan uzaktan kod çalıştırmaya imkân veriyordu. PHP yalnızca desteklenen sürüm dallarını yamaladı. Böyle bir durumda güvenlik ekiplerinin önündeki ilk soru her zaman aynıdır: <strong>Bizde PHP nerede çalışıyor?</strong></p><p>Bu sorunun cevabı, çoğu kurumda düşünüldüğünden daha zordur. Bu yazı, o cevabı hızlı ve güvenilir şekilde bulmak için izlenebilecek bir yöntemi anlatıyor.</p><h3>İlk kural: Önce sadece okuyun</h3><p>Kriz anında üretim sistemlerine bakarken en önemli kural, keşif aşamasında hiçbir şeyi değiştirmemektir. Paket kurmayan, servis yeniden başlatmayan, dosya yazmayan komutlar sayesinde çok sayıda sistemi endişe etmeden tarayabilirsiniz. Değişiklik gerektiren her adım ise ayrı bir onay sürecinden geçmelidir.</p><h3>Boş sonuç, “yok” demek değildir</h3><p>Envanter script’lerinin en sinsi hatası, sessizce başarısız olmalarıdır. Root olmadan çalıştırılan bir docker ps yetki hatası verir. Hatalar gizlendiyse, çıktı boş görünür ve “konteyner yok” sanılır. Benzer şekilde eski bir PowerShell sürümünde desteklenmeyen bir parametre, arama adımını hiç çalıştırmadan geçebilir. Script’lerinizin yetki ve sürüm durumunu açıkça raporlamasını sağlayın. Boş sonuçları da her zaman sorgulayın.</p><h3>Linux: Konteyner çalışma ortamına sormadan tarama</h3><p>Docker, Podman ve containerd farklı komutlar ve farklı yetkiler ister. Bazı ortamlarda istemci aracı hiç kurulu olmayabilir, bazı imajlarda kabuk bile bulunmayabilir. Daha sağlam bir yol, Linux’un /proc dosya sistemini kullanmaktır. Her süreç, gördüğü dosya sistemine /proc/&lt;PID&gt;/root üzerinden salt okunur erişim sağlar. Her benzersiz mount namespace’ini bir kez ziyaret ederek host’u ve tüm konteynerleri tek bir yöntemle tarayabilirsiniz:</p><pre>F=&quot;&quot;; S=&quot; &quot;<br>[ &quot;$(id -u)&quot; = 0 ] || F=&quot;UYARI: root degil, sonuc eksik olabilir&quot;<br>P=$(ps -eo comm= | grep -E &#39;^(php|lsphp)&#39; | sort | uniq -c | tr -s &#39; &#39; | head -3 | tr &#39;\n&#39; &#39;;&#39;)<br>[ -n &quot;$P&quot; ] &amp;&amp; F=&quot;$F|[SUREC] $P&quot;<br>for d in /proc/[0-9]*; do<br>  m=$(readlink $d/ns/mnt 2&gt;/dev/null) || continue<br>  case &quot;$S&quot; in *&quot; $m &quot;*) continue;; esac<br>  S=&quot;$S$m &quot;<br>  for f in $d/root/usr/bin/php* $d/root/usr/local/bin/php* \<br>           $d/root/usr/sbin/php-fpm* $d/root/usr/local/sbin/php-fpm*; do<br>    case &quot;$f&quot; in *config*|*ize*|*&#39;*&#39;*) continue;; esac<br>    if [ -L &quot;$f&quot; ] || [ -f &quot;$f&quot; ]; then<br>      F=&quot;$F|[DOSYA] pid ${d#/proc/}: ${f#$d/root}&quot;; break<br>    fi<br>  done<br>  x=$(grep -RlsE &#39;^\s*(fastcgi_pass|php_fastcgi)&#39; $d/root/etc/nginx $d/root/etc/caddy 2&gt;/dev/null | head -1)<br>  [ -n &quot;$x&quot; ] &amp;&amp; F=&quot;$F|[YONLENDIRME] pid ${d#/proc/}: ${x#$d/root}&quot;<br>done<br>echo &quot;===== $(hostname) =====&quot;<br>if echo &quot;$F&quot; | grep -q &#39;\[&#39;; then echo &quot;&gt;&gt;&gt; PHP VAR &lt;&lt;&lt;&quot;; else echo &quot;&gt;&gt;&gt; PHP YOK &lt;&lt;&lt;&quot;; fi<br>echo &quot;$F&quot; | tr &#39;|&#39; &#39;\n&#39; | sed &#39;/^$/d&#39; | head -15</pre><p>fastcgi_pass aramasında yorum satırlarını eleyen ^\s* kısmı önemli. Resmi nginx imajları, yorum satırı yapılmış örnek bir PHP bloğuyla gelir. Bu blok, dikkatsiz bir aramada yanlış alarm üretir.</p><h3>“Çalışan” ve “kurulu” ayrı sorulardır</h3><p>Tek bir araçla tam bir tablo elde etmek zordur. Kurumunuzda bir EDR çözümü varsa, olay kayıtlarında son dönemde PHP süreçlerini çalıştıran cihazları arayabilirsiniz. Bu yöntem konteyner içindeki PHP’yi de yakalar. Ama sadece <strong>çalışanı</strong> görür ve kayıtların saklama süresiyle sınırlıdır. Kurulu olup aylardır çalıştırılmamış bir PHP bu aramada görünmez.</p><p>Bir envanter yönetim aracı ise <strong>kurulu olanı</strong> gösterir. “Kurulu programlar” listesi iyi bir başlangıçtır. Ama zip’ten açılmış ya da başka ürünlerin içine gömülü PHP’ler orada görünmez. Bunlar için dosya sistemine bakan bir tarama gerekir. Windows’ta, dosyanın sürüm bilgisini PHP’yi çalıştırmadan okuyan basit bir script yeterlidir:</p><pre>$desen = @(<br>  &#39;C:\php*\php.exe&#39;, &#39;C:\php*\*\php.exe&#39;, &#39;C:\xampp*\php\php.exe&#39;,<br>  &#39;C:\wamp*\bin\php\*\php.exe&#39;, &#39;C:\laragon\bin\php\*\php.exe&#39;,<br>  &#39;C:\Program Files\*\php.exe&#39;, &#39;C:\Program Files\*\*\php.exe&#39;,<br>  &#39;C:\Program Files (x86)\*\php.exe&#39;, &#39;C:\Program Files (x86)\*\*\php.exe&#39;<br>)<br>Get-Item -Path $desen -ErrorAction SilentlyContinue | ForEach-Object {<br>  [PSCustomObject]@{ Yol = $_.FullName; Surum = $_.VersionInfo.ProductVersion }<br>}</pre><p>İki yöntemi birlikte kullanmak, tek başına hiçbirinin veremeyeceği bir tablo ortaya çıkarır: nerede PHP var ve bunlardan hangisi gerçekten kullanılıyor.</p><h3>Gözden kaçan üç yer</h3><p>PHP envanterinde en sık gözden kaçan üç kategori var. Birincisi, <strong>başka ürünlerin içine gömülü PHP.</strong> Telefon santralleri, ağ ve güvenlik ürünlerinin yönetim sunucuları ve çeşitli hazır yazılımlar kendi PHP’lerini taşıyabilir. Bunlar paket listelerinde görünmez ve onları ancak ürünün üreticisi güncelleyebilir. İkincisi, <strong>geliştirici bilgisayarlarındaki yerel kurulumlar.</strong> XAMPP gibi paketler PHP’nin yanında bir web sunucusu ve veritabanı da getirir, varsayılan ayarlarıyla da ağa açık çalışabilir. Üçüncüsü, <strong>desteği bitmiş sürümler.</strong> Bunlar için hiçbir zaman resmi yama çıkmaz. Ayrı bir liste olarak ele alınmalıdır.</p><h3>Risk değerlendirmesi: Sürüm tek başına yetmez</h3><p>Etkilenen bir PHP sürümü bulmak, otomatik olarak kritik risk anlamına gelmez. Asıl soru, o PHP’nin dışarıdan gelen web isteklerini işleyip işlemediğidir. Bir ürünün kendi iç script’lerinde komut satırından çağrılan bir PHP, internete açık bir web sitesindeki PHP-FPM ile aynı riski taşımaz. Bunu anlamak için web sunucusunun hangi modülleri yüklediğine ve isteklerin nereye yönlendirildiğine bakın. Dolaylı ipuçlarına (örneğin derleme türüne) dayanarak sonuç çıkarmayın.</p><h3>Yama yoksa: Kapatın, kısıtlayın, sınırlayın</h3><p>Kullanılmayan bir PHP için en iyi çözüm, servisi kapatmak ya da kaldırmaktır. Hiçbir yama bundan daha hızlı ve kesin değildir. Yaması olmayan sistemlerde ise önlemler katmanlı olmalı: internete erişimin kısıtlanması, ek bir kimlik doğrulama katmanı ve PHP2Shell örneğinde olduğu gibi, bilinen saldırı yolunu kapatan yapılandırma değişiklikleri. Bu son tür ayarların çoğu yalnızca kısmi koruma sağlar ve bunu karar vericilere açıkça söylemek gerekir.</p><p>Konteynerlerde ayar değiştirirken bir uyarı: konteynerin nasıl başlatıldığına mutlaka bakın. Her başlangıçta imajdan sıfırdan kurulan bir konteynerin içine yazdığınız ayar, ilk yeniden başlatmada kaybolur. Kalıcı değişiklikler, konteynere dışarıdan bağlanan yapılandırma dosyalarında ya da imajın kendisinde yapılmalıdır.</p><h3>Doğrulamadan “tamam” demeyin</h3><p>Bir yazılım dağıtım aracının “başarılı” demesi, kaldırma işleminin gerçekten yapıldığı anlamına gelmeyebilir. Bazı kaldırıcılar dosyaları ya da kayıt defteri kayıtlarını geride bırakır. Her müdahaleden sonra sonucu kaynağında, yani doğrudan sistemin kendisinde doğrulayın. Silme işlemlerinden önce de kullanıcı verilerinin yedeğinin gerçekten alındığını gözle teyit edin.</p><h3><strong>Kısa kontrol listesi</strong></h3><ol><li><strong>Keşfe sadece okuyan komutlarla başlayın.</strong> Hızlı ve güvenli tarama, değişiklikler ayrıca onaylanır.</li><li><strong>Script’leri yeterli yetkiyle çalıştırın, boş sonuçları sorgulayın.</strong> Yetki ve sürüm hataları sessizce “yok” sonucu üretebilir.</li><li><strong>Konteynerleri çalışma ortamından bağımsız tarayın.</strong> Farklı ortamlar farklı davranır.</li><li><strong>“Çalışan” ve “kurulu” olanı ayrı yöntemlerle arayın.</strong> Biri diğerinin boşluğunu kapatır.</li><li><strong>Gömülü PHP’yi ve geliştirici bilgisayarlarını unutmayın.</strong> En sık gözden kaçan yerler.</li><li><strong>Riski sürüme değil kullanım şekline göre değerlendirin.</strong> Her etkilenen sürüm aynı riski taşımaz.</li><li><strong>Kullanılmayanı kapatın.</strong> En hızlı ve en kesin çözüm.</li><li><strong>Her müdahaleyi kaynağında doğrulayın.</strong> Araçların “başarılı” demesi yeterli değil.</li></ol><p><em>Envanteriniz güncel, loglarınız açık olsun. Bir sonraki yazıda görüşmek üzere.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5e5ea70b621" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Install Graylog Server On Ubuntu 22.04]]></title>
            <link>https://medium.com/@enesemreyasar/how-to-install-graylog-server-on-ubuntu-22-04-973b4b734532?source=rss-3463bc042a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/973b4b734532</guid>
            <category><![CDATA[log-management]]></category>
            <category><![CDATA[graylog]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[linux-admin]]></category>
            <dc:creator><![CDATA[Enes Emre Yaşar]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 06:32:52 GMT</pubDate>
            <atom:updated>2025-07-26T20:49:50.772Z</atom:updated>
            <content:encoded><![CDATA[<p>Graylog is an open-source log management system that collects, analyzes, and sends alerts from large log data. Graylog uses the Elasticsearch search engine and MongoDB database service, which are required for analyzing structured and unstructured logs. In this tutorial, except for the Graylog server, elasticsearch, and MongoDB, we will install Java and Nginx and will configure reverse proxy so you can access Graylog via domain name.</p><h3><strong>Step 1. Update the System</strong></h3><p>Before we start with the installation of this software we will update the system packages to their latest versions available.</p><blockquote><strong>sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y</strong></blockquote><h3><strong>Step 2. Install Nginx</strong></h3><p>To install the Nginx web server execute the following command:</p><blockquote><strong>sudo apt-get install nginx -y</strong></blockquote><p>After successful installation, the Nginx service will be automatically started. To check the status of Nginx, execute the following command:</p><blockquote><strong>sudo systemctl status nginx</strong></blockquote><p>You should get the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*p_iRXQcDt5e71jCozdZBNQ.png" /></figure><h3><strong>Step 3. Install MongoDB Database</strong></h3><p>Server First, add the GPG keys:</p><blockquote><strong>wget -qO — </strong><a href="https://www.mongodb.org/static/pgp/server-4.4.asc"><strong>https://www.mongodb.org/static/pgp/server-4.4.asc</strong></a><strong> | sudo apt-key add –</strong></blockquote><p>Then, we need to add the MongoDB repository:</p><blockquote><strong>echo “deb [ arch=amd64,arm64 ] </strong><a href="https://repo.mongodb.org/apt/ubuntu"><strong>https://repo.mongodb.org/apt/ubuntu</strong></a><strong> focal/mongodb-org/4.4 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list</strong></blockquote><blockquote><strong>echo “deb </strong><a href="http://security.ubuntu.com/ubuntu"><strong>http://security.ubuntu.com/ubuntu</strong></a><strong> focal-security main” | sudo tee /etc/apt/sources.list.d/focal-security.list</strong></blockquote><p>Once done, update the system and install the MongoDB database server.</p><blockquote><strong>sudo apt update -y</strong></blockquote><blockquote><strong>sudo apt upgrade -y</strong></blockquote><blockquote><strong>sudo apt-get install gnupg libssl1.1 –y</strong></blockquote><blockquote><strong>sudo apt-get install mongodb-org=4.4.8 mongodb-org-server=4.4.8 mongodb-org-shell=4.4.8 mongodb-org-mongos=4.4.8 mongodb-org-tools=4.4.8 –y</strong></blockquote><p>After this start and enable the MongoDB service:</p><blockquote><strong>sudo systemctl start mongod</strong></blockquote><blockquote><strong>sudo systemctl enable mongod</strong></blockquote><p>To check the status of MongoDB execute the command below:</p><blockquote><strong>sudo systemctl status mongod</strong></blockquote><p>You should receive the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*4lN7dgX23VB27y_NRSDbSQ.png" /></figure><h3><strong>Step 4. Install Java</strong></h3><p>To install the latest Java version, we need to install first some Java dependencies:</p><blockquote><strong>apt install apt-transport-https gnupg2 uuid-runtime pwgen curl dirmngr –y</strong></blockquote><p>Once these dependencies are installed, we can install Java with the following command:</p><blockquote><strong>apt install openjdk-11-jre-headless –y</strong></blockquote><p>After successfull installation, check the installed Java version:</p><blockquote><strong>java — version</strong></blockquote><p>You should receive output similar to this:</p><blockquote><strong>root@host:~# java — version</strong></blockquote><p><strong>openjdk 11.0.17 2022–10–18</strong></p><p><strong>OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04)</strong></p><p><strong>OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu222.04, mixed mode, sharing</strong></p><h3><strong>Step 5. Install Elasticsearch</strong></h3><p>First we are going to add the elasticsearch public key to the APT, and the elastic source to the sources.list.d. To add the GPG-KEY execute the following command:</p><blockquote><strong>curl -fsSL </strong><a href="https://artifacts.elastic.co/GPG-KEY-elasticsearch"><strong>https://artifacts.elastic.co/GPG-KEY-elasticsearch</strong></a><strong> | sudo gpg — dearmor -o /usr/share/keyrings/elastic.gpg</strong></blockquote><p>To add the elastic source in the sources.list.d execute the following command:</p><blockquote><strong>echo “deb [signed-by=/usr/share/keyrings/elastic.gpg] </strong><a href="https://artifacts.elastic.co/packages/7.x/apt"><strong>https://artifacts.elastic.co/packages/7.x/apt</strong></a><strong> stable main” | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list</strong></blockquote><p>Now, update the system and install the elastic search with the following commands:</p><blockquote><strong>sudo apt update -y</strong></blockquote><blockquote><strong>sudo apt install elasticsearch</strong></blockquote><p>Start and enable the elasticsearch service.</p><blockquote><strong>sudo systemctl start elasticsearch</strong></blockquote><blockquote><strong>sudo systemctl enable elasticsearch</strong></blockquote><p>To check the status of the service if is up and running execute the following command:</p><blockquote><strong>sudo systemctl status elasticsearch</strong></blockquote><p>You should receive the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*_UPBJmnp4O11YeF9LQ-kOg.png" /></figure><blockquote><strong>sudo nano /etc/elasticsearch/elasticsearch.yml</strong></blockquote><p>Enter these lines of code:</p><p><strong>cluster.name: graylog</strong></p><p><strong>action.auto_create_index: false</strong></p><p>Save the file, close it and restart the daemon along with elasticsearch service:</p><blockquote><strong>sudo systemctl daemon-reload</strong></blockquote><blockquote><strong>sudo systemctl restart elasticsearch</strong></blockquote><h3>Step 6. Install Graylog Server</h3><p>First, we need to download the Graylog package:</p><blockquote><strong>wget </strong><a href="https://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.deb"><strong>https://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.deb</strong></a></blockquote><p>After that, we need to install it:</p><blockquote><strong>dpkg -i graylog-4.3-repository_latest.deb</strong></blockquote><blockquote><strong>sudo apt update –y sudo apt install graylog-server –y</strong></blockquote><p>Start and Enable the graylog-server service:</p><blockquote><strong>systemctl enable graylog-server.service</strong></blockquote><blockquote><strong>systemctl start graylog-server.service</strong></blockquote><p>To check the status of the Graylog server execute the following command:</p><blockquote><strong>systemctl status graylog-server</strong></blockquote><blockquote><strong>systemctl status graylog-server</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*UuiL5Zi-9dPfEnvzvrA8hw.png" /></figure><h3>Step 7. Configure Graylog User</h3><p>In this step we will secure the user passwords using the password generator command pwgen.</p><blockquote><strong>pwgen -N 1 -s 96</strong></blockquote><p>You will get output similar to this:</p><p><strong>hG1gMQmadHjwU31q3jqQk6Mfe85HW1go7nEfUjIvGvUVfMdqrcGlqOFPAtQilK8uujHR9uRZ2sA0fZ6 RSPmpPESviRztoTGc</strong></p><p>Then we will create an admin password:</p><blockquote><strong>echo -n YourPassword | shasum -a 256</strong></blockquote><p>You will receive output similar to this:</p><blockquote><strong>root@host:~# echo -n YourPassword | shasum -a 256</strong></blockquote><blockquote><strong>ddea588114d8e836dcc38e6a172dc03e6e256eca7788dab45be849dfe60b24f2-</strong></blockquote><p>Open the sudo nano <strong>/etc/graylog/server/server.conf </strong>file and find the part <strong>password_secret</strong> and <strong>root_password_sha2 </strong>fields. Paste the previously generated passwords.</p><p><strong>password_secret = hG1gMQmadHjwU31q3jqQk6Mfe85HW1go7nEfUjIvGvUVfMdqrcGlqOFPAtQilK8uujHR9uRZ2sA0fZ6 RSPmpPESviRztoTGc</strong></p><p><strong>root_password_sha2 = ddea588114d8e836dcc38e6a172dc03e6e256eca7788dab45be849dfe60b24f2</strong></p><p>Save the file, close it and restart the graylog server.</p><blockquote><strong>systemctl daemon-reload</strong></blockquote><blockquote><strong>systemctl restart graylog-server</strong></blockquote><p>Now, you can access your Graylog server at <a href="http://yourdomain.com:9000/"><strong>http://YourDomain.com:9000</strong></a> using the credentials you created above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*cvNazuZF9HLmxEbl4tgs1A.png" /></figure><p>🎉 Congratulations! By following these steps, you’ve successfully installed Graylog on Ubuntu 22.04. You’ve centralized your log management, making your systems more secure and easier to manage.</p><p>🛠 If you’d like to keep improving your system administration skills with tutorials like this, don’t forget to follow me.<br> 🧠 In my next post, I’ll cover basic Graylog configuration, creating dashboards, and performing log analysis.</p><p>Thank you for reading this far. Stay safe, and keep your logs under control!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=973b4b734532" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backdoor: Tanım, Oluşturulma Yöntemleri ve Korunma Stratejileri]]></title>
            <link>https://medium.com/@enesemreyasar/backdoor-tan%C4%B1m-olu%C5%9Fturulma-y%C3%B6ntemleri-ve-korunma-stratejileri-2af0bf10fcd7?source=rss-3463bc042a27------2</link>
            <guid isPermaLink="false">https://medium.com/p/2af0bf10fcd7</guid>
            <category><![CDATA[ethical-hacker]]></category>
            <category><![CDATA[msfvenom]]></category>
            <category><![CDATA[thefatrat]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[backdoor]]></category>
            <dc:creator><![CDATA[Enes Emre Yaşar]]></dc:creator>
            <pubDate>Mon, 09 Sep 2024 18:07:25 GMT</pubDate>
            <atom:updated>2024-09-09T18:07:25.741Z</atom:updated>
            <content:encoded><![CDATA[<h3>Backdoor Nedir?</h3><p>Backdoor, bilgisayar sistemlerinde yetkisiz ve genellikle gizli erişim sağlayan bir tür kötü niyetli yazılımdır. Bu yazılımlar, “arka kapı” olarak adlandırılır çünkü kullanıcıların bilgi ve onayı olmadan sistemlere sızmak için gizli giriş noktaları oluşturur. Genellikle bir sistemin güvenlik önlemlerini atlayarak, siber suçluların veya kötü niyetli kişilerin kontrol sağladığı, hassas verileri çaldığı veya zarar verici faaliyetlerde bulunduğu bir kapı işlevi görür.</p><h4>Backdoor’ların Çalışma Prensibi</h4><p>Backdoor’lar çeşitli yollarla bir sisteme sızabilir:</p><ul><li><strong>E-posta Ekleri ve Kötü Amaçlı İndirmeler</strong>: Bilgisayara zararlı yazılımlar genellikle enfekte olmuş e-posta ekleri veya şüpheli kaynaklardan yapılan indirmeler aracılığıyla girer.</li><li><strong>Yazılım Açıkları</strong>: Yazılım ve sistem açıklarından yararlanarak backdoor’lar kurulabilir.</li><li><strong>Gizli Uygulamalar</strong>: Zararlı kodlar, masum görünen uygulamalar veya dosyaların içine gizlenir.</li></ul><p>Bir backdoor kurulduğunda, sistemde gizli bir erişim kanalı açar ve genellikle standart güvenlik protokollerini atlar. Bu gizli erişim, kötü niyetli kişilere sisteme uzaktan kontrol sağlama, komut çalıştırma, dosya yükleme veya indirme, hassas verileri toplama ve hatta sistem üzerinden diğer saldırılar gerçekleştirme imkanı tanır.</p><h4>Backdoor Oluşturma Araçları ve Yöntemleri</h4><p>Backdoor’lar çeşitli tekniklerle oluşturulabilir ve bunun için çeşitli araçlar kullanılır:</p><ul><li><strong>Msfvenom</strong>: Metasploit Framework’ün bir parçası olan Msfvenom, payload’ları oluşturmak için kullanılır. Bu araç, kullanıcıların çeşitli seçeneklerle payload’ları özelleştirmesine olanak tanır. Msfvenom, Windows, Linux gibi platformlara uygun payload’lar üretir ve bind veya reverse bağlantı protokollerini destekler. Örneğin, reverse bağlantı protokolü kullanarak, kurbanın makinesi sizin makinenize bağlantı isteği gönderir, bu da firewall’ları aşmakta daha etkili olabilir.</li><li><strong>TheFatRat</strong>: TheFatRat, kullanıcı dostu bir arayüze sahip ve çeşitli payload türlerini destekleyen bir araçtır. Bu araç, farklı dosya türlerinde (resimler, PDF’ler vb.) backdoor oluşturabilir. TheFatRat, kullanıcıların zararlı yazılımları daha kolay bir şekilde oluşturmasını sağlar ve genellikle eğitim ve test amaçlı kullanılır.</li></ul><h4>Backdoor Türleri</h4><p>Backdoor’lar genellikle birkaç önemli özelliğe sahiptir:</p><ul><li><strong>Gizli Erişim</strong>: Sisteme gizlice sızarak, kullanıcı tarafından fark edilmeden kontrol sağlar.</li><li><strong>Uzaktan Kontrol</strong>: Enfekte olmuş sistem üzerinde komutlar çalıştırabilir, dosyalar yükleyebilir veya indirebilir ve hassas verileri çalabilir.</li><li><strong>Veri Hırsızlığı</strong>: Kişisel bilgiler, finansal veriler, giriş bilgileri gibi hassas verileri çalabilir ve bu verileri kimlik hırsızlığı veya karanlık web’de satış gibi kötü niyetli amaçlar için kullanabilir.</li><li><strong>Kalıcılık</strong>: Backdoor’lar, sistem üzerinde uzun süre kalabilmek için çeşitli teknikler kullanarak yeniden başlatmalar veya güvenlik taramalarından kaçınabilirler.</li></ul><h4>Korunma ve Önleme Stratejileri</h4><p>Backdoor’lardan korunmak için aşağıdaki stratejiler uygulanabilir:</p><ul><li><strong>Güncellemeler</strong>: İşletim sistemi ve yazılımların düzenli olarak güncellenmesi, güvenlik açıklarını kapatır.</li><li><strong>Antivirüs ve Anti-Malware Araçları</strong>: Güvenilir antivirüs ve anti-malware yazılımlarının kullanımı, zararlı yazılımlara karşı koruma sağlar.</li><li><strong>Güçlü Şifreler</strong>: Benzersiz ve güçlü şifrelerin kullanılması, yetkisiz erişim riskini azaltır.</li><li><strong>Kullanıcı Bilinci</strong>: Çevrimiçi içeriklerle etkileşimde dikkatli olmak ve bilinmeyen kaynaklardan gelen dosyalara karşı temkinli olmak önemlidir.</li></ul><h4>Temizlik ve Kurtarma</h4><p>Bir backdoor virüsü şüphelenildiğinde veya tespit edildiğinde, derhal harekete geçmek gerekir. Genellikle özel antivirüs veya anti-malware araçları kullanılarak temizlenir. Ancak, backdoor’lar stealth yani gizli olacak şekilde tasarlandıkları için, bu işlem zorlu olabilir.</p><h3>Sonuç</h3><p>Backdoor’lar, sistemlere gizlice ve yetkisiz erişim sağlamak için kullanılan zararlı yazılımlardır. Bu tür yazılımlar, bireyler ve organizasyonlar için büyük bir tehdit oluşturur. Korunmak ve etkili bir şekilde mücadele edebilmek için, proaktif güvenlik önlemleri almak ve herhangi bir enfeksiyon durumunda hızlı bir şekilde müdahale etmek önemlidir. Ayrıca, backdoor’ların oluşturulmasında kullanılan çeşitli araçları anlamak, bu tür tehditlerle başa çıkma stratejilerini geliştirmek için faydalı olabilir.</p><p>Buraya kadar okuduğunuz için teşekkür ederim! Öğrendiklerimi paylaşma yolculuğuma ilk adımı atmış bulunmaktayım.</p><p>Güvenlik tavsiyeleri ve teknoloji dünyasındaki en son gelişmeler hakkında bilgi almak için beni takip edebilirsiniz. Güvende kalın!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2af0bf10fcd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>